Searched refs:rx_buf (Results 1 - 25 of 412) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/sfc/
H A Drx.c44 struct efx_rx_buffer *rx_buf,
48 unsigned max_len = rx_buf->len - efx->type->rx_buffer_padding;
56 rx_buf->flags |= EFX_RX_PKT_DISCARD;
68 struct efx_rx_buffer *rx_buf,
84 EFX_WARN_ON_ONCE_PARANOID(rx_buf->len < hdr_len);
92 if (rx_buf->len > hdr_len) {
93 rx_buf->page_offset += hdr_len;
94 rx_buf->len -= hdr_len;
98 rx_buf->page, rx_buf
43 efx_rx_packet__check_len(struct efx_rx_queue *rx_queue, struct efx_rx_buffer *rx_buf, int len) argument
67 efx_rx_mk_skb(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, unsigned int n_frags, u8 *eh, int hdr_len) argument
126 struct efx_rx_buffer *rx_buf; local
208 efx_rx_deliver(struct efx_channel *channel, u8 *eh, struct efx_rx_buffer *rx_buf, unsigned int n_frags) argument
251 efx_do_xdp(struct efx_nic *efx, struct efx_channel *channel, struct efx_rx_buffer *rx_buf, u8 **ehp) argument
364 struct efx_rx_buffer *rx_buf = local
[all...]
H A Def100_rx.c59 struct efx_rx_buffer *rx_buf = efx_rx_buffer(rx_queue, local
63 u8 *eh = efx_rx_buf_va(rx_buf);
81 rx_buf->len = le16_to_cpu((__force __le16)PREFIX_FIELD(prefix, LENGTH));
82 if (rx_buf->len <= sizeof(struct ethhdr)) {
85 "RX packet too small (%d)\n", rx_buf->len);
102 efx_ef100_rep_rx_packet(efv, rx_buf);
137 efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh, csum);
141 efx_free_rx_buffers(rx_queue, rx_buf, 1);
148 struct efx_rx_buffer *rx_buf = efx_rx_buffer(rx_queue, index); local
158 efx_sync_rx_buffer(efx, rx_buf, ef
194 struct efx_rx_buffer *rx_buf; local
[all...]
H A Drx_common.h49 struct efx_rx_buffer *rx_buf,
52 struct efx_rx_buffer *rx_buf,
65 void efx_unmap_rx_buffer(struct efx_nic *efx, struct efx_rx_buffer *rx_buf);
68 struct efx_rx_buffer *rx_buf,
71 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len,
76 struct efx_rx_buffer *rx_buf,
84 efx_rx_packet_gro(struct efx_channel *channel, struct efx_rx_buffer *rx_buf,
67 efx_sync_rx_buffer(struct efx_nic *efx, struct efx_rx_buffer *rx_buf, unsigned int len) argument
H A Drx_common.c75 struct efx_rx_buffer *rx_buf)
79 struct page *page = rx_buf->page;
83 if (!(rx_buf->flags & EFX_RX_BUF_LAST_IN_PAGE))
102 efx_unmap_rx_buffer(efx, rx_buf);
103 put_page(rx_buf->page);
108 struct efx_rx_buffer *rx_buf,
117 efx_recycle_rx_page(channel, rx_buf);
118 rx_buf = efx_rx_buf_next(rx_queue, rx_buf);
123 struct efx_rx_buffer *rx_buf,
74 efx_recycle_rx_page(struct efx_channel *channel, struct efx_rx_buffer *rx_buf) argument
107 efx_recycle_rx_pages(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, unsigned int n_frags) argument
122 efx_discard_rx_packet(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, unsigned int n_frags) argument
175 efx_fini_rx_buffer(struct efx_rx_queue *rx_queue, struct efx_rx_buffer *rx_buf) argument
279 struct efx_rx_buffer *rx_buf; local
322 efx_unmap_rx_buffer(struct efx_nic *efx, struct efx_rx_buffer *rx_buf) argument
337 efx_free_rx_buffers(struct efx_rx_queue *rx_queue, struct efx_rx_buffer *rx_buf, unsigned int num_bufs) argument
378 struct efx_rx_buffer *rx_buf; local
511 efx_rx_packet_gro(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, unsigned int n_frags, u8 *eh, __wsum csum) argument
[all...]
/linux-master/drivers/net/ethernet/sfc/siena/
H A Drx.c44 struct efx_rx_buffer *rx_buf,
48 unsigned max_len = rx_buf->len - efx->type->rx_buffer_padding;
56 rx_buf->flags |= EFX_RX_PKT_DISCARD;
68 struct efx_rx_buffer *rx_buf,
84 EFX_WARN_ON_ONCE_PARANOID(rx_buf->len < hdr_len);
92 if (rx_buf->len > hdr_len) {
93 rx_buf->page_offset += hdr_len;
94 rx_buf->len -= hdr_len;
98 rx_buf->page, rx_buf
43 efx_rx_packet__check_len(struct efx_rx_queue *rx_queue, struct efx_rx_buffer *rx_buf, int len) argument
67 efx_rx_mk_skb(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, unsigned int n_frags, u8 *eh, int hdr_len) argument
126 struct efx_rx_buffer *rx_buf; local
208 efx_rx_deliver(struct efx_channel *channel, u8 *eh, struct efx_rx_buffer *rx_buf, unsigned int n_frags) argument
251 efx_do_xdp(struct efx_nic *efx, struct efx_channel *channel, struct efx_rx_buffer *rx_buf, u8 **ehp) argument
363 struct efx_rx_buffer *rx_buf = local
[all...]
H A Drx_common.h49 struct efx_rx_buffer *rx_buf,
52 struct efx_rx_buffer *rx_buf,
61 struct efx_rx_buffer *rx_buf,
64 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len,
69 struct efx_rx_buffer *rx_buf,
78 struct efx_rx_buffer *rx_buf,
60 efx_sync_rx_buffer(struct efx_nic *efx, struct efx_rx_buffer *rx_buf, unsigned int len) argument
H A Drx_common.c35 struct efx_rx_buffer *rx_buf);
78 struct efx_rx_buffer *rx_buf)
82 struct page *page = rx_buf->page;
86 if (!(rx_buf->flags & EFX_RX_BUF_LAST_IN_PAGE))
105 efx_unmap_rx_buffer(efx, rx_buf);
106 put_page(rx_buf->page);
111 struct efx_rx_buffer *rx_buf,
120 efx_recycle_rx_page(channel, rx_buf);
121 rx_buf = efx_rx_buf_next(rx_queue, rx_buf);
77 efx_recycle_rx_page(struct efx_channel *channel, struct efx_rx_buffer *rx_buf) argument
110 efx_siena_recycle_rx_pages(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, unsigned int n_frags) argument
125 efx_siena_discard_rx_packet(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, unsigned int n_frags) argument
178 efx_fini_rx_buffer(struct efx_rx_queue *rx_queue, struct efx_rx_buffer *rx_buf) argument
281 struct efx_rx_buffer *rx_buf; local
322 efx_unmap_rx_buffer(struct efx_nic *efx, struct efx_rx_buffer *rx_buf) argument
337 efx_siena_free_rx_buffers(struct efx_rx_queue *rx_queue, struct efx_rx_buffer *rx_buf, unsigned int num_bufs) argument
378 struct efx_rx_buffer *rx_buf; local
512 efx_siena_rx_packet_gro(struct efx_channel *channel, struct efx_rx_buffer *rx_buf, unsigned int n_frags, u8 *eh, __wsum csum) argument
[all...]
/linux-master/drivers/net/ethernet/sfc/falcon/
H A Drx.c76 ef4_rx_buf_next(struct ef4_rx_queue *rx_queue, struct ef4_rx_buffer *rx_buf) argument
78 if (unlikely(rx_buf == ef4_rx_buffer(rx_queue, rx_queue->ptr_mask)))
81 return rx_buf + 1;
85 struct ef4_rx_buffer *rx_buf,
88 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len,
155 struct ef4_rx_buffer *rx_buf; local
192 rx_buf = ef4_rx_buffer(rx_queue, index);
193 rx_buf->dma_addr = dma_addr + efx->rx_ip_align;
194 rx_buf->page = page;
195 rx_buf
84 ef4_sync_rx_buffer(struct ef4_nic *efx, struct ef4_rx_buffer *rx_buf, unsigned int len) argument
213 ef4_unmap_rx_buffer(struct ef4_nic *efx, struct ef4_rx_buffer *rx_buf) argument
227 ef4_free_rx_buffers(struct ef4_rx_queue *rx_queue, struct ef4_rx_buffer *rx_buf, unsigned int num_bufs) argument
244 ef4_recycle_rx_page(struct ef4_channel *channel, struct ef4_rx_buffer *rx_buf) argument
276 ef4_fini_rx_buffer(struct ef4_rx_queue *rx_queue, struct ef4_rx_buffer *rx_buf) argument
292 ef4_recycle_rx_pages(struct ef4_channel *channel, struct ef4_rx_buffer *rx_buf, unsigned int n_frags) argument
307 ef4_discard_rx_packet(struct ef4_channel *channel, struct ef4_rx_buffer *rx_buf, unsigned int n_frags) argument
392 ef4_rx_packet__check_len(struct ef4_rx_queue *rx_queue, struct ef4_rx_buffer *rx_buf, int len) argument
430 ef4_rx_packet_gro(struct ef4_channel *channel, struct ef4_rx_buffer *rx_buf, unsigned int n_frags, u8 *eh) argument
473 ef4_rx_mk_skb(struct ef4_channel *channel, struct ef4_rx_buffer *rx_buf, unsigned int n_frags, u8 *eh, int hdr_len) argument
535 struct ef4_rx_buffer *rx_buf; local
617 ef4_rx_deliver(struct ef4_channel *channel, u8 *eh, struct ef4_rx_buffer *rx_buf, unsigned int n_frags) argument
651 struct ef4_rx_buffer *rx_buf = local
789 struct ef4_rx_buffer *rx_buf; local
[all...]
/linux-master/drivers/spi/
H A Dspi-realtek-rtl.c97 void *rx_buf; local
102 rx_buf = xfer->rx_buf;
115 } else if (rx_buf) {
117 rcv4(rtspi, rx_buf);
118 rx_buf += 4;
122 rcv1(rtspi, rx_buf);
123 rx_buf++;
H A Dspi-cavium.c40 u8 *rx_buf; local
69 rx_buf = xfer->rx_buf;
88 if (rx_buf)
91 *rx_buf++ = (u8)v;
116 if (rx_buf)
119 *rx_buf++ = (u8)v;
H A Dspi-loopback-test.c37 /* the device is jumpered for loopback - enabling some rx_buf tests */
41 "if set enable loopback mode, where the rx_buf " \
97 .rx_buf = RX(0),
111 .rx_buf = RX(PAGE_SIZE - 4),
135 .rx_buf = RX(0),
202 .rx_buf = RX(0),
219 .rx_buf = RX(0),
236 .rx_buf = RX(0),
250 .rx_buf = RX(0),
257 .rx_buf
[all...]
H A Dspi-xlp.c93 u8 *rx_buf; /* rx data buffer */ member in struct:xlp_spi_priv
192 xspi->rx_buf[i] = (rx_data >> (j * 8)) & 0xff;
195 xspi->rx_buf += nbytes;
261 if (xspi->rx_buf)
271 unsigned char *rx_buf, int xfer_len, int cmd_cont)
277 xs->rx_buf = rx_buf;
279 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len;
322 unsigned char *rx_buf; local
326 rx_buf
269 xlp_spi_xfer_block(struct xlp_spi_priv *xs, const unsigned char *tx_buf, unsigned char *rx_buf, int xfer_len, int cmd_cont) argument
[all...]
H A Dspi-sh-msiof.c393 const void *tx_buf, void *rx_buf,
403 if (rx_buf)
484 void *rx_buf, int words, int fs)
486 u8 *buf_8 = rx_buf;
494 void *rx_buf, int words, int fs)
496 u16 *buf_16 = rx_buf;
504 void *rx_buf, int words, int fs)
506 u16 *buf_16 = rx_buf;
514 void *rx_buf, int words, int fs)
516 u32 *buf_32 = rx_buf;
392 sh_msiof_spi_set_mode_regs(struct sh_msiof_spi_priv *p, const void *tx_buf, void *rx_buf, u32 bits, u32 words) argument
483 sh_msiof_spi_read_fifo_8(struct sh_msiof_spi_priv *p, void *rx_buf, int words, int fs) argument
493 sh_msiof_spi_read_fifo_16(struct sh_msiof_spi_priv *p, void *rx_buf, int words, int fs) argument
503 sh_msiof_spi_read_fifo_16u(struct sh_msiof_spi_priv *p, void *rx_buf, int words, int fs) argument
513 sh_msiof_spi_read_fifo_32(struct sh_msiof_spi_priv *p, void *rx_buf, int words, int fs) argument
523 sh_msiof_spi_read_fifo_32u(struct sh_msiof_spi_priv *p, void *rx_buf, int words, int fs) argument
533 sh_msiof_spi_read_fifo_s32(struct sh_msiof_spi_priv *p, void *rx_buf, int words, int fs) argument
543 sh_msiof_spi_read_fifo_s32u(struct sh_msiof_spi_priv *p, void *rx_buf, int words, int fs) argument
606 sh_msiof_spi_start(struct sh_msiof_spi_priv *p, void *rx_buf) argument
626 sh_msiof_spi_stop(struct sh_msiof_spi_priv *p, void *rx_buf) argument
673 sh_msiof_spi_txrx_once(struct sh_msiof_spi_priv *p, void (*tx_fifo)(struct sh_msiof_spi_priv *, const void *, int, int), void (*rx_fifo)(struct sh_msiof_spi_priv *, void *, int, int), const void *tx_buf, void *rx_buf, int words, int bits) argument
918 void *rx_buf = t->rx_buf; local
[all...]
H A Dspi-clps711x.c31 u8 *rx_buf; member in struct:spi_clps711x_data
60 hw->rx_buf = (u8 *)xfer->rx_buf;
77 if (hw->rx_buf)
78 *hw->rx_buf++ = data;
/linux-master/drivers/iio/adc/
H A Dmcp320x.c82 * @rx_buf: buffer for @transfer[1]
96 u8 rx_buf[4]; member in struct:mcp320x
134 memset(&adc->rx_buf, 0, sizeof(adc->rx_buf));
145 *val = (adc->rx_buf[0] << 5 | adc->rx_buf[1] >> 3);
150 *val = (adc->rx_buf[0] << 2 | adc->rx_buf[1] >> 6);
153 *val = (adc->rx_buf[0] << 7 | adc->rx_buf[
[all...]
H A Dti-ads8344.c32 u8 rx_buf[3]; member in struct:ads8344
94 ret = spi_read(spi, adc->rx_buf, sizeof(adc->rx_buf));
98 return adc->rx_buf[0] << 9 | adc->rx_buf[1] << 1 | adc->rx_buf[2] >> 7;
H A Dti-adc108s102.c75 * rx_buf: |XX|R0|R1|R2|R3|R4|R5|R6|R7|tt|tt|tt|tt|
78 * rx_buf: 1 dummy response, 8 channel responses
80 __be16 rx_buf[9] __aligned(IIO_DMA_MINALIGN);
132 st->ring_xfer.rx_buf = &st->rx_buf[0];
153 &st->rx_buf[1],
154 st->ring_xfer.len - sizeof(st->rx_buf[1]),
173 return be16_to_cpu(st->rx_buf[1]);
272 st->scan_single_xfer.rx_buf = st->rx_buf;
[all...]
/linux-master/drivers/iio/humidity/
H A Dam2315.c109 * rx_buf format:
114 u8 rx_buf[8]; local
129 ret = i2c_master_recv(data->client, rx_buf, sizeof(rx_buf));
139 crc = am2315_crc(rx_buf, sizeof(rx_buf) - 2);
140 if ((crc & 0xff) != rx_buf[6] || (crc >> 8) != rx_buf[7]) {
145 sensor_data->hum_data = (rx_buf[AM2315_HUM_OFFSET] << 8) |
146 rx_buf[AM2315_HUM_OFFSE
[all...]
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_txrx.c391 if (!rx_ring->rx_buf)
406 struct ice_rx_buf *rx_buf = &rx_ring->rx_buf[i]; local
408 if (!rx_buf->page)
414 dma_sync_single_range_for_cpu(dev, rx_buf->dma,
415 rx_buf->page_offset,
420 dma_unmap_page_attrs(dev, rx_buf->dma, ice_rx_pg_size(rx_ring),
422 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias);
424 rx_buf
560 ice_run_xdp(struct ice_rx_ring *rx_ring, struct xdp_buff *xdp, struct bpf_prog *xdp_prog, struct ice_tx_ring *xdp_ring, struct ice_rx_buf *rx_buf, union ice_32b_rx_flex_desc *eop_desc) argument
810 ice_rx_buf_adjust_pg_offset(struct ice_rx_buf *rx_buf, unsigned int size) argument
831 ice_can_reuse_rx_page(struct ice_rx_buf *rx_buf) argument
874 ice_add_xdp_frag(struct ice_rx_ring *rx_ring, struct xdp_buff *xdp, struct ice_rx_buf *rx_buf, const unsigned int size) argument
949 struct ice_rx_buf *rx_buf; local
1040 struct ice_rx_buf *rx_buf; local
1117 ice_put_rx_buf(struct ice_rx_ring *rx_ring, struct ice_rx_buf *rx_buf) argument
1178 struct ice_rx_buf *rx_buf; local
[all...]
/linux-master/sound/soc/sprd/
H A Dsprd-mcdt.h57 int sprd_mcdt_chan_read(struct sprd_mcdt_chan *chan, char *rx_buf, u32 size);
82 int sprd_mcdt_chan_read(struct sprd_mcdt_chan *chan, char *rx_buf, u32 size) argument
/linux-master/include/trace/events/
H A Dspi.h177 (xfer->rx_buf && xfer->rx_buf != msg->spi->controller->dummy_rx)
190 __dynamic_array(u8, rx_buf,
209 memcpy(__get_dynamic_array(rx_buf),
210 xfer->rx_buf, __get_dynamic_array_len(rx_buf));
217 __get_dynamic_array_len(rx_buf), __get_dynamic_array(rx_buf))
/linux-master/drivers/char/tpm/st33zp24/
H A Dspi.c58 u8 rx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member in struct:st33zp24_spi_phy
104 .rx_buf = phy->rx_buf,
125 ret = phy->rx_buf[total_length + phy->latency - 1];
147 .rx_buf = phy->rx_buf,
162 ret = phy->rx_buf[total_length + phy->latency - 1];
164 memcpy(tpm_data, phy->rx_buf + total_length + phy->latency,
/linux-master/drivers/input/rmi4/
H A Drmi_spi.c43 u8 *rx_buf; member in struct:rmi_spi_xport
68 tmp = rmi_spi->rx_buf;
74 rmi_spi->rx_buf = buf;
75 rmi_spi->tx_buf = &rmi_spi->rx_buf[buf_size];
114 int tx_len, u8 *rx_buf, int rx_len)
207 if (rx_buf) {
212 xfer->rx_buf = &rmi_spi->rx_buf[i];
221 xfer->rx_buf = rmi_spi->rx_buf;
112 rmi_spi_xfer(struct rmi_spi_xport *rmi_spi, const struct rmi_spi_cmd *cmd, const u8 *tx_buf, int tx_len, u8 *rx_buf, int rx_len) argument
[all...]
/linux-master/drivers/net/ethernet/asix/
H A Dax88796c_spi.c54 xfer->rx_buf = NULL;
60 xfer->rx_buf = data;
88 ax_spi->rx_buf, 2);
95 le16_to_cpus((u16 *)ax_spi->rx_buf);
97 return *(u16 *)ax_spi->rx_buf;
/linux-master/drivers/hwmon/
H A Dadcxx.c54 u8 rx_buf[2]; local
62 status = spi_read(spi, rx_buf, sizeof(rx_buf));
66 rx_buf, sizeof(rx_buf));
74 value = (rx_buf[0] << 8) + rx_buf[1];

Completed in 746 milliseconds

1234567891011>>