Lines Matching refs:device_index
99 static int mcp320x_channel_to_tx_data(int device_index, in mcp320x_channel_to_tx_data() argument
104 switch (device_index) { in mcp320x_channel_to_tx_data()
121 bool differential, int device_index, int *val) in mcp320x_adc_conversion() argument
136 adc->tx_buf = mcp320x_channel_to_tx_data(device_index, channel, in mcp320x_adc_conversion()
143 switch (device_index) { in mcp320x_adc_conversion()
200 int device_index = 0; in mcp320x_read_raw() local
204 device_index = spi_get_device_id(adc->spi)->driver_data; in mcp320x_read_raw()
209 channel->differential, device_index, val); in mcp320x_read_raw()
379 int ret, device_index; in mcp320x_probe() local
393 device_index = spi_get_device_id(spi)->driver_data; in mcp320x_probe()
394 chip_info = &mcp320x_chip_infos[device_index]; in mcp320x_probe()
413 switch (device_index) { in mcp320x_probe()
436 mcp320x_adc_conversion(adc, 0, 1, device_index, &ret); in mcp320x_probe()
437 mcp320x_adc_conversion(adc, 0, 1, device_index, &ret); in mcp320x_probe()