Searched refs:scan_bytes (Results 1 – 19 of 19) sorted by relevance
/drivers/staging/comedi/drivers/ |
D | addi_apci_3120.c | 221 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()
|
D | adl_pci9118.c | 806 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/ |
D | ssp_iio.c | 37 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/ |
D | adis_buffer.c | 35 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/ |
D | st_magn_buffer.c | 43 mdata->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_magn_buffer_postenable()
|
/drivers/iio/pressure/ |
D | st_pressure_buffer.c | 43 press_data->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_press_buffer_postenable()
|
/drivers/iio/accel/ |
D | st_accel_buffer.c | 43 adata->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_accel_buffer_postenable()
|
/drivers/iio/gyro/ |
D | st_gyro_buffer.c | 43 gdata->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_gyro_buffer_postenable()
|
/drivers/staging/iio/adc/ |
D | ad7606_ring.c | 52 buf = kzalloc(indio_dev->scan_bytes, GFP_KERNEL); in ad7606_poll_bh_to_ring()
|
/drivers/staging/iio/ |
D | iio_simple_dummy_buffer.c | 53 data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in iio_simple_dummy_trigger_h()
|
/drivers/iio/ |
D | industrialio-buffer.c | 629 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/ |
D | adjd_s311.c | 237 data->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in adjd_s311_update_scan_mode()
|
D | gp2ap020a00f.c | 1434 data->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in gp2ap020a00f_buffer_postenable()
|
/drivers/staging/iio/accel/ |
D | lis3l02dq_ring.c | 144 data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in lis3l02dq_trigger_handler()
|
/drivers/iio/adc/ |
D | cc10001_adc.c | 257 adc_dev->buf = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in cc10001_update_scan_mode()
|
D | ti_am335x_adc.c | 199 for (i = 0; i < (indio_dev->scan_bytes)/2; i++) { in tiadc_worker_h()
|
D | ad799x.c | 228 st->rx_buf = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in ad799x_update_scan_mode()
|
D | at91_adc.c | 563 st->buffer = kmalloc(idev->scan_bytes, GFP_KERNEL); in at91_adc_configure_trigger()
|
/drivers/iio/proximity/ |
D | sx9500.c | 592 data->buffer = kzalloc(indio_dev->scan_bytes, GFP_KERNEL); in sx9500_update_scan_mode()
|