/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 388 if (!info->rx_skb) { in bluecard_receive() 391 info->rx_skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC); in bluecard_receive() 392 if (!info->rx_skb) { in bluecard_receive() 400 hci_skb_pkt_type(info->rx_skb) = buf[i]; in bluecard_receive() 402 switch (hci_skb_pkt_type(info->rx_skb)) { in bluecard_receive() 413 kfree_skb(info->rx_skb); in bluecard_receive() 414 info->rx_skb = NULL; in bluecard_receive() 435 hci_skb_pkt_type(info->rx_skb)); in bluecard_receive() 438 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 80 kfree_skb(h4->rx_skb); in h4_close() 116 h4->rx_skb = h4_recv_buf(hu->hdev, h4->rx_skb, data, count, in h4_recv() 118 if (IS_ERR(h4->rx_skb)) { in h4_recv() 119 int err = PTR_ERR(h4->rx_skb); in h4_recv() 121 h4->rx_skb = NULL; in h4_recv()
|
D | hci_h5.c | 67 struct sk_buff *rx_skb; /* Receive buffer */ member 318 const unsigned char *hdr = h5->rx_skb->data; in h5_handle_internal_rx() 319 const unsigned char *data = &h5->rx_skb->data[4]; in h5_handle_internal_rx() 372 const unsigned char *hdr = h5->rx_skb->data; in h5_complete_rx_pkt() 388 hci_skb_pkt_type(h5->rx_skb) = H5_HDR_PKT_TYPE(hdr); in h5_complete_rx_pkt() 391 skb_pull(h5->rx_skb, 4); in h5_complete_rx_pkt() 393 hci_recv_frame(hu->hdev, h5->rx_skb); in h5_complete_rx_pkt() 394 h5->rx_skb = NULL; in h5_complete_rx_pkt() 416 const unsigned char *hdr = h5->rx_skb->data; in h5_rx_payload() 431 const unsigned char *hdr = h5->rx_skb->data; in h5_rx_3wire_hdr() [all …]
|
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_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()
|
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()
|
/drivers/net/wimax/i2400m/ |
D | usb-rx.c | 192 struct sk_buff *i2400mu_rx(struct i2400mu *i2400mu, struct sk_buff *rx_skb) in i2400mu_rx() argument 211 rx_size = skb_end_pointer(rx_skb) - rx_skb->data - rx_skb->len; in i2400mu_rx() 217 i2400mu->usb_dev, usb_pipe, rx_skb->data + rx_skb->len, in i2400mu_rx() 224 skb_put(rx_skb, read_size); in i2400mu_rx() 262 skb_put(rx_skb, read_size); in i2400mu_rx() 263 new_skb = skb_copy_expand(rx_skb, 0, rx_size - rx_skb->len, in i2400mu_rx() 266 kfree_skb(rx_skb); in i2400mu_rx() 267 rx_skb = NULL; in i2400mu_rx() 270 kfree_skb(rx_skb); in i2400mu_rx() 271 rx_skb = new_skb; in i2400mu_rx() [all …]
|
/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 …]
|
/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 qca->rx_skb->ip_summed = CHECKSUM_UNNECESSARY; 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 …]
|
/drivers/misc/ti-st/ |
D | st_core.c | 96 (st_gdata == NULL || st_gdata->rx_skb == NULL in st_send_frame() 100 kfree_skb(st_gdata->rx_skb); in st_send_frame() 111 (st_gdata->list[chnl_id]->priv_data, st_gdata->rx_skb) in st_send_frame() 114 kfree_skb(st_gdata->rx_skb); in st_send_frame() 119 kfree_skb(st_gdata->rx_skb); in st_send_frame() 154 int room = skb_tailroom(st_gdata->rx_skb); in st_check_data_len() 171 kfree_skb(st_gdata->rx_skb); in st_check_data_len() 184 st_gdata->rx_skb = NULL; in st_check_data_len() 252 skb_put_data(st_gdata->rx_skb, ptr, len); in st_int_recv() 270 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() 66 kim_gdata->rx_skb->data, in validate_firmware_response() 67 kim_gdata->rx_skb->len); in validate_firmware_response() 69 kim_gdata->rx_skb = NULL; in validate_firmware_response() 87 register int room = skb_tailroom(kim_gdata->rx_skb); in kim_check_data_len() 99 kfree_skb(kim_gdata->rx_skb); in kim_check_data_len() 112 kim_gdata->rx_skb = NULL; in kim_check_data_len() 142 skb_put_data(kim_gdata->rx_skb, ptr, len); in kim_int_recv() 157 kim_gdata->rx_skb = NULL; in kim_int_recv() 162 (unsigned char *)&kim_gdata->rx_skb->data[1]; in kim_int_recv() [all …]
|
/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()
|
/drivers/isdn/hardware/mISDN/ |
D | hfcsusb.c | 336 if (dch->rx_skb) { in hfcusb_l2l1D() 337 dev_kfree_skb(dch->rx_skb); in hfcusb_l2l1D() 338 dch->rx_skb = NULL; in hfcusb_l2l1D() 385 if (dch->rx_skb) { in hfc_l1callback() 386 dev_kfree_skb(dch->rx_skb); in hfc_l1callback() 387 dch->rx_skb = NULL; in hfc_l1callback() 805 struct sk_buff *rx_skb = NULL; in hfcsusb_rx_frame() local 829 rx_skb = fifo->dch->rx_skb; in hfcsusb_rx_frame() 840 rx_skb = fifo->bch->rx_skb; in hfcsusb_rx_frame() 842 if (rx_skb) in hfcsusb_rx_frame() [all …]
|
D | mISDNisar.c | 440 rcv_mbox(ch->is, skb_put(ch->bch.rx_skb, ch->is->clsb)); in isar_rcv_frame() 460 skb_trim(ch->bch.rx_skb, 0); in isar_rcv_frame() 465 skb_trim(ch->bch.rx_skb, 0); in isar_rcv_frame() 466 ptr = skb_put(ch->bch.rx_skb, ch->is->clsb); in isar_rcv_frame() 469 if (ch->bch.rx_skb->len < 3) { /* last 2 are the FCS */ in isar_rcv_frame() 471 ch->is->name, ch->bch.rx_skb->len); in isar_rcv_frame() 472 skb_trim(ch->bch.rx_skb, 0); in isar_rcv_frame() 475 skb_trim(ch->bch.rx_skb, ch->bch.rx_skb->len - 2); in isar_rcv_frame() 484 if (ch->bch.rx_skb) in isar_rcv_frame() 485 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 …]
|
/drivers/net/usb/ |
D | rtl8150.c | 130 struct sk_buff *tx_skb, *rx_skb; member 416 if (!dev->rx_skb) in read_bulk_callback() 425 skb_put(dev->rx_skb, pkt_len); in read_bulk_callback() 426 dev->rx_skb->protocol = eth_type_trans(dev->rx_skb, netdev); in read_bulk_callback() 427 netif_rx(dev->rx_skb); in read_bulk_callback() 437 dev->rx_skb = skb; in read_bulk_callback() 440 dev->rx_skb->data, RTL8150_MTU, read_bulk_callback, dev); in read_bulk_callback() 602 if (dev->rx_skb) in rx_fixup() 609 dev->rx_skb = skb; in rx_fixup() 611 dev->rx_skb->data, RTL8150_MTU, read_bulk_callback, dev); in rx_fixup() [all …]
|
D | pegasus.c | 513 pegasus->rx_skb->data += 2; in read_bulk_callback() 532 skb_put(pegasus->rx_skb, pkt_len); in read_bulk_callback() 533 pegasus->rx_skb->protocol = eth_type_trans(pegasus->rx_skb, net); in read_bulk_callback() 534 netif_rx(pegasus->rx_skb); in read_bulk_callback() 541 pegasus->rx_skb = __netdev_alloc_skb_ip_align(pegasus->net, PEGASUS_MTU, in read_bulk_callback() 544 if (pegasus->rx_skb == NULL) in read_bulk_callback() 549 pegasus->rx_skb->data, PEGASUS_MTU, in read_bulk_callback() 577 if (pegasus->rx_skb) in rx_fixup() 579 if (pegasus->rx_skb == NULL) in rx_fixup() 580 pegasus->rx_skb = __netdev_alloc_skb_ip_align(pegasus->net, in rx_fixup() [all …]
|
/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 …]
|
/drivers/staging/isdn/gigaset/ |
D | isocdata.c | 501 if (bcs->rx_skb == NULL) in hdlc_putbyte() 504 if (bcs->rx_skb->len >= bcs->rx_bufsize) { in hdlc_putbyte() 507 dev_kfree_skb_any(bcs->rx_skb); in hdlc_putbyte() 508 bcs->rx_skb = NULL; in hdlc_putbyte() 511 __skb_put_u8(bcs->rx_skb, c); in hdlc_putbyte() 520 if (bcs->rx_skb != NULL) in hdlc_flush() 521 skb_trim(bcs->rx_skb, 0); in hdlc_flush() 543 procskb = bcs->rx_skb; in hdlc_done() 586 __skb_trim(bcs->rx_skb, 0); in hdlc_frag() 844 skb = bcs->rx_skb; in trans_receive()
|
/drivers/net/ethernet/natsemi/ |
D | sonic.c | 74 dev_kfree_skb(lp->rx_skb[i]); in sonic_open() 75 lp->rx_skb[i] = NULL; in sonic_open() 84 lp->rx_skb[i] = skb; in sonic_open() 88 dma_addr_t laddr = dma_map_single(lp->device, skb_put(lp->rx_skb[i], SONIC_RBSIZE), in sonic_open() 97 dev_kfree_skb(lp->rx_skb[i]); in sonic_open() 98 lp->rx_skb[i] = NULL; in sonic_open() 178 if(lp->rx_skb[i]) { in sonic_close() 179 dev_kfree_skb(lp->rx_skb[i]); in sonic_close() 180 lp->rx_skb[i] = NULL; in sonic_close() 545 struct sk_buff *used_skb = lp->rx_skb[i]; in sonic_rx() [all …]
|