Home
last modified time | relevance | path

Searched refs:bt_cb (Results 1 – 29 of 29) sorted by relevance

/linux-4.4.14/drivers/bluetooth/
Dhci_h4.c111 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in h4_enqueue()
187 bt_cb(skb)->pkt_type = (&pkts[i])->type; in h4_recv_buf()
188 bt_cb(skb)->expect = (&pkts[i])->hlen; in h4_recv_buf()
200 len = min_t(uint, bt_cb(skb)->expect - skb->len, count); in h4_recv_buf()
207 if (skb->len < bt_cb(skb)->expect) in h4_recv_buf()
211 if (bt_cb(skb)->pkt_type == (&pkts[i])->type) in h4_recv_buf()
231 bt_cb(skb)->expect += dlen; in h4_recv_buf()
242 bt_cb(skb)->expect += dlen; in h4_recv_buf()
Dbluecard_cs.c264 if (bt_cb(skb)->pkt_type & 0x80) { in bluecard_write_wakeup()
282 if (bt_cb(skb)->pkt_type & 0x80) { in bluecard_write_wakeup()
288 switch (bt_cb(skb)->pkt_type) { in bluecard_write_wakeup()
405 bt_cb(info->rx_skb)->pkt_type = buf[i]; in bluecard_receive()
407 switch (bt_cb(info->rx_skb)->pkt_type) { in bluecard_receive()
439 BT_ERR("Unknown HCI packet with type 0x%02x received", bt_cb(info->rx_skb)->pkt_type); in bluecard_receive()
581 bt_cb(skb)->pkt_type = PKT_BAUD_RATE_460800; in bluecard_hci_set_baud_rate()
585 bt_cb(skb)->pkt_type = PKT_BAUD_RATE_230400; in bluecard_hci_set_baud_rate()
589 bt_cb(skb)->pkt_type = PKT_BAUD_RATE_115200; in bluecard_hci_set_baud_rate()
595 bt_cb(skb)->pkt_type = PKT_BAUD_RATE_57600; in bluecard_hci_set_baud_rate()
[all …]
Dhci_bcsp.c158 switch (bt_cb(skb)->pkt_type) { in bcsp_enqueue()
234 bt_cb(nskb)->pkt_type = pkt_type; in bcsp_prepare_pkt()
294 struct sk_buff *nskb = bcsp_prepare_pkt(bcsp, skb->data, skb->len, bt_cb(skb)->pkt_type); in bcsp_dequeue()
314 bt_cb(skb)->pkt_type); in bcsp_dequeue()
415 bt_cb(nskb)->pkt_type = BCSP_LE_PKT; in bcsp_handle_le_pkt()
497 bt_cb(bcsp->rx_skb)->pkt_type = HCI_ACLDATA_PKT; in bcsp_complete_rx_pkt()
501 bt_cb(bcsp->rx_skb)->pkt_type = HCI_EVENT_PKT; in bcsp_complete_rx_pkt()
504 bt_cb(bcsp->rx_skb)->pkt_type = HCI_SCODATA_PKT; in bcsp_complete_rx_pkt()
526 bt_cb(bcsp->rx_skb)->pkt_type = HCI_EVENT_PKT; in bcsp_complete_rx_pkt()
Dhci_ath.c208 if (bt_cb(skb)->pkt_type == HCI_SCODATA_PKT) { in ath_enqueue()
216 if (bt_cb(skb)->pkt_type == HCI_COMMAND_PKT) { in ath_enqueue()
226 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in ath_enqueue()
Dhci_vhci.c84 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in vhci_send_frame()
147 bt_cb(skb)->pkt_type = HCI_VENDOR_PKT; in __vhci_create_device()
201 bt_cb(skb)->pkt_type = pkt_type; in vhci_get_user()
247 switch (bt_cb(skb)->pkt_type) { in vhci_put_user()
Dhci_h5.c110 bt_cb(nskb)->pkt_type = HCI_3WIRE_LINK_PKT; in h5_link_control()
363 bt_cb(h5->rx_skb)->pkt_type = H5_HDR_PKT_TYPE(hdr); in h5_complete_rx_pkt()
565 switch (bt_cb(skb)->pkt_type) { in h5_enqueue()
576 BT_ERR("Unknown packet type %u", bt_cb(skb)->pkt_type); in h5_enqueue()
645 bt_cb(nskb)->pkt_type = pkt_type; in h5_prepare_pkt()
700 nskb = h5_prepare_pkt(hu, bt_cb(skb)->pkt_type, in h5_dequeue()
718 nskb = h5_prepare_pkt(hu, bt_cb(skb)->pkt_type, in h5_dequeue()
Dbtwilink.c252 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in ti_st_send_frame()
254 BT_DBG("%s: type %d len %d", hdev->name, bt_cb(skb)->pkt_type, in ti_st_send_frame()
271 ti_st_tx_complete(hst, bt_cb(skb)->pkt_type); in ti_st_send_frame()
Ddtl1_cs.c242 bt_cb(info->rx_skb)->pkt_type = nsh->type; in dtl1_receive()
253 switch (bt_cb(info->rx_skb)->pkt_type) { in dtl1_receive()
262 bt_cb(info->rx_skb)->pkt_type &= 0x0f; in dtl1_receive()
267 BT_ERR("Unknown HCI packet with type 0x%02x received", bt_cb(info->rx_skb)->pkt_type); in dtl1_receive()
389 switch (bt_cb(skb)->pkt_type) { in dtl1_hci_send_frame()
Dbtuart_cs.c203 bt_cb(info->rx_skb)->pkt_type = inb(iobase + UART_RX); in btuart_receive()
205 switch (bt_cb(info->rx_skb)->pkt_type) { in btuart_receive()
224 BT_ERR("Unknown HCI packet with type 0x%02x received", bt_cb(info->rx_skb)->pkt_type); in btuart_receive()
427 switch (bt_cb(skb)->pkt_type) { in btuart_hci_send_frame()
440 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in btuart_hci_send_frame()
Dbtusb.c448 bt_cb(skb)->pkt_type = HCI_EVENT_PKT; in btusb_recv_intr()
449 bt_cb(skb)->expect = HCI_EVENT_HDR_SIZE; in btusb_recv_intr()
452 len = min_t(uint, bt_cb(skb)->expect, count); in btusb_recv_intr()
457 bt_cb(skb)->expect -= len; in btusb_recv_intr()
461 bt_cb(skb)->expect = hci_event_hdr(skb)->plen; in btusb_recv_intr()
463 if (skb_tailroom(skb) < bt_cb(skb)->expect) { in btusb_recv_intr()
472 if (bt_cb(skb)->expect == 0) { in btusb_recv_intr()
503 bt_cb(skb)->pkt_type = HCI_ACLDATA_PKT; in btusb_recv_bulk()
504 bt_cb(skb)->expect = HCI_ACL_HDR_SIZE; in btusb_recv_bulk()
507 len = min_t(uint, bt_cb(skb)->expect, count); in btusb_recv_bulk()
[all …]
Dbt3c_cs.c249 bt_cb(info->rx_skb)->pkt_type = inb(iobase + DATA_L); in bt3c_receive()
252 switch (bt_cb(info->rx_skb)->pkt_type) { in bt3c_receive()
271 BT_ERR("Unknown HCI packet with type 0x%02x received", bt_cb(info->rx_skb)->pkt_type); in bt3c_receive()
414 switch (bt_cb(skb)->pkt_type) { in bt3c_hci_send_frame()
427 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in bt3c_hci_send_frame()
Dbtsdio.c89 skb->data[3] = bt_cb(skb)->pkt_type; in btsdio_tx_packet()
161 bt_cb(skb)->pkt_type = hdr[3]; in btsdio_rx_packet()
255 switch (bt_cb(skb)->pkt_type) { in btsdio_send_frame()
Dhci_intel.c189 bt_cb(skb)->pkt_type = HCI_LPM_PKT; in intel_lpm_suspend()
233 bt_cb(skb)->pkt_type = HCI_LPM_WAKE_PKT; in intel_lpm_resume()
275 bt_cb(skb)->pkt_type = HCI_LPM_PKT; in intel_lpm_host_wake()
470 bt_cb(skb)->pkt_type = HCI_EVENT_PKT; in inject_cmd_complete()
520 bt_cb(skb)->pkt_type = HCI_COMMAND_PKT; in intel_set_baudrate()
1129 (bt_cb(skb)->pkt_type == HCI_COMMAND_PKT)) { in intel_dequeue()
1143 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in intel_dequeue()
Dbfusb.c327 bt_cb(skb)->pkt_type = pkt_type; in bfusb_recv_block()
472 BT_DBG("hdev %p skb %p type %d len %d", hdev, skb, bt_cb(skb)->pkt_type, skb->len); in bfusb_send_frame()
474 switch (bt_cb(skb)->pkt_type) { in bfusb_send_frame()
487 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in bfusb_send_frame()
Dhci_ll.c310 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in ll_enqueue()
496 bt_cb(ll->rx_skb)->pkt_type = type; in ll_recv()
Dbpa10x.c298 *skb_push(skb, 1) = bt_cb(skb)->pkt_type; in bpa10x_send_frame()
300 switch (bt_cb(skb)->pkt_type) { in bpa10x_send_frame()
Dbtmrvl_main.c199 bt_cb(skb)->pkt_type = MRVL_VENDOR_PKT; in btmrvl_send_sync_cmd()
390 skb->data[3] = bt_cb(skb)->pkt_type; in btmrvl_tx_pkt()
439 switch (bt_cb(skb)->pkt_type) { in btmrvl_send_frame()
Dhci_ldisc.c165 hci_uart_tx_complete(hu, bt_cb(skb)->pkt_type); in hci_uart_write_work()
251 BT_DBG("%s: type %d len %d", hdev->name, bt_cb(skb)->pkt_type, skb->len); in hci_uart_send_frame()
Dhci_qca.c681 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in qca_enqueue()
876 bt_cb(skb)->pkt_type = HCI_COMMAND_PKT; in qca_set_baudrate()
Dbtmrvl_sdio.c701 bt_cb(skb)->pkt_type = type; in btmrvl_sdio_card_to_host()
716 bt_cb(skb)->pkt_type = HCI_VENDOR_PKT; in btmrvl_sdio_card_to_host()
Dhci_bcm.c475 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in bcm_enqueue()
/linux-4.4.14/net/bluetooth/
Dhci_sock.c123 flt_type = bt_cb(skb)->pkt_type & HCI_FLT_TYPE_BITS; in is_filtered_packet()
129 if (bt_cb(skb)->pkt_type != HCI_EVENT_PKT) in is_filtered_packet()
173 if (bt_cb(skb)->pkt_type != HCI_COMMAND_PKT && in hci_send_to_sock()
174 bt_cb(skb)->pkt_type != HCI_EVENT_PKT && in hci_send_to_sock()
175 bt_cb(skb)->pkt_type != HCI_ACLDATA_PKT && in hci_send_to_sock()
176 bt_cb(skb)->pkt_type != HCI_SCODATA_PKT) in hci_send_to_sock()
181 if (!bt_cb(skb)->incoming) in hci_send_to_sock()
183 if (bt_cb(skb)->pkt_type != HCI_EVENT_PKT && in hci_send_to_sock()
184 bt_cb(skb)->pkt_type != HCI_ACLDATA_PKT && in hci_send_to_sock()
185 bt_cb(skb)->pkt_type != HCI_SCODATA_PKT) in hci_send_to_sock()
[all …]
Dhci_request.c59 bt_cb(skb)->hci.req_complete = complete; in req_run()
60 bt_cb(skb)->hci.req_complete_skb = complete_skb; in req_run()
101 bt_cb(skb)->pkt_type = HCI_COMMAND_PKT; in hci_prepare_cmd()
102 bt_cb(skb)->hci.opcode = opcode; in hci_prepare_cmd()
131 bt_cb(skb)->hci.req_start = true; in hci_req_add_ev()
133 bt_cb(skb)->hci.req_event = event; in hci_req_add_ev()
Dhci_core.c3523 bt_cb(skb)->pkt_type = HCI_EVENT_PKT; in hci_reset_dev()
3540 if (bt_cb(skb)->pkt_type != HCI_EVENT_PKT && in hci_recv_frame()
3541 bt_cb(skb)->pkt_type != HCI_ACLDATA_PKT && in hci_recv_frame()
3542 bt_cb(skb)->pkt_type != HCI_SCODATA_PKT) { in hci_recv_frame()
3548 bt_cb(skb)->incoming = 1; in hci_recv_frame()
3564 bt_cb(skb)->pkt_type = HCI_DIAG_PKT; in hci_recv_diag()
3606 BT_DBG("%s type %d len %d", hdev->name, bt_cb(skb)->pkt_type, skb->len); in hci_send_frame()
3651 bt_cb(skb)->hci.req_start = true; in hci_send_cmd()
3719 bt_cb(skb)->pkt_type = HCI_ACLDATA_PKT; in hci_queue_acl()
3759 bt_cb(skb)->pkt_type = HCI_ACLDATA_PKT; in hci_queue_acl()
[all …]
Dl2cap_core.c295 if (bt_cb(skb)->l2cap.txseq == seq) in l2cap_ertm_seq_in_queue()
860 bt_cb(skb)->force_active = BT_POWER_FORCE_ACTIVE_ON; in l2cap_send_cmd()
900 bt_cb(skb)->force_active = test_bit(FLAG_FORCE_ACTIVE, &chan->flags); in l2cap_do_send()
957 &bt_cb(skb)->l2cap); in __unpack_control()
961 &bt_cb(skb)->l2cap); in __unpack_control()
1203 if (bt_cb(skb)->l2cap.retries) in l2cap_move_setup()
1204 bt_cb(skb)->l2cap.retries = 1; in l2cap_move_setup()
1845 bt_cb(skb)->l2cap.retries = 1; in l2cap_streaming_send()
1846 control = &bt_cb(skb)->l2cap; in l2cap_streaming_send()
1890 bt_cb(skb)->l2cap.retries = 1; in l2cap_ertm_send()
[all …]
Dl2cap_sock.c1381 bt_cb(skb)->l2cap.chan = chan; in l2cap_sock_alloc_skb_cb()
1495 la->l2_psm = bt_cb(skb)->l2cap.psm; in l2cap_skb_msg_name()
1496 bacpy(&la->l2_bdaddr, &bt_cb(skb)->l2cap.bdaddr); in l2cap_skb_msg_name()
Dhci_event.c3141 (hdev->sent_cmd && !bt_cb(hdev->sent_cmd)->hci.req_event)) in hci_cmd_status_evt()
5212 if (hdev->sent_cmd && bt_cb(hdev->sent_cmd)->hci.req_event == event) { in hci_event_packet()
Dsmp.c3056 bt_cb(skb)->l2cap.chan = chan; in smp_alloc_skb_cb()
/linux-4.4.14/include/net/bluetooth/
Dbluetooth.h317 #define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) macro
326 bt_cb(skb)->incoming = 0; in bt_skb_alloc()
339 bt_cb(skb)->incoming = 0; in bt_skb_send_alloc()