Home
last modified time | relevance | path

Searched refs:eir_len (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/net/bluetooth/
Deir.h18 u8 eir_append_service_data(u8 *eir, u16 eir_len, u16 uuid, u8 *data,
26 static inline u16 eir_append_data(u8 *eir, u16 eir_len, u8 type, in eir_append_data() argument
29 eir[eir_len++] = sizeof(type) + data_len; in eir_append_data()
30 eir[eir_len++] = type; in eir_append_data()
31 memcpy(&eir[eir_len], data, data_len); in eir_append_data()
32 eir_len += data_len; in eir_append_data()
34 return eir_len; in eir_append_data()
37 static inline u16 eir_append_le16(u8 *eir, u16 eir_len, u8 type, u16 data) in eir_append_le16() argument
39 eir[eir_len++] = sizeof(type) + sizeof(data); in eir_append_le16()
40 eir[eir_len++] = type; in eir_append_le16()
[all …]
Deir.c16 static u8 eir_append_name(u8 *eir, u16 eir_len, u8 type, u8 *data, u8 data_len) in eir_append_name() argument
22 return eir_append_data(eir, eir_len, type, data, data_len); in eir_append_name()
27 return eir_append_data(eir, eir_len, type, name, sizeof(name)); in eir_append_name()
69 u8 eir_append_service_data(u8 *eir, u16 eir_len, u16 uuid, u8 *data, in eir_append_service_data() argument
72 eir[eir_len++] = sizeof(u8) + sizeof(uuid) + data_len; in eir_append_service_data()
73 eir[eir_len++] = EIR_SERVICE_DATA; in eir_append_service_data()
74 put_unaligned_le16(uuid, &eir[eir_len]); in eir_append_service_data()
75 eir_len += sizeof(uuid); in eir_append_service_data()
76 memcpy(&eir[eir_len], data, data_len); in eir_append_service_data()
77 eir_len += data_len; in eir_append_service_data()
[all …]
Dmgmt.c1166 u16 eir_len = 0; in append_eir_data_to_buf() local
1170 eir_len = eir_append_data(eir, eir_len, EIR_CLASS_OF_DEV, in append_eir_data_to_buf()
1174 eir_len = eir_append_le16(eir, eir_len, EIR_APPEARANCE, in append_eir_data_to_buf()
1178 eir_len = eir_append_data(eir, eir_len, EIR_NAME_COMPLETE, in append_eir_data_to_buf()
1182 eir_len = eir_append_data(eir, eir_len, EIR_NAME_SHORT, in append_eir_data_to_buf()
1185 return eir_len; in append_eir_data_to_buf()
1193 u16 eir_len; in read_ext_controller_info() local
1210 eir_len = append_eir_data_to_buf(hdev, rp->eir); in read_ext_controller_info()
1211 rp->eir_len = cpu_to_le16(eir_len); in read_ext_controller_info()
1225 sizeof(*rp) + eir_len); in read_ext_controller_info()
[all …]
Dhci_event.c5061 static inline size_t eir_get_length(u8 *eir, size_t eir_len) in eir_get_length() argument
5065 while (parsed < eir_len) { in eir_get_length()
5075 return eir_len; in eir_get_length()
5083 size_t eir_len; in hci_extended_inquiry_result_evt() local
5123 eir_len = eir_get_length(info->data, sizeof(info->data)); in hci_extended_inquiry_result_evt()
5127 flags, info->data, eir_len, NULL, 0, 0); in hci_extended_inquiry_result_evt()
/linux-6.1.9/include/net/bluetooth/
Dmgmt.h524 __le16 eir_len; member
618 __le16 eir_len; member
928 __le16 eir_len; member
986 __le16 eir_len; member
1081 __le16 eir_len; member
1097 __le16 eir_len; member
1150 __le16 eir_len; member
1166 __le16 eir_len; member
Dhci_core.h2067 u8 *eir, u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len,