Lines Matching refs:p_attr
73 tSDP_DISC_ATTR* p_attr; in hidh_get_str_attr() local
76 p_attr = SDP_FindAttributeInRec(p_rec, attr_id); in hidh_get_str_attr()
77 if (p_attr != NULL) { in hidh_get_str_attr()
78 name_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in hidh_get_str_attr()
80 memcpy(str, (char*)p_attr->attr_value.v.array, name_len); in hidh_get_str_attr()
83 memcpy(str, (char*)p_attr->attr_value.v.array, max_len - 1); in hidh_get_str_attr()
93 tSDP_DISC_ATTR *p_attr, *p_subattr1, *p_subattr2, *p_repdesc; in hidh_search_callback() local
115 if (((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HID_DESCRIPTOR_LIST)) == in hidh_search_callback()
117 (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE) || in hidh_search_callback()
118 ((p_subattr1 = p_attr->attr_value.v.p_sub_attr) == NULL) || in hidh_search_callback()
132 if (((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HID_VIRTUAL_CABLE)) != in hidh_search_callback()
134 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
138 if (((p_attr = SDP_FindAttributeInRec( in hidh_search_callback()
140 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
144 if (((p_attr = SDP_FindAttributeInRec( in hidh_search_callback()
146 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
150 if (((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HID_SDP_DISABLE)) != in hidh_search_callback()
152 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
156 if (((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HID_BATTERY_POWER)) != in hidh_search_callback()
158 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
162 if (((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HID_REMOTE_WAKE)) != in hidh_search_callback()
164 (p_attr->attr_value.v.u8)) { in hidh_search_callback()
175 if (((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HID_DEVICE_RELNUM)) != in hidh_search_callback()
177 p_nvi->rel_num = p_attr->attr_value.v.u16; in hidh_search_callback()
180 if (((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HID_COUNTRY_CODE)) != in hidh_search_callback()
182 p_nvi->ctry_code = p_attr->attr_value.v.u8; in hidh_search_callback()
185 if (((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HID_DEVICE_SUBCLASS)) != in hidh_search_callback()
187 p_nvi->sub_class = p_attr->attr_value.v.u8; in hidh_search_callback()
190 if (((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HID_PARSER_VERSION)) != in hidh_search_callback()
192 p_nvi->hpars_ver = p_attr->attr_value.v.u16; in hidh_search_callback()
195 if (((p_attr = SDP_FindAttributeInRec( in hidh_search_callback()
198 p_nvi->sup_timeout = p_attr->attr_value.v.u16; in hidh_search_callback()
201 if (((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_HID_SSR_HOST_MAX_LAT)) != in hidh_search_callback()
204 p_nvi->ssr_max_latency = p_attr->attr_value.v.u16; in hidh_search_callback()
208 if (((p_attr = SDP_FindAttributeInRec( in hidh_search_callback()
211 p_nvi->ssr_min_tout = p_attr->attr_value.v.u16; in hidh_search_callback()