Searched refs:byte_for_channel (Results 1 – 2 of 2) sorted by relevance
/drivers/iio/common/st_sensors/ |
D | st_sensors_buffer.c | 31 unsigned int byte_for_channel = in st_sensors_get_buffer_element() local 49 addr[0], byte_for_channel, buf, sdata->multiread_bit); in st_sensors_get_buffer_element() 52 if ((addr[1] - addr[0]) == byte_for_channel) { in st_sensors_get_buffer_element() 54 sdata->dev, addr[0], byte_for_channel * n, in st_sensors_get_buffer_element() 58 rx_array = kmalloc(byte_for_channel * num_data_channels, in st_sensors_get_buffer_element() 67 byte_for_channel * num_data_channels, in st_sensors_get_buffer_element() 74 for (i = 0; i < n * byte_for_channel; i++) { in st_sensors_get_buffer_element() 81 len = byte_for_channel * n; in st_sensors_get_buffer_element() 86 addr[0], byte_for_channel * num_data_channels, in st_sensors_get_buffer_element() 93 if (len != byte_for_channel * n) { in st_sensors_get_buffer_element()
|
D | st_sensors_core.c | 447 unsigned int byte_for_channel = ch->scan_type.storagebits >> 3; in st_sensors_read_axis_data() local 449 outdata = kmalloc(byte_for_channel, GFP_KERNEL); in st_sensors_read_axis_data() 454 ch->address, byte_for_channel, in st_sensors_read_axis_data() 459 if (byte_for_channel == 1) in st_sensors_read_axis_data() 461 else if (byte_for_channel == 2) in st_sensors_read_axis_data() 463 else if (byte_for_channel == 3) in st_sensors_read_axis_data()
|