/Linux-v4.19/drivers/net/ethernet/intel/i40evf/ |
D | i40e_txrx.c | 1185 static bool i40e_can_reuse_rx_page(struct i40e_rx_buffer *rx_buffer) in i40e_can_reuse_rx_page() argument 1187 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in i40e_can_reuse_rx_page() 1188 struct page *page = rx_buffer->page; in i40e_can_reuse_rx_page() 1201 if (rx_buffer->page_offset > I40E_LAST_OFFSET) in i40e_can_reuse_rx_page() 1211 rx_buffer->pagecnt_bias = USHRT_MAX; in i40e_can_reuse_rx_page() 1230 struct i40e_rx_buffer *rx_buffer, in i40e_add_rx_frag() argument 1240 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in i40e_add_rx_frag() 1241 rx_buffer->page_offset, size, truesize); in i40e_add_rx_frag() 1245 rx_buffer->page_offset ^= truesize; in i40e_add_rx_frag() 1247 rx_buffer->page_offset += truesize; in i40e_add_rx_frag() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 1283 struct i40e_rx_buffer *rx_buffer; in i40e_clean_programming_status() local 1288 rx_buffer = &rx_ring->rx_bi[ntc++]; in i40e_clean_programming_status() 1295 i40e_reuse_rx_page(rx_ring, rx_buffer); in i40e_clean_programming_status() 1299 rx_buffer->page = NULL; in i40e_clean_programming_status() 1912 static bool i40e_can_reuse_rx_page(struct i40e_rx_buffer *rx_buffer) in i40e_can_reuse_rx_page() argument 1914 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in i40e_can_reuse_rx_page() 1915 struct page *page = rx_buffer->page; in i40e_can_reuse_rx_page() 1928 if (rx_buffer->page_offset > I40E_LAST_OFFSET) in i40e_can_reuse_rx_page() 1938 rx_buffer->pagecnt_bias = USHRT_MAX; in i40e_can_reuse_rx_page() 1957 struct i40e_rx_buffer *rx_buffer, in i40e_add_rx_frag() argument [all …]
|
/Linux-v4.19/drivers/net/ethernet/dec/tulip/ |
D | xircom_cb.c | 79 __le32 *rx_buffer; member 234 private->rx_buffer = dma_alloc_coherent(d, 8192, in xircom_probe() 237 if (private->rx_buffer == NULL) in xircom_probe() 292 dma_free_coherent(d, 8192, private->rx_buffer, private->rx_dma_handle); in xircom_probe() 318 dma_free_coherent(d, 8192, card->rx_buffer, card->rx_dma_handle); in xircom_remove() 340 card->rx_buffer[0], card->rx_buffer[4]); in xircom_interrupt() 566 BUG_ON(card->rx_buffer == NULL); in setup_descriptors() 570 memset(card->rx_buffer, 0, 128); /* clear the descriptors */ in setup_descriptors() 574 card->rx_buffer[i*4 + 0] = cpu_to_le32(0x80000000); in setup_descriptors() 576 card->rx_buffer[i*4 + 1] = cpu_to_le32(1536); in setup_descriptors() [all …]
|
/Linux-v4.19/drivers/mailbox/ |
D | mailbox-test.c | 42 char *rx_buffer; member 211 ptr = tdev->rx_buffer; in mbox_test_message_read() 224 memset(tdev->rx_buffer, 0, MBOX_MAX_MSG_LEN); in mbox_test_message_read() 287 memcpy_fromio(tdev->rx_buffer, tdev->rx_mmio, MBOX_MAX_MSG_LEN); in mbox_test_receive_message() 289 tdev->rx_buffer, MBOX_MAX_MSG_LEN); in mbox_test_receive_message() 293 memcpy(tdev->rx_buffer, message, MBOX_MAX_MSG_LEN); in mbox_test_receive_message() 399 tdev->rx_buffer = devm_kzalloc(&pdev->dev, in mbox_test_probe() 401 if (!tdev->rx_buffer) in mbox_test_probe()
|
/Linux-v4.19/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 113 static bool ixgbevf_can_reuse_rx_page(struct ixgbevf_rx_buffer *rx_buffer); 526 struct ixgbevf_rx_buffer *rx_buffer; in ixgbevf_get_rx_buffer() local 528 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbevf_get_rx_buffer() 529 prefetchw(rx_buffer->page); in ixgbevf_get_rx_buffer() 533 rx_buffer->dma, in ixgbevf_get_rx_buffer() 534 rx_buffer->page_offset, in ixgbevf_get_rx_buffer() 538 rx_buffer->pagecnt_bias--; in ixgbevf_get_rx_buffer() 540 return rx_buffer; in ixgbevf_get_rx_buffer() 544 struct ixgbevf_rx_buffer *rx_buffer, in ixgbevf_put_rx_buffer() argument 547 if (ixgbevf_can_reuse_rx_page(rx_buffer)) { in ixgbevf_put_rx_buffer() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 121 bi = &rx_ring->rx_buffer[i]; in fm10k_alloc_rx_buffers() 138 bi = rx_ring->rx_buffer; in fm10k_alloc_rx_buffers() 182 new_buff = &rx_ring->rx_buffer[nta]; in fm10k_reuse_rx_page() 203 static bool fm10k_can_reuse_rx_page(struct fm10k_rx_buffer *rx_buffer, in fm10k_can_reuse_rx_page() argument 217 rx_buffer->page_offset ^= FM10K_RX_BUFSZ; in fm10k_can_reuse_rx_page() 220 rx_buffer->page_offset += truesize; in fm10k_can_reuse_rx_page() 222 if (rx_buffer->page_offset > (PAGE_SIZE - FM10K_RX_BUFSZ)) in fm10k_can_reuse_rx_page() 249 static bool fm10k_add_rx_frag(struct fm10k_rx_buffer *rx_buffer, in fm10k_add_rx_frag() argument 254 struct page *page = rx_buffer->page; in fm10k_add_rx_frag() 255 unsigned char *va = page_address(page) + rx_buffer->page_offset; in fm10k_add_rx_frag() [all …]
|
D | fm10k_netdev.c | 90 rx_ring->rx_buffer = vzalloc(size); in fm10k_setup_rx_resources() 91 if (!rx_ring->rx_buffer) in fm10k_setup_rx_resources() 107 vfree(rx_ring->rx_buffer); in fm10k_setup_rx_resources() 108 rx_ring->rx_buffer = NULL; in fm10k_setup_rx_resources() 253 if (!rx_ring->rx_buffer) in fm10k_clean_rx_ring() 262 struct fm10k_rx_buffer *buffer = &rx_ring->rx_buffer[i]; in fm10k_clean_rx_ring() 275 memset(rx_ring->rx_buffer, 0, size); in fm10k_clean_rx_ring() 295 vfree(rx_ring->rx_buffer); in fm10k_free_rx_resources() 296 rx_ring->rx_buffer = NULL; in fm10k_free_rx_resources()
|
/Linux-v4.19/drivers/media/dvb-core/ |
D | dvb_ca_en50221.c | 117 struct dvb_ringbuffer rx_buffer; member 173 vfree(ca->slot_info[i].rx_buffer.data); in dvb_ca_private_free() 657 if (!sl->rx_buffer.data) { in dvb_ca_en50221_read_data() 661 buf_free = dvb_ringbuffer_free(&sl->rx_buffer); in dvb_ca_en50221_read_data() 761 if (!sl->rx_buffer.data) { in dvb_ca_en50221_read_data() 765 dvb_ringbuffer_pkt_write(&sl->rx_buffer, buf, bytes_read); in dvb_ca_en50221_read_data() 1242 if (!sl->rx_buffer.data) { in dvb_ca_en50221_thread_state_machine() 1251 dvb_ringbuffer_init(&sl->rx_buffer, rxbuf, in dvb_ca_en50221_thread_state_machine() 1564 if (!sl->rx_buffer.data) in dvb_ca_en50221_io_read_condition() 1567 idx = dvb_ringbuffer_pkt_next(&sl->rx_buffer, -1, &fraglen); in dvb_ca_en50221_io_read_condition() [all …]
|
/Linux-v4.19/drivers/spi/ |
D | spidev.c | 86 u8 *rx_buffer; member 139 .rx_buf = spidev->rx_buffer, in spidev_sync_read() 170 missing = copy_to_user(buf, spidev->rx_buffer, status); in spidev_read() 228 rx_buf = spidev->rx_buffer; in spidev_message() 300 rx_buf = spidev->rx_buffer; in spidev_message() 583 if (!spidev->rx_buffer) { in spidev_open() 584 spidev->rx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open() 585 if (!spidev->rx_buffer) { in spidev_open() 623 kfree(spidev->rx_buffer); in spidev_release() 624 spidev->rx_buffer = NULL; in spidev_release()
|
/Linux-v4.19/drivers/net/wireless/ti/wl1251/ |
D | rx.c | 152 u8 *rx_buffer, beacon = 0; in wl1251_rx_body() local 179 rx_buffer = skb_put(skb, length); in wl1251_rx_body() 180 wl1251_mem_read(wl, rx_packet_ring_addr, rx_buffer, length); in wl1251_rx_body()
|
/Linux-v4.19/drivers/tty/serial/ |
D | ifx6x60.c | 652 ifx_dev->swap_buf(ifx_dev->rx_buffer, IFX_SPI_HEADER_OVERHEAD, in ifx_spi_complete() 653 &ifx_dev->rx_buffer[IFX_SPI_HEADER_OVERHEAD]); in ifx_spi_complete() 654 decode_result = ifx_spi_decode_spi_header(ifx_dev->rx_buffer, in ifx_spi_complete() 672 (ifx_dev->rx_buffer + IFX_SPI_HEADER_OVERHEAD), in ifx_spi_complete() 674 &ifx_dev->rx_buffer[IFX_SPI_TRANSFER_SIZE]); in ifx_spi_complete() 677 ifx_dev->rx_buffer + IFX_SPI_HEADER_OVERHEAD, in ifx_spi_complete() 757 ifx_dev->spi_xfer.rx_buf = ifx_dev->rx_buffer; in ifx_spi_io() 937 ifx_dev->rx_buffer, in ifx_spi_free_device() 1056 ifx_dev->rx_buffer = dma_alloc_coherent(ifx_dev->spi_dev->dev.parent, in ifx_spi_spi_probe() 1060 if (!ifx_dev->rx_buffer) { in ifx_spi_spi_probe()
|
D | ifx6x60.h | 83 unsigned char *rx_buffer; member
|
/Linux-v4.19/drivers/net/ethernet/qualcomm/ |
D | qca_spi.c | 368 bytes_read = qcaspi_read_legacy(qca, qca->rx_buffer, in qcaspi_receive() 371 bytes_read = qcaspi_read_burst(qca, qca->rx_buffer, in qcaspi_receive() 385 cp = qca->rx_buffer; in qcaspi_receive() 797 qca->rx_buffer = kmalloc(qca->buffer_size, GFP_KERNEL); in qcaspi_netdev_init() 798 if (!qca->rx_buffer) in qcaspi_netdev_init() 804 kfree(qca->rx_buffer); in qcaspi_netdev_init() 817 kfree(qca->rx_buffer); in qcaspi_netdev_uninit()
|
D | qca_spi.h | 86 u8 *rx_buffer; member
|
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 1943 static bool ixgbe_can_reuse_rx_page(struct ixgbe_rx_buffer *rx_buffer) in ixgbe_can_reuse_rx_page() argument 1945 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in ixgbe_can_reuse_rx_page() 1946 struct page *page = rx_buffer->page; in ixgbe_can_reuse_rx_page() 1964 if (rx_buffer->page_offset > IXGBE_LAST_OFFSET) in ixgbe_can_reuse_rx_page() 1974 rx_buffer->pagecnt_bias = USHRT_MAX; in ixgbe_can_reuse_rx_page() 1996 struct ixgbe_rx_buffer *rx_buffer, in ixgbe_add_rx_frag() argument 2007 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in ixgbe_add_rx_frag() 2008 rx_buffer->page_offset, size, truesize); in ixgbe_add_rx_frag() 2010 rx_buffer->page_offset ^= truesize; in ixgbe_add_rx_frag() 2012 rx_buffer->page_offset += truesize; in ixgbe_add_rx_frag() [all …]
|
D | ixgbe_ethtool.c | 1864 static bool ixgbe_check_lbtest_frame(struct ixgbe_rx_buffer *rx_buffer, in ixgbe_check_lbtest_frame() argument 1872 data = kmap(rx_buffer->page) + rx_buffer->page_offset; in ixgbe_check_lbtest_frame() 1879 kunmap(rx_buffer->page); in ixgbe_check_lbtest_frame() 1926 struct ixgbe_rx_buffer *rx_buffer; in ixgbe_clean_test_rings() local 1929 rx_buffer = &rx_ring->rx_buffer_info[rx_ntc]; in ixgbe_clean_test_rings() 1933 rx_buffer->dma, in ixgbe_clean_test_rings() 1938 if (ixgbe_check_lbtest_frame(rx_buffer, size)) in ixgbe_clean_test_rings() 1945 rx_buffer->dma, in ixgbe_clean_test_rings()
|
/Linux-v4.19/drivers/staging/wilc1000/ |
D | wilc_wlan.c | 839 buffer = &wilc->rx_buffer[offset]; in wilc_wlan_handle_isr_ext() 1094 kfree(wilc->rx_buffer); in wilc_wlan_cleanup() 1095 wilc->rx_buffer = NULL; in wilc_wlan_cleanup() 1355 if (!wilc->rx_buffer) in wilc_wlan_init() 1356 wilc->rx_buffer = kmalloc(LINUX_RX_SIZE, GFP_KERNEL); in wilc_wlan_init() 1358 if (!wilc->rx_buffer) { in wilc_wlan_init() 1372 kfree(wilc->rx_buffer); in wilc_wlan_init() 1373 wilc->rx_buffer = NULL; in wilc_wlan_init()
|
D | wilc_wfi_netdevice.h | 154 u8 *rx_buffer; member
|
/Linux-v4.19/drivers/staging/pi433/ |
D | pi433_if.c | 100 u8 *rx_buffer; member 542 &dev->rx_buffer[dev->rx_position], in pi433_receive() 815 retval = copy_to_user(buf, device->rx_buffer, bytes_received); in pi433_read() 1171 device->rx_buffer = kmalloc(MAX_MSG_SIZE, GFP_KERNEL); in pi433_probe() 1172 if (!device->rx_buffer) { in pi433_probe() 1280 kfree(device->rx_buffer); in pi433_probe() 1305 kfree(device->rx_buffer); in pi433_remove()
|
/Linux-v4.19/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 7968 static bool igb_can_reuse_rx_page(struct igb_rx_buffer *rx_buffer) in igb_can_reuse_rx_page() argument 7970 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in igb_can_reuse_rx_page() 7971 struct page *page = rx_buffer->page; in igb_can_reuse_rx_page() 7985 if (rx_buffer->page_offset > IGB_LAST_OFFSET) in igb_can_reuse_rx_page() 7995 rx_buffer->pagecnt_bias = USHRT_MAX; in igb_can_reuse_rx_page() 8011 struct igb_rx_buffer *rx_buffer, in igb_add_rx_frag() argument 8022 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in igb_add_rx_frag() 8023 rx_buffer->page_offset, size, truesize); in igb_add_rx_frag() 8025 rx_buffer->page_offset ^= truesize; in igb_add_rx_frag() 8027 rx_buffer->page_offset += truesize; in igb_add_rx_frag() [all …]
|
/Linux-v4.19/drivers/staging/ks7010/ |
D | ks7010_sdio.c | 426 struct rx_device_buffer *rx_buffer; in ks_wlan_hw_rx() local 435 rx_buffer = &priv->rx_dev.rx_dev_buff[priv->rx_dev.qtail]; in ks_wlan_hw_rx() 437 ret = ks7010_sdio_read(priv, DATA_WINDOW, &rx_buffer->data[0], in ks_wlan_hw_rx() 447 rx_buffer->data, 32); in ks_wlan_hw_rx() 457 hdr = (struct hostif_hdr *)&rx_buffer->data[0]; in ks_wlan_hw_rx() 458 rx_buffer->size = le16_to_cpu(hdr->size) + sizeof(hdr->size); in ks_wlan_hw_rx()
|
/Linux-v4.19/drivers/net/wan/ |
D | fsl_ucc_hdlc.h | 84 u8 *rx_buffer; member
|
D | fsl_ucc_hdlc.c | 286 priv->rx_buffer = bd_buffer; in uhdlc_init() 493 bdbuffer = priv->rx_buffer + in hdlc_rx_done() 728 if (priv->rx_buffer) { in uhdlc_memclean() 731 priv->rx_buffer, priv->dma_rx_addr); in uhdlc_memclean() 732 priv->rx_buffer = NULL; in uhdlc_memclean()
|
/Linux-v4.19/drivers/net/ethernet/ti/ |
D | tlan.h | 181 u8 *rx_buffer; member
|
/Linux-v4.19/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe.h | 437 unsigned char *rx_buffer; member
|