/Linux-v6.6/net/bluetooth/ |
D | eir.h | 18 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 …]
|
D | eir.c | 16 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 …]
|
D | mgmt.c | 1184 u16 eir_len = 0; in append_eir_data_to_buf() local 1188 eir_len = eir_append_data(eir, eir_len, EIR_CLASS_OF_DEV, in append_eir_data_to_buf() 1192 eir_len = eir_append_le16(eir, eir_len, EIR_APPEARANCE, in append_eir_data_to_buf() 1196 eir_len = eir_append_data(eir, eir_len, EIR_NAME_COMPLETE, in append_eir_data_to_buf() 1200 eir_len = eir_append_data(eir, eir_len, EIR_NAME_SHORT, in append_eir_data_to_buf() 1203 return eir_len; in append_eir_data_to_buf() 1211 u16 eir_len; in read_ext_controller_info() local 1228 eir_len = append_eir_data_to_buf(hdev, rp->eir); in read_ext_controller_info() 1229 rp->eir_len = cpu_to_le16(eir_len); in read_ext_controller_info() 1243 sizeof(*rp) + eir_len); in read_ext_controller_info() [all …]
|
D | hci_event.c | 5134 static inline size_t eir_get_length(u8 *eir, size_t eir_len) in eir_get_length() argument 5138 while (parsed < eir_len) { in eir_get_length() 5148 return eir_len; in eir_get_length() 5156 size_t eir_len; in hci_extended_inquiry_result_evt() local 5196 eir_len = eir_get_length(info->data, sizeof(info->data)); in hci_extended_inquiry_result_evt() 5200 flags, info->data, eir_len, NULL, 0, 0); in hci_extended_inquiry_result_evt()
|
/Linux-v6.6/include/net/bluetooth/ |
D | mgmt.h | 528 __le16 eir_len; member 622 __le16 eir_len; member 932 __le16 eir_len; member 991 __le16 eir_len; member 1086 __le16 eir_len; member 1102 __le16 eir_len; member 1155 __le16 eir_len; member 1171 __le16 eir_len; member
|
D | hci_core.h | 2225 u8 *eir, u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len,
|