Lines Matching refs:spd
22 struct ssp_sensor_data *spd = iio_priv(indio_dev); in ssp_common_buffer_postenable() local
28 spd->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL | GFP_DMA); in ssp_common_buffer_postenable()
29 if (!spd->buffer) in ssp_common_buffer_postenable()
32 return ssp_enable_sensor(data, spd->type, in ssp_common_buffer_postenable()
33 ssp_get_sensor_delay(data, spd->type)); in ssp_common_buffer_postenable()
47 struct ssp_sensor_data *spd = iio_priv(indio_dev); in ssp_common_buffer_postdisable() local
50 ret = ssp_disable_sensor(data, spd->type); in ssp_common_buffer_postdisable()
54 kfree(spd->buffer); in ssp_common_buffer_postdisable()
75 struct ssp_sensor_data *spd = iio_priv(indio_dev); in ssp_common_process_data() local
83 memcpy(spd->buffer, buf, len); in ssp_common_process_data()
91 return iio_push_to_buffers_with_timestamp(indio_dev, spd->buffer, in ssp_common_process_data()