/linux-4.4.14/drivers/bluetooth/ |
D | hci_h4.c | 111 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()
|
D | bluecard_cs.c | 264 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 …]
|
D | hci_bcsp.c | 158 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()
|
D | hci_ath.c | 208 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()
|
D | hci_vhci.c | 84 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()
|
D | hci_h5.c | 110 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()
|
D | btwilink.c | 252 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()
|
D | dtl1_cs.c | 242 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()
|
D | btuart_cs.c | 203 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()
|
D | btusb.c | 448 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 …]
|
D | bt3c_cs.c | 249 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()
|
D | btsdio.c | 89 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()
|
D | hci_intel.c | 189 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()
|
D | bfusb.c | 327 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()
|
D | hci_ll.c | 310 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()
|
D | bpa10x.c | 298 *skb_push(skb, 1) = bt_cb(skb)->pkt_type; in bpa10x_send_frame() 300 switch (bt_cb(skb)->pkt_type) { in bpa10x_send_frame()
|
D | btmrvl_main.c | 199 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()
|
D | hci_ldisc.c | 165 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()
|
D | hci_qca.c | 681 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()
|
D | btmrvl_sdio.c | 701 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()
|
D | hci_bcm.c | 475 memcpy(skb_push(skb, 1), &bt_cb(skb)->pkt_type, 1); in bcm_enqueue()
|
/linux-4.4.14/net/bluetooth/ |
D | hci_sock.c | 123 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 …]
|
D | hci_request.c | 59 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()
|
D | hci_core.c | 3523 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 …]
|
D | l2cap_core.c | 295 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 …]
|
D | l2cap_sock.c | 1381 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()
|
D | hci_event.c | 3141 (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()
|
D | smp.c | 3056 bt_cb(skb)->l2cap.chan = chan; in smp_alloc_skb_cb()
|
/linux-4.4.14/include/net/bluetooth/ |
D | bluetooth.h | 317 #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()
|