/external/wpa_supplicant_8/src/wps/ |
D | wps_validate.c | 1028 struct wps_parse_attr attr; in wps_validate_cred() local 1034 if (wps_parse_msg(&buf, &attr) < 0) { in wps_validate_cred() 1039 if (wps_validate_network_idx(attr.network_idx, 1) || in wps_validate_cred() 1040 wps_validate_ssid(attr.ssid, attr.ssid_len, 1) || in wps_validate_cred() 1041 wps_validate_auth_type(attr.auth_type, 1) || in wps_validate_cred() 1042 wps_validate_encr_type(attr.encr_type, 1) || in wps_validate_cred() 1043 wps_validate_network_key_index(attr.network_key_idx, 0) || in wps_validate_cred() 1044 wps_validate_network_key(attr.network_key, attr.network_key_len, in wps_validate_cred() 1045 attr.encr_type, 1) || in wps_validate_cred() 1046 wps_validate_mac_addr(attr.mac_addr, 1) || in wps_validate_cred() [all …]
|
D | wps_attr_parse.c | 20 static int wps_set_vendor_ext_wfa_subelem(struct wps_parse_attr *attr, in wps_set_vendor_ext_wfa_subelem() argument 32 attr->version2 = pos; in wps_set_vendor_ext_wfa_subelem() 35 attr->authorized_macs = pos; in wps_set_vendor_ext_wfa_subelem() 36 attr->authorized_macs_len = len; in wps_set_vendor_ext_wfa_subelem() 44 attr->network_key_shareable = pos; in wps_set_vendor_ext_wfa_subelem() 52 attr->request_to_enroll = pos; in wps_set_vendor_ext_wfa_subelem() 60 attr->settings_delay_time = pos; in wps_set_vendor_ext_wfa_subelem() 68 attr->registrar_configuration_methods = pos; in wps_set_vendor_ext_wfa_subelem() 80 static int wps_parse_vendor_ext_wfa(struct wps_parse_attr *attr, const u8 *pos, in wps_parse_vendor_ext_wfa() argument 91 if (wps_set_vendor_ext_wfa_subelem(attr, id, elen, pos) < 0) in wps_parse_vendor_ext_wfa() [all …]
|
D | wps.c | 104 struct wps_parse_attr attr; in wps_init() local 107 if (wps_parse_msg(cfg->assoc_wps_ie, &attr) < 0) { in wps_init() 110 } else if (attr.request_type == NULL) { in wps_init() 116 *attr.request_type); in wps_init() 117 data->request_type = *attr.request_type; in wps_init() 235 struct wps_parse_attr attr; in wps_is_selected_pbc_registrar() local 244 if (wps_parse_msg(msg, &attr) < 0 || in wps_is_selected_pbc_registrar() 245 !attr.selected_registrar || *attr.selected_registrar == 0 || in wps_is_selected_pbc_registrar() 246 !attr.dev_password_id || in wps_is_selected_pbc_registrar() 247 WPA_GET_BE16(attr.dev_password_id) != DEV_PW_PUSHBUTTON) in wps_is_selected_pbc_registrar() [all …]
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/ |
D | parse-events.c | 19 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->attr.type); in test__checkevent_tracepoint() 21 PERF_TP_SAMPLE_TYPE == evsel->attr.sample_type); in test__checkevent_tracepoint() 22 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->attr.sample_period); in test__checkevent_tracepoint() 35 PERF_TYPE_TRACEPOINT == evsel->attr.type); in test__checkevent_tracepoint_multi() 37 PERF_TP_SAMPLE_TYPE == evsel->attr.sample_type); in test__checkevent_tracepoint_multi() 39 1 == evsel->attr.sample_period); in test__checkevent_tracepoint_multi() 49 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->attr.type); in test__checkevent_raw() 50 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->attr.config); in test__checkevent_raw() 59 TEST_ASSERT_VAL("wrong type", 1 == evsel->attr.type); in test__checkevent_numeric() 60 TEST_ASSERT_VAL("wrong config", 1 == evsel->attr.config); in test__checkevent_numeric() [all …]
|
/external/elfutils/0.153/libdw/ |
D | dwarf_formudata.c | 59 __libdw_formptr (Dwarf_Attribute *attr, int sec_index, in __libdw_formptr() argument 63 if (attr == NULL) in __libdw_formptr() 66 const Elf_Data *d = attr->cu->dbg->sectiondata[sec_index]; in __libdw_formptr() 74 if (attr->form == DW_FORM_sec_offset) in __libdw_formptr() 76 if (__libdw_read_offset (attr->cu->dbg, cu_sec_idx (attr->cu), attr->valp, in __libdw_formptr() 77 attr->cu->offset_size, &offset, sec_index, 0)) in __libdw_formptr() 80 else if (attr->cu->version > 3) in __libdw_formptr() 83 switch (attr->form) in __libdw_formptr() 87 if (__libdw_read_offset (attr->cu->dbg, cu_sec_idx (attr->cu), in __libdw_formptr() 88 attr->valp, in __libdw_formptr() [all …]
|
D | dwarf_formref.c | 59 __libdw_formref (attr, return_offset) in __libdw_formref() argument 60 Dwarf_Attribute *attr; in __libdw_formref() 65 if (attr->valp == NULL) 71 switch (attr->form) 74 *return_offset = *attr->valp; 78 *return_offset = read_2ubyte_unaligned (attr->cu->dbg, attr->valp); 82 *return_offset = read_4ubyte_unaligned (attr->cu->dbg, attr->valp); 86 *return_offset = read_8ubyte_unaligned (attr->cu->dbg, attr->valp); 90 datap = attr->valp; 110 dwarf_formref (attr, return_offset) in dwarf_formref() argument [all …]
|
/external/libnl/lib/netfilter/ |
D | log_msg.c | 69 struct nlattr *attr; in nfnlmsg_log_msg_parse() local 85 attr = tb[NFULA_PACKET_HDR]; in nfnlmsg_log_msg_parse() 86 if (attr) { in nfnlmsg_log_msg_parse() 87 struct nfulnl_msg_packet_hdr *hdr = nla_data(attr); in nfnlmsg_log_msg_parse() 94 attr = tb[NFULA_MARK]; in nfnlmsg_log_msg_parse() 95 if (attr) in nfnlmsg_log_msg_parse() 96 nfnl_log_msg_set_mark(msg, ntohl(nla_get_u32(attr))); in nfnlmsg_log_msg_parse() 98 attr = tb[NFULA_TIMESTAMP]; in nfnlmsg_log_msg_parse() 99 if (attr) { in nfnlmsg_log_msg_parse() 100 struct nfulnl_msg_packet_timestamp *timestamp = nla_data(attr); in nfnlmsg_log_msg_parse() [all …]
|
/external/chromium_org/third_party/mesa/src/src/glx/apple/ |
D | apple_visual.c | 71 CGLPixelFormatAttribute attr[MAX_ATTR]; in apple_visual_create_pfobj() local 78 attr[numattr++] = kCGLPFAOpenGLProfile; in apple_visual_create_pfobj() 79 attr[numattr++] = kCGLOGLPVersion_3_2_Core; in apple_visual_create_pfobj() 86 attr[numattr++] = kCGLPFAOffScreen; in apple_visual_create_pfobj() 87 attr[numattr++] = kCGLPFAColorSize; in apple_visual_create_pfobj() 88 attr[numattr++] = 32; in apple_visual_create_pfobj() 93 attr[numattr++] = kCGLPFARendererID; in apple_visual_create_pfobj() 94 attr[numattr++] = kCGLRendererGenericFloatID; in apple_visual_create_pfobj() 101 attr[numattr++] = kCGLPFAAccelerated; in apple_visual_create_pfobj() 109 attr[numattr++] = kCGLPFAClosestPolicy; in apple_visual_create_pfobj() [all …]
|
/external/mesa3d/src/glx/apple/ |
D | apple_visual.c | 71 CGLPixelFormatAttribute attr[MAX_ATTR]; in apple_visual_create_pfobj() local 78 attr[numattr++] = kCGLPFAOpenGLProfile; in apple_visual_create_pfobj() 79 attr[numattr++] = kCGLOGLPVersion_3_2_Core; in apple_visual_create_pfobj() 86 attr[numattr++] = kCGLPFAOffScreen; in apple_visual_create_pfobj() 87 attr[numattr++] = kCGLPFAColorSize; in apple_visual_create_pfobj() 88 attr[numattr++] = 32; in apple_visual_create_pfobj() 93 attr[numattr++] = kCGLPFARendererID; in apple_visual_create_pfobj() 94 attr[numattr++] = kCGLRendererGenericFloatID; in apple_visual_create_pfobj() 101 attr[numattr++] = kCGLPFAAccelerated; in apple_visual_create_pfobj() 109 attr[numattr++] = kCGLPFAClosestPolicy; in apple_visual_create_pfobj() [all …]
|
/external/chromium_org/third_party/openssl/openssl/crypto/x509/ |
D | x509_att.c | 122 X509_ATTRIBUTE *attr) in STACK_OF() 141 if ((new_attr=X509_ATTRIBUTE_dup(attr)) == NULL) in STACK_OF() 160 X509_ATTRIBUTE *attr; in STACK_OF() local 162 attr = X509_ATTRIBUTE_create_by_OBJ(NULL, obj, type, bytes, len); in STACK_OF() 163 if(!attr) return 0; in STACK_OF() 164 ret = X509at_add1_attr(x, attr); in STACK_OF() 165 X509_ATTRIBUTE_free(attr); in STACK_OF() 173 X509_ATTRIBUTE *attr; in STACK_OF() local 175 attr = X509_ATTRIBUTE_create_by_NID(NULL, nid, type, bytes, len); in STACK_OF() 176 if(!attr) return 0; in STACK_OF() [all …]
|
/external/openssl/crypto/x509/ |
D | x509_att.c | 122 X509_ATTRIBUTE *attr) in STACK_OF() 141 if ((new_attr=X509_ATTRIBUTE_dup(attr)) == NULL) in STACK_OF() 160 X509_ATTRIBUTE *attr; in STACK_OF() local 162 attr = X509_ATTRIBUTE_create_by_OBJ(NULL, obj, type, bytes, len); in STACK_OF() 163 if(!attr) return 0; in STACK_OF() 164 ret = X509at_add1_attr(x, attr); in STACK_OF() 165 X509_ATTRIBUTE_free(attr); in STACK_OF() 173 X509_ATTRIBUTE *attr; in STACK_OF() local 175 attr = X509_ATTRIBUTE_create_by_NID(NULL, nid, type, bytes, len); in STACK_OF() 176 if(!attr) return 0; in STACK_OF() [all …]
|
/external/chromium_org/third_party/libxslt/libxslt/ |
D | templates.c | 464 xmlAttrPtr attr) in xsltAttrTemplateProcess() argument 469 if ((ctxt == NULL) || (attr == NULL) || (target == NULL)) in xsltAttrTemplateProcess() 472 if (attr->type != XML_ATTRIBUTE_NODE) in xsltAttrTemplateProcess() 479 if (attr->psvi == xsltXSLTAttrMarker) in xsltAttrTemplateProcess() 482 if ((attr->ns != NULL) && xmlStrEqual(attr->ns->href, XSLT_NAMESPACE)) in xsltAttrTemplateProcess() 488 if (attr->children != NULL) { in xsltAttrTemplateProcess() 489 if ((attr->children->type != XML_TEXT_NODE) || in xsltAttrTemplateProcess() 490 (attr->children->next != NULL)) in xsltAttrTemplateProcess() 492 xsltTransformError(ctxt, NULL, attr->parent, in xsltAttrTemplateProcess() 497 value = attr->children->content; in xsltAttrTemplateProcess() [all …]
|
/external/mesa3d/src/mesa/vbo/ |
D | vbo_exec_eval.c | 36 static void clear_active_eval1( struct vbo_exec_context *exec, GLuint attr ) in clear_active_eval1() argument 38 assert(attr < Elements(exec->eval.map1)); in clear_active_eval1() 39 exec->eval.map1[attr].map = NULL; in clear_active_eval1() 42 static void clear_active_eval2( struct vbo_exec_context *exec, GLuint attr ) in clear_active_eval2() argument 44 assert(attr < Elements(exec->eval.map2)); in clear_active_eval2() 45 exec->eval.map2[attr].map = NULL; in clear_active_eval2() 48 static void set_active_eval1( struct vbo_exec_context *exec, GLuint attr, GLuint dim, in set_active_eval1() argument 51 assert(attr < Elements(exec->eval.map1)); in set_active_eval1() 52 if (!exec->eval.map1[attr].map) { in set_active_eval1() 53 exec->eval.map1[attr].map = map; in set_active_eval1() [all …]
|
D | vbo_save_draw.c | 142 GLuint attr; in vbo_bind_vertex_list() local 155 for (attr = 0; attr < VERT_ATTRIB_FF_MAX; attr++) { in vbo_bind_vertex_list() 156 save->inputs[attr] = &vbo->currval[VBO_ATTRIB_POS+attr]; in vbo_bind_vertex_list() 158 for (attr = 0; attr < MAT_ATTRIB_MAX; attr++) { in vbo_bind_vertex_list() 159 save->inputs[VERT_ATTRIB_GENERIC(attr)] = in vbo_bind_vertex_list() 160 &vbo->currval[VBO_ATTRIB_MAT_FRONT_AMBIENT+attr]; in vbo_bind_vertex_list() 170 for (attr = 0; attr < VERT_ATTRIB_FF_MAX; attr++) { in vbo_bind_vertex_list() 171 save->inputs[attr] = &vbo->currval[VBO_ATTRIB_POS+attr]; in vbo_bind_vertex_list() 173 for (attr = 0; attr < VERT_ATTRIB_GENERIC_MAX; attr++) { in vbo_bind_vertex_list() 174 save->inputs[VERT_ATTRIB_GENERIC(attr)] = in vbo_bind_vertex_list() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/vbo/ |
D | vbo_exec_eval.c | 36 static void clear_active_eval1( struct vbo_exec_context *exec, GLuint attr ) in clear_active_eval1() argument 38 assert(attr < Elements(exec->eval.map1)); in clear_active_eval1() 39 exec->eval.map1[attr].map = NULL; in clear_active_eval1() 42 static void clear_active_eval2( struct vbo_exec_context *exec, GLuint attr ) in clear_active_eval2() argument 44 assert(attr < Elements(exec->eval.map2)); in clear_active_eval2() 45 exec->eval.map2[attr].map = NULL; in clear_active_eval2() 48 static void set_active_eval1( struct vbo_exec_context *exec, GLuint attr, GLuint dim, in set_active_eval1() argument 51 assert(attr < Elements(exec->eval.map1)); in set_active_eval1() 52 if (!exec->eval.map1[attr].map) { in set_active_eval1() 53 exec->eval.map1[attr].map = map; in set_active_eval1() [all …]
|
D | vbo_save_draw.c | 142 GLuint attr; in vbo_bind_vertex_list() local 155 for (attr = 0; attr < VERT_ATTRIB_FF_MAX; attr++) { in vbo_bind_vertex_list() 156 save->inputs[attr] = &vbo->currval[VBO_ATTRIB_POS+attr]; in vbo_bind_vertex_list() 158 for (attr = 0; attr < MAT_ATTRIB_MAX; attr++) { in vbo_bind_vertex_list() 159 save->inputs[VERT_ATTRIB_GENERIC(attr)] = in vbo_bind_vertex_list() 160 &vbo->currval[VBO_ATTRIB_MAT_FRONT_AMBIENT+attr]; in vbo_bind_vertex_list() 170 for (attr = 0; attr < VERT_ATTRIB_FF_MAX; attr++) { in vbo_bind_vertex_list() 171 save->inputs[attr] = &vbo->currval[VBO_ATTRIB_POS+attr]; in vbo_bind_vertex_list() 173 for (attr = 0; attr < VERT_ATTRIB_GENERIC_MAX; attr++) { in vbo_bind_vertex_list() 174 save->inputs[VERT_ATTRIB_GENERIC(attr)] = in vbo_bind_vertex_list() [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/xmllite/ |
D | xmlelement.cc | 93 XmlAttr* attr; in XmlElement() local 96 for (attr = elt.first_attr_; attr; attr = attr->NextAttr()) { in XmlElement() 97 newAttr = new XmlAttr(*attr); in XmlElement() 176 XmlAttr* attr; in Attr() local 177 for (attr = first_attr_; attr; attr = attr->next_attr_) { in Attr() 178 if (attr->name_ == name) in Attr() 179 return attr->value_; in Attr() 185 XmlAttr* attr; in Attr() local 186 for (attr = first_attr_; attr; attr = attr->next_attr_) { in Attr() 187 if (attr->name_ == name) in Attr() [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | dict.c | 46 DICT_ATTR *attr; in rc_read_dictionary() local 182 if ((attr = in rc_read_dictionary() 190 strcpy (attr->name, namestr); in rc_read_dictionary() 192 attr->vendorcode = vdict->vendorcode; in rc_read_dictionary() 194 attr->vendorcode = VENDOR_NONE; in rc_read_dictionary() 196 attr->value = value; in rc_read_dictionary() 197 attr->type = type; in rc_read_dictionary() 201 attr->next = vdict->attributes; in rc_read_dictionary() 202 vdict->attributes = attr; in rc_read_dictionary() 204 attr->next = dictionary_attributes; in rc_read_dictionary() [all …]
|
/external/linux-tools-perf/perf-3.12.0/include/linux/ |
D | hw_breakpoint.h | 11 static inline void hw_breakpoint_init(struct perf_event_attr *attr) in hw_breakpoint_init() argument 13 memset(attr, 0, sizeof(*attr)); in hw_breakpoint_init() 15 attr->type = PERF_TYPE_BREAKPOINT; in hw_breakpoint_init() 16 attr->size = sizeof(*attr); in hw_breakpoint_init() 21 attr->pinned = 1; in hw_breakpoint_init() 22 attr->sample_period = 1; in hw_breakpoint_init() 25 static inline void ptrace_breakpoint_init(struct perf_event_attr *attr) in ptrace_breakpoint_init() argument 27 hw_breakpoint_init(attr); in ptrace_breakpoint_init() 28 attr->exclude_kernel = 1; in ptrace_breakpoint_init() 33 return bp->attr.bp_addr; in hw_breakpoint_addr() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_draw_feedback.c | 113 GLuint attr, i; in st_feedback_draw_vbo() local 149 for (attr = 1; attr < vp->num_inputs; attr++) { in st_feedback_draw_vbo() 150 const GLubyte *start = arrays[vp->index_to_input[attr]]->Ptr; in st_feedback_draw_vbo() 158 for (attr = 0; attr < vp->num_inputs; attr++) { in st_feedback_draw_vbo() 159 const GLuint mesaAttr = vp->index_to_input[attr]; in st_feedback_draw_vbo() 171 vbuffers[attr].buffer = NULL; in st_feedback_draw_vbo() 172 vbuffers[attr].user_buffer = NULL; in st_feedback_draw_vbo() 173 pipe_resource_reference(&vbuffers[attr].buffer, stobj->buffer); in st_feedback_draw_vbo() 174 vbuffers[attr].buffer_offset = pointer_to_offset(low_addr); in st_feedback_draw_vbo() 175 velements[attr].src_offset = arrays[mesaAttr]->Ptr - low_addr; in st_feedback_draw_vbo() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
D | st_draw_feedback.c | 113 GLuint attr, i; in st_feedback_draw_vbo() local 149 for (attr = 1; attr < vp->num_inputs; attr++) { in st_feedback_draw_vbo() 150 const GLubyte *start = arrays[vp->index_to_input[attr]]->Ptr; in st_feedback_draw_vbo() 158 for (attr = 0; attr < vp->num_inputs; attr++) { in st_feedback_draw_vbo() 159 const GLuint mesaAttr = vp->index_to_input[attr]; in st_feedback_draw_vbo() 171 vbuffers[attr].buffer = NULL; in st_feedback_draw_vbo() 172 vbuffers[attr].user_buffer = NULL; in st_feedback_draw_vbo() 173 pipe_resource_reference(&vbuffers[attr].buffer, stobj->buffer); in st_feedback_draw_vbo() 174 vbuffers[attr].buffer_offset = pointer_to_offset(low_addr); in st_feedback_draw_vbo() 175 velements[attr].src_offset = arrays[mesaAttr]->Ptr - low_addr; in st_feedback_draw_vbo() [all …]
|
/external/chromium_org/tools/deep_memory_profiler/tests/ |
D | range_dict_tests.py | 44 for begin, end, attr in ranges.iter_range(20, 40): 45 result.append({'begin': begin, 'end':end, 'attr':attr.get()}) 55 for begin, end, attr in ranges.iter_range(20, 20): 56 result.append({'begin': begin, 'end':end, 'attr':attr.get()}) 62 for begin, end, attr in ranges.iter_range(20, 30): 63 attr.set(12) 64 for begin, end, attr in ranges.iter_range(30, 40): 65 attr.set(52) 68 for begin, end, attr in ranges.iter_range(20, 40): 69 result.append({'begin': begin, 'end':end, 'attr':attr.get()}) [all …]
|
/external/mockito/cglib-and-asm/src/org/mockito/asm/ |
D | Attribute.java | 127 Attribute attr = new Attribute(type); in read() local 128 attr.value = new byte[len]; in read() 129 System.arraycopy(cr.b, off, attr.value, 0, len); in read() 130 return attr; in read() 173 Attribute attr = this; in getCount() local 174 while (attr != null) { in getCount() 176 attr = attr.next; in getCount() 208 Attribute attr = this; in getSize() local 210 while (attr != null) { in getSize() 211 cw.newUTF8(attr.type); in getSize() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
D | draw_vs_ppc.c | 104 uint attr; in vs_ppc_run_linear() local 107 for (attr = 0; attr < base->info.num_inputs; attr++) { in vs_ppc_run_linear() 112 if (attr==0) in vs_ppc_run_linear() 114 vert, attr, vIn[0], vIn[1], vIn[2], vIn[3]); in vs_ppc_run_linear() 116 inputs_soa[attr][0][vert] = vIn[attr * 4 + 0]; in vs_ppc_run_linear() 117 inputs_soa[attr][1][vert] = vIn[attr * 4 + 1]; in vs_ppc_run_linear() 118 inputs_soa[attr][2][vert] = vIn[attr * 4 + 2]; in vs_ppc_run_linear() 119 inputs_soa[attr][3][vert] = vIn[attr * 4 + 3]; in vs_ppc_run_linear() 132 for (attr = 0; attr < base->info.num_outputs; attr++) { in vs_ppc_run_linear() 136 vOut[attr * 4 + 0] = outputs_soa[attr][0][vert]; in vs_ppc_run_linear() [all …]
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_vs_ppc.c | 104 uint attr; in vs_ppc_run_linear() local 107 for (attr = 0; attr < base->info.num_inputs; attr++) { in vs_ppc_run_linear() 112 if (attr==0) in vs_ppc_run_linear() 114 vert, attr, vIn[0], vIn[1], vIn[2], vIn[3]); in vs_ppc_run_linear() 116 inputs_soa[attr][0][vert] = vIn[attr * 4 + 0]; in vs_ppc_run_linear() 117 inputs_soa[attr][1][vert] = vIn[attr * 4 + 1]; in vs_ppc_run_linear() 118 inputs_soa[attr][2][vert] = vIn[attr * 4 + 2]; in vs_ppc_run_linear() 119 inputs_soa[attr][3][vert] = vIn[attr * 4 + 3]; in vs_ppc_run_linear() 132 for (attr = 0; attr < base->info.num_outputs; attr++) { in vs_ppc_run_linear() 136 vOut[attr * 4 + 0] = outputs_soa[attr][0][vert]; in vs_ppc_run_linear() [all …]
|