Home
last modified time | relevance | path

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

12345678910>>...15

/kernel/linux/linux-5.10/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); in efx_rx_mk_skb()
[all …]
Def100_rx.c58 struct efx_rx_buffer *rx_buf = efx_rx_buffer(&channel->rx_queue, channel->rx_pkt_index); in __ef100_rx_packet() local
60 u8 *eh = efx_rx_buf_va(rx_buf); in __ef100_rx_packet()
70 rx_buf->len = le16_to_cpu((__force __le16)PREFIX_FIELD(prefix, LENGTH)); in __ef100_rx_packet()
71 if (rx_buf->len <= sizeof(struct ethhdr)) { in __ef100_rx_packet()
74 "RX packet too small (%d)\n", rx_buf->len); in __ef100_rx_packet()
95 efx_free_rx_buffers(rx_queue, rx_buf, 1); in __ef100_rx_packet()
99 efx_rx_packet_gro(channel, rx_buf, channel->rx_pkt_n_frags, eh, csum); in __ef100_rx_packet()
107 struct efx_rx_buffer *rx_buf = efx_rx_buffer(rx_queue, index); in ef100_rx_packet() local
117 efx_sync_rx_buffer(efx, rx_buf, efx->rx_dma_len); in ef100_rx_packet()
119 prefetch(efx_rx_buf_va(rx_buf)); in ef100_rx_packet()
[all …]
Drx_common.c81 struct efx_rx_buffer *rx_buf) in efx_recycle_rx_page() argument
85 struct page *page = rx_buf->page; in efx_recycle_rx_page()
89 if (!(rx_buf->flags & EFX_RX_BUF_LAST_IN_PAGE)) in efx_recycle_rx_page()
108 efx_unmap_rx_buffer(efx, rx_buf); in efx_recycle_rx_page()
109 put_page(rx_buf->page); in efx_recycle_rx_page()
114 struct efx_rx_buffer *rx_buf, in efx_recycle_rx_pages() argument
123 efx_recycle_rx_page(channel, rx_buf); in efx_recycle_rx_pages()
124 rx_buf = efx_rx_buf_next(rx_queue, rx_buf); in efx_recycle_rx_pages()
129 struct efx_rx_buffer *rx_buf, in efx_discard_rx_packet() argument
134 efx_recycle_rx_pages(channel, rx_buf, n_frags); in efx_discard_rx_packet()
[all …]
Drx_common.h43 struct efx_rx_buffer *rx_buf,
46 struct efx_rx_buffer *rx_buf,
59 void efx_unmap_rx_buffer(struct efx_nic *efx, struct efx_rx_buffer *rx_buf);
62 struct efx_rx_buffer *rx_buf, in efx_sync_rx_buffer() argument
65 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len, in efx_sync_rx_buffer()
70 struct efx_rx_buffer *rx_buf,
78 efx_rx_packet_gro(struct efx_channel *channel, struct efx_rx_buffer *rx_buf,
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_xsk.c417 struct ice_rx_buf *rx_buf; in ice_alloc_rx_bufs_zc() local
425 rx_buf = &rx_ring->rx_buf[ntu]; in ice_alloc_rx_bufs_zc()
428 rx_buf->xdp = xsk_buff_alloc(rx_ring->xsk_pool); in ice_alloc_rx_bufs_zc()
429 if (!rx_buf->xdp) { in ice_alloc_rx_bufs_zc()
434 dma = xsk_buff_xdp_get_dma(rx_buf->xdp); in ice_alloc_rx_bufs_zc()
439 rx_buf++; in ice_alloc_rx_bufs_zc()
444 rx_buf = rx_ring->rx_buf; in ice_alloc_rx_bufs_zc()
481 ice_construct_skb_zc(struct ice_ring *rx_ring, struct ice_rx_buf *rx_buf) in ice_construct_skb_zc() argument
483 unsigned int metasize = rx_buf->xdp->data - rx_buf->xdp->data_meta; in ice_construct_skb_zc()
484 unsigned int datasize = rx_buf->xdp->data_end - rx_buf->xdp->data; in ice_construct_skb_zc()
[all …]
Dice_txrx.c375 if (!rx_ring->rx_buf) in ice_clean_rx_ring()
385 struct ice_rx_buf *rx_buf = &rx_ring->rx_buf[i]; in ice_clean_rx_ring() local
387 if (rx_buf->skb) { in ice_clean_rx_ring()
388 dev_kfree_skb(rx_buf->skb); in ice_clean_rx_ring()
389 rx_buf->skb = NULL; in ice_clean_rx_ring()
391 if (!rx_buf->page) in ice_clean_rx_ring()
397 dma_sync_single_range_for_cpu(dev, rx_buf->dma, in ice_clean_rx_ring()
398 rx_buf->page_offset, in ice_clean_rx_ring()
403 dma_unmap_page_attrs(dev, rx_buf->dma, ice_rx_pg_size(rx_ring), in ice_clean_rx_ring()
405 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias); in ice_clean_rx_ring()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-loopback-test.c86 .rx_buf = RX(0),
100 .rx_buf = RX(PAGE_SIZE - 4),
124 .rx_buf = RX(0),
191 .rx_buf = RX(0),
208 .rx_buf = RX(0),
225 .rx_buf = RX(0),
239 .rx_buf = RX(0),
246 .rx_buf = RX(SPI_TEST_MAX_SIZE_HALF),
261 .rx_buf = RX(1024),
267 .rx_buf = RX(0),
[all …]
Dspi-xlp.c94 u8 *rx_buf; /* rx data buffer */ member
193 xspi->rx_buf[i] = (rx_data >> (j * 8)) & 0xff; in xlp_spi_read_rxfifo()
196 xspi->rx_buf += nbytes; in xlp_spi_read_rxfifo()
262 if (xspi->rx_buf) in xlp_spi_send_cmd()
272 unsigned char *rx_buf, int xfer_len, int cmd_cont) in xlp_spi_xfer_block() argument
278 xs->rx_buf = rx_buf; in xlp_spi_xfer_block()
280 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
323 unsigned char *rx_buf; in xlp_spi_txrx_bufs() local
327 rx_buf = t->rx_buf; in xlp_spi_txrx_bufs()
331 sz = xlp_spi_xfer_block(xs, tx_buf, rx_buf, in xlp_spi_txrx_bufs()
[all …]
Dspi-sh-msiof.c387 const void *tx_buf, void *rx_buf, in sh_msiof_spi_set_mode_regs() argument
397 if (rx_buf) in sh_msiof_spi_set_mode_regs()
478 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_8() argument
480 u8 *buf_8 = rx_buf; in sh_msiof_spi_read_fifo_8()
488 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_16() argument
490 u16 *buf_16 = rx_buf; in sh_msiof_spi_read_fifo_16()
498 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_16u() argument
500 u16 *buf_16 = rx_buf; in sh_msiof_spi_read_fifo_16u()
508 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_32() argument
510 u32 *buf_32 = rx_buf; in sh_msiof_spi_read_fifo_32()
[all …]
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()
/kernel/linux/linux-5.10/drivers/iio/humidity/
Dam2315.c115 u8 rx_buf[8]; in am2315_read_data() local
130 ret = i2c_master_recv(data->client, rx_buf, sizeof(rx_buf)); in am2315_read_data()
140 crc = am2315_crc(rx_buf, sizeof(rx_buf) - 2); in am2315_read_data()
141 if ((crc & 0xff) != rx_buf[6] || (crc >> 8) != rx_buf[7]) { in am2315_read_data()
146 sensor_data->hum_data = (rx_buf[AM2315_HUM_OFFSET] << 8) | in am2315_read_data()
147 rx_buf[AM2315_HUM_OFFSET + 1]; in am2315_read_data()
148 sensor_data->temp_data = (rx_buf[AM2315_TEMP_OFFSET] << 8) | in am2315_read_data()
149 rx_buf[AM2315_TEMP_OFFSET + 1]; in am2315_read_data()
/kernel/linux/linux-5.10/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-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] ____cacheline_aligned; member
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()
Dti-adc108s102.c80 __be16 rx_buf[13] ____cacheline_aligned; member
132 st->ring_xfer.rx_buf = &st->rx_buf[0]; in adc108s102_update_scan_mode()
153 (u8 *)&st->rx_buf[1], in adc108s102_trigger_handler()
172 return be16_to_cpu(st->rx_buf[1]); in adc108s102_scan_direct()
263 st->scan_single_xfer.rx_buf = st->rx_buf; in adc108s102_probe()
Dti-adc0832.c40 u8 rx_buf[2]; member
125 ret = spi_read(spi, &adc->rx_buf, 2); in adc0831_adc_conversion()
132 return (adc->rx_buf[0] << 2 & 0xff) | (adc->rx_buf[1] >> 6); in adc0831_adc_conversion()
141 .rx_buf = adc->rx_buf, in adc0832_adc_conversion()
166 return adc->rx_buf[1]; in adc0832_adc_conversion()
Dti-adc12138.c58 u8 rx_buf[2]; member
128 void *rx_buf, int len) in adc12138_mode_programming() argument
132 .rx_buf = adc->rx_buf, in adc12138_mode_programming()
147 memcpy(rx_buf, adc->rx_buf, len); in adc12138_mode_programming()
154 u8 rx_buf[2]; in adc12138_read_status() local
158 rx_buf, 2); in adc12138_read_status()
162 return (rx_buf[0] << 1) | (rx_buf[1] >> 7); in adc12138_read_status()
/kernel/linux/linux-5.10/include/trace/events/
Dspi.h120 (xfer->rx_buf && xfer->rx_buf != msg->spi->controller->dummy_rx)
133 __dynamic_array(u8, rx_buf,
152 memcpy(__get_dynamic_array(rx_buf),
153 xfer->rx_buf, __get_dynamic_array_len(rx_buf));
160 __get_dynamic_array_len(rx_buf), __get_dynamic_array(rx_buf))
/kernel/linux/linux-5.10/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
206 if (rx_buf) { in rmi_spi_xfer()
211 xfer->rx_buf = &rmi_spi->rx_buf[i]; in rmi_spi_xfer()
219 xfer->rx_buf = rmi_spi->rx_buf; in rmi_spi_xfer()
231 if (rx_buf) { in rmi_spi_xfer()
232 memcpy(rx_buf, rmi_spi->rx_buf, rx_len); in rmi_spi_xfer()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dhif_usb.c662 struct rx_buf *rx_buf = (struct rx_buf *)urb->context; in ath9k_hif_usb_rx_cb() local
663 struct hif_device_usb *hif_dev = rx_buf->hif_dev; in ath9k_hif_usb_rx_cb()
664 struct sk_buff *skb = rx_buf->skb; in ath9k_hif_usb_rx_cb()
704 kfree(rx_buf); in ath9k_hif_usb_rx_cb()
709 struct rx_buf *rx_buf = (struct rx_buf *)urb->context; in ath9k_hif_usb_reg_in_cb() local
710 struct hif_device_usb *hif_dev = rx_buf->hif_dev; in ath9k_hif_usb_reg_in_cb()
711 struct sk_buff *skb = rx_buf->skb; in ath9k_hif_usb_reg_in_cb()
752 rx_buf->skb = nskb; in ath9k_hif_usb_reg_in_cb()
758 ath9k_hif_usb_reg_in_cb, rx_buf, 1); in ath9k_hif_usb_reg_in_cb()
772 kfree(rx_buf); in ath9k_hif_usb_reg_in_cb()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/platform/chrome/
Dcros_ec_spi.c167 trans.rx_buf = buf; in receive_n_bytes()
397 u8 *rx_buf; in do_cros_ec_pkt_xfer_spi() local
411 rx_buf = kzalloc(len, GFP_KERNEL); in do_cros_ec_pkt_xfer_spi()
412 if (!rx_buf) in do_cros_ec_pkt_xfer_spi()
432 trans.rx_buf = rx_buf; in do_cros_ec_pkt_xfer_spi()
442 rx_byte = rx_buf[i]; in do_cros_ec_pkt_xfer_spi()
519 kfree(rx_buf); in do_cros_ec_pkt_xfer_spi()
540 u8 *rx_buf; in do_cros_ec_cmd_xfer_spi() local
554 rx_buf = kzalloc(len, GFP_KERNEL); in do_cros_ec_cmd_xfer_spi()
555 if (!rx_buf) in do_cros_ec_cmd_xfer_spi()
[all …]
/kernel/linux/linux-5.10/drivers/char/tpm/st33zp24/
Dspi.c62 u8 rx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member
109 .rx_buf = phy->rx_buf, in st33zp24_spi_send()
130 ret = phy->rx_buf[total_length + phy->latency - 1]; in st33zp24_spi_send()
152 .rx_buf = phy->rx_buf, in st33zp24_spi_read8_reg()
167 ret = phy->rx_buf[total_length + phy->latency - 1]; in st33zp24_spi_read8_reg()
169 memcpy(tpm_data, phy->rx_buf + total_length + phy->latency, in st33zp24_spi_read8_reg()
/kernel/linux/linux-5.10/drivers/iio/pressure/
Ddlhl60d.c50 u8 rx_buf[DLH_NUM_READ_BYTES] ____cacheline_aligned; member
81 ret = i2c_master_recv(st->client, st->rx_buf, DLH_NUM_READ_BYTES); in dlh_cmd_read_data()
88 if (st->rx_buf[0] != DLH_STATUS_OK) { in dlh_cmd_read_data()
90 "%s: invalid status 0x%02x\n", __func__, st->rx_buf[0]); in dlh_cmd_read_data()
132 *pressure = get_unaligned_be32(&st->rx_buf[1]) >> 8; in dlh_read_direct()
133 *temperature = get_unaligned_be32(&st->rx_buf[3]) & in dlh_read_direct()
263 &st->rx_buf[1] + chn * DLH_NUM_DATA_BYTES, in dlh_trigger_handler()

12345678910>>...15