/external/iptables/libxtables/ |
D | xtoptions.c | 29 #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/libnl/lib/ |
D | handlers.c | 208 struct nl_cb *cb; in nl_cb_alloc() local 213 cb = calloc(1, sizeof(*cb)); in nl_cb_alloc() 214 if (!cb) in nl_cb_alloc() 217 cb->cb_refcnt = 1; in nl_cb_alloc() 220 nl_cb_set(cb, i, kind, NULL, NULL); in nl_cb_alloc() 222 nl_cb_err(cb, kind, NULL, NULL); in nl_cb_alloc() 224 return cb; in nl_cb_alloc() 235 struct nl_cb *cb; in nl_cb_clone() local 237 cb = nl_cb_alloc(NL_CB_DEFAULT); in nl_cb_clone() 238 if (!cb) in nl_cb_clone() [all …]
|
D | nl.c | 207 struct nl_cb *cb; in nl_sendmsg() local 212 cb = sk->s_cb; in nl_sendmsg() 213 if (cb->cb_set[NL_CB_MSG_OUT]) in nl_sendmsg() 214 if (nl_cb_call(cb, NL_CB_MSG_OUT, msg) != NL_OK) in nl_sendmsg() 325 struct nl_cb *cb = sk->s_cb; in nl_send_auto_complete() local 329 if (cb->cb_send_ow) in nl_send_auto_complete() 330 return cb->cb_send_ow(sk, msg); in nl_send_auto_complete() 490 #define NL_CB_CALL(cb, type, msg) \ argument 492 err = nl_cb_call(cb, type, msg); \ 506 static int recvmsgs(struct nl_sock *sk, struct nl_cb *cb) in recvmsgs() argument [all …]
|
/external/boringssl/src/crypto/pem/ |
D | pem_pk8.c | 72 pem_password_cb *cb, void *u); 76 pem_password_cb *cb, void *u); 86 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument 88 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid() 93 pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument 95 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey() 100 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument 102 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio() 107 pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument 109 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio() [all …]
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | evergreen_state.c | 1136 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 …]
|
D | r600_pipe.h | 311 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/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_deadlock_detector2.cc | 93 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 …]
|
D | sanitizer_deadlock_detector1.cc | 49 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/libselinux/src/ |
D | callbacks.c | 75 selinux_set_callback(int type, union selinux_callback cb) in selinux_set_callback() argument 79 selinux_log = cb.func_log; in selinux_set_callback() 82 selinux_audit = cb.func_audit; in selinux_set_callback() 85 selinux_validate = cb.func_validate; in selinux_set_callback() 88 selinux_netlink_setenforce = cb.func_setenforce; in selinux_set_callback() 91 selinux_netlink_policyload = cb.func_policyload; in selinux_set_callback() 100 union selinux_callback cb; in selinux_get_callback() local 104 cb.func_log = selinux_log; in selinux_get_callback() 107 cb.func_audit = selinux_audit; in selinux_get_callback() 110 cb.func_validate = selinux_validate; in selinux_get_callback() [all …]
|
/external/selinux/libselinux/src/ |
D | callbacks.c | 76 selinux_set_callback(int type, union selinux_callback cb) in selinux_set_callback() argument 80 selinux_log = cb.func_log; in selinux_set_callback() 83 selinux_audit = cb.func_audit; in selinux_set_callback() 86 selinux_validate = cb.func_validate; in selinux_set_callback() 89 selinux_netlink_setenforce = cb.func_setenforce; in selinux_set_callback() 92 selinux_netlink_policyload = cb.func_policyload; in selinux_set_callback() 101 union selinux_callback cb; in selinux_get_callback() local 105 cb.func_log = selinux_log; in selinux_get_callback() 108 cb.func_audit = selinux_audit; in selinux_get_callback() 111 cb.func_validate = selinux_validate; in selinux_get_callback() [all …]
|
/external/iptables/extensions/ |
D | libxt_MARK.c | 83 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 …]
|
D | libxt_conntrack.c | 337 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 …]
|
D | libxt_owner.c | 137 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 …]
|
D | libxt_ipvs.c | 66 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 …]
|
D | libxt_connbytes.c | 31 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 …]
|
D | libxt_TOS.c | 94 static void tos_tg_parse_v0(struct xt_option_call *cb) in tos_tg_parse_v0() argument 96 struct ipt_tos_target_info *info = cb->data; in tos_tg_parse_v0() 98 xtables_option_parse(cb); in tos_tg_parse_v0() 99 if (cb->val.tos_mask != 0xFF) in tos_tg_parse_v0() 103 info->tos = cb->val.tos_value; in tos_tg_parse_v0() 106 static void tos_tg_parse(struct xt_option_call *cb) in tos_tg_parse() argument 108 struct xt_tos_target_info *info = cb->data; in tos_tg_parse() 110 xtables_option_parse(cb); in tos_tg_parse() 111 switch (cb->entry->id) { in tos_tg_parse() 113 info->tos_value = cb->val.tos_value; in tos_tg_parse() [all …]
|
D | libxt_CONNMARK.c | 137 static void CONNMARK_parse(struct xt_option_call *cb) in CONNMARK_parse() argument 139 struct xt_connmark_target_info *markinfo = cb->data; in CONNMARK_parse() 141 xtables_option_parse(cb); in CONNMARK_parse() 142 switch (cb->entry->id) { in CONNMARK_parse() 145 markinfo->mark = cb->val.mark; in CONNMARK_parse() 146 markinfo->mask = cb->val.mask; in CONNMARK_parse() 155 markinfo->mask = cb->val.u32; in CONNMARK_parse() 160 static void connmark_tg_parse(struct xt_option_call *cb) in connmark_tg_parse() argument 162 struct xt_connmark_tginfo1 *info = cb->data; in connmark_tg_parse() 164 xtables_option_parse(cb); in connmark_tg_parse() [all …]
|
D | libxt_addrtype.c | 101 static void addrtype_parse_v0(struct xt_option_call *cb) in addrtype_parse_v0() argument 103 struct xt_addrtype_info *info = cb->data; in addrtype_parse_v0() 105 xtables_option_parse(cb); in addrtype_parse_v0() 106 switch (cb->entry->id) { in addrtype_parse_v0() 108 parse_types(cb->arg, &info->source); in addrtype_parse_v0() 109 if (cb->invert) in addrtype_parse_v0() 113 parse_types(cb->arg, &info->dest); in addrtype_parse_v0() 114 if (cb->invert) in addrtype_parse_v0() 120 static void addrtype_parse_v1(struct xt_option_call *cb) in addrtype_parse_v1() argument 122 struct xt_addrtype_info_v1 *info = cb->data; in addrtype_parse_v1() [all …]
|
D | libxt_NFQUEUE.c | 67 static void NFQUEUE_parse(struct xt_option_call *cb) in NFQUEUE_parse() argument 69 xtables_option_parse(cb); in NFQUEUE_parse() 70 if (cb->entry->id == O_QUEUE_BALANCE) in NFQUEUE_parse() 75 static void NFQUEUE_parse_v1(struct xt_option_call *cb) in NFQUEUE_parse_v1() argument 77 struct xt_NFQ_info_v1 *info = cb->data; in NFQUEUE_parse_v1() 78 const uint16_t *r = cb->val.u16_range; in NFQUEUE_parse_v1() 80 xtables_option_parse(cb); in NFQUEUE_parse_v1() 81 switch (cb->entry->id) { in NFQUEUE_parse_v1() 83 if (cb->nvals != 2) in NFQUEUE_parse_v1() 85 "Bad range \"%s\"", cb->arg); in NFQUEUE_parse_v1() [all …]
|
D | libxt_multiport.c | 164 static void __multiport_parse(struct xt_option_call *cb, uint16_t pnum, in __multiport_parse() argument 168 struct xt_multiport *multiinfo = cb->data; in __multiport_parse() 170 xtables_option_parse(cb); in __multiport_parse() 171 switch (cb->entry->id) { in __multiport_parse() 174 multiinfo->count = parse_multi_ports(cb->arg, in __multiport_parse() 180 multiinfo->count = parse_multi_ports(cb->arg, in __multiport_parse() 186 multiinfo->count = parse_multi_ports(cb->arg, in __multiport_parse() 191 if (cb->invert) in __multiport_parse() 196 static void multiport_parse(struct xt_option_call *cb) in multiport_parse() argument 198 const struct ipt_entry *entry = cb->xt_entry; in multiport_parse() [all …]
|
D | libxt_policy.c | 94 static void policy_parse(struct xt_option_call *cb) in policy_parse() argument 96 struct xt_policy_info *info = cb->data; in policy_parse() 99 xtables_option_parse(cb); in policy_parse() 100 switch (cb->entry->id) { in policy_parse() 102 info->flags |= parse_direction(cb->arg); in policy_parse() 105 info->flags |= parse_policy(cb->arg); in policy_parse() 115 e->invert.reqid = cb->invert; in policy_parse() 116 e->reqid = cb->val.u32; in policy_parse() 123 e->invert.spi = cb->invert; in policy_parse() 124 e->spi = cb->val.u32; in policy_parse() [all …]
|
/external/valgrind/memcheck/tests/vbit-test/ |
D | valgrind.c | 12 IRICB cb; in new_iricb() local 14 cb.op = op->op; in new_iricb() 15 cb.result = (HWord)&data->result.value; in new_iricb() 16 cb.opnd1 = (HWord)&data->opnds[0].value; in new_iricb() 17 cb.opnd2 = (HWord)&data->opnds[1].value; in new_iricb() 18 cb.opnd3 = (HWord)&data->opnds[2].value; in new_iricb() 19 cb.opnd4 = (HWord)&data->opnds[3].value; in new_iricb() 20 cb.t_result = data->result.type; in new_iricb() 21 cb.t_opnd1 = data->opnds[0].type; in new_iricb() 22 cb.t_opnd2 = data->opnds[1].type; in new_iricb() [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_constants.c | 49 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/mesa3d/src/gallium/state_trackers/vega/ |
D | arc.c | 451 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/glide/library/src/main/java/com/bumptech/glide/load/engine/ |
D | EngineJob.java | 75 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 …]
|