Home
last modified time | relevance | path

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

/drivers/staging/comedi/drivers/
Daddi_apci_3120.c221 unsigned int scan_bytes; in apci3120_setup_dma() local
223 scan_bytes = comedi_samples_to_bytes(s, cmd->scan_end_arg); in apci3120_setup_dma()
230 if (dmalen0 > (cmd->stop_arg * scan_bytes)) in apci3120_setup_dma()
231 dmalen0 = cmd->stop_arg * scan_bytes; in apci3120_setup_dma()
232 else if (dmalen1 > (cmd->stop_arg * scan_bytes - dmalen0)) in apci3120_setup_dma()
233 dmalen1 = cmd->stop_arg * scan_bytes - dmalen0; in apci3120_setup_dma()
238 if (dmalen0 > scan_bytes) { in apci3120_setup_dma()
239 dmalen0 = scan_bytes; in apci3120_setup_dma()
243 if (dmalen1 > scan_bytes) { in apci3120_setup_dma()
244 dmalen1 = scan_bytes; in apci3120_setup_dma()
Dadl_pci9118.c806 unsigned int scan_bytes = devpriv->ai_n_realscanlen * in pci9118_ai_setup_dma() local
821 if (dmalen0 < scan_bytes) { in pci9118_ai_setup_dma()
826 dmalen0, scan_bytes); in pci9118_ai_setup_dma()
829 dmalen0 = scan_bytes; in pci9118_ai_setup_dma()
839 if (dmalen1 < scan_bytes) { in pci9118_ai_setup_dma()
844 dmalen1, scan_bytes); in pci9118_ai_setup_dma()
847 dmalen1 = scan_bytes; in pci9118_ai_setup_dma()
863 dmalen0 = (dmalen0 / scan_bytes) * scan_bytes; in pci9118_ai_setup_dma()
868 dmalen1 = (dmalen1 / scan_bytes) * scan_bytes; in pci9118_ai_setup_dma()
879 scanlen = (unsigned long long)scan_bytes * in pci9118_ai_setup_dma()
/drivers/iio/common/ssp_sensors/
Dssp_iio.c37 spd->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL | GFP_DMA); in ssp_common_buffer_postenable()
86 if (indio_dev->scan_bytes == 0) in ssp_common_process_data()
/drivers/iio/imu/
Dadis_buffer.c35 scan_count = indio_dev->scan_bytes / 2; in adis_update_scan_mode()
41 adis->buffer = kzalloc(indio_dev->scan_bytes * 2, GFP_KERNEL); in adis_update_scan_mode()
/drivers/iio/magnetometer/
Dst_magn_buffer.c43 mdata->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_magn_buffer_postenable()
/drivers/iio/pressure/
Dst_pressure_buffer.c43 press_data->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_press_buffer_postenable()
/drivers/iio/accel/
Dst_accel_buffer.c43 adata->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_accel_buffer_postenable()
/drivers/iio/gyro/
Dst_gyro_buffer.c43 gdata->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_gyro_buffer_postenable()
/drivers/staging/iio/adc/
Dad7606_ring.c52 buf = kzalloc(indio_dev->scan_bytes, GFP_KERNEL); in ad7606_poll_bh_to_ring()
/drivers/staging/iio/
Diio_simple_dummy_buffer.c53 data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in iio_simple_dummy_trigger_h()
/drivers/iio/
Dindustrialio-buffer.c629 unsigned int scan_bytes; member
720 config->scan_bytes = iio_compute_scan_bytes(indio_dev, in iio_verify_update()
735 indio_dev->scan_bytes = config->scan_bytes; in iio_enable_buffers()
/drivers/iio/light/
Dadjd_s311.c237 data->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in adjd_s311_update_scan_mode()
Dgp2ap020a00f.c1434 data->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in gp2ap020a00f_buffer_postenable()
/drivers/staging/iio/accel/
Dlis3l02dq_ring.c144 data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in lis3l02dq_trigger_handler()
/drivers/iio/adc/
Dcc10001_adc.c257 adc_dev->buf = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in cc10001_update_scan_mode()
Dti_am335x_adc.c199 for (i = 0; i < (indio_dev->scan_bytes)/2; i++) { in tiadc_worker_h()
Dad799x.c228 st->rx_buf = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in ad799x_update_scan_mode()
Dat91_adc.c563 st->buffer = kmalloc(idev->scan_bytes, GFP_KERNEL); in at91_adc_configure_trigger()
/drivers/iio/proximity/
Dsx9500.c592 data->buffer = kzalloc(indio_dev->scan_bytes, GFP_KERNEL); in sx9500_update_scan_mode()