eir_len 1358 include/net/bluetooth/hci_core.h static inline void *eir_get_data(u8 *eir, size_t eir_len, u8 type, eir_len 1363 include/net/bluetooth/hci_core.h if (eir_len < 2) eir_len 1366 include/net/bluetooth/hci_core.h while (parsed < eir_len - 1) { eir_len 1374 include/net/bluetooth/hci_core.h if (parsed > eir_len) eir_len 1572 include/net/bluetooth/hci_core.h u8 *eir, u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len); eir_len 517 include/net/bluetooth/mgmt.h __le16 eir_len; eir_len 604 include/net/bluetooth/mgmt.h __le16 eir_len; eir_len 708 include/net/bluetooth/mgmt.h __le16 eir_len; eir_len 763 include/net/bluetooth/mgmt.h __le16 eir_len; eir_len 858 include/net/bluetooth/mgmt.h __le16 eir_len; eir_len 874 include/net/bluetooth/mgmt.h __le16 eir_len; eir_len 4242 net/bluetooth/hci_event.c static inline size_t eir_get_length(u8 *eir, size_t eir_len) eir_len 4246 net/bluetooth/hci_event.c while (parsed < eir_len) { eir_len 4256 net/bluetooth/hci_event.c return eir_len; eir_len 4265 net/bluetooth/hci_event.c size_t eir_len; eir_len 4299 net/bluetooth/hci_event.c eir_len = eir_get_length(info->data, sizeof(info->data)); eir_len 4303 net/bluetooth/hci_event.c flags, info->data, eir_len, NULL, 0); eir_len 121 net/bluetooth/hci_request.h static inline u16 eir_append_data(u8 *eir, u16 eir_len, u8 type, eir_len 124 net/bluetooth/hci_request.h eir[eir_len++] = sizeof(type) + data_len; eir_len 125 net/bluetooth/hci_request.h eir[eir_len++] = type; eir_len 126 net/bluetooth/hci_request.h memcpy(&eir[eir_len], data, data_len); eir_len 127 net/bluetooth/hci_request.h eir_len += data_len; eir_len 129 net/bluetooth/hci_request.h return eir_len; eir_len 132 net/bluetooth/hci_request.h static inline u16 eir_append_le16(u8 *eir, u16 eir_len, u8 type, u16 data) eir_len 134 net/bluetooth/hci_request.h eir[eir_len++] = sizeof(type) + sizeof(data); eir_len 135 net/bluetooth/hci_request.h eir[eir_len++] = type; eir_len 136 net/bluetooth/hci_request.h put_unaligned_le16(data, &eir[eir_len]); eir_len 137 net/bluetooth/hci_request.h eir_len += sizeof(data); eir_len 139 net/bluetooth/hci_request.h return eir_len; eir_len 998 net/bluetooth/mgmt.c u16 eir_len = 0; eir_len 1002 net/bluetooth/mgmt.c eir_len = eir_append_data(eir, eir_len, EIR_CLASS_OF_DEV, eir_len 1006 net/bluetooth/mgmt.c eir_len = eir_append_le16(eir, eir_len, EIR_APPEARANCE, eir_len 1010 net/bluetooth/mgmt.c eir_len = eir_append_data(eir, eir_len, EIR_NAME_COMPLETE, eir_len 1014 net/bluetooth/mgmt.c eir_len = eir_append_data(eir, eir_len, EIR_NAME_SHORT, eir_len 1017 net/bluetooth/mgmt.c return eir_len; eir_len 1025 net/bluetooth/mgmt.c u16 eir_len; eir_len 1042 net/bluetooth/mgmt.c eir_len = append_eir_data_to_buf(hdev, rp->eir); eir_len 1043 net/bluetooth/mgmt.c rp->eir_len = cpu_to_le16(eir_len); eir_len 1057 net/bluetooth/mgmt.c sizeof(*rp) + eir_len); eir_len 1064 net/bluetooth/mgmt.c u16 eir_len; eir_len 1068 net/bluetooth/mgmt.c eir_len = append_eir_data_to_buf(hdev, ev->eir); eir_len 1069 net/bluetooth/mgmt.c ev->eir_len = cpu_to_le16(eir_len); eir_len 1072 net/bluetooth/mgmt.c sizeof(*ev) + eir_len, eir_len 6023 net/bluetooth/mgmt.c u16 eir_len; eir_len 6036 net/bluetooth/mgmt.c eir_len = 0; eir_len 6047 net/bluetooth/mgmt.c eir_len = 0; eir_len 6052 net/bluetooth/mgmt.c eir_len = 5 + 18 + 18; eir_len 6063 net/bluetooth/mgmt.c eir_len = 0; eir_len 6069 net/bluetooth/mgmt.c eir_len = 5 + 18 + 18; eir_len 6073 net/bluetooth/mgmt.c eir_len = 5 + 18 + 18 + 18 + 18; eir_len 6083 net/bluetooth/mgmt.c mgmt_rp = kmalloc(sizeof(*mgmt_rp) + eir_len, GFP_KERNEL); eir_len 6090 net/bluetooth/mgmt.c eir_len = eir_append_data(mgmt_rp->eir, 0, EIR_CLASS_OF_DEV, eir_len 6094 net/bluetooth/mgmt.c eir_len = eir_append_data(mgmt_rp->eir, eir_len, eir_len 6096 net/bluetooth/mgmt.c eir_len = eir_append_data(mgmt_rp->eir, eir_len, eir_len 6101 net/bluetooth/mgmt.c eir_len = eir_append_data(mgmt_rp->eir, eir_len, eir_len 6103 net/bluetooth/mgmt.c eir_len = eir_append_data(mgmt_rp->eir, eir_len, eir_len 6109 net/bluetooth/mgmt.c mgmt_rp->eir_len = cpu_to_le16(eir_len); eir_len 6113 net/bluetooth/mgmt.c mgmt_rp, sizeof(*mgmt_rp) + eir_len); eir_len 6120 net/bluetooth/mgmt.c mgmt_rp, sizeof(*mgmt_rp) + eir_len, eir_len 6161 net/bluetooth/mgmt.c u16 eir_len; eir_len 6172 net/bluetooth/mgmt.c eir_len = 0; eir_len 6174 net/bluetooth/mgmt.c eir_len = 5; eir_len 6179 net/bluetooth/mgmt.c eir_len = 0; eir_len 6181 net/bluetooth/mgmt.c eir_len = 9 + 3 + 18 + 18 + 3; eir_len 6185 net/bluetooth/mgmt.c eir_len = 0; eir_len 6190 net/bluetooth/mgmt.c eir_len = 0; eir_len 6193 net/bluetooth/mgmt.c rp_len = sizeof(*rp) + eir_len; eir_len 6203 net/bluetooth/mgmt.c eir_len = 0; eir_len 6215 net/bluetooth/mgmt.c eir_len = eir_append_data(rp->eir, eir_len, eir_len 6255 net/bluetooth/mgmt.c eir_len = eir_append_data(rp->eir, eir_len, EIR_LE_BDADDR, eir_len 6263 net/bluetooth/mgmt.c eir_len = eir_append_data(rp->eir, eir_len, EIR_LE_ROLE, eir_len 6267 net/bluetooth/mgmt.c eir_len = eir_append_data(rp->eir, eir_len, eir_len 6271 net/bluetooth/mgmt.c eir_len = eir_append_data(rp->eir, eir_len, eir_len 6281 net/bluetooth/mgmt.c eir_len = eir_append_data(rp->eir, eir_len, EIR_FLAGS, eir_len 6294 net/bluetooth/mgmt.c rp->eir_len = cpu_to_le16(eir_len); eir_len 6297 net/bluetooth/mgmt.c status, rp, sizeof(*rp) + eir_len); eir_len 6302 net/bluetooth/mgmt.c rp, sizeof(*rp) + eir_len, eir_len 7238 net/bluetooth/mgmt.c u16 eir_len = 0; eir_len 7250 net/bluetooth/mgmt.c memcpy(&ev->eir[eir_len], eir_len 7252 net/bluetooth/mgmt.c eir_len = conn->le_adv_data_len; eir_len 7255 net/bluetooth/mgmt.c eir_len = eir_append_data(ev->eir, 0, EIR_NAME_COMPLETE, eir_len 7259 net/bluetooth/mgmt.c eir_len = eir_append_data(ev->eir, eir_len, eir_len 7264 net/bluetooth/mgmt.c ev->eir_len = cpu_to_le16(eir_len); eir_len 7267 net/bluetooth/mgmt.c sizeof(*ev) + eir_len, NULL); eir_len 7706 net/bluetooth/mgmt.c static bool eir_has_uuids(u8 *eir, u16 eir_len, u16 uuid_count, u8 (*uuids)[16]) eir_len 7710 net/bluetooth/mgmt.c while (parsed < eir_len) { eir_len 7718 net/bluetooth/mgmt.c if (eir_len - parsed < field_len + 1) eir_len 7777 net/bluetooth/mgmt.c u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len) eir_len 7798 net/bluetooth/mgmt.c if (!eir_has_uuids(eir, eir_len, hdev->discovery.uuid_count, eir_len 7823 net/bluetooth/mgmt.c u8 *eir, u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len) eir_len 7842 net/bluetooth/mgmt.c if (!is_filter_match(hdev, rssi, eir, eir_len, scan_rsp, eir_len 7853 net/bluetooth/mgmt.c u8 *flags = eir_get_data(eir, eir_len, EIR_FLAGS, NULL); eir_len 7862 net/bluetooth/mgmt.c if (sizeof(*ev) + eir_len + scan_rsp_len + 5 > sizeof(buf)) eir_len 7884 net/bluetooth/mgmt.c if (eir_len > 0) eir_len 7886 net/bluetooth/mgmt.c memcpy(ev->eir, eir, eir_len); eir_len 7888 net/bluetooth/mgmt.c if (dev_class && !eir_get_data(ev->eir, eir_len, EIR_CLASS_OF_DEV, eir_len 7890 net/bluetooth/mgmt.c eir_len = eir_append_data(ev->eir, eir_len, EIR_CLASS_OF_DEV, eir_len 7895 net/bluetooth/mgmt.c memcpy(ev->eir + eir_len, scan_rsp, scan_rsp_len); eir_len 7897 net/bluetooth/mgmt.c ev->eir_len = cpu_to_le16(eir_len + scan_rsp_len); eir_len 7898 net/bluetooth/mgmt.c ev_size = sizeof(*ev) + eir_len + scan_rsp_len; eir_len 7908 net/bluetooth/mgmt.c u16 eir_len; eir_len 7918 net/bluetooth/mgmt.c eir_len = eir_append_data(ev->eir, 0, EIR_NAME_COMPLETE, name, eir_len 7921 net/bluetooth/mgmt.c ev->eir_len = cpu_to_le16(eir_len); eir_len 7923 net/bluetooth/mgmt.c mgmt_event(MGMT_EV_DEVICE_FOUND, hdev, ev, sizeof(*ev) + eir_len, NULL);