Lines Matching refs:skb

50 static void *hci_ev_skb_pull(struct hci_dev *hdev, struct sk_buff *skb,
55 data = skb_pull_data(skb, len);
62 static void *hci_cc_skb_pull(struct hci_dev *hdev, struct sk_buff *skb,
67 data = skb_pull_data(skb, len);
74 static void *hci_le_ev_skb_pull(struct hci_dev *hdev, struct sk_buff *skb,
79 data = skb_pull_data(skb, len);
87 struct sk_buff *skb)
125 struct sk_buff *skb)
140 struct sk_buff *skb)
155 struct sk_buff *skb)
165 struct sk_buff *skb)
187 struct sk_buff *skb)
209 struct sk_buff *skb)
236 struct sk_buff *skb)
251 struct sk_buff *skb)
270 static u8 hci_cc_reset(struct hci_dev *hdev, void *data, struct sk_buff *skb)
306 struct sk_buff *skb)
326 struct sk_buff *skb)
347 struct sk_buff *skb)
371 struct sk_buff *skb)
388 struct sk_buff *skb)
419 struct sk_buff *skb)
445 struct sk_buff *skb)
483 struct sk_buff *skb)
509 struct sk_buff *skb)
530 struct sk_buff *skb)
555 struct sk_buff *skb)
581 struct sk_buff *skb)
612 struct sk_buff *skb)
629 struct sk_buff *skb)
662 struct sk_buff *skb)
695 struct sk_buff *skb)
717 struct sk_buff *skb)
772 struct sk_buff *skb)
789 struct sk_buff *skb)
811 struct sk_buff *skb)
841 struct sk_buff *skb)
893 struct sk_buff *skb)
917 struct sk_buff *skb)
949 struct sk_buff *skb)
968 struct sk_buff *skb)
987 struct sk_buff *skb)
1005 struct sk_buff *skb)
1026 struct sk_buff *skb)
1042 struct sk_buff *skb)
1060 struct sk_buff *skb)
1094 struct sk_buff *skb)
1109 struct sk_buff *skb)
1124 struct sk_buff *skb)
1144 struct sk_buff *skb)
1174 struct sk_buff *skb)
1192 struct sk_buff *skb)
1215 struct sk_buff *skb)
1230 struct sk_buff *skb)
1245 struct sk_buff *skb)
1263 struct sk_buff *skb)
1281 struct sk_buff *skb)
1299 struct sk_buff *skb)
1317 struct sk_buff *skb)
1327 struct sk_buff *skb)
1337 struct sk_buff *skb)
1367 struct sk_buff *skb)
1392 struct sk_buff *skb)
1430 struct sk_buff *skb)
1458 struct sk_buff *skb)
1489 struct sk_buff *skb)
1505 struct sk_buff *skb)
1532 struct sk_buff *skb)
1571 struct sk_buff *skb)
1636 struct sk_buff *skb)
1660 struct sk_buff *skb)
1774 struct sk_buff *skb)
1794 struct sk_buff *skb)
1814 struct sk_buff *skb)
1830 struct sk_buff *skb)
1845 struct sk_buff *skb)
1862 struct sk_buff *skb)
1885 struct sk_buff *skb)
1908 struct sk_buff *skb)
1923 struct sk_buff *skb)
1939 struct sk_buff *skb)
1960 struct sk_buff *skb)
1984 struct sk_buff *skb)
2007 struct sk_buff *skb)
2024 struct sk_buff *skb)
2039 struct sk_buff *skb)
2066 struct sk_buff *skb)
2084 struct sk_buff *skb)
2120 struct sk_buff *skb)
2142 struct sk_buff *skb)
2176 struct sk_buff *skb)
2198 struct sk_buff *skb)
2234 struct sk_buff *skb)
2965 struct sk_buff *skb)
3024 struct sk_buff *skb)
3030 if (!hci_ev_skb_pull(hdev, skb, HCI_EV_INQUIRY_RESULT,
3068 struct sk_buff *skb)
3231 struct sk_buff *skb)
3355 struct sk_buff *skb)
3440 struct sk_buff *skb)
3504 struct sk_buff *skb)
3545 struct sk_buff *skb)
3657 struct sk_buff *skb)
3680 struct sk_buff *skb)
3748 struct sk_buff *skb)
3791 struct sk_buff *skb)
3856 struct sk_buff *skb)
3912 struct sk_buff *skb)
3931 struct sk_buff *skb)
3996 u8 (*func)(struct hci_dev *hdev, void *data, struct sk_buff *skb);
4164 struct sk_buff *skb)
4168 if (skb->len < cc->min_len) {
4170 cc->op, skb->len, cc->min_len);
4178 if (skb->len > cc->max_len)
4180 cc->op, skb->len, cc->max_len);
4182 data = hci_cc_skb_pull(hdev, skb, cc->op, cc->min_len);
4186 return cc->func(hdev, data, skb);
4190 struct sk_buff *skb, u16 *opcode, u8 *status,
4203 *status = hci_cc_func(hdev, &hci_cc_table[i], skb);
4216 *status = skb->data[0];
4311 struct sk_buff *skb, u16 *opcode, u8 *status,
4353 struct sk_buff *skb)
4365 struct sk_buff *skb)
4388 struct sk_buff *skb)
4393 if (!hci_ev_skb_pull(hdev, skb, HCI_EV_NUM_COMP_PKTS,
4465 struct sk_buff *skb)
4494 struct sk_buff *skb)
4565 struct sk_buff *skb)
4623 struct sk_buff *skb)
4693 struct sk_buff *skb)
4717 struct sk_buff *skb)
4734 struct sk_buff *skb)
4753 struct sk_buff *skb)
4769 if (skb->len == array_size(ev->num,
4776 info = hci_ev_skb_pull(hdev, skb,
4800 } else if (skb->len == array_size(ev->num,
4807 info = hci_ev_skb_pull(hdev, skb,
4840 struct sk_buff *skb)
4905 struct sk_buff *skb)
5035 struct sk_buff *skb)
5042 if (!hci_ev_skb_pull(hdev, skb, HCI_EV_EXTENDED_INQUIRY_RESULT,
5090 struct sk_buff *skb)
5200 struct sk_buff *skb)
5273 struct sk_buff *skb)
5294 struct sk_buff *skb)
5379 struct sk_buff *skb)
5390 struct sk_buff *skb)
5411 struct sk_buff *skb)
5450 struct sk_buff *skb)
5481 struct sk_buff *skb)
5503 struct sk_buff *skb)
5781 struct sk_buff *skb)
5795 struct sk_buff *skb)
5809 struct sk_buff *skb)
5879 struct sk_buff *skb)
6204 struct sk_buff *skb)
6218 info = hci_le_ev_skb_pull(hdev, skb,
6224 if (!hci_le_ev_skb_pull(hdev, skb, HCI_EV_LE_ADVERTISING_REPORT,
6288 struct sk_buff *skb)
6303 info = hci_le_ev_skb_pull(hdev, skb, HCI_EV_LE_EXT_ADV_REPORT,
6308 if (!hci_le_ev_skb_pull(hdev, skb, HCI_EV_LE_EXT_ADV_REPORT,
6339 struct sk_buff *skb)
6382 struct sk_buff *skb)
6421 struct sk_buff *skb)
6463 struct sk_buff *skb)
6540 struct sk_buff *skb)
6604 struct sk_buff *skb)
6610 if (!hci_le_ev_skb_pull(hdev, skb, HCI_EV_LE_DIRECT_ADV_REPORT,
6632 struct sk_buff *skb)
6656 struct sk_buff *skb)
6759 struct sk_buff *skb)
6818 struct sk_buff *skb)
6826 if (!hci_le_ev_skb_pull(hdev, skb, HCI_EVT_LE_CREATE_BIG_COMPLETE,
6876 struct sk_buff *skb)
6884 if (!hci_le_ev_skb_pull(hdev, skb, HCI_EVT_LE_BIG_SYNC_ESTABILISHED,
6939 struct sk_buff *skb)
6990 void (*func)(struct hci_dev *hdev, void *data, struct sk_buff *skb);
7067 struct sk_buff *skb, u16 *opcode, u8 *status,
7089 if (skb->len < subev->min_len) {
7091 ev->subevent, skb->len, subev->min_len);
7099 if (skb->len > subev->max_len)
7101 ev->subevent, skb->len, subev->max_len);
7102 data = hci_le_ev_skb_pull(hdev, skb, ev->subevent, subev->min_len);
7106 subev->func(hdev, data, skb);
7110 u8 event, struct sk_buff *skb)
7115 if (!skb)
7118 hdr = hci_ev_skb_pull(hdev, skb, event, sizeof(*hdr));
7140 ev = hci_cc_skb_pull(hdev, skb, opcode, sizeof(*ev));
7154 struct sk_buff *skb)
7159 const struct hci_ev_conn_complete *conn_complete = (void *)skb->data;
7160 const struct hci_ev_conn_request *conn_request = (void *)skb->data;
7186 struct hci_ev_le_meta *le_ev = (void *)skb->data;
7188 u8 *ptr = &skb->data[sizeof(*le_ev)];
7256 struct sk_buff *skb);
7258 struct sk_buff *skb, u16 *opcode, u8 *status,
7383 static void hci_event_func(struct hci_dev *hdev, u8 event, struct sk_buff *skb,
7394 if (skb->len < ev->min_len) {
7396 event, skb->len, ev->min_len);
7404 if (skb->len > ev->max_len)
7407 event, skb->len, ev->max_len);
7409 data = hci_ev_skb_pull(hdev, skb, event, ev->min_len);
7414 ev->func_req(hdev, data, skb, opcode, status, req_complete,
7417 ev->func(hdev, data, skb);
7420 void hci_event_packet(struct hci_dev *hdev, struct sk_buff *skb)
7422 struct hci_event_hdr *hdr = (void *) skb->data;
7429 if (skb->len < sizeof(*hdr)) {
7435 hdev->recv_event = skb_clone(skb, GFP_KERNEL);
7454 * req_complete_skb, store a pristine copy of the skb since the
7460 orig_skb = skb_clone(skb, GFP_KERNEL);
7462 skb_pull(skb, HCI_EVENT_HDR_SIZE);
7465 hci_store_wake_reason(hdev, event, skb);
7469 hci_event_func(hdev, event, skb, &opcode, &status, &req_complete,
7484 kfree_skb(skb);