Lines Matching refs:opcode
34 u16 opcode, u16 len, void *buf) in create_monitor_ctrl_event() argument
44 put_unaligned_le16(opcode, skb_put(skb, 2)); in create_monitor_ctrl_event()
52 hdr->opcode = cpu_to_le16(HCI_MON_CTRL_EVENT); in create_monitor_ctrl_event()
59 struct sk_buff *mgmt_alloc_skb(struct hci_dev *hdev, u16 opcode, in mgmt_alloc_skb() argument
70 bt_cb(skb)->mgmt.opcode = opcode; in mgmt_alloc_skb()
93 hci_send_monitor_ctrl_event(hdev, bt_cb(skb)->mgmt.opcode, in mgmt_send_event_skb()
98 hdr->opcode = cpu_to_le16(bt_cb(skb)->mgmt.opcode); in mgmt_send_event_skb()
141 hdr->opcode = cpu_to_le16(MGMT_EV_CMD_STATUS); in mgmt_cmd_status()
147 ev->opcode = cpu_to_le16(cmd); in mgmt_cmd_status()
185 hdr->opcode = cpu_to_le16(MGMT_EV_CMD_COMPLETE); in mgmt_cmd_complete()
190 ev->opcode = cpu_to_le16(cmd); in mgmt_cmd_complete()
217 struct mgmt_pending_cmd *mgmt_pending_find(unsigned short channel, u16 opcode, in mgmt_pending_find() argument
225 if (cmd->opcode == opcode) in mgmt_pending_find()
233 u16 opcode, in mgmt_pending_find_data() argument
242 if (cmd->opcode == opcode) in mgmt_pending_find_data()
249 void mgmt_pending_foreach(u16 opcode, struct hci_dev *hdev, in mgmt_pending_foreach() argument
256 if (opcode > 0 && cmd->opcode != opcode) in mgmt_pending_foreach()
263 struct mgmt_pending_cmd *mgmt_pending_new(struct sock *sk, u16 opcode, in mgmt_pending_new() argument
273 cmd->opcode = opcode; in mgmt_pending_new()
290 struct mgmt_pending_cmd *mgmt_pending_add(struct sock *sk, u16 opcode, in mgmt_pending_add() argument
296 cmd = mgmt_pending_new(sk, opcode, hdev, data, len); in mgmt_pending_add()