Lines Matching refs:elem

344 static uint32_t search_uuid(struct bt_sdp_data_elem *elem, struct bt_uuid *uuid,  in search_uuid()  argument
365 seq_size = elem->data_size; in search_uuid()
366 cur_elem = elem->data; in search_uuid()
368 if ((elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_UUID_UNSPEC) { in search_uuid()
393 if ((elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_SEQ_UNSPEC || in search_uuid()
394 (elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_ALT_UNSPEC) { in search_uuid()
407 return elem->total_size; in search_uuid()
713 static uint32_t copy_attribute(struct bt_sdp_data_elem *elem, in copy_attribute() argument
724 seq_size = elem->data_size; in copy_attribute()
725 total_size = elem->total_size; in copy_attribute()
726 cur_elem = elem->data; in copy_attribute()
729 net_buf_add_u8(buf, elem->type); in copy_attribute()
733 net_buf_add_u8(buf, elem->data_size); in copy_attribute()
736 net_buf_add_be16(buf, elem->data_size); in copy_attribute()
739 net_buf_add_be32(buf, elem->data_size); in copy_attribute()
746 if ((elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_SEQ_UNSPEC || in copy_attribute()
747 (elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_ALT_UNSPEC) { in copy_attribute()
754 } else if ((elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_UINT8 || in copy_attribute()
755 (elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_INT8 || in copy_attribute()
756 (elem->type & BT_SDP_TYPE_DESC_MASK) == BT_SDP_UUID_UNSPEC) { in copy_attribute()
758 net_buf_add_u8(buf, *((uint8_t *)elem->data)); in copy_attribute()
760 net_buf_add_be16(buf, *((uint16_t *)elem->data)); in copy_attribute()
762 net_buf_add_be32(buf, *((uint32_t *)elem->data)); in copy_attribute()
765 net_buf_add_mem(buf, elem->data, seq_size); in copy_attribute()
768 net_buf_add_mem(buf, elem->data, seq_size); in copy_attribute()