Home
last modified time | relevance | path

Searched refs:rx_buf (Results 1 – 25 of 399) sorted by relevance

12345678910>>...16

/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Drx.c44 struct efx_rx_buffer *rx_buf, in efx_rx_packet__check_len() argument
48 unsigned max_len = rx_buf->len - efx->type->rx_buffer_padding; in efx_rx_packet__check_len()
56 rx_buf->flags |= EFX_RX_PKT_DISCARD; in efx_rx_packet__check_len()
68 struct efx_rx_buffer *rx_buf, in efx_rx_mk_skb() argument
84 EFX_WARN_ON_ONCE_PARANOID(rx_buf->len < hdr_len); in efx_rx_mk_skb()
92 if (rx_buf->len > hdr_len) { in efx_rx_mk_skb()
93 rx_buf->page_offset += hdr_len; in efx_rx_mk_skb()
94 rx_buf->len -= hdr_len; in efx_rx_mk_skb()
98 rx_buf->page, rx_buf->page_offset, in efx_rx_mk_skb()
99 rx_buf->len, efx->rx_buffer_truesize); in efx_rx_mk_skb()
[all …]
Drx_common.c34 struct efx_rx_buffer *rx_buf);
77 struct efx_rx_buffer *rx_buf) in efx_recycle_rx_page() argument
81 struct page *page = rx_buf->page; in efx_recycle_rx_page()
85 if (!(rx_buf->flags & EFX_RX_BUF_LAST_IN_PAGE)) in efx_recycle_rx_page()
104 efx_unmap_rx_buffer(efx, rx_buf); in efx_recycle_rx_page()
105 put_page(rx_buf->page); in efx_recycle_rx_page()
110 struct efx_rx_buffer *rx_buf, in efx_siena_recycle_rx_pages() argument
119 efx_recycle_rx_page(channel, rx_buf); in efx_siena_recycle_rx_pages()
120 rx_buf = efx_rx_buf_next(rx_queue, rx_buf); in efx_siena_recycle_rx_pages()
125 struct efx_rx_buffer *rx_buf, in efx_siena_discard_rx_packet() argument
[all …]
Drx_common.h49 struct efx_rx_buffer *rx_buf,
52 struct efx_rx_buffer *rx_buf,
61 struct efx_rx_buffer *rx_buf, in efx_sync_rx_buffer() argument
64 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len, in efx_sync_rx_buffer()
69 struct efx_rx_buffer *rx_buf,
78 struct efx_rx_buffer *rx_buf,
/linux-6.6.21/drivers/net/ethernet/sfc/
Drx.c44 struct efx_rx_buffer *rx_buf, in efx_rx_packet__check_len() argument
48 unsigned max_len = rx_buf->len - efx->type->rx_buffer_padding; in efx_rx_packet__check_len()
56 rx_buf->flags |= EFX_RX_PKT_DISCARD; in efx_rx_packet__check_len()
68 struct efx_rx_buffer *rx_buf, in efx_rx_mk_skb() argument
84 EFX_WARN_ON_ONCE_PARANOID(rx_buf->len < hdr_len); in efx_rx_mk_skb()
92 if (rx_buf->len > hdr_len) { in efx_rx_mk_skb()
93 rx_buf->page_offset += hdr_len; in efx_rx_mk_skb()
94 rx_buf->len -= hdr_len; in efx_rx_mk_skb()
98 rx_buf->page, rx_buf->page_offset, in efx_rx_mk_skb()
99 rx_buf->len, efx->rx_buffer_truesize); in efx_rx_mk_skb()
[all …]
Def100_rx.c59 struct efx_rx_buffer *rx_buf = efx_rx_buffer(rx_queue, in __ef100_rx_packet() local
63 u8 *eh = efx_rx_buf_va(rx_buf); in __ef100_rx_packet()
81 rx_buf->len = le16_to_cpu((__force __le16)PREFIX_FIELD(prefix, LENGTH)); in __ef100_rx_packet()
82 if (rx_buf->len <= sizeof(struct ethhdr)) { in __ef100_rx_packet()
85 "RX packet too small (%d)\n", rx_buf->len); in __ef100_rx_packet()
102 efx_ef100_rep_rx_packet(efv, rx_buf); in __ef100_rx_packet()
137 efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh, csum); in __ef100_rx_packet()
141 efx_free_rx_buffers(rx_queue, rx_buf, 1); in __ef100_rx_packet()
148 struct efx_rx_buffer *rx_buf = efx_rx_buffer(rx_queue, index); in ef100_rx_packet() local
158 efx_sync_rx_buffer(efx, rx_buf, efx->rx_dma_len); in ef100_rx_packet()
[all …]
Drx_common.c74 struct efx_rx_buffer *rx_buf) in efx_recycle_rx_page() argument
78 struct page *page = rx_buf->page; in efx_recycle_rx_page()
82 if (!(rx_buf->flags & EFX_RX_BUF_LAST_IN_PAGE)) in efx_recycle_rx_page()
101 efx_unmap_rx_buffer(efx, rx_buf); in efx_recycle_rx_page()
102 put_page(rx_buf->page); in efx_recycle_rx_page()
107 struct efx_rx_buffer *rx_buf, in efx_recycle_rx_pages() argument
116 efx_recycle_rx_page(channel, rx_buf); in efx_recycle_rx_pages()
117 rx_buf = efx_rx_buf_next(rx_queue, rx_buf); in efx_recycle_rx_pages()
122 struct efx_rx_buffer *rx_buf, in efx_discard_rx_packet() argument
127 efx_recycle_rx_pages(channel, rx_buf, n_frags); in efx_discard_rx_packet()
[all …]
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, in efx_sync_rx_buffer() argument
71 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len, in efx_sync_rx_buffer()
76 struct efx_rx_buffer *rx_buf,
84 efx_rx_packet_gro(struct efx_channel *channel, struct efx_rx_buffer *rx_buf,
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/
Drx.c76 ef4_rx_buf_next(struct ef4_rx_queue *rx_queue, struct ef4_rx_buffer *rx_buf) in ef4_rx_buf_next() argument
78 if (unlikely(rx_buf == ef4_rx_buffer(rx_queue, rx_queue->ptr_mask))) in ef4_rx_buf_next()
81 return rx_buf + 1; in ef4_rx_buf_next()
85 struct ef4_rx_buffer *rx_buf, in ef4_sync_rx_buffer() argument
88 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len, in ef4_sync_rx_buffer()
155 struct ef4_rx_buffer *rx_buf; in ef4_init_rx_buffers() local
192 rx_buf = ef4_rx_buffer(rx_queue, index); in ef4_init_rx_buffers()
193 rx_buf->dma_addr = dma_addr + efx->rx_ip_align; in ef4_init_rx_buffers()
194 rx_buf->page = page; in ef4_init_rx_buffers()
195 rx_buf->page_offset = page_offset + efx->rx_ip_align; in ef4_init_rx_buffers()
[all …]
/linux-6.6.21/drivers/spi/
Dspi-loopback-test.c97 .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 = RX(SPI_TEST_MAX_SIZE_HALF),
272 .rx_buf = RX(1024),
278 .rx_buf = RX(0),
[all …]
Dspi-xlp.c93 u8 *rx_buf; /* rx data buffer */ member
192 xspi->rx_buf[i] = (rx_data >> (j * 8)) & 0xff; in xlp_spi_read_rxfifo()
195 xspi->rx_buf += nbytes; in xlp_spi_read_rxfifo()
261 if (xspi->rx_buf) in xlp_spi_send_cmd()
271 unsigned char *rx_buf, int xfer_len, int cmd_cont) in xlp_spi_xfer_block() argument
277 xs->rx_buf = rx_buf; in xlp_spi_xfer_block()
279 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
322 unsigned char *rx_buf; in xlp_spi_txrx_bufs() local
326 rx_buf = t->rx_buf; in xlp_spi_txrx_bufs()
330 sz = xlp_spi_xfer_block(xs, tx_buf, rx_buf, in xlp_spi_txrx_bufs()
[all …]
Dspi-sh-msiof.c393 const void *tx_buf, void *rx_buf, in sh_msiof_spi_set_mode_regs() argument
403 if (rx_buf) in sh_msiof_spi_set_mode_regs()
484 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_8() argument
486 u8 *buf_8 = rx_buf; in sh_msiof_spi_read_fifo_8()
494 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_16() argument
496 u16 *buf_16 = rx_buf; in sh_msiof_spi_read_fifo_16()
504 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_16u() argument
506 u16 *buf_16 = rx_buf; in sh_msiof_spi_read_fifo_16u()
514 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_32() argument
516 u32 *buf_32 = rx_buf; in sh_msiof_spi_read_fifo_32()
[all …]
Dspi-realtek-rtl.c97 void *rx_buf; in transfer_one() local
102 rx_buf = xfer->rx_buf; in transfer_one()
115 } else if (rx_buf) { in transfer_one()
117 rcv4(rtspi, rx_buf); in transfer_one()
118 rx_buf += 4; in transfer_one()
122 rcv1(rtspi, rx_buf); in transfer_one()
123 rx_buf++; in transfer_one()
Dspi-cavium.c40 u8 *rx_buf; in octeon_spi_do_transfer() local
69 rx_buf = xfer->rx_buf; in octeon_spi_do_transfer()
88 if (rx_buf) in octeon_spi_do_transfer()
91 *rx_buf++ = (u8)v; in octeon_spi_do_transfer()
116 if (rx_buf) in octeon_spi_do_transfer()
119 *rx_buf++ = (u8)v; in octeon_spi_do_transfer()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_txrx.c391 if (!rx_ring->rx_buf) in ice_clean_rx_ring()
406 struct ice_rx_buf *rx_buf = &rx_ring->rx_buf[i]; in ice_clean_rx_ring() local
408 if (!rx_buf->page) in ice_clean_rx_ring()
414 dma_sync_single_range_for_cpu(dev, rx_buf->dma, in ice_clean_rx_ring()
415 rx_buf->page_offset, in ice_clean_rx_ring()
420 dma_unmap_page_attrs(dev, rx_buf->dma, ice_rx_pg_size(rx_ring), in ice_clean_rx_ring()
422 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias); in ice_clean_rx_ring()
424 rx_buf->page = NULL; in ice_clean_rx_ring()
425 rx_buf->page_offset = 0; in ice_clean_rx_ring()
432 memset(rx_ring->rx_buf, 0, array_size(rx_ring->count, sizeof(*rx_ring->rx_buf))); in ice_clean_rx_ring()
[all …]
/linux-6.6.21/drivers/iio/adc/
Dmcp320x.c96 u8 rx_buf[4]; member
134 memset(&adc->rx_buf, 0, sizeof(adc->rx_buf)); in mcp320x_adc_conversion()
145 *val = (adc->rx_buf[0] << 5 | adc->rx_buf[1] >> 3); in mcp320x_adc_conversion()
150 *val = (adc->rx_buf[0] << 2 | adc->rx_buf[1] >> 6); in mcp320x_adc_conversion()
153 *val = (adc->rx_buf[0] << 7 | adc->rx_buf[1] >> 1); in mcp320x_adc_conversion()
158 *val = (adc->rx_buf[0] << 4 | adc->rx_buf[1] >> 4); in mcp320x_adc_conversion()
161 *val = sign_extend32((adc->rx_buf[0] & 0x1f) << 8 in mcp320x_adc_conversion()
162 | adc->rx_buf[1], 12); in mcp320x_adc_conversion()
168 u32 raw = be32_to_cpup((__be32 *)adc->rx_buf); in mcp320x_adc_conversion()
402 adc->transfer[1].rx_buf = adc->rx_buf; in mcp320x_probe()
Dti-adc108s102.c80 __be16 rx_buf[9] __aligned(IIO_DMA_MINALIGN);
132 st->ring_xfer.rx_buf = &st->rx_buf[0]; in adc108s102_update_scan_mode()
153 &st->rx_buf[1], in adc108s102_trigger_handler()
154 st->ring_xfer.len - sizeof(st->rx_buf[1]), in adc108s102_trigger_handler()
173 return be16_to_cpu(st->rx_buf[1]); in adc108s102_scan_direct()
272 st->scan_single_xfer.rx_buf = st->rx_buf; in adc108s102_probe()
Dti-ads8344.c32 u8 rx_buf[3]; member
94 ret = spi_read(spi, adc->rx_buf, sizeof(adc->rx_buf)); in ads8344_adc_conversion()
98 return adc->rx_buf[0] << 9 | adc->rx_buf[1] << 1 | adc->rx_buf[2] >> 7; in ads8344_adc_conversion()
Dti-tlc4541.c45 __be16 rx_buf[8] __aligned(IIO_DMA_MINALIGN);
102 iio_push_to_buffers_with_timestamp(indio_dev, st->rx_buf, in tlc4541_trigger_handler()
141 *val = be16_to_cpu(st->rx_buf[0]); in tlc4541_read_raw()
190 st->scan_single_xfer[0].rx_buf = &st->rx_buf[0]; in tlc4541_probe()
194 st->scan_single_xfer[2].rx_buf = &st->rx_buf[0]; in tlc4541_probe()
/linux-6.6.21/drivers/iio/humidity/
Dam2315.c114 u8 rx_buf[8]; in am2315_read_data() local
129 ret = i2c_master_recv(data->client, rx_buf, sizeof(rx_buf)); in am2315_read_data()
139 crc = am2315_crc(rx_buf, sizeof(rx_buf) - 2); in am2315_read_data()
140 if ((crc & 0xff) != rx_buf[6] || (crc >> 8) != rx_buf[7]) { in am2315_read_data()
145 sensor_data->hum_data = (rx_buf[AM2315_HUM_OFFSET] << 8) | in am2315_read_data()
146 rx_buf[AM2315_HUM_OFFSET + 1]; in am2315_read_data()
147 sensor_data->temp_data = (rx_buf[AM2315_TEMP_OFFSET] << 8) | in am2315_read_data()
148 rx_buf[AM2315_TEMP_OFFSET + 1]; in am2315_read_data()
/linux-6.6.21/drivers/char/tpm/st33zp24/
Dspi.c58 u8 rx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member
104 .rx_buf = phy->rx_buf, in st33zp24_spi_send()
125 ret = phy->rx_buf[total_length + phy->latency - 1]; in st33zp24_spi_send()
147 .rx_buf = phy->rx_buf, in st33zp24_spi_read8_reg()
162 ret = phy->rx_buf[total_length + phy->latency - 1]; in st33zp24_spi_read8_reg()
164 memcpy(tpm_data, phy->rx_buf + total_length + phy->latency, in st33zp24_spi_read8_reg()
/linux-6.6.21/drivers/input/rmi4/
Drmi_spi.c43 u8 *rx_buf; member
68 tmp = rmi_spi->rx_buf; in rmi_spi_manage_pools()
74 rmi_spi->rx_buf = buf; in rmi_spi_manage_pools()
75 rmi_spi->tx_buf = &rmi_spi->rx_buf[buf_size]; in rmi_spi_manage_pools()
114 int tx_len, u8 *rx_buf, int rx_len) in rmi_spi_xfer() argument
207 if (rx_buf) { in rmi_spi_xfer()
212 xfer->rx_buf = &rmi_spi->rx_buf[i]; in rmi_spi_xfer()
221 xfer->rx_buf = rmi_spi->rx_buf; in rmi_spi_xfer()
233 if (rx_buf) { in rmi_spi_xfer()
234 memcpy(rx_buf, rmi_spi->rx_buf, rx_len); in rmi_spi_xfer()
[all …]
/linux-6.6.21/include/trace/events/
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-6.6.21/drivers/hwmon/
Dadcxx.c54 u8 rx_buf[2]; in adcxx_show() local
62 status = spi_read(spi, rx_buf, sizeof(rx_buf)); in adcxx_show()
66 rx_buf, sizeof(rx_buf)); in adcxx_show()
74 value = (rx_buf[0] << 8) + rx_buf[1]; in adcxx_show()
/linux-6.6.21/drivers/net/wireless/ath/ath9k/
Dhif_usb.c690 struct rx_buf *rx_buf = (struct rx_buf *)urb->context; in ath9k_hif_usb_rx_cb() local
691 struct hif_device_usb *hif_dev = rx_buf->hif_dev; in ath9k_hif_usb_rx_cb()
692 struct sk_buff *skb = rx_buf->skb; in ath9k_hif_usb_rx_cb()
732 kfree(rx_buf); in ath9k_hif_usb_rx_cb()
737 struct rx_buf *rx_buf = (struct rx_buf *)urb->context; in ath9k_hif_usb_reg_in_cb() local
738 struct hif_device_usb *hif_dev = rx_buf->hif_dev; in ath9k_hif_usb_reg_in_cb()
739 struct sk_buff *skb = rx_buf->skb; in ath9k_hif_usb_reg_in_cb()
781 rx_buf->skb = skb; in ath9k_hif_usb_reg_in_cb()
787 ath9k_hif_usb_reg_in_cb, rx_buf, 1); in ath9k_hif_usb_reg_in_cb()
802 kfree(rx_buf); in ath9k_hif_usb_reg_in_cb()
[all …]
/linux-6.6.21/drivers/gpu/drm/bridge/adv7511/
Dadv7511_cec.c85 static void adv7511_cec_rx(struct adv7511 *adv7511, int rx_buf) in adv7511_cec_rx() argument
94 ADV7511_REG_CEC_RX_FRAME_LEN[rx_buf] + offset, &len)) in adv7511_cec_rx()
107 i + ADV7511_REG_CEC_RX_FRAME_HDR[rx_buf] + offset, in adv7511_cec_rx()
114 ADV7511_REG_CEC_RX_BUFFERS + offset, BIT(rx_buf), in adv7511_cec_rx()
115 BIT(rx_buf)); in adv7511_cec_rx()
117 ADV7511_REG_CEC_RX_BUFFERS + offset, BIT(rx_buf), 0); in adv7511_cec_rx()
168 int rx_buf = rx_order[i]; in adv7511_cec_irq_process() local
170 if (rx_buf < 0) in adv7511_cec_irq_process()
173 adv7511_cec_rx(adv7511, rx_buf); in adv7511_cec_irq_process()

12345678910>>...16