• Home
  • Raw
  • Download

Lines Matching refs:hdr

36 	struct hci_mon_hdr *hdr;  in create_monitor_ctrl_event()  local
51 hdr = skb_push(skb, HCI_MON_HDR_SIZE); in create_monitor_ctrl_event()
52 hdr->opcode = cpu_to_le16(HCI_MON_CTRL_EVENT); in create_monitor_ctrl_event()
53 hdr->index = index; in create_monitor_ctrl_event()
54 hdr->len = cpu_to_le16(skb->len - HCI_MON_HDR_SIZE); in create_monitor_ctrl_event()
63 struct mgmt_hdr *hdr; in mgmt_send_event() local
65 skb = alloc_skb(sizeof(*hdr) + data_len, GFP_KERNEL); in mgmt_send_event()
69 hdr = skb_put(skb, sizeof(*hdr)); in mgmt_send_event()
70 hdr->opcode = cpu_to_le16(event); in mgmt_send_event()
72 hdr->index = cpu_to_le16(hdev->id); in mgmt_send_event()
74 hdr->index = cpu_to_le16(MGMT_INDEX_NONE); in mgmt_send_event()
75 hdr->len = cpu_to_le16(data_len); in mgmt_send_event()
96 struct mgmt_hdr *hdr; in mgmt_cmd_status() local
102 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev), GFP_KERNEL); in mgmt_cmd_status()
106 hdr = skb_put(skb, sizeof(*hdr)); in mgmt_cmd_status()
108 hdr->opcode = cpu_to_le16(MGMT_EV_CMD_STATUS); in mgmt_cmd_status()
109 hdr->index = cpu_to_le16(index); in mgmt_cmd_status()
110 hdr->len = cpu_to_le16(sizeof(*ev)); in mgmt_cmd_status()
116 mskb = create_monitor_ctrl_event(hdr->index, hci_sock_get_cookie(sk), in mgmt_cmd_status()
140 struct mgmt_hdr *hdr; in mgmt_cmd_complete() local
146 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev) + rp_len, GFP_KERNEL); in mgmt_cmd_complete()
150 hdr = skb_put(skb, sizeof(*hdr)); in mgmt_cmd_complete()
152 hdr->opcode = cpu_to_le16(MGMT_EV_CMD_COMPLETE); in mgmt_cmd_complete()
153 hdr->index = cpu_to_le16(index); in mgmt_cmd_complete()
154 hdr->len = cpu_to_le16(sizeof(*ev) + rp_len); in mgmt_cmd_complete()
163 mskb = create_monitor_ctrl_event(hdr->index, hci_sock_get_cookie(sk), in mgmt_cmd_complete()