Lines Matching refs:backend

82 	struct iio_backend **backend;  member
678 struct iio_backend *backend; in stm32_dfsdm_generic_channel_parse_of() local
729 backend = devm_iio_backend_fwnode_get(&indio_dev->dev, NULL, node); in stm32_dfsdm_generic_channel_parse_of()
730 if (IS_ERR(backend)) in stm32_dfsdm_generic_channel_parse_of()
731 return dev_err_probe(&indio_dev->dev, PTR_ERR(backend), in stm32_dfsdm_generic_channel_parse_of()
733 adc->backend[ch->scan_index] = backend; in stm32_dfsdm_generic_channel_parse_of()
1083 if (adc->backend) { in stm32_dfsdm_postenable()
1084 while (adc->backend[i]) { in stm32_dfsdm_postenable()
1085 ret = iio_backend_enable(adc->backend[i]); in stm32_dfsdm_postenable()
1132 if (adc->backend) { in stm32_dfsdm_predisable()
1133 while (adc->backend[i]) { in stm32_dfsdm_predisable()
1134 iio_backend_disable(adc->backend[i]); in stm32_dfsdm_predisable()
1328 if (adc->backend) in stm32_dfsdm_read_raw()
1329 ret = iio_backend_enable(adc->backend[idx]); in stm32_dfsdm_read_raw()
1340 if (adc->backend) in stm32_dfsdm_read_raw()
1341 iio_backend_disable(adc->backend[idx]); in stm32_dfsdm_read_raw()
1371 if (adc->backend) { in stm32_dfsdm_read_raw()
1372 ret = iio_backend_read_scale(adc->backend[idx], chan, val, NULL); in stm32_dfsdm_read_raw()
1395 if (adc->backend) { in stm32_dfsdm_read_raw()
1396 ret = iio_backend_read_offset(adc->backend[idx], chan, val, NULL); in stm32_dfsdm_read_raw()
1672 adc->backend = devm_kcalloc(&indio_dev->dev, num_ch, sizeof(*adc->backend), in stm32_dfsdm_adc_init()
1674 if (!adc->backend) in stm32_dfsdm_adc_init()