Home
last modified time | relevance | path

Searched refs:scan_bytes (Results 1 – 19 of 19) sorted by relevance

/linux-6.3-rc2/drivers/iio/common/ssp_sensors/
A Dssp_iio.c28 spd->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL | GFP_DMA); in ssp_common_buffer_postenable()
77 if (indio_dev->scan_bytes == 0) in ssp_common_process_data()
/linux-6.3-rc2/drivers/comedi/drivers/
A Daddi_apci_3120.c212 unsigned int scan_bytes; in apci3120_setup_dma() local
214 scan_bytes = comedi_samples_to_bytes(s, cmd->scan_end_arg); in apci3120_setup_dma()
221 if (dmalen0 > (cmd->stop_arg * scan_bytes)) in apci3120_setup_dma()
222 dmalen0 = cmd->stop_arg * scan_bytes; in apci3120_setup_dma()
223 else if (dmalen1 > (cmd->stop_arg * scan_bytes - dmalen0)) in apci3120_setup_dma()
224 dmalen1 = cmd->stop_arg * scan_bytes - dmalen0; in apci3120_setup_dma()
229 if (dmalen0 > scan_bytes) { in apci3120_setup_dma()
230 dmalen0 = scan_bytes; in apci3120_setup_dma()
234 if (dmalen1 > scan_bytes) { in apci3120_setup_dma()
235 dmalen1 = scan_bytes; in apci3120_setup_dma()
A Dadl_pci9118.c807 unsigned int scan_bytes = devpriv->ai_n_realscanlen * in pci9118_ai_setup_dma() local
822 if (dmalen0 < scan_bytes) { in pci9118_ai_setup_dma()
827 dmalen0, scan_bytes); in pci9118_ai_setup_dma()
830 dmalen0 = scan_bytes; in pci9118_ai_setup_dma()
840 if (dmalen1 < scan_bytes) { in pci9118_ai_setup_dma()
845 dmalen1, scan_bytes); in pci9118_ai_setup_dma()
848 dmalen1 = scan_bytes; in pci9118_ai_setup_dma()
864 dmalen0 = (dmalen0 / scan_bytes) * scan_bytes; in pci9118_ai_setup_dma()
869 dmalen1 = (dmalen1 / scan_bytes) * scan_bytes; in pci9118_ai_setup_dma()
880 scanlen = (unsigned long long)scan_bytes * in pci9118_ai_setup_dma()
/linux-6.3-rc2/include/linux/iio/
A Dbuffer.h41 size_t ts_offset = indio_dev->scan_bytes / sizeof(int64_t) - 1; in iio_push_to_buffers_with_timestamp()
A Diio.h579 int scan_bytes; member
/linux-6.3-rc2/drivers/iio/dummy/
A Diio_simple_dummy_buffer.c51 data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in iio_simple_dummy_trigger_h()
/linux-6.3-rc2/drivers/iio/imu/
A Dadis_buffer.c84 scan_count = indio_dev->scan_bytes / 2; in adis_update_scan_mode()
90 adis->buffer = kcalloc(indio_dev->scan_bytes, 2, GFP_KERNEL); in adis_update_scan_mode()
A Dadis16400.c653 indio_dev->scan_bytes - sizeof(pf->timestamp), in adis16400_trigger_handler()
/linux-6.3-rc2/drivers/iio/
A Dindustrialio-buffer.c818 unsigned int scan_bytes; member
921 config->scan_bytes = iio_compute_scan_bytes(indio_dev, in iio_verify_update()
1068 indio_dev->scan_bytes = config->scan_bytes; in iio_enable_buffers()
1905 data_sz = min_t(size_t, indio_dev->scan_bytes, data_sz); in iio_push_to_buffers_with_ts_unaligned()
1906 if (iio_dev_opaque->bounce_buffer_size != indio_dev->scan_bytes) { in iio_push_to_buffers_with_ts_unaligned()
1911 indio_dev->scan_bytes, GFP_KERNEL); in iio_push_to_buffers_with_ts_unaligned()
1915 iio_dev_opaque->bounce_buffer_size = indio_dev->scan_bytes; in iio_push_to_buffers_with_ts_unaligned()
/linux-6.3-rc2/drivers/iio/adc/
A Dti_am335x_adc.c201 for (i = 0; i < indio_dev->scan_bytes / 2; i++) { in tiadc_worker_h()
225 for (i = 0; i < dma->period_size; i += indio_dev->scan_bytes) { in tiadc_dma_rx_complete()
227 data += indio_dev->scan_bytes; in tiadc_dma_rx_complete()
A Dcc10001_adc.c253 adc_dev->buf = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in cc10001_update_scan_mode()
A Dstm32-dfsdm-adc.c870 while (available >= indio_dev->scan_bytes) { in stm32_dfsdm_dma_buffer_done()
875 available -= indio_dev->scan_bytes; in stm32_dfsdm_dma_buffer_done()
876 adc->bufi += indio_dev->scan_bytes; in stm32_dfsdm_dma_buffer_done()
A Ddln2-adc.c134 size_t ts_offset = indio_dev->scan_bytes / sizeof(int64_t) - 1; in dln2_adc_update_demux()
A Dstm32-adc.c1731 while (residue >= indio_dev->scan_bytes) { in stm32_adc_dma_buffer_done()
1736 residue -= indio_dev->scan_bytes; in stm32_adc_dma_buffer_done()
1737 adc->bufi += indio_dev->scan_bytes; in stm32_adc_dma_buffer_done()
A Dad799x.c236 st->rx_buf = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in ad799x_update_scan_mode()
A Dat91_adc.c584 st->buffer = kmalloc(idev->scan_bytes, GFP_KERNEL); in at91_adc_configure_trigger()
/linux-6.3-rc2/drivers/iio/common/cros_ec_sensors/
A Dcros_ec_sensors_core.c713 memset(st->samples, 0, indio_dev->scan_bytes); in cros_ec_sensors_capture()
/linux-6.3-rc2/drivers/iio/proximity/
A Dsx9500.c590 data->buffer = kzalloc(indio_dev->scan_bytes, GFP_KERNEL); in sx9500_update_scan_mode()
/linux-6.3-rc2/drivers/iio/light/
A Dgp2ap020a00f.c1422 data->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in gp2ap020a00f_buffer_postenable()

Completed in 48 milliseconds