Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/bluetooth/
Dhci_h4.c111 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in h4_enqueue()
186 bt_cb(skb)->pkt_type = (&pkts[i])->type; in h4_recv_buf()
187 bt_cb(skb)->expect = (&pkts[i])->hlen; in h4_recv_buf()
199 len = min_t(uint, bt_cb(skb)->expect - skb->len, count); in h4_recv_buf()
206 if (skb->len < bt_cb(skb)->expect) in h4_recv_buf()
210 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.c207 if (bt_cb(skb)->pkt_type == HCI_SCODATA_PKT) { in ath_enqueue()
215 if (bt_cb(skb)->pkt_type == HCI_COMMAND_PKT) { in ath_enqueue()
225 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in ath_enqueue()
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()
Dhci_vhci.c92 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in vhci_send_frame()
155 bt_cb(skb)->pkt_type = HCI_VENDOR_PKT; in __vhci_create_device()
209 bt_cb(skb)->pkt_type = pkt_type; in vhci_get_user()
255 switch (bt_cb(skb)->pkt_type) { in vhci_put_user()
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()
394 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()
433 switch (bt_cb(skb)->pkt_type) { in btuart_hci_send_frame()
446 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in btuart_hci_send_frame()
Dbtwilink.c265 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in ti_st_send_frame()
267 BT_DBG("%s: type %d len %d", hdev->name, bt_cb(skb)->pkt_type, in ti_st_send_frame()
284 ti_st_tx_complete(hst, bt_cb(skb)->pkt_type); in ti_st_send_frame()
Dbt3c_cs.c250 bt_cb(info->rx_skb)->pkt_type = inb(iobase + DATA_L); in bt3c_receive()
253 switch (bt_cb(info->rx_skb)->pkt_type) { in bt3c_receive()
272 BT_ERR("Unknown HCI packet with type 0x%02x received", bt_cb(info->rx_skb)->pkt_type); in bt3c_receive()
421 switch (bt_cb(skb)->pkt_type) { in bt3c_hci_send_frame()
434 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in bt3c_hci_send_frame()
Dbtusb.c427 bt_cb(skb)->pkt_type = HCI_EVENT_PKT; in btusb_recv_intr()
428 bt_cb(skb)->expect = HCI_EVENT_HDR_SIZE; in btusb_recv_intr()
431 len = min_t(uint, bt_cb(skb)->expect, count); in btusb_recv_intr()
436 bt_cb(skb)->expect -= len; in btusb_recv_intr()
440 bt_cb(skb)->expect = hci_event_hdr(skb)->plen; in btusb_recv_intr()
442 if (skb_tailroom(skb) < bt_cb(skb)->expect) { in btusb_recv_intr()
451 if (bt_cb(skb)->expect == 0) { in btusb_recv_intr()
482 bt_cb(skb)->pkt_type = HCI_ACLDATA_PKT; in btusb_recv_bulk()
483 bt_cb(skb)->expect = HCI_ACL_HDR_SIZE; in btusb_recv_bulk()
486 len = min_t(uint, bt_cb(skb)->expect, count); in btusb_recv_bulk()
[all …]
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()
267 switch (bt_cb(skb)->pkt_type) { in btsdio_send_frame()
Dbpa10x.c155 bt_cb(skb)->pkt_type = scb->type; in bpa10x_recv()
373 *skb_push(skb, 1) = bt_cb(skb)->pkt_type; in bpa10x_send_frame()
375 switch (bt_cb(skb)->pkt_type) { in bpa10x_send_frame()
Dbfusb.c327 bt_cb(skb)->pkt_type = pkt_type; in bfusb_recv_block()
480 BT_DBG("hdev %p skb %p type %d len %d", hdev, skb, bt_cb(skb)->pkt_type, skb->len); in bfusb_send_frame()
485 switch (bt_cb(skb)->pkt_type) { in bfusb_send_frame()
498 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in bfusb_send_frame()
Dhci_bcm.c120 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in bcm_enqueue()
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()
Dbtmrvl_main.c199 bt_cb(skb)->pkt_type = MRVL_VENDOR_PKT; in btmrvl_send_sync_cmd()
404 skb->data[3] = bt_cb(skb)->pkt_type; in btmrvl_tx_pkt()
460 switch (bt_cb(skb)->pkt_type) { in btmrvl_send_frame()
Dhci_ldisc.c164 hci_uart_tx_complete(hu, bt_cb(skb)->pkt_type); in hci_uart_write_work()
259 BT_DBG("%s: type %d len %d", hdev->name, bt_cb(skb)->pkt_type, skb->len); in hci_uart_send_frame()
Dbtmrvl_sdio.c666 bt_cb(skb)->pkt_type = type; in btmrvl_sdio_card_to_host()
681 bt_cb(skb)->pkt_type = HCI_VENDOR_PKT; in btmrvl_sdio_card_to_host()
/linux-4.1.27/net/bluetooth/
Dhci_sock.c123 if (bt_cb(skb)->pkt_type == HCI_VENDOR_PKT) in is_filtered_packet()
126 flt_type = bt_cb(skb)->pkt_type & HCI_FLT_TYPE_BITS; in is_filtered_packet()
132 if (bt_cb(skb)->pkt_type != HCI_EVENT_PKT) in is_filtered_packet()
179 if (!bt_cb(skb)->incoming) in hci_send_to_sock()
181 if (bt_cb(skb)->pkt_type != HCI_EVENT_PKT && in hci_send_to_sock()
182 bt_cb(skb)->pkt_type != HCI_ACLDATA_PKT && in hci_send_to_sock()
183 bt_cb(skb)->pkt_type != HCI_SCODATA_PKT) in hci_send_to_sock()
197 memcpy(skb_push(skb_copy, 1), &bt_cb(skb)->pkt_type, 1); in hci_send_to_sock()
263 switch (bt_cb(skb)->pkt_type) { in hci_send_to_monitor()
271 if (bt_cb(skb)->incoming) in hci_send_to_monitor()
[all …]
Dhci_request.c59 bt_cb(skb)->req.complete = complete; in req_run()
60 bt_cb(skb)->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)->opcode = opcode; in hci_prepare_cmd()
131 bt_cb(skb)->req.start = true; in hci_req_add_ev()
133 bt_cb(skb)->req.event = event; in hci_req_add_ev()
Dhci_core.c3293 bt_cb(skb)->pkt_type = HCI_EVENT_PKT; in hci_reset_dev()
3311 bt_cb(skb)->incoming = 1; in hci_recv_frame()
3353 BT_DBG("%s type %d len %d", hdev->name, bt_cb(skb)->pkt_type, skb->len); in hci_send_frame()
3393 bt_cb(skb)->req.start = true; in hci_send_cmd()
3442 bt_cb(skb)->pkt_type = HCI_ACLDATA_PKT; in hci_queue_acl()
3482 bt_cb(skb)->pkt_type = HCI_ACLDATA_PKT; in hci_queue_acl()
3520 bt_cb(skb)->pkt_type = HCI_SCODATA_PKT; in hci_send_sco()
3782 bt_cb(skb)->force_active); in hci_sched_acl_pkt()
3834 bt_cb(skb)->force_active); in hci_sched_acl_blk()
4071 return bt_cb(skb)->req.start; in hci_req_is_complete()
[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()
1849 bt_cb(skb)->l2cap.retries = 1; in l2cap_streaming_send()
1850 control = &bt_cb(skb)->l2cap; in l2cap_streaming_send()
1894 bt_cb(skb)->l2cap.retries = 1; in l2cap_ertm_send()
[all …]
Dl2cap_sock.c1333 bt_cb(skb)->l2cap.chan = chan; in l2cap_sock_alloc_skb_cb()
1447 la->l2_psm = bt_cb(skb)->l2cap.psm; in l2cap_skb_msg_name()
1448 bacpy(&la->l2_bdaddr, &bt_cb(skb)->l2cap.bdaddr); in l2cap_skb_msg_name()
Dhci_event.c3160 (hdev->sent_cmd && !bt_cb(hdev->sent_cmd)->req.event)) in hci_cmd_status_evt()
5192 if (hdev->sent_cmd && bt_cb(hdev->sent_cmd)->req.event == event) { in hci_event_packet()
Dsmp.c3024 bt_cb(skb)->l2cap.chan = chan; in smp_alloc_skb_cb()
/linux-4.1.27/include/net/bluetooth/
Dbluetooth.h301 #define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb)) macro
310 bt_cb(skb)->incoming = 0; in bt_skb_alloc()
323 bt_cb(skb)->incoming = 0; in bt_skb_send_alloc()