Lines Matching defs:opcode

1080 static struct sk_buff *hci_get_cmd_complete(struct hci_dev *hdev, u16 opcode,
1124 if (opcode == __le16_to_cpu(ev->opcode))
1127 BT_DBG("opcode doesn't match (0x%2.2x != 0x%2.2x)", opcode,
1128 __le16_to_cpu(ev->opcode));
1135 struct sk_buff *__hci_cmd_sync_ev(struct hci_dev *hdev, u16 opcode, u32 plen,
1146 hci_req_add_ev(&req, opcode, plen, param, event);
1185 return hci_get_cmd_complete(hdev, opcode, event);
1189 struct sk_buff *__hci_cmd_sync(struct hci_dev *hdev, u16 opcode, u32 plen,
1192 return __hci_cmd_sync_ev(hdev, opcode, plen, param, 0, timeout);
3428 u16 opcode = __le16_to_cpu(sent->opcode);
3430 BT_ERR("%s command 0x%4.4x tx timeout", hdev->name, opcode);
4509 static struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode,
4521 hdr->opcode = cpu_to_le16(opcode);
4530 bt_cb(skb)->opcode = opcode;
4536 int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen,
4541 BT_DBG("%s opcode 0x%4.4x plen %d", hdev->name, opcode, plen);
4543 skb = hci_prepare_cmd(hdev, opcode, plen, param);
4561 void hci_req_add_ev(struct hci_request *req, u16 opcode, u32 plen,
4567 BT_DBG("%s opcode 0x%4.4x plen %d", hdev->name, opcode, plen);
4575 skb = hci_prepare_cmd(hdev, opcode, plen, param);
4577 BT_ERR("%s no memory for command (opcode 0x%4.4x)",
4578 hdev->name, opcode);
4591 void hci_req_add(struct hci_request *req, u16 opcode, u32 plen,
4594 hci_req_add_ev(req, opcode, plen, param, 0);
4598 void *hci_sent_cmd_data(struct hci_dev *hdev, __u16 opcode)
4607 if (hdr->opcode != cpu_to_le16(opcode))
4610 BT_DBG("%s opcode 0x%4.4x", hdev->name, opcode);
5270 u16 opcode;
5276 opcode = __le16_to_cpu(sent->opcode);
5277 if (opcode == HCI_OP_RESET)
5288 void hci_req_cmd_complete(struct hci_dev *hdev, u16 opcode, u8 status)
5294 BT_DBG("opcode 0x%04x status 0x%02x", opcode, status);
5299 if (!hci_sent_cmd_data(hdev, opcode)) {
5306 if (test_bit(HCI_INIT, &hdev->flags) && opcode == HCI_OP_RESET)