Home
last modified time | relevance | path

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

12345678910>>...15

/linux/drivers/net/ethernet/sfc/
A Drx.c94 rx_buf->len -= hdr_len; in efx_rx_mk_skb()
98 rx_buf->page, rx_buf->page_offset, in efx_rx_mk_skb()
100 rx_buf->page = NULL; in efx_rx_mk_skb()
105 rx_buf = efx_rx_buf_next(&channel->rx_queue, rx_buf); in efx_rx_mk_skb()
109 rx_buf->page = NULL; in efx_rx_mk_skb()
131 rx_buf->flags |= flags; in efx_rx_packet()
165 rx_buf->len = len; in efx_rx_packet()
170 efx_sync_rx_buffer(efx, rx_buf, rx_buf->len); in efx_rx_packet()
187 rx_buf = efx_rx_buf_next(rx_queue, rx_buf); in efx_rx_packet()
193 efx_sync_rx_buffer(efx, rx_buf, rx_buf->len); in efx_rx_packet()
[all …]
A Def100_rx.c60 u8 *eh = efx_rx_buf_va(rx_buf); 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()
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()
121 rx_buf->page_offset += efx->rx_prefix_size; in ef100_rx_packet()
123 efx_recycle_rx_pages(channel, rx_buf, 1); in ef100_rx_packet()
152 struct efx_rx_buffer *rx_buf; in ef100_rx_write() local
[all …]
A Drx_common.c109 put_page(rx_buf->page); in efx_recycle_rx_page()
124 rx_buf = efx_rx_buf_next(rx_queue, rx_buf); in efx_recycle_rx_pages()
191 if (rx_buf->page) in efx_fini_rx_buffer()
199 rx_buf->page = NULL; in efx_fini_rx_buffer()
351 if (rx_buf->page) { in efx_free_rx_buffers()
355 rx_buf = efx_rx_buf_next(rx_queue, rx_buf); in efx_free_rx_buffers()
428 rx_buf->flags = 0; in efx_init_rx_buffers()
551 rx_buf->page, rx_buf->page_offset, in efx_rx_packet_gro()
552 rx_buf->len); in efx_rx_packet_gro()
553 rx_buf->page = NULL; in efx_rx_packet_gro()
[all …]
A 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,
/linux/drivers/net/ethernet/sfc/falcon/
A Drx.c81 return rx_buf + 1; in ef4_rx_buf_next()
236 rx_buf = ef4_rx_buf_next(rx_queue, rx_buf); in ef4_free_rx_buffers()
280 if (rx_buf->page) in ef4_fini_rx_buffer()
303 rx_buf = ef4_rx_buf_next(rx_queue, rx_buf); in ef4_recycle_rx_pages()
454 rx_buf->page, rx_buf->page_offset, in ef4_rx_packet_gro()
461 rx_buf = ef4_rx_buf_next(&channel->rx_queue, rx_buf); in ef4_rx_packet_gro()
504 rx_buf->page, rx_buf->page_offset, in ef4_rx_mk_skb()
512 rx_buf = ef4_rx_buf_next(&channel->rx_queue, rx_buf); in ef4_rx_mk_skb()
579 ef4_sync_rx_buffer(efx, rx_buf, rx_buf->len); in ef4_rx_packet()
596 rx_buf = ef4_rx_buf_next(rx_queue, rx_buf); in ef4_rx_packet()
[all …]
/linux/drivers/net/ethernet/intel/ice/
A Dice_txrx.c399 struct ice_rx_buf *rx_buf = &rx_ring->rx_buf[i]; in ice_clean_rx_ring() local
401 if (!rx_buf->page) in ice_clean_rx_ring()
415 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias); in ice_clean_rx_ring()
485 rx_ring->rx_buf = in ice_setup_rx_ring()
891 rx_buf = &rx_ring->rx_buf[rx_ring->next_to_clean]; in ice_get_rx_buf()
901 return rx_buf; in ice_get_rx_buf()
910 return rx_buf; in ice_get_rx_buf()
1044 if (!rx_buf) in ice_put_rx_buf()
1055 __page_frag_cache_drain(rx_buf->page, rx_buf->pagecnt_bias); in ice_put_rx_buf()
1172 hard_start = page_address(rx_buf->page) + rx_buf->page_offset - in ice_clean_rx_irq()
[all …]
/linux/drivers/spi/
A Dspi-loopback-test.c86 .rx_buf = RX(0),
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),
267 .rx_buf = RX(0),
282 .rx_buf = RX(0),
300 .rx_buf = RX(0),
308 .rx_buf = RX(0),
[all …]
A 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()
278 xs->rx_buf = rx_buf; 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()
334 sz = xlp_spi_xfer_block(xs, tx_buf, rx_buf, in xlp_spi_txrx_bufs()
341 if (rx_buf) in xlp_spi_txrx_bufs()
[all …]
A Dspi-sh-msiof.c401 if (rx_buf) in sh_msiof_spi_set_mode_regs()
484 u8 *buf_8 = rx_buf; in sh_msiof_spi_read_fifo_8()
612 if (rx_buf && !ret) in sh_msiof_spi_start()
634 if (rx_buf && !ret) in sh_msiof_spi_stop()
685 if (rx_buf) in sh_msiof_spi_txrx_once()
717 if (rx_buf) in sh_msiof_spi_txrx_once()
916 void *rx_buf = t->rx_buf; in sh_msiof_transfer_one() local
941 if (rx_buf) in sh_msiof_transfer_one()
964 if (rx_buf) { in sh_msiof_transfer_one()
966 rx_buf += l; in sh_msiof_transfer_one()
[all …]
A 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()
A 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/drivers/iio/adc/
A 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()
A Dti-adc108s102.c80 __be16 rx_buf[9] ____cacheline_aligned; member
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()
A 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()
A 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()
A 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()
A 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()
/linux/drivers/iio/humidity/
A 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/drivers/net/wireless/ath/ath9k/
A Dhif_usb.c655 struct rx_buf *rx_buf = (struct rx_buf *)urb->context; in ath9k_hif_usb_rx_cb() local
697 kfree(rx_buf); in ath9k_hif_usb_rx_cb()
702 struct rx_buf *rx_buf = (struct rx_buf *)urb->context; in ath9k_hif_usb_reg_in_cb() local
765 kfree(rx_buf); in ath9k_hif_usb_reg_in_cb()
858 struct rx_buf *rx_buf = NULL; in ath9k_hif_usb_alloc_rx_urbs() local
868 rx_buf = kzalloc(sizeof(*rx_buf), GFP_KERNEL); in ath9k_hif_usb_alloc_rx_urbs()
869 if (!rx_buf) { in ath9k_hif_usb_alloc_rx_urbs()
921 kfree(rx_buf); in ath9k_hif_usb_alloc_rx_urbs()
934 struct rx_buf *rx_buf = NULL; in ath9k_hif_usb_alloc_reg_in_urbs() local
943 rx_buf = kzalloc(sizeof(*rx_buf), GFP_KERNEL); in ath9k_hif_usb_alloc_reg_in_urbs()
[all …]
/linux/drivers/input/rmi4/
A 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/include/trace/events/
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/drivers/hwmon/
A 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/drivers/platform/chrome/
A Dcros_ec_spi.c167 trans.rx_buf = buf; in receive_n_bytes()
397 u8 *rx_buf; in do_cros_ec_pkt_xfer_spi() local
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
555 if (!rx_buf) in do_cros_ec_cmd_xfer_spi()
564 trans.rx_buf = rx_buf; in do_cros_ec_cmd_xfer_spi()
575 rx_byte = rx_buf[i]; in do_cros_ec_cmd_xfer_spi()
[all …]
/linux/drivers/net/ethernet/asix/
A Dax88796c_spi.c54 xfer->rx_buf = NULL; in axspi_read_rxq()
60 xfer->rx_buf = data; in axspi_read_rxq()
88 ax_spi->rx_buf, 2); in axspi_read_reg()
95 le16_to_cpus((u16 *)ax_spi->rx_buf); in axspi_read_reg()
97 return *(u16 *)ax_spi->rx_buf; in axspi_read_reg()
/linux/drivers/char/tpm/st33zp24/
A 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()

Completed in 73 milliseconds

12345678910>>...15