Lines Matching refs:sensor_config

90 	u32 sensor_config = 0;  in scmi_iio_buffer_preenable()  local
94 sensor_config |= FIELD_PREP(SCMI_SENS_CFG_TSTAMP_ENABLED_MASK, in scmi_iio_buffer_preenable()
97 sensor_config |= FIELD_PREP(SCMI_SENS_CFG_SENSOR_ENABLED_MASK, in scmi_iio_buffer_preenable()
101 sensor_config); in scmi_iio_buffer_preenable()
112 u32 sensor_config = 0; in scmi_iio_buffer_postdisable() local
115 sensor_config |= FIELD_PREP(SCMI_SENS_CFG_SENSOR_ENABLED_MASK, in scmi_iio_buffer_postdisable()
119 sensor_config); in scmi_iio_buffer_postdisable()
138 u32 sensor_config; in scmi_iio_set_odr_val() local
143 &sensor_config); in scmi_iio_set_odr_val()
174 sensor_config &= ~SCMI_SENS_CFG_UPDATE_SECS_MASK; in scmi_iio_set_odr_val()
175 sensor_config |= FIELD_PREP(SCMI_SENS_CFG_UPDATE_SECS_MASK, sec); in scmi_iio_set_odr_val()
176 sensor_config &= ~SCMI_SENS_CFG_UPDATE_EXP_MASK; in scmi_iio_set_odr_val()
177 sensor_config |= FIELD_PREP(SCMI_SENS_CFG_UPDATE_EXP_MASK, -mult); in scmi_iio_set_odr_val()
180 sensor_config &= ~SCMI_SENS_CFG_TSTAMP_ENABLED_MASK; in scmi_iio_set_odr_val()
181 sensor_config |= FIELD_PREP(SCMI_SENS_CFG_TSTAMP_ENABLED_MASK, in scmi_iio_set_odr_val()
185 sensor_config &= ~SCMI_SENS_CFG_ROUND_MASK; in scmi_iio_set_odr_val()
186 sensor_config |= in scmi_iio_set_odr_val()
191 sensor_config); in scmi_iio_set_odr_val()
195 sensor->sensor_info->name, sensor_config, err); in scmi_iio_set_odr_val()
254 u32 sensor_config; in scmi_iio_get_odr_val() local
259 &sensor_config); in scmi_iio_get_odr_val()
268 SCMI_SENS_CFG_GET_UPDATE_SECS(sensor_config) * NSEC_PER_SEC; in scmi_iio_get_odr_val()
270 mult = SCMI_SENS_CFG_GET_UPDATE_EXP(sensor_config); in scmi_iio_get_odr_val()
290 u32 sensor_config; in scmi_iio_read_channel_data() local
294 sensor_config = FIELD_PREP(SCMI_SENS_CFG_SENSOR_ENABLED_MASK, in scmi_iio_read_channel_data()
297 sensor->ph, sensor->sensor_info->id, sensor_config); in scmi_iio_read_channel_data()
315 sensor_config = FIELD_PREP(SCMI_SENS_CFG_SENSOR_ENABLED_MASK, in scmi_iio_read_channel_data()
318 sensor->ph, sensor->sensor_info->id, sensor_config); in scmi_iio_read_channel_data()