Home
last modified time | relevance | path

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

/net/bluetooth/
Dhci_request.h126 static inline u16 eir_append_data(u8 *eir, u16 eir_len, u8 type, in eir_append_data() argument
129 eir[eir_len++] = sizeof(type) + data_len; in eir_append_data()
130 eir[eir_len++] = type; in eir_append_data()
131 memcpy(&eir[eir_len], data, data_len); in eir_append_data()
132 eir_len += data_len; in eir_append_data()
134 return eir_len; in eir_append_data()
137 static inline u16 eir_append_le16(u8 *eir, u16 eir_len, u8 type, u16 data) in eir_append_le16() argument
139 eir[eir_len++] = sizeof(type) + sizeof(data); in eir_append_le16()
140 eir[eir_len++] = type; in eir_append_le16()
141 put_unaligned_le16(data, &eir[eir_len]); in eir_append_le16()
[all …]
Dmgmt.c1042 u16 eir_len = 0; in append_eir_data_to_buf() local
1046 eir_len = eir_append_data(eir, eir_len, EIR_CLASS_OF_DEV, in append_eir_data_to_buf()
1050 eir_len = eir_append_le16(eir, eir_len, EIR_APPEARANCE, in append_eir_data_to_buf()
1054 eir_len = eir_append_data(eir, eir_len, EIR_NAME_COMPLETE, in append_eir_data_to_buf()
1058 eir_len = eir_append_data(eir, eir_len, EIR_NAME_SHORT, in append_eir_data_to_buf()
1061 return eir_len; in append_eir_data_to_buf()
1069 u16 eir_len; in read_ext_controller_info() local
1086 eir_len = append_eir_data_to_buf(hdev, rp->eir); in read_ext_controller_info()
1087 rp->eir_len = cpu_to_le16(eir_len); in read_ext_controller_info()
1101 sizeof(*rp) + eir_len); in read_ext_controller_info()
[all …]
Dhci_event.c4425 static inline size_t eir_get_length(u8 *eir, size_t eir_len) in eir_get_length() argument
4429 while (parsed < eir_len) { in eir_get_length()
4439 return eir_len; in eir_get_length()
4448 size_t eir_len; in hci_extended_inquiry_result_evt() local
4482 eir_len = eir_get_length(info->data, sizeof(info->data)); in hci_extended_inquiry_result_evt()
4486 flags, info->data, eir_len, NULL, 0); in hci_extended_inquiry_result_evt()