Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 969) sorted by relevance

12345678910>>...39

/external/iptables/libxtables/
Dxtoptions.c29 #define XTOPT_MKPTR(cb) \ argument
30 ((void *)((char *)(cb)->data + (cb)->entry->ptroff))
172 static void xtopt_parse_int(struct xt_option_call *cb) in xtopt_parse_int() argument
174 const struct xt_option_entry *entry = cb->entry; in xtopt_parse_int()
178 if (cb->entry->min != 0) in xtopt_parse_int()
179 lmin = cb->entry->min; in xtopt_parse_int()
180 if (cb->entry->max != 0) in xtopt_parse_int()
181 lmax = cb->entry->max; in xtopt_parse_int()
183 if (!xtables_strtoul(cb->arg, NULL, &value, lmin, lmax)) in xtopt_parse_int()
187 cb->ext_name, entry->name, lmin, lmax); in xtopt_parse_int()
[all …]
/external/strace/
Daio.c81 print_common_flags(struct tcb *tcp, const struct iocb *cb) in print_common_flags() argument
85 if (cb->aio_flags & IOCB_FLAG_RESFD) { in print_common_flags()
87 printfd(tcp, cb->aio_resfd); in print_common_flags()
89 if (cb->aio_flags & ~IOCB_FLAG_RESFD) in print_common_flags()
90 tprintf(", flags=%#x", cb->aio_flags); in print_common_flags()
95 iocb_is_valid(const struct iocb *cb) in iocb_is_valid() argument
97 return cb->aio_buf == (unsigned long) cb->aio_buf && in iocb_is_valid()
98 cb->aio_nbytes == (size_t) cb->aio_nbytes && in iocb_is_valid()
99 (ssize_t) cb->aio_nbytes >= 0; in iocb_is_valid()
103 print_iocb_header(struct tcb *tcp, const struct iocb *cb) in print_iocb_header() argument
[all …]
/external/sl4a/ScriptingLayerForAndroid/src/org/apache/harmony/niochar/charset/additional/
DIBM437.java59 protected CoderResult decodeLoop(ByteBuffer bb, CharBuffer cb){ in decodeLoop() argument
60 int cbRemaining = cb.remaining(); in decodeLoop()
77 if(bb.hasArray() && cb.hasArray()) { in decodeLoop()
81 char[] cArr = cb.array(); in decodeLoop()
83 int cStart = cb.position(); in decodeLoop()
95 cb.position(cStart); in decodeLoop()
103 cb.put(arr[index]); in decodeLoop()
105 cb.put((char)(in & 0xFF)); in decodeLoop()
156 protected CoderResult encodeLoop(CharBuffer cb, ByteBuffer bb){ in encodeLoop() argument
186 if(bb.hasArray() && cb.hasArray()) { in encodeLoop()
[all …]
/external/libnl/lib/
Dhandlers.c204 struct nl_cb *cb; in nl_cb_alloc() local
209 cb = calloc(1, sizeof(*cb)); in nl_cb_alloc()
210 if (!cb) in nl_cb_alloc()
213 cb->cb_refcnt = 1; in nl_cb_alloc()
214 cb->cb_active = NL_CB_TYPE_MAX + 1; in nl_cb_alloc()
217 nl_cb_set(cb, i, kind, NULL, NULL); in nl_cb_alloc()
219 nl_cb_err(cb, kind, NULL, NULL); in nl_cb_alloc()
221 return cb; in nl_cb_alloc()
232 struct nl_cb *cb; in nl_cb_clone() local
234 cb = nl_cb_alloc(NL_CB_DEFAULT); in nl_cb_clone()
[all …]
Dnl.c301 struct nl_cb *cb; in nl_sendmsg() local
309 cb = sk->s_cb; in nl_sendmsg()
310 if (cb->cb_set[NL_CB_MSG_OUT]) in nl_sendmsg()
311 if ((ret = nl_cb_call(cb, NL_CB_MSG_OUT, msg)) != NL_OK) in nl_sendmsg()
418 struct nl_cb *cb = sk->s_cb; in nl_send() local
420 if (cb->cb_send_ow) in nl_send()
421 return cb->cb_send_ow(sk, msg); in nl_send()
758 #define NL_CB_CALL(cb, type, msg) \ argument
760 err = nl_cb_call(cb, type, msg); \
775 static int recvmsgs(struct nl_sock *sk, struct nl_cb *cb) in recvmsgs() argument
[all …]
/external/protobuf/js/
Dgulpfile.js5 function exec(command, cb) { argument
6 execFile('sh', ['-c', command], cb);
11 gulp.task('genproto_closure', function (cb) { argument
16 cb(err);
20 gulp.task('genproto_commonjs', function (cb) { argument
25 cb(err);
29 gulp.task('dist', function (cb) { argument
36 cb(err);
40 gulp.task('commonjs_asserts', function (cb) { argument
45 cb(err);
[all …]
/external/boringssl/src/crypto/pem/
Dpem_pk8.c70 char *kstr, int klen, pem_password_cb *cb, void *u);
73 char *kstr, int klen, pem_password_cb *cb, void *u);
84 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument
86 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid()
91 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument
93 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey()
98 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument
100 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio()
105 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument
107 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Devergreen_state.c1136 struct pipe_constant_buffer cb; in evergreen_set_clip_state() local
1162 cb.buffer = NULL; in evergreen_set_clip_state()
1163 cb.user_buffer = state->ucp; in evergreen_set_clip_state()
1164 cb.buffer_offset = 0; in evergreen_set_clip_state()
1165 cb.buffer_size = 4*4*8; in evergreen_set_clip_state()
1166 r600_set_constant_buffer(ctx, PIPE_SHADER_VERTEX, 1, &cb); in evergreen_set_clip_state()
1167 pipe_resource_reference(&cb.buffer, NULL); in evergreen_set_clip_state()
2017 struct pipe_constant_buffer *cb; in evergreen_emit_constant_buffers() local
2022 cb = &state->cb[buffer_index]; in evergreen_emit_constant_buffers()
2023 rbuffer = (struct r600_resource*)cb->buffer; in evergreen_emit_constant_buffers()
[all …]
Dr600_pipe.h311 struct pipe_constant_buffer cb[PIPE_MAX_CONSTANT_BUFFERS]; member
488 void evergreen_init_common_regs(struct r600_command_buffer *cb,
640 struct pipe_constant_buffer *cb);
692 static INLINE void r600_store_value(struct r600_command_buffer *cb, unsigned value) in r600_store_value() argument
694 cb->buf[cb->atom.num_dw++] = value; in r600_store_value()
697 static INLINE void r600_store_config_reg_seq(struct r600_command_buffer *cb, unsigned reg, unsigned… in r600_store_config_reg_seq() argument
700 assert(cb->atom.num_dw+2+num <= cb->max_num_dw); in r600_store_config_reg_seq()
701 cb->buf[cb->atom.num_dw++] = PKT3(PKT3_SET_CONFIG_REG, num, 0); in r600_store_config_reg_seq()
702 cb->buf[cb->atom.num_dw++] = (reg - R600_CONFIG_REG_OFFSET) >> 2; in r600_store_config_reg_seq()
709 static INLINE void r600_store_context_reg_seq(struct r600_command_buffer *cb, unsigned reg, unsigne… in r600_store_context_reg_seq() argument
[all …]
/external/syslinux/gpxe/src/drivers/block/
Data.c53 command->cb.cmd_stat, command->cb.device, in ata_command()
54 ( command->cb.lba48 ? "48" : "" ), in ata_command()
55 ( unsigned long long ) command->cb.lba.native, in ata_command()
56 command->cb.count.native ); in ata_command()
95 command.cb.lba.native = block; in ata_read()
96 command.cb.count.native = count; in ata_read()
97 command.cb.device = ( ata->device | ATA_DEV_OBSOLETE | ATA_DEV_LBA ); in ata_read()
98 command.cb.lba48 = ata->lba48; in ata_read()
100 command.cb.device |= command.cb.lba.bytes.low_prev; in ata_read()
101 command.cb.cmd_stat = ( ata->lba48 ? ATA_CMD_READ_EXT : ATA_CMD_READ ); in ata_read()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_deadlock_detector2.cc93 void MutexInit(DDCallback *cb, DDMutex *m);
94 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock);
95 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock,
97 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock);
98 void MutexDestroy(DDCallback *cb, DDMutex *m);
100 DDReport *GetReport(DDCallback *cb);
104 u32 allocateId(DDCallback *cb);
153 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument
154 VPrintf(2, "#%llu: DD::MutexInit(%p)\n", cb->lt->ctx, m); in MutexInit()
175 u32 DD::allocateId(DDCallback *cb) { in allocateId() argument
[all …]
Dsanitizer_deadlock_detector1.cc49 void MutexInit(DDCallback *cb, DDMutex *m) override;
50 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock) override;
51 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock,
53 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock) override;
54 void MutexDestroy(DDCallback *cb, DDMutex *m) override;
56 DDReport *GetReport(DDCallback *cb) override;
59 void ReportDeadlock(DDCallback *cb, DDMutex *m);
93 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument
95 m->stk = cb->Unwind(); in MutexInit()
104 void DD::MutexBeforeLock(DDCallback *cb, in MutexBeforeLock() argument
[all …]
/external/pcre/dist2/src/
Dpcre2_compile.c46 #define NLBLOCK cb /* Block containing newline information */
816 auto_callout(PCRE2_UCHAR *code, PCRE2_SPTR ptr, compile_block *cb) in auto_callout() argument
819 PUT(code, 1, ptr - cb->start_pattern); /* Pattern offset */ in auto_callout()
845 compile_block *cb) in complete_callout() argument
847 size_t length = (size_t)(ptr - cb->start_pattern - GET(previous_callout, 1)); in complete_callout()
896 find_fixedlength(PCRE2_UCHAR *code, BOOL utf, BOOL atend, compile_block *cb, in find_fixedlength() argument
915 groupinfo = cb->groupinfo[group]; in find_fixedlength()
916 if ((cb->external_flags & PCRE2_DUPCAPUSED) == 0) in find_fixedlength()
952 d = find_fixedlength(cc, utf, atend, cb, recurses, countptr); in find_fixedlength()
977 cb->groupinfo[group] = groupinfo; in find_fixedlength()
[all …]
/external/webrtc/webrtc/base/
Dcallback_unittest.cc49 Callback0<void> cb; in TEST() local
50 EXPECT_TRUE(cb.empty()); in TEST()
51 cb(); // Executing an empty callback should not crash. in TEST()
52 cb = Callback0<void>(&f); in TEST()
53 EXPECT_FALSE(cb.empty()); in TEST()
54 cb(); in TEST()
58 Callback0<int> cb; in TEST() local
59 EXPECT_TRUE(cb.empty()); in TEST()
60 cb = Callback0<int>(&g); in TEST()
61 EXPECT_FALSE(cb.empty()); in TEST()
[all …]
/external/selinux/libselinux/src/
Dcallbacks.c80 selinux_set_callback(int type, union selinux_callback cb) in selinux_set_callback() argument
84 selinux_log = cb.func_log; in selinux_set_callback()
87 selinux_audit = cb.func_audit; in selinux_set_callback()
90 selinux_validate = cb.func_validate; in selinux_set_callback()
93 selinux_netlink_setenforce = cb.func_setenforce; in selinux_set_callback()
96 selinux_netlink_policyload = cb.func_policyload; in selinux_set_callback()
105 union selinux_callback cb; in selinux_get_callback() local
109 cb.func_log = selinux_log; in selinux_get_callback()
112 cb.func_audit = selinux_audit; in selinux_get_callback()
115 cb.func_validate = selinux_validate; in selinux_get_callback()
[all …]
/external/valgrind/memcheck/tests/vbit-test/
Dvalgrind.c36 IRICB cb; in new_iricb() local
38 cb.op = op->op; in new_iricb()
39 cb.result = (HWord)&data->result.value; in new_iricb()
40 cb.opnd1 = (HWord)&data->opnds[0].value; in new_iricb()
41 cb.opnd2 = (HWord)&data->opnds[1].value; in new_iricb()
42 cb.opnd3 = (HWord)&data->opnds[2].value; in new_iricb()
43 cb.opnd4 = (HWord)&data->opnds[3].value; in new_iricb()
44 cb.t_result = data->result.type; in new_iricb()
45 cb.t_opnd1 = data->opnds[0].type; in new_iricb()
46 cb.t_opnd2 = data->opnds[1].type; in new_iricb()
[all …]
/external/iptables/extensions/
Dlibxt_MARK.c83 static void MARK_parse_v0(struct xt_option_call *cb) in MARK_parse_v0() argument
85 struct xt_mark_target_info *markinfo = cb->data; in MARK_parse_v0()
87 xtables_option_parse(cb); in MARK_parse_v0()
88 switch (cb->entry->id) { in MARK_parse_v0()
90 markinfo->mark = cb->val.mark; in MARK_parse_v0()
95 cb->entry->name); in MARK_parse_v0()
99 static void MARK_check(struct xt_fcheck_call *cb) in MARK_check() argument
101 if (cb->xflags == 0) in MARK_check()
107 static void MARK_parse_v1(struct xt_option_call *cb) in MARK_parse_v1() argument
109 struct xt_mark_target_info_v1 *markinfo = cb->data; in MARK_parse_v1()
[all …]
Dlibxt_conntrack.c337 static void conntrack_parse(struct xt_option_call *cb) in conntrack_parse() argument
339 struct xt_conntrack_info *sinfo = cb->data; in conntrack_parse()
341 xtables_option_parse(cb); in conntrack_parse()
342 switch (cb->entry->id) { in conntrack_parse()
344 parse_states(cb->arg, sinfo); in conntrack_parse()
345 if (cb->invert) in conntrack_parse()
349 sinfo->tuple[IP_CT_DIR_ORIGINAL].dst.protonum = cb->val.protocol; in conntrack_parse()
350 if (cb->invert) in conntrack_parse()
360 if (cb->invert) in conntrack_parse()
362 sinfo->tuple[IP_CT_DIR_ORIGINAL].src.ip = cb->val.haddr.ip; in conntrack_parse()
[all …]
Dlibxt_owner.c137 static void owner_mt_parse_v0(struct xt_option_call *cb) in owner_mt_parse_v0() argument
139 struct ipt_owner_info *info = cb->data; in owner_mt_parse_v0()
144 xtables_option_parse(cb); in owner_mt_parse_v0()
145 switch (cb->entry->id) { in owner_mt_parse_v0()
147 if ((pwd = getpwnam(cb->arg)) != NULL) in owner_mt_parse_v0()
149 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1)) in owner_mt_parse_v0()
150 xtables_param_act(XTF_BAD_VALUE, "owner", "--uid-owner", cb->arg); in owner_mt_parse_v0()
151 if (cb->invert) in owner_mt_parse_v0()
157 if ((grp = getgrnam(cb->arg)) != NULL) in owner_mt_parse_v0()
159 else if (!xtables_strtoui(cb->arg, NULL, &id, 0, UINT32_MAX - 1)) in owner_mt_parse_v0()
[all …]
Dlibxt_hashlimit.c431 static void hashlimit_parse(struct xt_option_call *cb) in hashlimit_parse() argument
433 struct xt_hashlimit_info *info = cb->data; in hashlimit_parse()
435 xtables_option_parse(cb); in hashlimit_parse()
436 switch (cb->entry->id) { in hashlimit_parse()
438 if (!parse_rate(cb->arg, &info->cfg.avg, cb->udata, 1)) in hashlimit_parse()
440 "--hashlimit-upto", cb->arg); in hashlimit_parse()
443 if (parse_mode(&info->cfg.mode, cb->arg) < 0) in hashlimit_parse()
445 "--hashlimit-mode", cb->arg); in hashlimit_parse()
450 static void hashlimit_mt_parse_v1(struct xt_option_call *cb) in hashlimit_mt_parse_v1() argument
452 struct xt_hashlimit_mtinfo1 *info = cb->data; in hashlimit_mt_parse_v1()
[all …]
Dlibxt_ipvs.c66 static void ipvs_mt_parse(struct xt_option_call *cb) in ipvs_mt_parse() argument
68 struct xt_ipvs_mtinfo *data = cb->data; in ipvs_mt_parse()
70 xtables_option_parse(cb); in ipvs_mt_parse()
71 switch (cb->entry->id) { in ipvs_mt_parse()
73 data->l4proto = cb->val.protocol; in ipvs_mt_parse()
76 memcpy(&data->vaddr, &cb->val.haddr, sizeof(cb->val.haddr)); in ipvs_mt_parse()
77 memcpy(&data->vmask, &cb->val.hmask, sizeof(cb->val.hmask)); in ipvs_mt_parse()
80 if (strcasecmp(cb->arg, "ORIGINAL") == 0) { in ipvs_mt_parse()
83 } else if (strcasecmp(cb->arg, "REPLY") == 0) { in ipvs_mt_parse()
88 "ipvs", "--vdir", cb->arg); in ipvs_mt_parse()
[all …]
Dlibxt_connbytes.c31 static void connbytes_parse(struct xt_option_call *cb) in connbytes_parse() argument
33 struct xt_connbytes_info *sinfo = cb->data; in connbytes_parse()
36 xtables_option_parse(cb); in connbytes_parse()
37 switch (cb->entry->id) { in connbytes_parse()
39 sinfo->count.from = cb->val.u64_range[0]; in connbytes_parse()
41 if (cb->nvals == 2) in connbytes_parse()
42 sinfo->count.to = cb->val.u64_range[1]; in connbytes_parse()
48 if (cb->invert) { in connbytes_parse()
55 if (strcmp(cb->arg, "original") == 0) in connbytes_parse()
57 else if (strcmp(cb->arg, "reply") == 0) in connbytes_parse()
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Darc.c451 void (*move)(struct arc_cb *cb, VGfloat x, VGfloat y);
452 void (*point)(struct arc_cb *cb, VGfloat x, VGfloat y);
453 void (*bezier)(struct arc_cb *cb, struct bezier *bezier);
458 static void cb_null_move(struct arc_cb *cb, VGfloat x, VGfloat y) in cb_null_move() argument
462 static void polygon_point(struct arc_cb *cb, VGfloat x, VGfloat y) in polygon_point() argument
464 struct polygon *poly = (struct polygon*)cb->user_data; in polygon_point()
468 static void polygon_bezier(struct arc_cb *cb, struct bezier *bezier) in polygon_bezier() argument
470 struct polygon *poly = (struct polygon*)cb->user_data; in polygon_bezier()
474 static void stroke_point(struct arc_cb *cb, VGfloat x, VGfloat y) in stroke_point() argument
476 struct stroker *stroker = (struct stroker*)cb->user_data; in stroke_point()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_constants.c49 struct pipe_constant_buffer *cb) in svga_set_constant_buffer() argument
52 struct pipe_resource *buf = cb ? cb->buffer : NULL; in svga_set_constant_buffer()
54 if (cb && cb->user_buffer) { in svga_set_constant_buffer()
56 (void *) cb->user_buffer, in svga_set_constant_buffer()
57 cb->buffer_size, in svga_set_constant_buffer()
64 pipe_resource_reference( &svga->curr.cb[shader], in svga_set_constant_buffer()
72 if (cb && cb->user_buffer) { in svga_set_constant_buffer()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/
DEngineJob.java75 public void addCallback(ResourceCallback cb) { in addCallback() argument
78 cb.onResourceReady(engineResource); in addCallback()
80 cb.onException(exception); in addCallback()
82 cbs.add(cb); in addCallback()
86 public void removeCallback(ResourceCallback cb) { in removeCallback() argument
89 addIgnoredCallback(cb); in removeCallback()
91 cbs.remove(cb); in removeCallback()
103 private void addIgnoredCallback(ResourceCallback cb) { in addIgnoredCallback() argument
107 ignoredCallbacks.add(cb); in addIgnoredCallback()
110 private boolean isInIgnoredCallbacks(ResourceCallback cb) { in isInIgnoredCallbacks() argument
[all …]

12345678910>>...39