Home
last modified time | relevance | path

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

12345678910>>...12

/drivers/net/ethernet/sfc/
Drx.c79 efx_rx_buf_next(struct efx_rx_queue *rx_queue, struct efx_rx_buffer *rx_buf) in efx_rx_buf_next() argument
81 if (unlikely(rx_buf == efx_rx_buffer(rx_queue, rx_queue->ptr_mask))) in efx_rx_buf_next()
84 return rx_buf + 1; in efx_rx_buf_next()
88 struct efx_rx_buffer *rx_buf, in efx_sync_rx_buffer() argument
91 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len, in efx_sync_rx_buffer()
155 struct efx_rx_buffer *rx_buf; in efx_init_rx_buffers() local
192 rx_buf = efx_rx_buffer(rx_queue, index); in efx_init_rx_buffers()
193 rx_buf->dma_addr = dma_addr + efx->rx_ip_align; in efx_init_rx_buffers()
194 rx_buf->page = page; in efx_init_rx_buffers()
195 rx_buf->page_offset = page_offset + efx->rx_ip_align; in efx_init_rx_buffers()
[all …]
/drivers/net/ethernet/sfc/falcon/
Drx.c79 ef4_rx_buf_next(struct ef4_rx_queue *rx_queue, struct ef4_rx_buffer *rx_buf) in ef4_rx_buf_next() argument
81 if (unlikely(rx_buf == ef4_rx_buffer(rx_queue, rx_queue->ptr_mask))) in ef4_rx_buf_next()
84 return rx_buf + 1; in ef4_rx_buf_next()
88 struct ef4_rx_buffer *rx_buf, in ef4_sync_rx_buffer() argument
91 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 …]
/drivers/iio/adc/
Dmcp320x.c72 u8 rx_buf[2]; member
105 adc->rx_buf[0] = 0; in mcp320x_adc_conversion()
106 adc->rx_buf[1] = 0; in mcp320x_adc_conversion()
115 ret = spi_read(adc->spi, &adc->rx_buf, sizeof(adc->rx_buf)); in mcp320x_adc_conversion()
122 *val = (adc->rx_buf[0] << 5 | adc->rx_buf[1] >> 3); in mcp320x_adc_conversion()
127 *val = (adc->rx_buf[0] << 2 | adc->rx_buf[1] >> 6); in mcp320x_adc_conversion()
130 *val = (adc->rx_buf[0] << 7 | adc->rx_buf[1] >> 1); in mcp320x_adc_conversion()
135 *val = (adc->rx_buf[0] << 4 | adc->rx_buf[1] >> 4); in mcp320x_adc_conversion()
138 *val = sign_extend32((adc->rx_buf[0] & 0x1f) << 8 in mcp320x_adc_conversion()
139 | adc->rx_buf[1], 12); in mcp320x_adc_conversion()
[all …]
Dti-tlc4541.c47 __be16 rx_buf[8] ____cacheline_aligned; member
104 iio_push_to_buffers_with_timestamp(indio_dev, st->rx_buf, in tlc4541_trigger_handler()
143 *val = be16_to_cpu(st->rx_buf[0]); in tlc4541_read_raw()
194 st->scan_single_xfer[0].rx_buf = &st->rx_buf[0]; in tlc4541_probe()
197 st->scan_single_xfer[2].rx_buf = &st->rx_buf[0]; in tlc4541_probe()
Dti-adc108s102.c87 __be16 rx_buf[13] ____cacheline_aligned; member
139 st->ring_xfer.rx_buf = &st->rx_buf[0]; in adc108s102_update_scan_mode()
160 (u8 *)&st->rx_buf[1], in adc108s102_trigger_handler()
179 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-adc12138.c55 u8 rx_buf[2]; member
125 void *rx_buf, int len) in adc12138_mode_programming() argument
129 .rx_buf = adc->rx_buf, in adc12138_mode_programming()
144 memcpy(rx_buf, adc->rx_buf, len); in adc12138_mode_programming()
151 u8 rx_buf[2]; in adc12138_read_status() local
155 rx_buf, 2); in adc12138_read_status()
159 return (rx_buf[0] << 1) | (rx_buf[1] >> 7); in adc12138_read_status()
Dti-adc0832.c36 u8 rx_buf[2]; member
121 ret = spi_read(spi, &adc->rx_buf, 2); in adc0831_adc_conversion()
128 return (adc->rx_buf[0] << 2 & 0xff) | (adc->rx_buf[1] >> 6); in adc0831_adc_conversion()
137 .rx_buf = adc->rx_buf, in adc0832_adc_conversion()
162 return adc->rx_buf[1]; in adc0832_adc_conversion()
Dad7923.c69 __be16 rx_buf[4] ____cacheline_aligned; member
155 st->ring_xfer[i + 1].rx_buf = &st->rx_buf[i]; in ad7923_update_scan_mode()
183 iio_push_to_buffers_with_timestamp(indio_dev, st->rx_buf, in ad7923_trigger_handler()
206 return be16_to_cpu(st->rx_buf[0]); in ad7923_scan_direct()
302 st->scan_single_xfer[1].rx_buf = &st->rx_buf[0]; in ad7923_probe()
/drivers/spi/
Dspi-loopback-test.c95 .rx_buf = RX(0),
109 .rx_buf = RX(PAGE_SIZE - 4),
133 .rx_buf = RX(0),
200 .rx_buf = RX(0),
217 .rx_buf = RX(0),
234 .rx_buf = RX(0),
248 .rx_buf = RX(0),
255 .rx_buf = RX(SPI_TEST_MAX_SIZE_HALF),
270 .rx_buf = RX(1024),
276 .rx_buf = RX(0),
[all …]
Dspi-sh-msiof.c371 const void *tx_buf, void *rx_buf, in sh_msiof_spi_set_mode_regs() argument
381 if (rx_buf) in sh_msiof_spi_set_mode_regs()
462 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_8() argument
464 u8 *buf_8 = rx_buf; in sh_msiof_spi_read_fifo_8()
472 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_16() argument
474 u16 *buf_16 = rx_buf; in sh_msiof_spi_read_fifo_16()
482 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_16u() argument
484 u16 *buf_16 = rx_buf; in sh_msiof_spi_read_fifo_16u()
492 void *rx_buf, int words, int fs) in sh_msiof_spi_read_fifo_32() argument
494 u32 *buf_32 = rx_buf; in sh_msiof_spi_read_fifo_32()
[all …]
Dspi-xlp.c102 u8 *rx_buf; /* rx data buffer */ member
201 xspi->rx_buf[i] = (rx_data >> (j * 8)) & 0xff; in xlp_spi_read_rxfifo()
204 xspi->rx_buf += nbytes; in xlp_spi_read_rxfifo()
270 if (xspi->rx_buf) in xlp_spi_send_cmd()
280 unsigned char *rx_buf, int xfer_len, int cmd_cont) in xlp_spi_xfer_block() argument
286 xs->rx_buf = rx_buf; in xlp_spi_xfer_block()
288 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
331 unsigned char *rx_buf; in xlp_spi_txrx_bufs() local
335 rx_buf = t->rx_buf; in xlp_spi_txrx_bufs()
339 sz = xlp_spi_xfer_block(xs, tx_buf, rx_buf, in xlp_spi_txrx_bufs()
[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()
Dspidev.c139 .rx_buf = spidev->rx_buffer, in spidev_sync_read()
215 u8 *tx_buf, *rx_buf; in spidev_message() local
228 rx_buf = spidev->rx_buffer; in spidev_message()
248 if (u_tmp->rx_buf) { in spidev_message()
255 k_tmp->rx_buf = rx_buf; in spidev_message()
256 rx_buf += k_tmp->len; in spidev_message()
285 u_tmp->rx_buf ? "rx " : "", in spidev_message()
300 rx_buf = spidev->rx_buffer; in spidev_message()
302 if (u_tmp->rx_buf) { in spidev_message()
304 (uintptr_t) u_tmp->rx_buf, rx_buf, in spidev_message()
[all …]
Dspi-stm32.c171 void *rx_buf; member
361 u32 *rx_buf32 = (u32 *)(spi->rx_buf + offs); in stm32_spi_read_rxfifo()
367 u16 *rx_buf16 = (u16 *)(spi->rx_buf + offs); in stm32_spi_read_rxfifo()
372 u8 *rx_buf8 = (u8 *)(spi->rx_buf + offs); in stm32_spi_read_rxfifo()
440 if (!spi->cur_usedma && spi->rx_buf && (spi->rx_len > 0)) in stm32_spi_disable()
445 if (spi->cur_usedma && spi->rx_buf) in stm32_spi_disable()
503 if (spi->rx_buf && !spi->cur_usedma) in stm32_spi_irq()
515 if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0))) in stm32_spi_irq()
532 if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0))) in stm32_spi_irq()
543 if (!spi->cur_usedma && (spi->rx_buf && (spi->rx_len > 0))) in stm32_spi_irq()
[all …]
Dspi-rb4xx.c104 u8 *rx_buf; in rb4xx_transfer_one() local
121 rx_buf = t->rx_buf; in rb4xx_transfer_one()
128 if (!rx_buf) in rb4xx_transfer_one()
130 rx_buf[i] = rb4xx_read(rbspi, AR71XX_SPI_REG_RDS); in rb4xx_transfer_one()
Dspi-clps711x.c34 u8 *rx_buf; member
82 hw->rx_buf = (u8 *)xfer->rx_buf; in spi_clps711x_transfer_one()
99 if (hw->rx_buf) in spi_clps711x_isr()
100 *hw->rx_buf++ = data; in spi_clps711x_isr()
/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()
/drivers/tty/
Dmetag_da.c111 void *rx_buf; member
167 if (!dport->rx_buf) in fetch_data()
170 (void *)dport->rx_buf, &received) == CONAOK) { in fetch_data()
181 memcpy(cbuf, dport->rx_buf, space); in fetch_data()
208 if (dport->rx_buf) { in find_channel_to_poll()
345 void *rx_buf; in dashtty_port_activate() local
352 rx_buf = kzalloc(RX_BUF_SIZE, GFP_KERNEL); in dashtty_port_activate()
353 if (!rx_buf) in dashtty_port_activate()
357 dport->rx_buf = rx_buf; in dashtty_port_activate()
381 void *rx_buf; in dashtty_port_shutdown() local
[all …]
/drivers/input/rmi4/
Drmi_spi.c46 u8 *rx_buf; member
71 tmp = rmi_spi->rx_buf; in rmi_spi_manage_pools()
77 rmi_spi->rx_buf = buf; in rmi_spi_manage_pools()
78 rmi_spi->tx_buf = &rmi_spi->rx_buf[buf_size]; in rmi_spi_manage_pools()
116 int tx_len, u8 *rx_buf, int rx_len) in rmi_spi_xfer() argument
208 if (rx_buf) { in rmi_spi_xfer()
213 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 …]
/drivers/mfd/
Dcros_ec_spi.c148 trans.rx_buf = buf; in receive_n_bytes()
378 u8 *rx_buf; in cros_ec_pkt_xfer_spi() local
394 rx_buf = kzalloc(len, GFP_KERNEL); in cros_ec_pkt_xfer_spi()
395 if (!rx_buf) in cros_ec_pkt_xfer_spi()
414 trans.rx_buf = rx_buf; in cros_ec_pkt_xfer_spi()
424 switch (rx_buf[i]) { in cros_ec_pkt_xfer_spi()
489 kfree(rx_buf); in cros_ec_pkt_xfer_spi()
510 u8 *rx_buf; in cros_ec_cmd_xfer_spi() local
526 rx_buf = kzalloc(len, GFP_KERNEL); in cros_ec_cmd_xfer_spi()
527 if (!rx_buf) in cros_ec_cmd_xfer_spi()
[all …]
/drivers/hwmon/
Dadcxx.c67 u8 rx_buf[2]; in adcxx_read() local
75 status = spi_read(spi, rx_buf, sizeof(rx_buf)); in adcxx_read()
79 rx_buf, sizeof(rx_buf)); in adcxx_read()
87 value = (rx_buf[0] << 8) + rx_buf[1]; in adcxx_read()
/drivers/char/tpm/st33zp24/
Dspi.c74 u8 rx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member
121 .rx_buf = phy->rx_buf, in st33zp24_spi_send()
142 ret = phy->rx_buf[total_length + phy->latency - 1]; in st33zp24_spi_send()
164 .rx_buf = phy->rx_buf, in st33zp24_spi_read8_reg()
179 ret = phy->rx_buf[total_length + phy->latency - 1]; in st33zp24_spi_read8_reg()
181 memcpy(tpm_data, phy->rx_buf + total_length + phy->latency, in st33zp24_spi_read8_reg()
/drivers/net/ethernet/
Dec_bhf.c147 struct bhf_dma rx_buf; member
210 iowrite32(FIFO_RX_ADDR_VALID | ((u8 *)(desc) - priv->rx_buf.buf), in ec_bhf_add_rx_desc()
382 priv->rx_dcount = priv->rx_buf.len / sizeof(struct rx_desc); in ec_bhf_setup_rx_descs()
383 priv->rx_descs = (struct rx_desc *)priv->rx_buf.buf; in ec_bhf_setup_rx_descs()
391 next = (u8 *)(desc + 1) - priv->rx_buf.buf; in ec_bhf_setup_rx_descs()
409 err = ec_bhf_alloc_dma_mem(priv, &priv->rx_buf, priv->rx_dma_chan, in ec_bhf_open()
435 dma_free_coherent(dev, priv->rx_buf.alloc_len, priv->rx_buf.alloc, in ec_bhf_open()
436 priv->rx_buf.alloc_len); in ec_bhf_open()
454 dma_free_coherent(dev, priv->rx_buf.alloc_len, in ec_bhf_stop()
455 priv->rx_buf.alloc, priv->rx_buf.alloc_phys); in ec_bhf_stop()
/drivers/staging/iio/meter/
Dade7758_ring.c67 *dat32 = get_unaligned_be32(&st->rx_buf[5]) & 0xFFFFFF; in ade7758_trigger_handler()
153 st->ring_xfer[1].rx_buf = &st->rx_buf[1]; in ade7758_configure_ring()
162 st->ring_xfer[3].rx_buf = &st->rx_buf[5]; in ade7758_configure_ring()
/drivers/net/caif/
Dcaif_hsi.c618 u8 *rx_ptr, *rx_buf; in cfhsi_rx_done() local
621 desc = (struct cfhsi_desc *)cfhsi->rx_buf; in cfhsi_rx_done()
640 rx_buf = cfhsi->rx_buf; in cfhsi_rx_done()
645 rx_buf = cfhsi->rx_flip_buf; in cfhsi_rx_done()
647 rx_buf = cfhsi->rx_flip_buf; in cfhsi_rx_done()
674 memcpy(rx_buf, (u8 *)piggy_desc, in cfhsi_rx_done()
681 rx_ptr = rx_buf + CFHSI_DESC_SZ; in cfhsi_rx_done()
684 rx_ptr = rx_buf; in cfhsi_rx_done()
729 if (rx_buf != cfhsi->rx_buf) in cfhsi_rx_done()
730 swap(cfhsi->rx_buf, cfhsi->rx_flip_buf); in cfhsi_rx_done()
[all …]

12345678910>>...12