/Linux-v5.10/drivers/net/ethernet/intel/iavf/ |
D | iavf_txrx.c | 1184 static bool iavf_can_reuse_rx_page(struct iavf_rx_buffer *rx_buffer) in iavf_can_reuse_rx_page() argument 1186 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in iavf_can_reuse_rx_page() 1187 struct page *page = rx_buffer->page; in iavf_can_reuse_rx_page() 1200 if (rx_buffer->page_offset > IAVF_LAST_OFFSET) in iavf_can_reuse_rx_page() 1210 rx_buffer->pagecnt_bias = USHRT_MAX; in iavf_can_reuse_rx_page() 1229 struct iavf_rx_buffer *rx_buffer, in iavf_add_rx_frag() argument 1242 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in iavf_add_rx_frag() 1243 rx_buffer->page_offset, size, truesize); in iavf_add_rx_frag() 1247 rx_buffer->page_offset ^= truesize; in iavf_add_rx_frag() 1249 rx_buffer->page_offset += truesize; in iavf_add_rx_frag() [all …]
|
/Linux-v5.10/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-v5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 1876 static bool i40e_can_reuse_rx_page(struct i40e_rx_buffer *rx_buffer, in i40e_can_reuse_rx_page() argument 1879 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in i40e_can_reuse_rx_page() 1880 struct page *page = rx_buffer->page; in i40e_can_reuse_rx_page() 1893 if (rx_buffer->page_offset > I40E_LAST_OFFSET) in i40e_can_reuse_rx_page() 1903 rx_buffer->pagecnt_bias = USHRT_MAX; in i40e_can_reuse_rx_page() 1922 struct i40e_rx_buffer *rx_buffer, in i40e_add_rx_frag() argument 1932 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in i40e_add_rx_frag() 1933 rx_buffer->page_offset, size, truesize); in i40e_add_rx_frag() 1937 rx_buffer->page_offset ^= truesize; in i40e_add_rx_frag() 1939 rx_buffer->page_offset += truesize; in i40e_add_rx_frag() [all …]
|
/Linux-v5.10/drivers/mailbox/ |
D | mailbox-test.c | 37 char *rx_buffer; member 207 ptr = tdev->rx_buffer; in mbox_test_message_read() 220 memset(tdev->rx_buffer, 0, MBOX_MAX_MSG_LEN); in mbox_test_message_read() 283 memcpy_fromio(tdev->rx_buffer, tdev->rx_mmio, MBOX_MAX_MSG_LEN); in mbox_test_receive_message() 285 tdev->rx_buffer, MBOX_MAX_MSG_LEN); in mbox_test_receive_message() 289 memcpy(tdev->rx_buffer, message, MBOX_MAX_MSG_LEN); in mbox_test_receive_message() 397 tdev->rx_buffer = devm_kzalloc(&pdev->dev, in mbox_test_probe() 399 if (!tdev->rx_buffer) in mbox_test_probe()
|
/Linux-v5.10/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 120 bi = &rx_ring->rx_buffer[i]; in fm10k_alloc_rx_buffers() 137 bi = rx_ring->rx_buffer; in fm10k_alloc_rx_buffers() 181 new_buff = &rx_ring->rx_buffer[nta]; in fm10k_reuse_rx_page() 202 static bool fm10k_can_reuse_rx_page(struct fm10k_rx_buffer *rx_buffer, in fm10k_can_reuse_rx_page() argument 216 rx_buffer->page_offset ^= FM10K_RX_BUFSZ; in fm10k_can_reuse_rx_page() 219 rx_buffer->page_offset += truesize; in fm10k_can_reuse_rx_page() 221 if (rx_buffer->page_offset > (PAGE_SIZE - FM10K_RX_BUFSZ)) in fm10k_can_reuse_rx_page() 248 static bool fm10k_add_rx_frag(struct fm10k_rx_buffer *rx_buffer, in fm10k_add_rx_frag() argument 253 struct page *page = rx_buffer->page; in fm10k_add_rx_frag() 254 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() 261 struct fm10k_rx_buffer *buffer = &rx_ring->rx_buffer[i]; in fm10k_clean_rx_ring() 274 memset(rx_ring->rx_buffer, 0, size); in fm10k_clean_rx_ring() 294 vfree(rx_ring->rx_buffer); in fm10k_free_rx_resources() 295 rx_ring->rx_buffer = NULL; in fm10k_free_rx_resources()
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 111 static bool ixgbevf_can_reuse_rx_page(struct ixgbevf_rx_buffer *rx_buffer); 531 struct ixgbevf_rx_buffer *rx_buffer; in ixgbevf_get_rx_buffer() local 533 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbevf_get_rx_buffer() 534 prefetchw(rx_buffer->page); in ixgbevf_get_rx_buffer() 538 rx_buffer->dma, in ixgbevf_get_rx_buffer() 539 rx_buffer->page_offset, in ixgbevf_get_rx_buffer() 543 rx_buffer->pagecnt_bias--; in ixgbevf_get_rx_buffer() 545 return rx_buffer; in ixgbevf_get_rx_buffer() 549 struct ixgbevf_rx_buffer *rx_buffer, in ixgbevf_put_rx_buffer() argument 552 if (ixgbevf_can_reuse_rx_page(rx_buffer)) { in ixgbevf_put_rx_buffer() [all …]
|
/Linux-v5.10/drivers/media/dvb-core/ |
D | dvb_ca_en50221.c | 106 struct dvb_ringbuffer rx_buffer; member 162 vfree(ca->slot_info[i].rx_buffer.data); in dvb_ca_private_free() 646 if (!sl->rx_buffer.data) { in dvb_ca_en50221_read_data() 650 buf_free = dvb_ringbuffer_free(&sl->rx_buffer); in dvb_ca_en50221_read_data() 750 if (!sl->rx_buffer.data) { in dvb_ca_en50221_read_data() 754 dvb_ringbuffer_pkt_write(&sl->rx_buffer, buf, bytes_read); in dvb_ca_en50221_read_data() 1231 if (!sl->rx_buffer.data) { in dvb_ca_en50221_thread_state_machine() 1240 dvb_ringbuffer_init(&sl->rx_buffer, rxbuf, in dvb_ca_en50221_thread_state_machine() 1553 if (!sl->rx_buffer.data) in dvb_ca_en50221_io_read_condition() 1556 idx = dvb_ringbuffer_pkt_next(&sl->rx_buffer, -1, &fraglen); in dvb_ca_en50221_io_read_condition() [all …]
|
/Linux-v5.10/drivers/spi/ |
D | spidev.c | 78 u8 *rx_buffer; member 131 .rx_buf = spidev->rx_buffer, in spidev_sync_read() 162 missing = copy_to_user(buf, spidev->rx_buffer, status); in spidev_read() 220 rx_buf = spidev->rx_buffer; in spidev_message() 590 if (!spidev->rx_buffer) { in spidev_open() 591 spidev->rx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open() 592 if (!spidev->rx_buffer) { in spidev_open() 635 kfree(spidev->rx_buffer); in spidev_release() 636 spidev->rx_buffer = NULL; in spidev_release()
|
/Linux-v5.10/drivers/net/wireless/ti/wl1251/ |
D | rx.c | 138 u8 *rx_buffer, beacon = 0; in wl1251_rx_body() local 165 rx_buffer = skb_put(skb, length); in wl1251_rx_body() 166 wl1251_mem_read(wl, rx_packet_ring_addr, rx_buffer, length); in wl1251_rx_body()
|
/Linux-v5.10/drivers/net/ethernet/intel/igc/ |
D | igc_main.c | 1496 struct igc_rx_buffer *rx_buffer; in igc_get_rx_buffer() local 1498 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in igc_get_rx_buffer() 1499 prefetchw(rx_buffer->page); in igc_get_rx_buffer() 1503 rx_buffer->dma, in igc_get_rx_buffer() 1504 rx_buffer->page_offset, in igc_get_rx_buffer() 1508 rx_buffer->pagecnt_bias--; in igc_get_rx_buffer() 1510 return rx_buffer; in igc_get_rx_buffer() 1523 struct igc_rx_buffer *rx_buffer, in igc_add_rx_frag() argument 1530 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in igc_add_rx_frag() 1531 rx_buffer->page_offset, size, truesize); in igc_add_rx_frag() [all …]
|
/Linux-v5.10/drivers/tty/serial/ |
D | ifx6x60.c | 650 ifx_dev->swap_buf(ifx_dev->rx_buffer, IFX_SPI_HEADER_OVERHEAD, in ifx_spi_complete() 651 &ifx_dev->rx_buffer[IFX_SPI_HEADER_OVERHEAD]); in ifx_spi_complete() 652 decode_result = ifx_spi_decode_spi_header(ifx_dev->rx_buffer, in ifx_spi_complete() 670 (ifx_dev->rx_buffer + IFX_SPI_HEADER_OVERHEAD), in ifx_spi_complete() 672 &ifx_dev->rx_buffer[IFX_SPI_TRANSFER_SIZE]); in ifx_spi_complete() 675 ifx_dev->rx_buffer + IFX_SPI_HEADER_OVERHEAD, in ifx_spi_complete() 756 ifx_dev->spi_xfer.rx_buf = ifx_dev->rx_buffer; in ifx_spi_io() 936 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 | 85 unsigned char *rx_buffer; member
|
/Linux-v5.10/drivers/net/ethernet/qualcomm/ |
D | qca_spi.c | 389 bytes_read = qcaspi_read_legacy(qca, qca->rx_buffer, in qcaspi_receive() 392 bytes_read = qcaspi_read_burst(qca, qca->rx_buffer, in qcaspi_receive() 406 cp = qca->rx_buffer; in qcaspi_receive() 817 qca->rx_buffer = kmalloc(qca->buffer_size, GFP_KERNEL); in qcaspi_netdev_init() 818 if (!qca->rx_buffer) in qcaspi_netdev_init() 824 kfree(qca->rx_buffer); in qcaspi_netdev_init() 837 kfree(qca->rx_buffer); in qcaspi_netdev_uninit()
|
D | qca_spi.h | 88 u8 *rx_buffer; member
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 1948 static bool ixgbe_can_reuse_rx_page(struct ixgbe_rx_buffer *rx_buffer, in ixgbe_can_reuse_rx_page() argument 1951 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in ixgbe_can_reuse_rx_page() 1952 struct page *page = rx_buffer->page; in ixgbe_can_reuse_rx_page() 1970 if (rx_buffer->page_offset > IXGBE_LAST_OFFSET) in ixgbe_can_reuse_rx_page() 1980 rx_buffer->pagecnt_bias = USHRT_MAX; in ixgbe_can_reuse_rx_page() 2002 struct ixgbe_rx_buffer *rx_buffer, in ixgbe_add_rx_frag() argument 2013 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in ixgbe_add_rx_frag() 2014 rx_buffer->page_offset, size, truesize); in ixgbe_add_rx_frag() 2016 rx_buffer->page_offset ^= truesize; in ixgbe_add_rx_frag() 2018 rx_buffer->page_offset += truesize; in ixgbe_add_rx_frag() [all …]
|
/Linux-v5.10/drivers/net/wireless/microchip/wilc1000/ |
D | wlan.c | 777 buffer = &wilc->rx_buffer[offset]; in wilc_wlan_handle_isr_ext() 972 kfree(wilc->rx_buffer); in wilc_wlan_cleanup() 973 wilc->rx_buffer = NULL; in wilc_wlan_cleanup() 1215 if (!wilc->rx_buffer) in wilc_wlan_init() 1216 wilc->rx_buffer = kmalloc(WILC_RX_BUFF_SIZE, GFP_KERNEL); in wilc_wlan_init() 1218 if (!wilc->rx_buffer) { in wilc_wlan_init() 1232 kfree(wilc->rx_buffer); in wilc_wlan_init() 1233 wilc->rx_buffer = NULL; in wilc_wlan_init()
|
D | netdev.h | 244 u8 *rx_buffer; member
|
/Linux-v5.10/drivers/staging/pi433/ |
D | pi433_if.c | 90 u8 *rx_buffer; member 528 &dev->rx_buffer[dev->rx_position], in pi433_receive() 799 retval = copy_to_user(buf, device->rx_buffer, bytes_received); in pi433_read() 1144 device->rx_buffer = kmalloc(MAX_MSG_SIZE, GFP_KERNEL); in pi433_probe() 1145 if (!device->rx_buffer) { in pi433_probe() 1260 kfree(device->rx_buffer); in pi433_probe() 1285 kfree(device->rx_buffer); in pi433_remove()
|
/Linux-v5.10/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 8235 static bool igb_can_reuse_rx_page(struct igb_rx_buffer *rx_buffer) in igb_can_reuse_rx_page() argument 8237 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in igb_can_reuse_rx_page() 8238 struct page *page = rx_buffer->page; in igb_can_reuse_rx_page() 8252 if (rx_buffer->page_offset > IGB_LAST_OFFSET) in igb_can_reuse_rx_page() 8262 rx_buffer->pagecnt_bias = USHRT_MAX; in igb_can_reuse_rx_page() 8278 struct igb_rx_buffer *rx_buffer, in igb_add_rx_frag() argument 8289 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in igb_add_rx_frag() 8290 rx_buffer->page_offset, size, truesize); in igb_add_rx_frag() 8292 rx_buffer->page_offset ^= truesize; in igb_add_rx_frag() 8294 rx_buffer->page_offset += truesize; in igb_add_rx_frag() [all …]
|
/Linux-v5.10/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() 458 hdr = (struct hostif_hdr *)&rx_buffer->data[0]; in ks_wlan_hw_rx() 459 rx_buffer->size = le16_to_cpu(hdr->size) + sizeof(hdr->size); in ks_wlan_hw_rx()
|
/Linux-v5.10/drivers/net/wan/ |
D | fsl_ucc_hdlc.h | 80 u8 *rx_buffer; member
|
D | fsl_ucc_hdlc.c | 293 priv->rx_buffer = bd_buffer; in uhdlc_init() 546 bdbuffer = priv->rx_buffer + in hdlc_rx_done() 781 if (priv->rx_buffer) { in uhdlc_memclean() 784 priv->rx_buffer, priv->dma_rx_addr); in uhdlc_memclean() 785 priv->rx_buffer = NULL; in uhdlc_memclean()
|
/Linux-v5.10/drivers/input/keyboard/ |
D | applespi.c | 368 u8 *rx_buffer; member 550 rd_t->rx_buf = applespi->rx_buffer; in applespi_setup_read_txfrs() 1391 applespi_get_trace_fun(evt_type)(evt_type, PT_READ, applespi->rx_buffer, in applespi_debug_print_read_packet() 1405 if (!applespi_verify_crc(applespi, applespi->rx_buffer, in applespi_got_data() 1423 packet = (struct spi_packet *)applespi->rx_buffer; in applespi_got_data() 1657 applespi->rx_buffer = devm_kmalloc(&spi->dev, APPLESPI_PACKET_SIZE, in applespi_probe() 1664 !applespi->rx_buffer || !applespi->msg_buf) in applespi_probe()
|
/Linux-v5.10/drivers/net/ethernet/ti/ |
D | tlan.h | 181 u8 *rx_buffer; member
|