Home
last modified time | relevance | path

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

123

/linux-4.19.296/drivers/iio/adc/
Dmcp320x.c98 u8 rx_buf[4]; member
136 memset(&adc->rx_buf, 0, sizeof(adc->rx_buf)); in mcp320x_adc_conversion()
147 *val = (adc->rx_buf[0] << 5 | adc->rx_buf[1] >> 3); in mcp320x_adc_conversion()
152 *val = (adc->rx_buf[0] << 2 | adc->rx_buf[1] >> 6); in mcp320x_adc_conversion()
155 *val = (adc->rx_buf[0] << 7 | adc->rx_buf[1] >> 1); in mcp320x_adc_conversion()
160 *val = (adc->rx_buf[0] << 4 | adc->rx_buf[1] >> 4); in mcp320x_adc_conversion()
163 *val = sign_extend32((adc->rx_buf[0] & 0x1f) << 8 in mcp320x_adc_conversion()
164 | adc->rx_buf[1], 12); in mcp320x_adc_conversion()
170 u32 raw = be32_to_cpup((u32 *)adc->rx_buf); in mcp320x_adc_conversion()
406 adc->transfer[1].rx_buf = adc->rx_buf; in mcp320x_probe()
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()
193 st->scan_single_xfer[0].rx_buf = &st->rx_buf[0]; in tlc4541_probe()
196 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()
271 st->scan_single_xfer.rx_buf = st->rx_buf; in adc108s102_probe()
Dti-adc0832.c42 u8 rx_buf[2]; member
127 ret = spi_read(spi, &adc->rx_buf, 2); in adc0831_adc_conversion()
134 return (adc->rx_buf[0] << 2 & 0xff) | (adc->rx_buf[1] >> 6); in adc0831_adc_conversion()
143 .rx_buf = adc->rx_buf, in adc0832_adc_conversion()
168 return adc->rx_buf[1]; in adc0832_adc_conversion()
Dti-adc12138.c61 u8 rx_buf[2]; member
131 void *rx_buf, int len) in adc12138_mode_programming() argument
135 .rx_buf = adc->rx_buf, in adc12138_mode_programming()
150 memcpy(rx_buf, adc->rx_buf, len); in adc12138_mode_programming()
157 u8 rx_buf[2]; in adc12138_read_status() local
161 rx_buf, 2); in adc12138_read_status()
165 return (rx_buf[0] << 1) | (rx_buf[1] >> 7); in adc12138_read_status()
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()
301 st->scan_single_xfer[1].rx_buf = &st->rx_buf[0]; in ad7923_probe()
Dad7298.c54 __be16 rx_buf[12] ____cacheline_aligned; member
137 st->ring_xfer[i + 2].rx_buf = &st->rx_buf[i]; in ad7298_update_scan_mode()
165 iio_push_to_buffers_with_timestamp(indio_dev, st->rx_buf, in ad7298_trigger_handler()
184 return be16_to_cpu(st->rx_buf[0]); in ad7298_scan_direct()
331 st->scan_single_xfer[2].rx_buf = &st->rx_buf[0]; in ad7298_probe()
Dti-adc084s021.c41 __be16 rx_buf[5]; /* First 16-bits are trash */ member
87 *(p + i) = adc->rx_buf[i + 1]; in adc084s021_adc_conversion()
231 adc->spi_trans.rx_buf = adc->rx_buf; in adc084s021_probe()
Dad7887.c281 st->xfer[0].rx_buf = &st->data[0]; in ad7887_probe()
291 st->xfer[1].rx_buf = &st->data[0]; in ad7887_probe()
295 st->xfer[2].rx_buf = &st->data[2]; in ad7887_probe()
303 st->xfer[3].rx_buf = &st->data[2]; in ad7887_probe()
Dad799x.c135 u8 *rx_buf; member
210 cmd, st->transfer_size, st->rx_buf); in ad799x_trigger_handler()
214 iio_push_to_buffers_with_timestamp(indio_dev, st->rx_buf, in ad799x_trigger_handler()
227 kfree(st->rx_buf); in ad799x_update_scan_mode()
228 st->rx_buf = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in ad799x_update_scan_mode()
229 if (!st->rx_buf) in ad799x_update_scan_mode()
866 kfree(st->rx_buf); in ad799x_remove()
Dti-ads7950.c71 __be16 rx_buf[TI_ADS7950_MAX_CHAN + TI_ADS7950_TIMESTAMP_SIZE] member
264 st->ring_xfer[i].rx_buf = &st->rx_buf[i - 2]; in ti_ads7950_update_scan_mode()
288 iio_push_to_buffers_with_timestamp(indio_dev, st->rx_buf, in ti_ads7950_trigger_handler()
421 st->scan_single_xfer[2].rx_buf = &st->single_rx; in ti_ads7950_probe()
Dstm32-dfsdm-adc.c71 u8 *rx_buf; member
556 u32 *buffer = (u32 *)&adc->rx_buf[adc->bufi]; in stm32_dfsdm_audio_dma_buffer_done()
564 adc->cb(&adc->rx_buf[old_pos], in stm32_dfsdm_audio_dma_buffer_done()
571 adc->cb(&adc->rx_buf[old_pos], adc->bufi - old_pos, in stm32_dfsdm_audio_dma_buffer_done()
921 adc->rx_buf, adc->dma_buf); in stm32_dfsdm_dma_release()
945 adc->rx_buf = dma_alloc_coherent(adc->dma_chan->device->dev, in stm32_dfsdm_dma_request()
948 if (!adc->rx_buf) { in stm32_dfsdm_dma_request()
961 adc->rx_buf, adc->dma_buf); in stm32_dfsdm_dma_request()
/linux-4.19.296/drivers/iio/humidity/
Dam2315.c118 u8 rx_buf[8]; in am2315_read_data() local
133 ret = i2c_master_recv(data->client, rx_buf, sizeof(rx_buf)); in am2315_read_data()
143 crc = am2315_crc(rx_buf, sizeof(rx_buf) - 2); in am2315_read_data()
144 if ((crc & 0xff) != rx_buf[6] || (crc >> 8) != rx_buf[7]) { in am2315_read_data()
149 sensor_data->hum_data = (rx_buf[AM2315_HUM_OFFSET] << 8) | in am2315_read_data()
150 rx_buf[AM2315_HUM_OFFSET + 1]; in am2315_read_data()
151 sensor_data->temp_data = (rx_buf[AM2315_TEMP_OFFSET] << 8) | in am2315_read_data()
152 rx_buf[AM2315_TEMP_OFFSET + 1]; in am2315_read_data()
/linux-4.19.296/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()
/linux-4.19.296/drivers/iio/common/st_sensors/
Dst_sensors_spi.c41 .rx_buf = tb->rx_buf, in st_sensors_spi_read()
57 memcpy(data, tb->rx_buf, len); in st_sensors_spi_read()
/linux-4.19.296/drivers/gpio/
Dgpio-max3191x.c140 u8 in = ((u8 *)max3191x->xfer.rx_buf)[i * 2]; in max3191x_readout_locked()
141 u8 status = ((u8 *)max3191x->xfer.rx_buf)[i * 2 + 1]; in max3191x_readout_locked()
226 in = ((u8 *)max3191x->xfer.rx_buf)[chipnum * wordlen]; in max3191x_get()
254 in = ((u8 *)max3191x->xfer.rx_buf)[chipnum * wordlen]; in max3191x_get_multiple()
379 max3191x->xfer.rx_buf = devm_kcalloc(dev, max3191x->nchips, in max3191x_probe()
383 !max3191x->fault || !max3191x->xfer.rx_buf) in max3191x_probe()
/linux-4.19.296/drivers/slimbus/
Dqcom-ctrl.c210 u32 *rx_buf, pkt[10]; in qcom_slim_handle_rx_irq() local
224 rx_buf = (u32 *)slim_alloc_rxbuf(ctrl); in qcom_slim_handle_rx_irq()
225 if (!rx_buf) { in qcom_slim_handle_rx_irq()
230 rx_buf[0] = pkt[0]; in qcom_slim_handle_rx_irq()
233 rx_buf = pkt; in qcom_slim_handle_rx_irq()
236 __ioread32_copy(rx_buf + 1, ctrl->base + MGR_RX_MSG + 4, in qcom_slim_handle_rx_irq()
246 slim_msg_response(&ctrl->ctrl, (u8 *)(rx_buf + 1), in qcom_slim_handle_rx_irq()
247 (u8)(*rx_buf >> 24), (len - 4)); in qcom_slim_handle_rx_irq()
/linux-4.19.296/drivers/iio/gyro/
Dadxrs450.c103 .rx_buf = &st->rx, in adxrs450_spi_read_reg_16()
177 .rx_buf = &st->rx, in adxrs450_spi_sensor_data()
212 .rx_buf = &st->rx, in adxrs450_spi_initial()
/linux-4.19.296/drivers/i2c/busses/
Di2c-imx-lpi2c.c105 __u8 *rx_buf; member
390 lpi2c_imx->rx_buf[lpi2c_imx->delivered++] = data & 0xff; in lpi2c_imx_read_rxfifo()
398 blocklen = lpi2c_imx->rx_buf[0]; in lpi2c_imx_read_rxfifo()
440 lpi2c_imx->rx_buf = msgs->buf; in lpi2c_imx_read()
471 lpi2c_imx->rx_buf = NULL; in lpi2c_imx_xfer()
/linux-4.19.296/include/linux/
Dn_r3964.h152 unsigned char *rx_buf; /* ring buffer */ member
/linux-4.19.296/include/uapi/linux/spi/
Dspidev.h93 __u64 rx_buf; member
/linux-4.19.296/drivers/char/tpm/
Dtpm_tis_spi.c79 spi_xfer.rx_buf = phy->iobuf; in tpm_tis_spi_transfer()
117 spi_xfer.rx_buf = NULL; in tpm_tis_spi_transfer()
/linux-4.19.296/drivers/iio/pressure/
Dmpl115_spi.c46 .rx_buf = buf->rx, in mpl115_spi_read()
/linux-4.19.296/drivers/iio/dac/
Dad5686-spi.c51 .rx_buf = &st->data[2].d8[1], in ad5686_spi_read()
/linux-4.19.296/drivers/iio/imu/
Dadis.c145 .rx_buf = adis->rx, in adis_read_reg()
151 .rx_buf = adis->rx + 2, in adis_read_reg()

123