/drivers/mailbox/ |
D | mailbox-test.c | 38 char *rx_buffer; member 161 if (tdev->rx_buffer[0] == '\0') { in mbox_test_message_read() 170 ptr = tdev->rx_buffer; in mbox_test_message_read() 183 memset(tdev->rx_buffer, 0, MBOX_MAX_MSG_LEN); in mbox_test_message_read() 228 memcpy_fromio(tdev->rx_buffer, tdev->rx_mmio, MBOX_MAX_MSG_LEN); in mbox_test_receive_message() 230 tdev->rx_buffer, MBOX_MAX_MSG_LEN); in mbox_test_receive_message() 234 memcpy(tdev->rx_buffer, message, MBOX_MAX_MSG_LEN); in mbox_test_receive_message() 327 tdev->rx_buffer = devm_kzalloc(&pdev->dev, in mbox_test_probe() 329 if (!tdev->rx_buffer) in mbox_test_probe()
|
/drivers/net/ethernet/dec/tulip/ |
D | xircom_cb.c | 79 __le32 *rx_buffer; member 235 private->rx_buffer = dma_alloc_coherent(d, 8192, in xircom_probe() 238 if (private->rx_buffer == NULL) in xircom_probe() 293 dma_free_coherent(d, 8192, private->rx_buffer, private->rx_dma_handle); in xircom_probe() 319 dma_free_coherent(d, 8192, card->rx_buffer, card->rx_dma_handle); in xircom_remove() 341 card->rx_buffer[0], card->rx_buffer[4]); in xircom_interrupt() 567 BUG_ON(card->rx_buffer == NULL); in setup_descriptors() 571 memset(card->rx_buffer, 0, 128); /* clear the descriptors */ in setup_descriptors() 575 card->rx_buffer[i*4 + 0] = cpu_to_le32(0x80000000); in setup_descriptors() 577 card->rx_buffer[i*4 + 1] = cpu_to_le32(1536); in setup_descriptors() [all …]
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 138 bi = &rx_ring->rx_buffer[i]; in fm10k_alloc_rx_buffers() 155 bi = rx_ring->rx_buffer; in fm10k_alloc_rx_buffers() 199 new_buff = &rx_ring->rx_buffer[nta]; in fm10k_reuse_rx_page() 220 static bool fm10k_can_reuse_rx_page(struct fm10k_rx_buffer *rx_buffer, in fm10k_can_reuse_rx_page() argument 234 rx_buffer->page_offset ^= FM10K_RX_BUFSZ; in fm10k_can_reuse_rx_page() 237 rx_buffer->page_offset += truesize; in fm10k_can_reuse_rx_page() 239 if (rx_buffer->page_offset > (PAGE_SIZE - FM10K_RX_BUFSZ)) in fm10k_can_reuse_rx_page() 265 static bool fm10k_add_rx_frag(struct fm10k_rx_buffer *rx_buffer, in fm10k_add_rx_frag() argument 269 struct page *page = rx_buffer->page; in fm10k_add_rx_frag() 270 unsigned char *va = page_address(page) + rx_buffer->page_offset; in fm10k_add_rx_frag() [all …]
|
D | fm10k_netdev.c | 106 rx_ring->rx_buffer = vzalloc(size); in fm10k_setup_rx_resources() 107 if (!rx_ring->rx_buffer) in fm10k_setup_rx_resources() 123 vfree(rx_ring->rx_buffer); in fm10k_setup_rx_resources() 124 rx_ring->rx_buffer = NULL; in fm10k_setup_rx_resources() 269 if (!rx_ring->rx_buffer) in fm10k_clean_rx_ring() 278 struct fm10k_rx_buffer *buffer = &rx_ring->rx_buffer[i]; in fm10k_clean_rx_ring() 291 memset(rx_ring->rx_buffer, 0, size); in fm10k_clean_rx_ring() 311 vfree(rx_ring->rx_buffer); in fm10k_free_rx_resources() 312 rx_ring->rx_buffer = NULL; in fm10k_free_rx_resources()
|
D | fm10k.h | 126 struct fm10k_rx_buffer *rx_buffer; member
|
/drivers/media/dvb-core/ |
D | dvb_ca_en50221.c | 118 struct dvb_ringbuffer rx_buffer; member 171 vfree(ca->slot_info[i].rx_buffer.data); in dvb_ca_private_free() 632 if (ca->slot_info[slot].rx_buffer.data == NULL) { in dvb_ca_en50221_read_data() 636 buf_free = dvb_ringbuffer_free(&ca->slot_info[slot].rx_buffer); in dvb_ca_en50221_read_data() 707 if (ca->slot_info[slot].rx_buffer.data == NULL) { in dvb_ca_en50221_read_data() 711 dvb_ringbuffer_pkt_write(&ca->slot_info[slot].rx_buffer, buf, bytes_read); in dvb_ca_en50221_read_data() 1173 if (ca->slot_info[slot].rx_buffer.data == NULL) { in dvb_ca_en50221_thread() 1181 dvb_ringbuffer_init(&ca->slot_info[slot].rx_buffer, rxbuf, RX_BUFFER_SIZE); in dvb_ca_en50221_thread() 1441 if (ca->slot_info[slot].rx_buffer.data == NULL) { in dvb_ca_en50221_io_read_condition() 1445 idx = dvb_ringbuffer_pkt_next(&ca->slot_info[slot].rx_buffer, -1, &fraglen); in dvb_ca_en50221_io_read_condition() [all …]
|
/drivers/net/ethernet/intel/i40evf/ |
D | i40e_txrx.c | 1019 struct i40e_rx_buffer *rx_buffer, in i40e_add_rx_frag() argument 1023 struct page *page = rx_buffer->page; in i40e_add_rx_frag() 1038 unsigned char *va = page_address(page) + rx_buffer->page_offset; in i40e_add_rx_frag() 1052 rx_buffer->page_offset, size, truesize); in i40e_add_rx_frag() 1064 rx_buffer->page_offset ^= truesize; in i40e_add_rx_frag() 1067 rx_buffer->page_offset += truesize; in i40e_add_rx_frag() 1069 if (rx_buffer->page_offset > last_offset) in i40e_add_rx_frag() 1076 get_page(rx_buffer->page); in i40e_add_rx_frag() 1095 struct i40e_rx_buffer *rx_buffer; in i40evf_fetch_rx_buffer() local 1099 rx_buffer = &rx_ring->rx_bi[rx_ring->next_to_clean]; in i40evf_fetch_rx_buffer() [all …]
|
/drivers/spi/ |
D | spidev.c | 86 u8 *rx_buffer; member 140 .rx_buf = spidev->rx_buffer, in spidev_sync_read() 171 missing = copy_to_user(buf, spidev->rx_buffer, status); in spidev_read() 229 rx_buf = spidev->rx_buffer; in spidev_message() 305 rx_buf = spidev->rx_buffer; in spidev_message() 612 if (!spidev->rx_buffer) { in spidev_open() 613 spidev->rx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open() 614 if (!spidev->rx_buffer) { in spidev_open() 652 kfree(spidev->rx_buffer); in spidev_release() 653 spidev->rx_buffer = NULL; in spidev_release()
|
/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()
|
/drivers/tty/serial/ |
D | ifx6x60.c | 665 ifx_dev->swap_buf(ifx_dev->rx_buffer, IFX_SPI_HEADER_OVERHEAD, in ifx_spi_complete() 666 &ifx_dev->rx_buffer[IFX_SPI_HEADER_OVERHEAD]); in ifx_spi_complete() 667 decode_result = ifx_spi_decode_spi_header(ifx_dev->rx_buffer, in ifx_spi_complete() 685 (ifx_dev->rx_buffer + IFX_SPI_HEADER_OVERHEAD), in ifx_spi_complete() 687 &ifx_dev->rx_buffer[IFX_SPI_TRANSFER_SIZE]); in ifx_spi_complete() 690 ifx_dev->rx_buffer + IFX_SPI_HEADER_OVERHEAD, in ifx_spi_complete() 770 ifx_dev->spi_xfer.rx_buf = ifx_dev->rx_buffer; in ifx_spi_io() 950 ifx_dev->rx_buffer, in ifx_spi_free_device() 1070 ifx_dev->rx_buffer = dma_alloc_coherent(ifx_dev->spi_dev->dev.parent, in ifx_spi_spi_probe() 1074 if (!ifx_dev->rx_buffer) { in ifx_spi_spi_probe()
|
D | ifx6x60.h | 99 unsigned char *rx_buffer; member
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 1571 struct i40e_rx_buffer *rx_buffer, in i40e_add_rx_frag() argument 1575 struct page *page = rx_buffer->page; in i40e_add_rx_frag() 1590 unsigned char *va = page_address(page) + rx_buffer->page_offset; in i40e_add_rx_frag() 1604 rx_buffer->page_offset, size, truesize); in i40e_add_rx_frag() 1616 rx_buffer->page_offset ^= truesize; in i40e_add_rx_frag() 1619 rx_buffer->page_offset += truesize; in i40e_add_rx_frag() 1621 if (rx_buffer->page_offset > last_offset) in i40e_add_rx_frag() 1628 get_page(rx_buffer->page); in i40e_add_rx_frag() 1647 struct i40e_rx_buffer *rx_buffer; in i40e_fetch_rx_buffer() local 1651 rx_buffer = &rx_ring->rx_bi[rx_ring->next_to_clean]; in i40e_fetch_rx_buffer() [all …]
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 783 struct ixgbevf_rx_buffer *rx_buffer, in ixgbevf_add_rx_frag() argument 787 struct page *page = rx_buffer->page; in ixgbevf_add_rx_frag() 788 unsigned char *va = page_address(page) + rx_buffer->page_offset; in ixgbevf_add_rx_frag() 838 rx_buffer->page_offset ^= IXGBEVF_RX_BUFSZ; in ixgbevf_add_rx_frag() 842 rx_buffer->page_offset += truesize; in ixgbevf_add_rx_frag() 844 if (rx_buffer->page_offset > (PAGE_SIZE - IXGBEVF_RX_BUFSZ)) in ixgbevf_add_rx_frag() 860 struct ixgbevf_rx_buffer *rx_buffer; in ixgbevf_fetch_rx_buffer() local 863 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbevf_fetch_rx_buffer() 864 page = rx_buffer->page; in ixgbevf_fetch_rx_buffer() 869 rx_buffer->page_offset; in ixgbevf_fetch_rx_buffer() [all …]
|
/drivers/net/ethernet/qualcomm/ |
D | qca_spi.c | 331 bytes_read = qcaspi_read_legacy(qca, qca->rx_buffer, in qcaspi_receive() 334 bytes_read = qcaspi_read_burst(qca, qca->rx_buffer, in qcaspi_receive() 348 cp = qca->rx_buffer; in qcaspi_receive() 759 qca->rx_buffer = kmalloc(qca->buffer_size, GFP_KERNEL); in qcaspi_netdev_init() 760 if (!qca->rx_buffer) in qcaspi_netdev_init() 766 kfree(qca->rx_buffer); in qcaspi_netdev_init() 779 kfree(qca->rx_buffer); in qcaspi_netdev_uninit()
|
D | qca_spi.h | 91 u8 *rx_buffer; member
|
/drivers/staging/wilc1000/ |
D | wilc_wlan.c | 888 if (wilc->rx_buffer) in wilc_wlan_handle_isr_ext() 889 buffer = &wilc->rx_buffer[offset]; in wilc_wlan_handle_isr_ext() 1151 kfree(wilc->rx_buffer); in wilc_wlan_cleanup() 1152 wilc->rx_buffer = NULL; in wilc_wlan_cleanup() 1416 if (!wilc->rx_buffer) in wilc_wlan_init() 1417 wilc->rx_buffer = kmalloc(LINUX_RX_SIZE, GFP_KERNEL); in wilc_wlan_init() 1419 if (!wilc->rx_buffer) { in wilc_wlan_init() 1433 kfree(wilc->rx_buffer); in wilc_wlan_init() 1434 wilc->rx_buffer = NULL; in wilc_wlan_init()
|
D | wilc_wfi_netdevice.h | 194 u8 *rx_buffer; member
|
/drivers/staging/ks7010/ |
D | ks7010_sdio.c | 405 struct rx_device_buffer *rx_buffer; in ks_wlan_hw_rx() local 418 rx_buffer = &priv->rx_dev.rx_dev_buff[priv->rx_dev.qtail]; in ks_wlan_hw_rx() 421 ks7010_sdio_read(priv, DATA_WINDOW, &rx_buffer->data[0], in ks_wlan_hw_rx() 432 rx_buffer->data, 32); in ks_wlan_hw_rx() 445 hdr = (struct hostif_hdr *)&rx_buffer->data[0]; in ks_wlan_hw_rx() 446 rx_buffer->size = le16_to_cpu(hdr->size) + sizeof(hdr->size); in ks_wlan_hw_rx()
|
/drivers/net/wan/ |
D | fsl_ucc_hdlc.c | 256 priv->rx_buffer = bd_buffer; in uhdlc_init() 481 bdbuffer = priv->rx_buffer + in hdlc_rx_done() 729 if (priv->rx_buffer) { in uhdlc_memclean() 732 priv->rx_buffer, priv->dma_rx_addr); in uhdlc_memclean() 733 priv->rx_buffer = NULL; in uhdlc_memclean()
|
D | fsl_ucc_hdlc.h | 83 u8 *rx_buffer; member
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 1949 struct ixgbe_rx_buffer *rx_buffer, in ixgbe_add_rx_frag() argument 1953 struct page *page = rx_buffer->page; in ixgbe_add_rx_frag() 1964 unsigned char *va = page_address(page) + rx_buffer->page_offset; in ixgbe_add_rx_frag() 1978 rx_buffer->page_offset, size, truesize); in ixgbe_add_rx_frag() 1990 rx_buffer->page_offset ^= truesize; in ixgbe_add_rx_frag() 1993 rx_buffer->page_offset += truesize; in ixgbe_add_rx_frag() 1995 if (rx_buffer->page_offset > last_offset) in ixgbe_add_rx_frag() 2010 struct ixgbe_rx_buffer *rx_buffer; in ixgbe_fetch_rx_buffer() local 2014 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_fetch_rx_buffer() 2015 page = rx_buffer->page; in ixgbe_fetch_rx_buffer() [all …]
|
D | ixgbe_ethtool.c | 1865 static bool ixgbe_check_lbtest_frame(struct ixgbe_rx_buffer *rx_buffer, in ixgbe_check_lbtest_frame() argument 1873 data = kmap(rx_buffer->page) + rx_buffer->page_offset; in ixgbe_check_lbtest_frame() 1880 kunmap(rx_buffer->page); in ixgbe_check_lbtest_frame() 1890 struct ixgbe_rx_buffer *rx_buffer; in ixgbe_clean_test_rings() local 1901 rx_buffer = &rx_ring->rx_buffer_info[rx_ntc]; in ixgbe_clean_test_rings() 1905 rx_buffer->dma, in ixgbe_clean_test_rings() 1910 if (ixgbe_check_lbtest_frame(rx_buffer, size)) in ixgbe_clean_test_rings() 1915 rx_buffer->dma, in ixgbe_clean_test_rings()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 6839 static bool igb_can_reuse_rx_page(struct igb_rx_buffer *rx_buffer, in igb_can_reuse_rx_page() argument 6853 rx_buffer->page_offset ^= IGB_RX_BUFSZ; in igb_can_reuse_rx_page() 6856 rx_buffer->page_offset += truesize; in igb_can_reuse_rx_page() 6858 if (rx_buffer->page_offset > (PAGE_SIZE - IGB_RX_BUFSZ)) in igb_can_reuse_rx_page() 6886 struct igb_rx_buffer *rx_buffer, in igb_add_rx_frag() argument 6891 struct page *page = rx_buffer->page; in igb_add_rx_frag() 6892 unsigned char *va = page_address(page) + rx_buffer->page_offset; in igb_add_rx_frag() 6937 return igb_can_reuse_rx_page(rx_buffer, page, truesize); in igb_add_rx_frag() 6945 struct igb_rx_buffer *rx_buffer; in igb_fetch_rx_buffer() local 6948 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in igb_fetch_rx_buffer() [all …]
|
/drivers/net/ethernet/ti/ |
D | tlan.h | 181 u8 *rx_buffer; member
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe.h | 476 unsigned char *rx_buffer; member
|