Home
last modified time | relevance | path

Searched refs:rx_buffer (Results 1 – 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_txrx.c1187 static bool iavf_can_reuse_rx_page(struct iavf_rx_buffer *rx_buffer) in iavf_can_reuse_rx_page() argument
1189 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in iavf_can_reuse_rx_page()
1190 struct page *page = rx_buffer->page; in iavf_can_reuse_rx_page()
1203 if (rx_buffer->page_offset > IAVF_LAST_OFFSET) in iavf_can_reuse_rx_page()
1213 rx_buffer->pagecnt_bias = USHRT_MAX; in iavf_can_reuse_rx_page()
1232 struct iavf_rx_buffer *rx_buffer, in iavf_add_rx_frag() argument
1245 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in iavf_add_rx_frag()
1246 rx_buffer->page_offset, size, truesize); in iavf_add_rx_frag()
1250 rx_buffer->page_offset ^= truesize; in iavf_add_rx_frag()
1252 rx_buffer->page_offset += truesize; in iavf_add_rx_frag()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
Dxircom_cb.c79 __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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c1869 static bool i40e_can_reuse_rx_page(struct i40e_rx_buffer *rx_buffer, in i40e_can_reuse_rx_page() argument
1872 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in i40e_can_reuse_rx_page()
1873 struct page *page = rx_buffer->page; in i40e_can_reuse_rx_page()
1886 if (rx_buffer->page_offset > I40E_LAST_OFFSET) in i40e_can_reuse_rx_page()
1896 rx_buffer->pagecnt_bias = USHRT_MAX; in i40e_can_reuse_rx_page()
1915 struct i40e_rx_buffer *rx_buffer, in i40e_add_rx_frag() argument
1925 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in i40e_add_rx_frag()
1926 rx_buffer->page_offset, size, truesize); in i40e_add_rx_frag()
1930 rx_buffer->page_offset ^= truesize; in i40e_add_rx_frag()
1932 rx_buffer->page_offset += truesize; in i40e_add_rx_frag()
[all …]
/kernel/linux/linux-5.10/drivers/mailbox/
Dmailbox-test.c37 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c111 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c128 bi = &rx_ring->rx_buffer[i]; in fm10k_alloc_rx_buffers()
145 bi = rx_ring->rx_buffer; in fm10k_alloc_rx_buffers()
189 new_buff = &rx_ring->rx_buffer[nta]; in fm10k_reuse_rx_page()
210 static bool fm10k_can_reuse_rx_page(struct fm10k_rx_buffer *rx_buffer, in fm10k_can_reuse_rx_page() argument
224 rx_buffer->page_offset ^= FM10K_RX_BUFSZ; in fm10k_can_reuse_rx_page()
227 rx_buffer->page_offset += truesize; in fm10k_can_reuse_rx_page()
229 if (rx_buffer->page_offset > (PAGE_SIZE - FM10K_RX_BUFSZ)) in fm10k_can_reuse_rx_page()
256 static bool fm10k_add_rx_frag(struct fm10k_rx_buffer *rx_buffer, in fm10k_add_rx_frag() argument
261 struct page *page = rx_buffer->page; in fm10k_add_rx_frag()
262 unsigned char *va = page_address(page) + rx_buffer->page_offset; in fm10k_add_rx_frag()
[all …]
Dfm10k_netdev.c90 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()
/kernel/linux/linux-5.10/drivers/media/dvb-core/
Ddvb_ca_en50221.c106 struct dvb_ringbuffer rx_buffer; member
168 vfree(ca->slot_info[i].rx_buffer.data); in dvb_ca_private_free()
652 if (!sl->rx_buffer.data) { in dvb_ca_en50221_read_data()
656 buf_free = dvb_ringbuffer_free(&sl->rx_buffer); in dvb_ca_en50221_read_data()
756 if (!sl->rx_buffer.data) { in dvb_ca_en50221_read_data()
760 dvb_ringbuffer_pkt_write(&sl->rx_buffer, buf, bytes_read); in dvb_ca_en50221_read_data()
1237 if (!sl->rx_buffer.data) { in dvb_ca_en50221_thread_state_machine()
1246 dvb_ringbuffer_init(&sl->rx_buffer, rxbuf, in dvb_ca_en50221_thread_state_machine()
1559 if (!sl->rx_buffer.data) in dvb_ca_en50221_io_read_condition()
1562 idx = dvb_ringbuffer_pkt_next(&sl->rx_buffer, -1, &fraglen); in dvb_ca_en50221_io_read_condition()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspidev.c78 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()
601 if (!spidev->rx_buffer) { in spidev_open()
602 spidev->rx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open()
603 if (!spidev->rx_buffer) { in spidev_open()
646 kfree(spidev->rx_buffer); in spidev_release()
647 spidev->rx_buffer = NULL; in spidev_release()
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/
Drx.c138 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()
/kernel/linux/linux-5.10/drivers/tty/serial/
Difx6x60.c650 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()
Difx6x60.h85 unsigned char *rx_buffer; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_main.c1608 struct igc_rx_buffer *rx_buffer; in igc_get_rx_buffer() local
1610 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in igc_get_rx_buffer()
1611 prefetchw(rx_buffer->page); in igc_get_rx_buffer()
1615 rx_buffer->dma, in igc_get_rx_buffer()
1616 rx_buffer->page_offset, in igc_get_rx_buffer()
1620 rx_buffer->pagecnt_bias--; in igc_get_rx_buffer()
1622 return rx_buffer; in igc_get_rx_buffer()
1635 struct igc_rx_buffer *rx_buffer, in igc_add_rx_frag() argument
1642 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in igc_add_rx_frag()
1643 rx_buffer->page_offset, size, truesize); in igc_add_rx_frag()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/
Dqca_spi.c389 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()
Dqca_spi.h88 u8 *rx_buffer; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c1949 static bool ixgbe_can_reuse_rx_page(struct ixgbe_rx_buffer *rx_buffer, in ixgbe_can_reuse_rx_page() argument
1952 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in ixgbe_can_reuse_rx_page()
1953 struct page *page = rx_buffer->page; in ixgbe_can_reuse_rx_page()
1971 if (rx_buffer->page_offset > IXGBE_LAST_OFFSET) in ixgbe_can_reuse_rx_page()
1981 rx_buffer->pagecnt_bias = USHRT_MAX; in ixgbe_can_reuse_rx_page()
2003 struct ixgbe_rx_buffer *rx_buffer, in ixgbe_add_rx_frag() argument
2014 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in ixgbe_add_rx_frag()
2015 rx_buffer->page_offset, size, truesize); in ixgbe_add_rx_frag()
2017 rx_buffer->page_offset ^= truesize; in ixgbe_add_rx_frag()
2019 rx_buffer->page_offset += truesize; in ixgbe_add_rx_frag()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/microchip/wilc1000/
Dwlan.c777 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()
Dnetdev.h244 u8 *rx_buffer; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
Digb_main.c8264 static bool igb_can_reuse_rx_page(struct igb_rx_buffer *rx_buffer, in igb_can_reuse_rx_page() argument
8267 unsigned int pagecnt_bias = rx_buffer->pagecnt_bias; in igb_can_reuse_rx_page()
8268 struct page *page = rx_buffer->page; in igb_can_reuse_rx_page()
8282 if (rx_buffer->page_offset > IGB_LAST_OFFSET) in igb_can_reuse_rx_page()
8292 rx_buffer->pagecnt_bias = USHRT_MAX; in igb_can_reuse_rx_page()
8308 struct igb_rx_buffer *rx_buffer, in igb_add_rx_frag() argument
8319 skb_add_rx_frag(skb, skb_shinfo(skb)->nr_frags, rx_buffer->page, in igb_add_rx_frag()
8320 rx_buffer->page_offset, size, truesize); in igb_add_rx_frag()
8322 rx_buffer->page_offset ^= truesize; in igb_add_rx_frag()
8324 rx_buffer->page_offset += truesize; in igb_add_rx_frag()
[all …]
/kernel/linux/linux-5.10/drivers/staging/pi433/
Dpi433_if.c90 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()
/kernel/linux/linux-5.10/drivers/staging/ks7010/
Dks7010_sdio.c426 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()
/kernel/linux/linux-5.10/drivers/net/wan/
Dfsl_ucc_hdlc.h80 u8 *rx_buffer; member
Dfsl_ucc_hdlc.c297 priv->rx_buffer = bd_buffer; in uhdlc_init()
550 bdbuffer = priv->rx_buffer + in hdlc_rx_done()
785 if (priv->rx_buffer) { in uhdlc_memclean()
788 priv->rx_buffer, priv->dma_rx_addr); in uhdlc_memclean()
789 priv->rx_buffer = NULL; in uhdlc_memclean()
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dapplespi.c369 u8 *rx_buffer; member
551 rd_t->rx_buf = applespi->rx_buffer; in applespi_setup_read_txfrs()
1400 applespi_get_trace_fun(evt_type)(evt_type, PT_READ, applespi->rx_buffer, in applespi_debug_print_read_packet()
1414 if (!applespi_verify_crc(applespi, applespi->rx_buffer, in applespi_got_data()
1432 packet = (struct spi_packet *)applespi->rx_buffer; in applespi_got_data()
1666 applespi->rx_buffer = devm_kmalloc(&spi->dev, APPLESPI_PACKET_SIZE, in applespi_probe()
1673 !applespi->rx_buffer || !applespi->msg_buf) in applespi_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dtlan.h181 u8 *rx_buffer; member

12