/linux-6.1.9/drivers/bluetooth/ |
D | hci_bcsp.c | 49 struct sk_buff *rx_skb; member 405 if (bcsp->rx_skb->data[1] >> 4 == 4 && bcsp->rx_skb->data[2] == 0 && in bcsp_handle_le_pkt() 406 !memcmp(&bcsp->rx_skb->data[4], conf_pkt, 4)) { in bcsp_handle_le_pkt() 419 else if (bcsp->rx_skb->data[1] >> 4 == 4 && bcsp->rx_skb->data[2] == 0 && in bcsp_handle_le_pkt() 420 !memcmp(&bcsp->rx_skb->data[4], sync_pkt, 4)) { in bcsp_handle_le_pkt() 436 skb_put_data(bcsp->rx_skb, &byte, 1); in bcsp_unslip_one_byte() 437 if ((bcsp->rx_skb->data[0] & 0x40) != 0 && in bcsp_unslip_one_byte() 447 skb_put_data(bcsp->rx_skb, &c0, 1); in bcsp_unslip_one_byte() 448 if ((bcsp->rx_skb->data[0] & 0x40) != 0 && in bcsp_unslip_one_byte() 456 skb_put_data(bcsp->rx_skb, &db, 1); in bcsp_unslip_one_byte() [all …]
|
D | dtl1_cs.c | 80 struct sk_buff *rx_skb; member 219 if (info->rx_skb == NULL) { in dtl1_receive() 220 info->rx_skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC); in dtl1_receive() 221 if (!info->rx_skb) { in dtl1_receive() 229 skb_put_u8(info->rx_skb, inb(iobase + UART_RX)); in dtl1_receive() 230 nsh = (struct nsh *)info->rx_skb->data; in dtl1_receive() 242 hci_skb_pkt_type(info->rx_skb) = nsh->type; in dtl1_receive() 246 info->rx_skb->tail--; in dtl1_receive() 247 info->rx_skb->len--; in dtl1_receive() 251 skb_pull(info->rx_skb, NSHL); in dtl1_receive() [all …]
|
D | bt3c_cs.c | 82 struct sk_buff *rx_skb; member 236 if (!info->rx_skb) { in bt3c_receive() 239 info->rx_skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC); in bt3c_receive() 240 if (!info->rx_skb) { in bt3c_receive() 249 hci_skb_pkt_type(info->rx_skb) = inb(iobase + DATA_L); in bt3c_receive() 252 switch (hci_skb_pkt_type(info->rx_skb)) { in bt3c_receive() 272 hci_skb_pkt_type(info->rx_skb)); in bt3c_receive() 275 kfree_skb(info->rx_skb); in bt3c_receive() 276 info->rx_skb = NULL; in bt3c_receive() 285 skb_put_u8(info->rx_skb, x); in bt3c_receive() [all …]
|
D | bluecard_cs.c | 77 struct sk_buff *rx_skb; member 387 if (!info->rx_skb) { in bluecard_receive() 390 info->rx_skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC); in bluecard_receive() 391 if (!info->rx_skb) { in bluecard_receive() 399 hci_skb_pkt_type(info->rx_skb) = buf[i]; in bluecard_receive() 401 switch (hci_skb_pkt_type(info->rx_skb)) { in bluecard_receive() 412 kfree_skb(info->rx_skb); in bluecard_receive() 413 info->rx_skb = NULL; in bluecard_receive() 434 hci_skb_pkt_type(info->rx_skb)); in bluecard_receive() 437 kfree_skb(info->rx_skb); in bluecard_receive() [all …]
|
D | hci_ath.c | 34 struct sk_buff *rx_skb; member 126 kfree_skb(ath->rx_skb); in ath_close() 194 ath->rx_skb = h4_recv_buf(hu->hdev, ath->rx_skb, data, count, in ath_recv() 196 if (IS_ERR(ath->rx_skb)) { in ath_recv() 197 int err = PTR_ERR(ath->rx_skb); in ath_recv() 199 ath->rx_skb = NULL; in ath_recv()
|
D | hci_h4.c | 36 struct sk_buff *rx_skb; member 78 kfree_skb(h4->rx_skb); in h4_close() 115 h4->rx_skb = h4_recv_buf(hu->hdev, h4->rx_skb, data, count, in h4_recv() 117 if (IS_ERR(h4->rx_skb)) { in h4_recv() 118 int err = PTR_ERR(h4->rx_skb); in h4_recv() 120 h4->rx_skb = NULL; in h4_recv()
|
D | hci_ag6xx.c | 23 struct sk_buff *rx_skb; member 56 kfree_skb(ag6xx->rx_skb); in ag6xx_close() 108 ag6xx->rx_skb = h4_recv_buf(hu->hdev, ag6xx->rx_skb, data, count, in ag6xx_recv() 111 if (IS_ERR(ag6xx->rx_skb)) { in ag6xx_recv() 112 int err = PTR_ERR(ag6xx->rx_skb); in ag6xx_recv() 114 ag6xx->rx_skb = NULL; in ag6xx_recv()
|
D | hci_h5.c | 73 struct sk_buff *rx_skb; /* Receive buffer */ member 262 kfree_skb(h5->rx_skb); in h5_close() 263 h5->rx_skb = NULL; in h5_close() 336 const unsigned char *hdr = h5->rx_skb->data; in h5_handle_internal_rx() 337 const unsigned char *data = &h5->rx_skb->data[4]; in h5_handle_internal_rx() 390 const unsigned char *hdr = h5->rx_skb->data; in h5_complete_rx_pkt() 407 hci_skb_pkt_type(h5->rx_skb) = H5_HDR_PKT_TYPE(hdr); in h5_complete_rx_pkt() 410 skb_pull(h5->rx_skb, 4); in h5_complete_rx_pkt() 412 hci_recv_frame(hu->hdev, h5->rx_skb); in h5_complete_rx_pkt() 413 h5->rx_skb = NULL; in h5_complete_rx_pkt() [all …]
|
D | bpa10x.c | 43 struct sk_buff *rx_skb[2]; member 99 data->rx_skb[idx] = h4_recv_buf(hdev, data->rx_skb[idx], in bpa10x_rx_complete() 104 if (IS_ERR(data->rx_skb[idx])) { in bpa10x_rx_complete() 107 data->rx_skb[idx] = NULL; in bpa10x_rx_complete() 428 kfree_skb(data->rx_skb[0]); in bpa10x_disconnect() 429 kfree_skb(data->rx_skb[1]); in bpa10x_disconnect()
|
D | hci_mrvl.c | 37 struct sk_buff *rx_skb; member 100 kfree_skb(mrvl->rx_skb); in mrvl_close() 257 mrvl->rx_skb = h4_recv_buf(hu->hdev, mrvl->rx_skb, data, count, in mrvl_recv() 260 if (IS_ERR(mrvl->rx_skb)) { in mrvl_recv() 261 int err = PTR_ERR(mrvl->rx_skb); in mrvl_recv() 263 mrvl->rx_skb = NULL; in mrvl_recv()
|
/linux-6.1.9/drivers/isdn/mISDN/ |
D | hwchannel.c | 62 ch->rx_skb = NULL; in mISDN_initdchannel() 86 ch->rx_skb = NULL; in mISDN_initbchannel() 104 if (ch->rx_skb) { in mISDN_freedchannel() 105 dev_kfree_skb(ch->rx_skb); in mISDN_freedchannel() 106 ch->rx_skb = NULL; in mISDN_freedchannel() 123 if (ch->rx_skb) { in mISDN_clear_bchannel() 124 dev_kfree_skb(ch->rx_skb); in mISDN_clear_bchannel() 125 ch->rx_skb = NULL; in mISDN_clear_bchannel() 215 if (dch->rx_skb->len < 2) { /* at least 2 for sapi / tei */ in recv_Dchannel() 216 dev_kfree_skb(dch->rx_skb); in recv_Dchannel() [all …]
|
/linux-6.1.9/drivers/net/ethernet/qualcomm/ |
D | qca_uart.c | 55 struct sk_buff *rx_skb; member 71 if (!qca->rx_skb) { in qca_tty_receive() 72 qca->rx_skb = netdev_alloc_skb_ip_align(netdev, in qca_tty_receive() 75 if (!qca->rx_skb) { in qca_tty_receive() 86 qca->rx_skb->data, in qca_tty_receive() 87 skb_tailroom(qca->rx_skb), in qca_tty_receive() 107 skb_put(qca->rx_skb, retcode); in qca_tty_receive() 108 qca->rx_skb->protocol = eth_type_trans( in qca_tty_receive() 109 qca->rx_skb, qca->rx_skb->dev); in qca_tty_receive() 110 skb_checksum_none_assert(qca->rx_skb); in qca_tty_receive() [all …]
|
D | qca_spi.c | 349 if (!qca->rx_skb) { in qcaspi_receive() 350 qca->rx_skb = netdev_alloc_skb_ip_align(net_dev, in qcaspi_receive() 353 if (!qca->rx_skb) { in qcaspi_receive() 408 while ((bytes_read--) && (qca->rx_skb)) { in qcaspi_receive() 412 qca->rx_skb->data, in qcaspi_receive() 413 skb_tailroom(qca->rx_skb), in qcaspi_receive() 431 qca->rx_skb->dev = qca->net_dev; in qcaspi_receive() 434 skb_put(qca->rx_skb, retcode); in qcaspi_receive() 435 qca->rx_skb->protocol = eth_type_trans( in qcaspi_receive() 436 qca->rx_skb, qca->rx_skb->dev); in qcaspi_receive() [all …]
|
/linux-6.1.9/net/nfc/nci/ |
D | uart.c | 184 kfree_skb(nu->rx_skb); in nci_uart_tty_close() 242 if (!nu->rx_skb) { in nci_uart_default_recv_buf() 244 nu->rx_skb = nci_skb_alloc(nu->ndev, in nci_uart_default_recv_buf() 247 if (!nu->rx_skb) in nci_uart_default_recv_buf() 252 if (nu->rx_skb->len < NCI_CTRL_HDR_SIZE) { in nci_uart_default_recv_buf() 253 skb_put_u8(nu->rx_skb, *data++); in nci_uart_default_recv_buf() 261 nci_plen(nu->rx_skb->data); in nci_uart_default_recv_buf() 266 chunk_len = nu->rx_packet_len - nu->rx_skb->len; in nci_uart_default_recv_buf() 269 skb_put_data(nu->rx_skb, data, chunk_len); in nci_uart_default_recv_buf() 274 if (nu->rx_packet_len == nu->rx_skb->len) { in nci_uart_default_recv_buf() [all …]
|
/linux-6.1.9/drivers/misc/ti-st/ |
D | st_core.c | 97 (st_gdata == NULL || st_gdata->rx_skb == NULL in st_send_frame() 101 kfree_skb(st_gdata->rx_skb); in st_send_frame() 113 (st_gdata->list[chnl_id]->priv_data, st_gdata->rx_skb) in st_send_frame() 116 kfree_skb(st_gdata->rx_skb); in st_send_frame() 121 kfree_skb(st_gdata->rx_skb); in st_send_frame() 155 int room = skb_tailroom(st_gdata->rx_skb); in st_check_data_len() 174 kfree_skb(st_gdata->rx_skb); in st_check_data_len() 187 st_gdata->rx_skb = NULL; in st_check_data_len() 256 skb_put_data(st_gdata->rx_skb, ptr, len); in st_int_recv() 276 st_gdata->rx_skb = NULL; in st_int_recv() [all …]
|
D | st_kim.c | 54 struct sk_buff *skb = kim_gdata->rx_skb; in validate_firmware_response() 67 kim_gdata->rx_skb->data, in validate_firmware_response() 68 kim_gdata->rx_skb->len); in validate_firmware_response() 70 kim_gdata->rx_skb = NULL; in validate_firmware_response() 89 register int room = skb_tailroom(kim_gdata->rx_skb); in kim_check_data_len() 102 kfree_skb(kim_gdata->rx_skb); in kim_check_data_len() 118 kim_gdata->rx_skb = NULL; in kim_check_data_len() 148 skb_put_data(kim_gdata->rx_skb, ptr, len); in kim_int_recv() 163 kim_gdata->rx_skb = NULL; in kim_int_recv() 168 (unsigned char *)&kim_gdata->rx_skb->data[1]; in kim_int_recv() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxbf_gige/ |
D | mlxbf_gige_rx.c | 108 priv->rx_skb[i] = mlxbf_gige_alloc_skb(priv, MLXBF_GIGE_DEFAULT_BUF_SZ, in mlxbf_gige_rx_init() 110 if (!priv->rx_skb[i]) in mlxbf_gige_rx_init() 167 dev_kfree_skb(priv->rx_skb[j]); in mlxbf_gige_rx_init() 196 dev_kfree_skb(priv->rx_skb[i]); in mlxbf_gige_rx_deinit() 219 struct sk_buff *skb = NULL, *rx_skb; in mlxbf_gige_rx_packet() local 246 skb = priv->rx_skb[rx_pi_rem]; in mlxbf_gige_rx_packet() 255 rx_skb = mlxbf_gige_alloc_skb(priv, MLXBF_GIGE_DEFAULT_BUF_SZ, in mlxbf_gige_rx_packet() 257 if (!rx_skb) in mlxbf_gige_rx_packet() 259 priv->rx_skb[rx_pi_rem] = rx_skb; in mlxbf_gige_rx_packet()
|
/linux-6.1.9/drivers/nfc/st21nfca/ |
D | vendor_cmds.c | 237 info->vendor_info.rx_skb = skb; in st21nfca_hci_loopback_event_received() 259 info->vendor_info.rx_skb = NULL; in st21nfca_hci_loopback() 269 if (!info->vendor_info.rx_skb || in st21nfca_hci_loopback() 270 info->vendor_info.rx_skb->len != data_len) { in st21nfca_hci_loopback() 278 info->vendor_info.rx_skb->len); in st21nfca_hci_loopback() 284 if (nla_put(msg, NFC_ATTR_VENDOR_DATA, info->vendor_info.rx_skb->len, in st21nfca_hci_loopback() 285 info->vendor_info.rx_skb->data)) { in st21nfca_hci_loopback() 293 kfree_skb(info->vendor_info.rx_skb); in st21nfca_hci_loopback()
|
/linux-6.1.9/drivers/isdn/hardware/mISDN/ |
D | hfcsusb.c | 340 if (dch->rx_skb) { in hfcusb_l2l1D() 341 __skb_queue_tail(&free_queue, dch->rx_skb); in hfcusb_l2l1D() 342 dch->rx_skb = NULL; in hfcusb_l2l1D() 389 if (dch->rx_skb) { in hfc_l1callback() 390 dev_kfree_skb(dch->rx_skb); in hfc_l1callback() 391 dch->rx_skb = NULL; in hfc_l1callback() 807 struct sk_buff *rx_skb = NULL; in hfcsusb_rx_frame() local 831 rx_skb = fifo->dch->rx_skb; in hfcsusb_rx_frame() 842 rx_skb = fifo->bch->rx_skb; in hfcsusb_rx_frame() 844 if (rx_skb) in hfcsusb_rx_frame() [all …]
|
D | mISDNisar.c | 439 rcv_mbox(ch->is, skb_put(ch->bch.rx_skb, ch->is->clsb)); in isar_rcv_frame() 459 skb_trim(ch->bch.rx_skb, 0); in isar_rcv_frame() 464 skb_trim(ch->bch.rx_skb, 0); in isar_rcv_frame() 465 ptr = skb_put(ch->bch.rx_skb, ch->is->clsb); in isar_rcv_frame() 468 if (ch->bch.rx_skb->len < 3) { /* last 2 are the FCS */ in isar_rcv_frame() 470 ch->is->name, ch->bch.rx_skb->len); in isar_rcv_frame() 471 skb_trim(ch->bch.rx_skb, 0); in isar_rcv_frame() 474 skb_trim(ch->bch.rx_skb, ch->bch.rx_skb->len - 2); in isar_rcv_frame() 483 if (ch->bch.rx_skb) in isar_rcv_frame() 484 skb_trim(ch->bch.rx_skb, 0); in isar_rcv_frame() [all …]
|
D | mISDNipac.c | 110 if (!isac->dch.rx_skb) { in isac_empty_fifo() 111 isac->dch.rx_skb = mI_alloc_skb(isac->dch.maxlen, GFP_ATOMIC); in isac_empty_fifo() 112 if (!isac->dch.rx_skb) { in isac_empty_fifo() 118 if ((isac->dch.rx_skb->len + count) >= isac->dch.maxlen) { in isac_empty_fifo() 120 isac->dch.rx_skb->len + count); in isac_empty_fifo() 124 ptr = skb_put(isac->dch.rx_skb, count); in isac_empty_fifo() 193 dev_kfree_skb(isac->dch.rx_skb); in isac_rme_irq() 194 isac->dch.rx_skb = NULL; in isac_rme_irq() 465 dev_kfree_skb(isac->dch.rx_skb); in isacsx_rme_irq() 466 isac->dch.rx_skb = NULL; in isacsx_rme_irq() [all …]
|
/linux-6.1.9/drivers/net/usb/ |
D | rtl8150.c | 130 struct sk_buff *tx_skb, *rx_skb; member 404 if (!dev->rx_skb) in read_bulk_callback() 413 skb_put(dev->rx_skb, pkt_len); in read_bulk_callback() 414 dev->rx_skb->protocol = eth_type_trans(dev->rx_skb, netdev); in read_bulk_callback() 415 netif_rx(dev->rx_skb); in read_bulk_callback() 425 dev->rx_skb = skb; in read_bulk_callback() 428 dev->rx_skb->data, RTL8150_MTU, read_bulk_callback, dev); in read_bulk_callback() 590 if (dev->rx_skb) in rx_fixup() 597 dev->rx_skb = skb; in rx_fixup() 599 dev->rx_skb->data, RTL8150_MTU, read_bulk_callback, dev); in rx_fixup() [all …]
|
D | pegasus.c | 511 pegasus->rx_skb->data += 2; in read_bulk_callback() 530 skb_put(pegasus->rx_skb, pkt_len); in read_bulk_callback() 531 pegasus->rx_skb->protocol = eth_type_trans(pegasus->rx_skb, net); in read_bulk_callback() 532 netif_rx(pegasus->rx_skb); in read_bulk_callback() 539 pegasus->rx_skb = __netdev_alloc_skb_ip_align(pegasus->net, PEGASUS_MTU, in read_bulk_callback() 542 if (pegasus->rx_skb == NULL) in read_bulk_callback() 547 pegasus->rx_skb->data, PEGASUS_MTU, in read_bulk_callback() 574 if (pegasus->rx_skb) in rx_fixup() 576 if (pegasus->rx_skb == NULL) in rx_fixup() 577 pegasus->rx_skb = __netdev_alloc_skb_ip_align(pegasus->net, in rx_fixup() [all …]
|
/linux-6.1.9/drivers/net/ |
D | rionet.c | 53 struct sk_buff *rx_skb[RIONET_RX_RING_SIZE]; member 102 if (!rnet->rx_skb[i]) in rionet_rx_clean() 108 rnet->rx_skb[i]->data = data; in rionet_rx_clean() 109 skb_put(rnet->rx_skb[i], RIO_MAX_MSG_SIZE); in rionet_rx_clean() 110 rnet->rx_skb[i]->protocol = in rionet_rx_clean() 111 eth_type_trans(rnet->rx_skb[i], ndev); in rionet_rx_clean() 112 error = __netif_rx(rnet->rx_skb[i]); in rionet_rx_clean() 133 rnet->rx_skb[i] = dev_alloc_skb(RIO_MAX_MSG_SIZE); in rionet_rx_fill() 135 if (!rnet->rx_skb[i]) in rionet_rx_fill() 139 rnet->rx_skb[i]->data); in rionet_rx_fill() [all …]
|
D | sb1000.c | 68 struct sk_buff *rx_skb[NPIDS]; member 796 skb = lp->rx_skb[ns]; in sb1000_rx() 850 lp->rx_skb[ns] = skb; in sb1000_rx() 863 skb = lp->rx_skb[ns]; in sb1000_rx() 878 lp->rx_skb[ns] = NULL; in sb1000_rx() 894 if ((skb = lp->rx_skb[ns])) { in sb1000_rx() 896 lp->rx_skb[ns] = NULL; in sb1000_rx() 952 lp->rx_skb[0] = NULL; in sb1000_open() 953 lp->rx_skb[1] = NULL; in sb1000_open() 954 lp->rx_skb[2] = NULL; in sb1000_open() [all …]
|