Home
last modified time | relevance | path

Searched refs:attr_len (Results 1 – 5 of 5) sorted by relevance

/system/bt/stack/sdp/
Dsdp_discovery.c724 UINT32 seq_len, attr_len; in save_attr_seq() local
758 p = sdpu_get_len_from_type (p, type, &attr_len); in save_attr_seq()
759 if (((type >> 3) != UINT_DESC_TYPE) || (attr_len != 2)) in save_attr_seq()
761 SDP_TRACE_WARNING ("SDP - Bad type: 0x%02x or len: %d in attr_rsp", type, attr_len); in save_attr_seq()
837 UINT32 attr_len; in add_attr() local
848 p = sdpu_get_len_from_type (p, type, &attr_len); in add_attr()
850 attr_len &= SDP_DISC_ATTR_LEN_MASK; in add_attr()
854 if (attr_len > 4) in add_attr()
855 total_len = attr_len - 4 + (UINT16)sizeof (tSDP_DISC_ATTR); in add_attr()
868 p_attr->attr_len_type = (UINT16)attr_len | (attr_type << 12); in add_attr()
[all …]
Dsdp_db.c396 UINT32 attr_len, UINT8 *p_val) in SDP_AddAttribute() argument
413 UINT32 len = (attr_len > 200) ? 200 : attr_len; in SDP_AddAttribute()
421 handle,attr_id,attr_type,attr_len,p_val,num_array); in SDP_AddAttribute()
426 handle,attr_id,attr_type,attr_len,p_val,*p_val); in SDP_AddAttribute()
431 handle,attr_id,attr_type,attr_len,p_val,p_val); in SDP_AddAttribute()
471 p_attr->len = attr_len; in SDP_AddAttribute()
473 if (p_rec->free_pad_ptr + attr_len >= SDP_MAX_PAD_LEN) in SDP_AddAttribute()
479 attr_len, SDP_MAX_PAD_LEN - p_rec->free_pad_ptr ); in SDP_AddAttribute()
481 attr_len = SDP_MAX_PAD_LEN - p_rec->free_pad_ptr; in SDP_AddAttribute()
486 attr_len = 0; in SDP_AddAttribute()
[all …]
Dsdp_utils.c480 UINT32 list_len, attr_len; in sdpu_extract_attr_seq() local
529 attr_len = 2; in sdpu_extract_attr_seq()
532 attr_len = 4; in sdpu_extract_attr_seq()
535 BE_STREAM_TO_UINT8 (attr_len, p); in sdpu_extract_attr_seq()
538 BE_STREAM_TO_UINT16 (attr_len, p); in sdpu_extract_attr_seq()
541 BE_STREAM_TO_UINT32 (attr_len, p); in sdpu_extract_attr_seq()
549 if (attr_len == 2) in sdpu_extract_attr_seq()
554 else if (attr_len == 4) in sdpu_extract_attr_seq()
774 UINT16 attr_len = SDP_DISC_ATTR_LEN (p_attr->attr_len_type); in sdpu_compare_uuid_with_attr() local
777 if (p_btuuid->len != attr_len) in sdpu_compare_uuid_with_attr()
[all …]
Dsdp_server.c328 UINT16 attr_len; in process_service_attr_req() local
415 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_attr_req()
423 if (p_ccb->cont_info.attr_offset != attr_len) in process_service_attr_req()
428 else if (rem_len < attr_len) /* Not enough space for attr... so add partially */ in process_service_attr_req()
430 if (attr_len >= SDP_MAX_ATTR_LEN) in process_service_attr_req()
432 … SDP_TRACE_ERROR("SDP attr too big: max_list_len=%d,attr_len=%d", max_list_len, attr_len); in process_service_attr_req()
559 UINT16 seq_len, attr_len; in process_service_search_attr_req() local
660 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_search_attr_req()
668 if (p_ccb->cont_info.attr_offset != attr_len) in process_service_search_attr_req()
676 else if (rem_len < attr_len) /* Not enough space for attr... so add partially */ in process_service_search_attr_req()
[all …]
/system/bt/stack/include/
Dsdp_api.h470 UINT8 attr_type, UINT32 attr_len,