Searched refs:rx_array (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/iio/common/st_sensors/
H A Dst_sensors_buffer.c57 u8 *rx_array; st_sensors_get_buffer_element() local
58 rx_array = kmalloc(byte_for_channel * num_data_channels, st_sensors_get_buffer_element()
60 if (!rx_array) { st_sensors_get_buffer_element()
68 rx_array, sdata->multiread_bit); st_sensors_get_buffer_element()
70 kfree(rx_array); st_sensors_get_buffer_element()
76 buf[i] = rx_array[i]; st_sensors_get_buffer_element()
78 buf[i] = rx_array[n + i]; st_sensors_get_buffer_element()
80 kfree(rx_array); st_sensors_get_buffer_element()
/linux-4.1.27/drivers/staging/iio/accel/
H A Dlis3l02dq_ring.c54 * @rx_array: (dma capable) receive array, must be at least
57 static int lis3l02dq_read_all(struct iio_dev *indio_dev, u8 *rx_array) lis3l02dq_read_all() argument
78 if (rx_array) lis3l02dq_read_all()
79 xfers[j].rx_buf = rx_array + j*2; lis3l02dq_read_all()
89 if (rx_array) lis3l02dq_read_all()
90 xfers[j].rx_buf = rx_array + j*2; lis3l02dq_read_all()
116 u8 *rx_array; lis3l02dq_get_buffer_element() local
121 rx_array = kcalloc(4, scan_count, GFP_KERNEL); lis3l02dq_get_buffer_element()
122 if (!rx_array) lis3l02dq_get_buffer_element()
124 ret = lis3l02dq_read_all(indio_dev, rx_array); lis3l02dq_get_buffer_element()
126 kfree(rx_array); lis3l02dq_get_buffer_element()
130 data[i] = combine_8_to_16(rx_array[i*4+1], lis3l02dq_get_buffer_element()
131 rx_array[i*4+3]); lis3l02dq_get_buffer_element()
132 kfree(rx_array); lis3l02dq_get_buffer_element()

Completed in 144 milliseconds