Lines Matching defs:opcode
1467 u16 opcode = hci_skb_opcode(hdev->req_skb);
1469 bt_dev_err(hdev, "command 0x%4.4x tx timeout", opcode);
3091 int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen,
3096 BT_DBG("%s opcode 0x%4.4x plen %d", hdev->name, opcode, plen);
3098 skb = hci_cmd_sync_alloc(hdev, opcode, plen, param, NULL);
3115 int __hci_cmd_send(struct hci_dev *hdev, u16 opcode, u32 plen,
3120 if (hci_opcode_ogf(opcode) != 0x3f) {
3133 skb = hci_cmd_sync_alloc(hdev, opcode, plen, param, NULL);
3135 bt_dev_err(hdev, "no memory for command (opcode 0x%4.4x)",
3136 opcode);
3147 static void *hci_cmd_data(struct sk_buff *skb, __u16 opcode)
3156 if (hdr->opcode != cpu_to_le16(opcode))
3163 void *hci_sent_cmd_data(struct hci_dev *hdev, __u16 opcode)
3167 /* Check if opcode matches last sent command */
3168 data = hci_cmd_data(hdev->sent_cmd, opcode);
3170 /* Check if opcode matches last request */
3171 data = hci_cmd_data(hdev->req_skb, opcode);
3964 u16 opcode;
3970 opcode = __le16_to_cpu(sent->opcode);
3971 if (opcode == HCI_OP_RESET)
3982 void hci_req_cmd_complete(struct hci_dev *hdev, u16 opcode, u8 status,
3989 BT_DBG("opcode 0x%04x status 0x%02x", opcode, status);
3994 if (!hci_sent_cmd_data(hdev, opcode)) {
4001 if (test_bit(HCI_INIT, &hdev->flags) && opcode == HCI_OP_RESET)