Lines Matching refs:skb
30 struct sk_buff *skb; in btintel_check_bdaddr() local
32 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btintel_check_bdaddr()
34 if (IS_ERR(skb)) { in btintel_check_bdaddr()
35 int err = PTR_ERR(skb); in btintel_check_bdaddr()
41 if (skb->len != sizeof(*bda)) { in btintel_check_bdaddr()
43 kfree_skb(skb); in btintel_check_bdaddr()
47 bda = (struct hci_rp_read_bd_addr *)skb->data; in btintel_check_bdaddr()
60 kfree_skb(skb); in btintel_check_bdaddr()
69 struct sk_buff *skb; in btintel_enter_mfg() local
71 skb = __hci_cmd_sync(hdev, 0xfc11, 2, param, HCI_CMD_TIMEOUT); in btintel_enter_mfg()
72 if (IS_ERR(skb)) { in btintel_enter_mfg()
74 PTR_ERR(skb)); in btintel_enter_mfg()
75 return PTR_ERR(skb); in btintel_enter_mfg()
77 kfree_skb(skb); in btintel_enter_mfg()
86 struct sk_buff *skb; in btintel_exit_mfg() local
96 skb = __hci_cmd_sync(hdev, 0xfc11, 2, param, HCI_CMD_TIMEOUT); in btintel_exit_mfg()
97 if (IS_ERR(skb)) { in btintel_exit_mfg()
99 PTR_ERR(skb)); in btintel_exit_mfg()
100 return PTR_ERR(skb); in btintel_exit_mfg()
102 kfree_skb(skb); in btintel_exit_mfg()
110 struct sk_buff *skb; in btintel_set_bdaddr() local
113 skb = __hci_cmd_sync(hdev, 0xfc31, 6, bdaddr, HCI_INIT_TIMEOUT); in btintel_set_bdaddr()
114 if (IS_ERR(skb)) { in btintel_set_bdaddr()
115 err = PTR_ERR(skb); in btintel_set_bdaddr()
120 kfree_skb(skb); in btintel_set_bdaddr()
128 struct sk_buff *skb; in btintel_set_diag() local
142 skb = __hci_cmd_sync(hdev, 0xfc43, 3, param, HCI_INIT_TIMEOUT); in btintel_set_diag()
143 if (IS_ERR(skb)) { in btintel_set_diag()
144 err = PTR_ERR(skb); in btintel_set_diag()
151 kfree_skb(skb); in btintel_set_diag()
179 struct sk_buff *skb; in btintel_hw_error() local
184 skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, HCI_INIT_TIMEOUT); in btintel_hw_error()
185 if (IS_ERR(skb)) { in btintel_hw_error()
187 PTR_ERR(skb)); in btintel_hw_error()
190 kfree_skb(skb); in btintel_hw_error()
192 skb = __hci_cmd_sync(hdev, 0xfc22, 1, &type, HCI_INIT_TIMEOUT); in btintel_hw_error()
193 if (IS_ERR(skb)) { in btintel_hw_error()
195 PTR_ERR(skb)); in btintel_hw_error()
199 if (skb->len != 13) { in btintel_hw_error()
201 kfree_skb(skb); in btintel_hw_error()
205 bt_dev_err(hdev, "Exception info %s", (char *)(skb->data + 1)); in btintel_hw_error()
207 kfree_skb(skb); in btintel_hw_error()
237 struct sk_buff *skb; in btintel_secure_send() local
243 skb = __hci_cmd_sync(hdev, 0xfc09, fragment_len + 1, in btintel_secure_send()
245 if (IS_ERR(skb)) in btintel_secure_send()
246 return PTR_ERR(skb); in btintel_secure_send()
248 kfree_skb(skb); in btintel_secure_send()
261 struct sk_buff *skb; in btintel_load_ddc_config() local
282 skb = __hci_cmd_sync(hdev, 0xfc8b, cmd_plen, fw_ptr, in btintel_load_ddc_config()
284 if (IS_ERR(skb)) { in btintel_load_ddc_config()
286 PTR_ERR(skb)); in btintel_load_ddc_config()
288 return PTR_ERR(skb); in btintel_load_ddc_config()
292 kfree_skb(skb); in btintel_load_ddc_config()
306 struct sk_buff *skb; in btintel_set_event_mask() local
312 skb = __hci_cmd_sync(hdev, 0xfc52, 8, mask, HCI_INIT_TIMEOUT); in btintel_set_event_mask()
313 if (IS_ERR(skb)) { in btintel_set_event_mask()
314 err = PTR_ERR(skb); in btintel_set_event_mask()
318 kfree_skb(skb); in btintel_set_event_mask()
344 struct sk_buff *skb; in btintel_read_version() local
346 skb = __hci_cmd_sync(hdev, 0xfc05, 0, NULL, HCI_CMD_TIMEOUT); in btintel_read_version()
347 if (IS_ERR(skb)) { in btintel_read_version()
349 PTR_ERR(skb)); in btintel_read_version()
350 return PTR_ERR(skb); in btintel_read_version()
353 if (skb->len != sizeof(*ver)) { in btintel_read_version()
355 kfree_skb(skb); in btintel_read_version()
359 memcpy(ver, skb->data, sizeof(*ver)); in btintel_read_version()
361 kfree_skb(skb); in btintel_read_version()
406 struct sk_buff *skb; in btintel_read_version_tlv() local
412 skb = __hci_cmd_sync(hdev, 0xfc05, 1, param, HCI_CMD_TIMEOUT); in btintel_read_version_tlv()
413 if (IS_ERR(skb)) { in btintel_read_version_tlv()
415 PTR_ERR(skb)); in btintel_read_version_tlv()
416 return PTR_ERR(skb); in btintel_read_version_tlv()
419 if (skb->data[0]) { in btintel_read_version_tlv()
421 skb->data[0]); in btintel_read_version_tlv()
422 kfree_skb(skb); in btintel_read_version_tlv()
427 skb_pull(skb, 1); in btintel_read_version_tlv()
434 while (skb->len) { in btintel_read_version_tlv()
437 tlv = (struct intel_tlv *)skb->data; in btintel_read_version_tlv()
497 skb_pull(skb, tlv->len + sizeof(*tlv)); in btintel_read_version_tlv()
500 kfree_skb(skb); in btintel_read_version_tlv()
536 struct sk_buff *skb; in regmap_ibt_read() local
562 skb = hci_cmd_sync(ctx->hdev, ctx->op_read, sizeof(cp), &cp, in regmap_ibt_read()
564 if (IS_ERR(skb)) { in regmap_ibt_read()
565 err = PTR_ERR(skb); in regmap_ibt_read()
571 if (skb->len != sizeof(*rp) + val_size) { in regmap_ibt_read()
578 rp = (struct ibt_rp_reg_access *)skb->data; in regmap_ibt_read()
590 kfree_skb(skb); in regmap_ibt_read()
600 struct sk_buff *skb; in regmap_ibt_gather_write() local
634 skb = hci_cmd_sync(ctx->hdev, ctx->op_write, plen, cp, HCI_CMD_TIMEOUT); in regmap_ibt_gather_write()
635 if (IS_ERR(skb)) { in regmap_ibt_gather_write()
636 err = PTR_ERR(skb); in regmap_ibt_gather_write()
641 kfree_skb(skb); in regmap_ibt_gather_write()
703 struct sk_buff *skb; in btintel_send_intel_reset() local
707 skb = __hci_cmd_sync(hdev, 0xfc01, sizeof(params), ¶ms, in btintel_send_intel_reset()
709 if (IS_ERR(skb)) { in btintel_send_intel_reset()
711 return PTR_ERR(skb); in btintel_send_intel_reset()
714 kfree_skb(skb); in btintel_send_intel_reset()
723 struct sk_buff *skb; in btintel_read_boot_params() local
725 skb = __hci_cmd_sync(hdev, 0xfc0d, 0, NULL, HCI_INIT_TIMEOUT); in btintel_read_boot_params()
726 if (IS_ERR(skb)) { in btintel_read_boot_params()
728 PTR_ERR(skb)); in btintel_read_boot_params()
729 return PTR_ERR(skb); in btintel_read_boot_params()
732 if (skb->len != sizeof(*params)) { in btintel_read_boot_params()
734 kfree_skb(skb); in btintel_read_boot_params()
738 memcpy(params, skb->data, sizeof(*params)); in btintel_read_boot_params()
740 kfree_skb(skb); in btintel_read_boot_params()
994 struct sk_buff *skb; in btintel_reset_to_bootloader() local
1017 skb = __hci_cmd_sync(hdev, 0xfc01, sizeof(params), in btintel_reset_to_bootloader()
1019 if (IS_ERR(skb)) { in btintel_reset_to_bootloader()
1021 PTR_ERR(skb)); in btintel_reset_to_bootloader()
1025 kfree_skb(skb); in btintel_reset_to_bootloader()
1039 struct sk_buff *skb; in btintel_read_debug_features() local
1045 skb = __hci_cmd_sync(hdev, 0xfca6, sizeof(page_no), &page_no, in btintel_read_debug_features()
1047 if (IS_ERR(skb)) { in btintel_read_debug_features()
1049 PTR_ERR(skb)); in btintel_read_debug_features()
1050 return PTR_ERR(skb); in btintel_read_debug_features()
1053 if (skb->len != (sizeof(features->page1) + 3)) { in btintel_read_debug_features()
1055 kfree_skb(skb); in btintel_read_debug_features()
1059 memcpy(features->page1, skb->data + 3, sizeof(features->page1)); in btintel_read_debug_features()
1063 kfree_skb(skb); in btintel_read_debug_features()
1073 struct sk_buff *skb; in btintel_set_debug_features() local
1083 skb = __hci_cmd_sync(hdev, 0xfc8b, 11, mask, HCI_INIT_TIMEOUT); in btintel_set_debug_features()
1084 if (IS_ERR(skb)) { in btintel_set_debug_features()
1086 PTR_ERR(skb)); in btintel_set_debug_features()
1087 return PTR_ERR(skb); in btintel_set_debug_features()
1090 kfree_skb(skb); in btintel_set_debug_features()