• Home
  • Raw
  • Download

Lines Matching refs:eir_len

1047 	u16 eir_len = 0;  in append_eir_data_to_buf()  local
1051 eir_len = eir_append_data(eir, eir_len, EIR_CLASS_OF_DEV, in append_eir_data_to_buf()
1055 eir_len = eir_append_le16(eir, eir_len, EIR_APPEARANCE, in append_eir_data_to_buf()
1059 eir_len = eir_append_data(eir, eir_len, EIR_NAME_COMPLETE, in append_eir_data_to_buf()
1063 eir_len = eir_append_data(eir, eir_len, EIR_NAME_SHORT, in append_eir_data_to_buf()
1066 return eir_len; in append_eir_data_to_buf()
1074 u16 eir_len; in read_ext_controller_info() local
1091 eir_len = append_eir_data_to_buf(hdev, rp->eir); in read_ext_controller_info()
1092 rp->eir_len = cpu_to_le16(eir_len); in read_ext_controller_info()
1106 sizeof(*rp) + eir_len); in read_ext_controller_info()
1113 u16 eir_len; in ext_info_changed() local
1117 eir_len = append_eir_data_to_buf(hdev, ev->eir); in ext_info_changed()
1118 ev->eir_len = cpu_to_le16(eir_len); in ext_info_changed()
1121 sizeof(*ev) + eir_len, in ext_info_changed()
7190 u16 eir_len; in read_local_oob_ext_data_complete() local
7203 eir_len = 0; in read_local_oob_ext_data_complete()
7214 eir_len = 0; in read_local_oob_ext_data_complete()
7219 eir_len = 5 + 18 + 18; in read_local_oob_ext_data_complete()
7230 eir_len = 0; in read_local_oob_ext_data_complete()
7236 eir_len = 5 + 18 + 18; in read_local_oob_ext_data_complete()
7240 eir_len = 5 + 18 + 18 + 18 + 18; in read_local_oob_ext_data_complete()
7250 mgmt_rp = kmalloc(sizeof(*mgmt_rp) + eir_len, GFP_KERNEL); in read_local_oob_ext_data_complete()
7254 if (eir_len == 0) in read_local_oob_ext_data_complete()
7257 eir_len = eir_append_data(mgmt_rp->eir, 0, EIR_CLASS_OF_DEV, in read_local_oob_ext_data_complete()
7261 eir_len = eir_append_data(mgmt_rp->eir, eir_len, in read_local_oob_ext_data_complete()
7263 eir_len = eir_append_data(mgmt_rp->eir, eir_len, in read_local_oob_ext_data_complete()
7268 eir_len = eir_append_data(mgmt_rp->eir, eir_len, in read_local_oob_ext_data_complete()
7270 eir_len = eir_append_data(mgmt_rp->eir, eir_len, in read_local_oob_ext_data_complete()
7276 mgmt_rp->eir_len = cpu_to_le16(eir_len); in read_local_oob_ext_data_complete()
7280 mgmt_rp, sizeof(*mgmt_rp) + eir_len); in read_local_oob_ext_data_complete()
7287 mgmt_rp, sizeof(*mgmt_rp) + eir_len, in read_local_oob_ext_data_complete()
7328 u16 eir_len; in read_local_oob_ext_data() local
7339 eir_len = 0; in read_local_oob_ext_data()
7341 eir_len = 5; in read_local_oob_ext_data()
7346 eir_len = 0; in read_local_oob_ext_data()
7348 eir_len = 9 + 3 + 18 + 18 + 3; in read_local_oob_ext_data()
7352 eir_len = 0; in read_local_oob_ext_data()
7357 eir_len = 0; in read_local_oob_ext_data()
7360 rp_len = sizeof(*rp) + eir_len; in read_local_oob_ext_data()
7370 eir_len = 0; in read_local_oob_ext_data()
7382 eir_len = eir_append_data(rp->eir, eir_len, in read_local_oob_ext_data()
7422 eir_len = eir_append_data(rp->eir, eir_len, EIR_LE_BDADDR, in read_local_oob_ext_data()
7430 eir_len = eir_append_data(rp->eir, eir_len, EIR_LE_ROLE, in read_local_oob_ext_data()
7434 eir_len = eir_append_data(rp->eir, eir_len, in read_local_oob_ext_data()
7438 eir_len = eir_append_data(rp->eir, eir_len, in read_local_oob_ext_data()
7448 eir_len = eir_append_data(rp->eir, eir_len, EIR_FLAGS, in read_local_oob_ext_data()
7461 rp->eir_len = cpu_to_le16(eir_len); in read_local_oob_ext_data()
7464 status, rp, sizeof(*rp) + eir_len); in read_local_oob_ext_data()
7469 rp, sizeof(*rp) + eir_len, in read_local_oob_ext_data()
8829 u16 eir_len = 0; in mgmt_device_connected() local
8845 memcpy(&ev->eir[eir_len], in mgmt_device_connected()
8847 eir_len = conn->le_adv_data_len; in mgmt_device_connected()
8850 eir_len = eir_append_data(ev->eir, 0, EIR_NAME_COMPLETE, in mgmt_device_connected()
8854 eir_len = eir_append_data(ev->eir, eir_len, in mgmt_device_connected()
8859 ev->eir_len = cpu_to_le16(eir_len); in mgmt_device_connected()
8862 sizeof(*ev) + eir_len, NULL); in mgmt_device_connected()
9305 static bool eir_has_uuids(u8 *eir, u16 eir_len, u16 uuid_count, u8 (*uuids)[16]) in eir_has_uuids() argument
9309 while (parsed < eir_len) { in eir_has_uuids()
9317 if (eir_len - parsed < field_len + 1) in eir_has_uuids()
9376 u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len) in is_filter_match() argument
9397 if (!eir_has_uuids(eir, eir_len, hdev->discovery.uuid_count, in is_filter_match()
9422 u8 *eir, u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len) in mgmt_device_found() argument
9444 if (!is_filter_match(hdev, rssi, eir, eir_len, scan_rsp, in mgmt_device_found()
9455 u8 *flags = eir_get_data(eir, eir_len, EIR_FLAGS, NULL); in mgmt_device_found()
9464 if (sizeof(*ev) + eir_len + scan_rsp_len + 5 > sizeof(buf)) in mgmt_device_found()
9486 if (eir_len > 0) in mgmt_device_found()
9488 memcpy(ev->eir, eir, eir_len); in mgmt_device_found()
9490 if (dev_class && !eir_get_data(ev->eir, eir_len, EIR_CLASS_OF_DEV, in mgmt_device_found()
9492 eir_len = eir_append_data(ev->eir, eir_len, EIR_CLASS_OF_DEV, in mgmt_device_found()
9497 memcpy(ev->eir + eir_len, scan_rsp, scan_rsp_len); in mgmt_device_found()
9499 ev->eir_len = cpu_to_le16(eir_len + scan_rsp_len); in mgmt_device_found()
9500 ev_size = sizeof(*ev) + eir_len + scan_rsp_len; in mgmt_device_found()
9510 u16 eir_len; in mgmt_remote_name() local
9520 eir_len = eir_append_data(ev->eir, 0, EIR_NAME_COMPLETE, name, in mgmt_remote_name()
9523 ev->eir_len = cpu_to_le16(eir_len); in mgmt_remote_name()
9525 mgmt_event(MGMT_EV_DEVICE_FOUND, hdev, ev, sizeof(*ev) + eir_len, NULL); in mgmt_remote_name()