Lines Matching refs:index
337 hdr->index = cpu_to_le16(hdev->id); in hci_send_to_monitor()
350 __le16 index; in hci_send_monitor_ctrl_event() local
353 index = cpu_to_le16(hdev->id); in hci_send_monitor_ctrl_event()
355 index = cpu_to_le16(MGMT_INDEX_NONE); in hci_send_monitor_ctrl_event()
388 hdr->index = index; in hci_send_monitor_ctrl_event()
472 hdr->index = cpu_to_le16(hdev->id); in create_monitor_event()
528 hdr->index = cpu_to_le16(hci_pi(sk)->hdev->id); in create_monitor_ctrl_open()
530 hdr->index = cpu_to_le16(HCI_DEV_NONE); in create_monitor_ctrl_open()
566 hdr->index = cpu_to_le16(hci_pi(sk)->hdev->id); in create_monitor_ctrl_close()
568 hdr->index = cpu_to_le16(HCI_DEV_NONE); in create_monitor_ctrl_close()
574 static struct sk_buff *create_monitor_ctrl_command(struct sock *sk, u16 index, in create_monitor_ctrl_command() argument
595 hdr->index = cpu_to_le16(index); in create_monitor_ctrl_command()
626 hdr->index = cpu_to_le16(HCI_DEV_NONE); in send_monitor_note()
1467 u16 opcode, index, len; in hci_mgmt_cmd() local
1489 index = __le16_to_cpu(hdr->index); in hci_mgmt_cmd()
1501 skb = create_monitor_ctrl_command(sk, index, opcode, len, in hci_mgmt_cmd()
1513 err = mgmt_cmd_status(sk, index, opcode, in hci_mgmt_cmd()
1522 err = mgmt_cmd_status(sk, index, opcode, in hci_mgmt_cmd()
1527 if (index != MGMT_INDEX_NONE) { in hci_mgmt_cmd()
1528 hdev = hci_dev_get(index); in hci_mgmt_cmd()
1530 err = mgmt_cmd_status(sk, index, opcode, in hci_mgmt_cmd()
1538 err = mgmt_cmd_status(sk, index, opcode, in hci_mgmt_cmd()
1545 err = mgmt_cmd_status(sk, index, opcode, in hci_mgmt_cmd()
1553 err = mgmt_cmd_status(sk, index, opcode, in hci_mgmt_cmd()
1561 err = mgmt_cmd_status(sk, index, opcode, in hci_mgmt_cmd()
1590 u16 index; in hci_logging_frame() local
1644 index = __le16_to_cpu(hdr->index); in hci_logging_frame()
1646 if (index != MGMT_INDEX_NONE) { in hci_logging_frame()
1647 hdev = hci_dev_get(index); in hci_logging_frame()