/linux-6.1.9/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 | 1166 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 …]
|
D | hci_event.c | 5061 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/ |
D | mgmt.h | 524 __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
|
D | hci_core.h | 2067 u8 *eir, u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len,
|