Home
last modified time | relevance | path

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

/drivers/net/ethernet/dec/tulip/
Dxircom_cb.c80 __le32 *rx_buffer; member
236 private->rx_buffer = dma_alloc_coherent(d, 8192, in xircom_probe()
239 if (private->rx_buffer == NULL) in xircom_probe()
295 dma_free_coherent(d, 8192, private->rx_buffer, private->rx_dma_handle); in xircom_probe()
322 dma_free_coherent(d, 8192, card->rx_buffer, card->rx_dma_handle); in xircom_remove()
344 card->rx_buffer[0], card->rx_buffer[4]); in xircom_interrupt()
570 BUG_ON(card->rx_buffer == NULL); in setup_descriptors()
574 memset(card->rx_buffer, 0, 128); /* clear the descriptors */ in setup_descriptors()
578 card->rx_buffer[i*4 + 0] = cpu_to_le32(0x80000000); in setup_descriptors()
580 card->rx_buffer[i*4 + 1] = cpu_to_le32(1536); in setup_descriptors()
[all …]
/drivers/media/dvb-core/
Ddvb_ca_en50221.c118 struct dvb_ringbuffer rx_buffer; member
602 if (ca->slot_info[slot].rx_buffer.data == NULL) { in dvb_ca_en50221_read_data()
606 buf_free = dvb_ringbuffer_free(&ca->slot_info[slot].rx_buffer); in dvb_ca_en50221_read_data()
677 if (ca->slot_info[slot].rx_buffer.data == NULL) { in dvb_ca_en50221_read_data()
681 dvb_ringbuffer_pkt_write(&ca->slot_info[slot].rx_buffer, buf, bytes_read); in dvb_ca_en50221_read_data()
1120 if (ca->slot_info[slot].rx_buffer.data == NULL) { in dvb_ca_en50221_thread()
1128 dvb_ringbuffer_init(&ca->slot_info[slot].rx_buffer, rxbuf, RX_BUFFER_SIZE); in dvb_ca_en50221_thread()
1388 if (ca->slot_info[slot].rx_buffer.data == NULL) { in dvb_ca_en50221_io_read_condition()
1392 idx = dvb_ringbuffer_pkt_next(&ca->slot_info[slot].rx_buffer, -1, &fraglen); in dvb_ca_en50221_io_read_condition()
1394 dvb_ringbuffer_pkt_read(&ca->slot_info[slot].rx_buffer, idx, 0, hdr, 2); in dvb_ca_en50221_io_read_condition()
[all …]
/drivers/net/wireless/ti/wl1251/
Drx.c152 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/
Difx6x60.c663 ifx_dev->swap_buf(ifx_dev->rx_buffer, IFX_SPI_HEADER_OVERHEAD, in ifx_spi_complete()
664 &ifx_dev->rx_buffer[IFX_SPI_HEADER_OVERHEAD]); in ifx_spi_complete()
665 decode_result = ifx_spi_decode_spi_header(ifx_dev->rx_buffer, in ifx_spi_complete()
683 (ifx_dev->rx_buffer + IFX_SPI_HEADER_OVERHEAD), in ifx_spi_complete()
685 &ifx_dev->rx_buffer[IFX_SPI_TRANSFER_SIZE]); in ifx_spi_complete()
688 ifx_dev->rx_buffer + IFX_SPI_HEADER_OVERHEAD, in ifx_spi_complete()
767 ifx_dev->spi_xfer.rx_buf = ifx_dev->rx_buffer; in ifx_spi_io()
947 ifx_dev->rx_buffer, in ifx_spi_free_device()
1067 ifx_dev->rx_buffer = dma_alloc_coherent(ifx_dev->spi_dev->dev.parent, in ifx_spi_spi_probe()
1071 if (!ifx_dev->rx_buffer) { in ifx_spi_spi_probe()
Difx6x60.h99 unsigned char *rx_buffer; member
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c1738 struct ixgbe_rx_buffer *rx_buffer, in ixgbe_add_rx_frag() argument
1742 struct page *page = rx_buffer->page; in ixgbe_add_rx_frag()
1753 unsigned char *va = page_address(page) + rx_buffer->page_offset; in ixgbe_add_rx_frag()
1767 rx_buffer->page_offset, size, truesize); in ixgbe_add_rx_frag()
1779 rx_buffer->page_offset ^= truesize; in ixgbe_add_rx_frag()
1789 rx_buffer->page_offset += truesize; in ixgbe_add_rx_frag()
1791 if (rx_buffer->page_offset > last_offset) in ixgbe_add_rx_frag()
1804 struct ixgbe_rx_buffer *rx_buffer; in ixgbe_fetch_rx_buffer() local
1808 rx_buffer = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_fetch_rx_buffer()
1809 page = rx_buffer->page; in ixgbe_fetch_rx_buffer()
[all …]
Dixgbe_ethtool.c1682 static bool ixgbe_check_lbtest_frame(struct ixgbe_rx_buffer *rx_buffer, in ixgbe_check_lbtest_frame() argument
1690 data = kmap(rx_buffer->page) + rx_buffer->page_offset; in ixgbe_check_lbtest_frame()
1697 kunmap(rx_buffer->page); in ixgbe_check_lbtest_frame()
1707 struct ixgbe_rx_buffer *rx_buffer; in ixgbe_clean_test_rings() local
1718 rx_buffer = &rx_ring->rx_buffer_info[rx_ntc]; in ixgbe_clean_test_rings()
1722 rx_buffer->dma, in ixgbe_clean_test_rings()
1727 if (ixgbe_check_lbtest_frame(rx_buffer, size)) in ixgbe_clean_test_rings()
1732 rx_buffer->dma, in ixgbe_clean_test_rings()
/drivers/net/ethernet/intel/igb/
Digb_main.c6174 static bool igb_can_reuse_rx_page(struct igb_rx_buffer *rx_buffer, in igb_can_reuse_rx_page() argument
6188 rx_buffer->page_offset ^= IGB_RX_BUFSZ; in igb_can_reuse_rx_page()
6197 rx_buffer->page_offset += truesize; in igb_can_reuse_rx_page()
6199 if (rx_buffer->page_offset > (PAGE_SIZE - IGB_RX_BUFSZ)) in igb_can_reuse_rx_page()
6225 struct igb_rx_buffer *rx_buffer, in igb_add_rx_frag() argument
6229 struct page *page = rx_buffer->page; in igb_add_rx_frag()
6238 unsigned char *va = page_address(page) + rx_buffer->page_offset; in igb_add_rx_frag()
6258 rx_buffer->page_offset, size, truesize); in igb_add_rx_frag()
6260 return igb_can_reuse_rx_page(rx_buffer, page, truesize); in igb_add_rx_frag()
6267 struct igb_rx_buffer *rx_buffer; in igb_fetch_rx_buffer() local
[all …]
Digb_ethtool.c1751 static int igb_check_lbtest_frame(struct igb_rx_buffer *rx_buffer, in igb_check_lbtest_frame() argument
1759 data = kmap(rx_buffer->page); in igb_check_lbtest_frame()
1766 kunmap(rx_buffer->page); in igb_check_lbtest_frame()
/drivers/net/ethernet/ti/
Dtlan.h181 u8 *rx_buffer; member
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe.h477 unsigned char *rx_buffer; member
Dpch_gbe_main.c1425 buffer_info->rx_buffer, in pch_gbe_alloc_rx_buffers()
1480 buffer_info->rx_buffer = rx_ring->rx_buff_pool + bufsz * i; in pch_gbe_alloc_rx_buffers_pool()
1713 memcpy(skb->data, buffer_info->rx_buffer, length); in pch_gbe_clean_rx()
/drivers/net/ethernet/brocade/bna/
Dbfi_enet.h121 union bfi_addr_be_u rx_buffer; member