Searched refs:byte_for_channel (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/drivers/iio/common/st_sensors/ |
H A D | st_sensors_buffer.c | 31 unsigned int byte_for_channel = st_sensors_get_buffer_element() local 49 addr[0], byte_for_channel, buf, sdata->multiread_bit); st_sensors_get_buffer_element() 52 if ((addr[1] - addr[0]) == byte_for_channel) { st_sensors_get_buffer_element() 54 sdata->dev, addr[0], byte_for_channel * n, st_sensors_get_buffer_element() 58 rx_array = kmalloc(byte_for_channel * num_data_channels, st_sensors_get_buffer_element() 67 byte_for_channel * num_data_channels, st_sensors_get_buffer_element() 74 for (i = 0; i < n * byte_for_channel; i++) { st_sensors_get_buffer_element() 81 len = byte_for_channel * n; st_sensors_get_buffer_element() 86 addr[0], byte_for_channel * num_data_channels, st_sensors_get_buffer_element() 93 if (len != byte_for_channel * n) { st_sensors_get_buffer_element()
|
H A D | st_sensors_core.c | 410 unsigned int byte_for_channel = ch->scan_type.storagebits >> 3; st_sensors_read_axis_data() local 412 outdata = kmalloc(byte_for_channel, GFP_KERNEL); st_sensors_read_axis_data() 417 ch->address, byte_for_channel, st_sensors_read_axis_data() 422 if (byte_for_channel == 2) st_sensors_read_axis_data() 424 else if (byte_for_channel == 3) st_sensors_read_axis_data()
|
Completed in 132 milliseconds