Lines Matching full:else

126 	} else if (val < 6 && val >= 3) {  in convert_freq_to_bitfield()
129 } else if (val < 12 && val >= 6) { in convert_freq_to_bitfield()
132 } else if (val < 25 && val >= 12) { in convert_freq_to_bitfield()
135 } else if (val < 50 && val >= 25) { in convert_freq_to_bitfield()
138 } else if (val < 100 && val >= 50) { in convert_freq_to_bitfield()
141 } else if (val < 200 && val >= 100) { in convert_freq_to_bitfield()
144 } else if (val < 400 && val >= 200) { in convert_freq_to_bitfield()
147 } else if (val < 800 && val >= 400) { in convert_freq_to_bitfield()
150 } else if (val < 1600 && val >= 800) { in convert_freq_to_bitfield()
153 } else if (val == 1600) { in convert_freq_to_bitfield()
167 } else if (val < 8 && val >= 4) { in convert_acc_fs_to_bitfield()
170 } else if (val < 16 && val >= 8) { in convert_acc_fs_to_bitfield()
173 } else if (val == 16) { in convert_acc_fs_to_bitfield()
187 } else if (val < 1000 && val >= 500) { in convert_gyr_fs_to_bitfield()
190 } else if (val < 2000 && val >= 1000) { in convert_gyr_fs_to_bitfield()
193 } else if (val == 2000) { in convert_gyr_fs_to_bitfield()
206 } else if (val < 34 && val >= 25) { in convert_ln_bw_to_bitfield()
208 } else if (val < 53 && val >= 34) { in convert_ln_bw_to_bitfield()
210 } else if (val < 73 && val >= 53) { in convert_ln_bw_to_bitfield()
212 } else if (val < 121 && val >= 73) { in convert_ln_bw_to_bitfield()
214 } else if (val < 180 && val >= 121) { in convert_ln_bw_to_bitfield()
216 } else if (val == 180) { in convert_ln_bw_to_bitfield()
218 } else if (val == 0) { in convert_ln_bw_to_bitfield()
231 } else if (val < 8 && val >= 4) { in convert_lp_avg_to_bitfield()
233 } else if (val < 16 && val >= 8) { in convert_lp_avg_to_bitfield()
235 } else if (val < 32 && val >= 16) { in convert_lp_avg_to_bitfield()
237 } else if (val < 64 && val >= 32) { in convert_lp_avg_to_bitfield()
239 } else if (val == 64) { in convert_lp_avg_to_bitfield()
251 } else if (bitfield == ACCEL_CONFIG0_FS_SEL_4g) { in convert_bitfield_to_acc_fs()
253 } else if (bitfield == ACCEL_CONFIG0_FS_SEL_8g) { in convert_bitfield_to_acc_fs()
255 } else if (bitfield == ACCEL_CONFIG0_FS_SEL_16g) { in convert_bitfield_to_acc_fs()
267 } else if (bitfield == GYRO_CONFIG0_FS_SEL_500dps) { in convert_bitfield_to_gyr_fs()
269 } else if (bitfield == GYRO_CONFIG0_FS_SEL_1000dps) { in convert_bitfield_to_gyr_fs()
271 } else if (bitfield == GYRO_CONFIG0_FS_SEL_2000dps) { in convert_bitfield_to_gyr_fs()
285 } else { in icm42670_set_accel_power_mode()
291 } else if ((val->val1 == ICM42670_LOW_NOISE_MODE) && in icm42670_set_accel_power_mode()
296 } else { in icm42670_set_accel_power_mode()
302 } else { in icm42670_set_accel_power_mode()
318 } else if (drv_data->accel_pwr_mode == ICM42670_LOW_NOISE_MODE) { in icm42670_set_accel_odr()
321 } else { in icm42670_set_accel_odr()
326 } else if (val->val1 == 0) { in icm42670_set_accel_odr()
329 } else { in icm42670_set_accel_odr()
354 } else if (attr == SENSOR_ATTR_SAMPLING_FREQUENCY) { in icm42670_accel_config()
357 } else if (attr == SENSOR_ATTR_FULL_SCALE) { in icm42670_accel_config()
360 } else if ((enum sensor_attribute_icm42670)attr == SENSOR_ATTR_BW_FILTER_LPF) { in icm42670_accel_config()
367 } else if ((enum sensor_attribute_icm42670)attr == SENSOR_ATTR_AVERAGING) { in icm42670_accel_config()
373 } else { in icm42670_accel_config()
388 } else { in icm42670_set_gyro_odr()
393 } else if (val->val1 == 0) { in icm42670_set_gyro_odr()
396 } else { in icm42670_set_gyro_odr()
421 } else if (attr == SENSOR_ATTR_FULL_SCALE) { in icm42670_gyro_config()
424 } else if ((enum sensor_attribute_icm42670)attr == SENSOR_ATTR_BW_FILTER_LPF) { in icm42670_gyro_config()
431 } else { in icm42670_gyro_config()
520 } else if ((cfg->accel_pwr_mode == ICM42670_LOW_POWER_MODE) && in icm42670_turn_on_sensor()
523 } else { in icm42670_turn_on_sensor()
600 } else if (chan == SENSOR_CHAN_ACCEL_X) { in icm42670_channel_get()
602 } else if (chan == SENSOR_CHAN_ACCEL_Y) { in icm42670_channel_get()
604 } else if (chan == SENSOR_CHAN_ACCEL_Z) { in icm42670_channel_get()
606 } else if (chan == SENSOR_CHAN_GYRO_XYZ) { in icm42670_channel_get()
610 } else if (chan == SENSOR_CHAN_GYRO_X) { in icm42670_channel_get()
612 } else if (chan == SENSOR_CHAN_GYRO_Y) { in icm42670_channel_get()
614 } else if (chan == SENSOR_CHAN_GYRO_Z) { in icm42670_channel_get()
616 } else if (chan == SENSOR_CHAN_DIE_TEMP) { in icm42670_channel_get()
619 } else if ((enum sensor_channel_tdk_apex)chan == SENSOR_CHAN_APEX_MOTION) { in icm42670_channel_get()
625 } else if (cfg->apex == TDK_APEX_WOM) { in icm42670_channel_get()
629 } else if ((cfg->apex == TDK_APEX_TILT) || (cfg->apex == TDK_APEX_SMD)) { in icm42670_channel_get()
633 } else { in icm42670_channel_get()
723 } /*else: FIFO threshold was not reached and FIFO was not full */ in icm42670_fetch_from_fifo()
851 #else in icm42670_sample_fetch()
875 } else if (val->val1 == TDK_APEX_TILT) { in icm42670_attr_set()
878 } else if (val->val1 == TDK_APEX_SMD) { in icm42670_attr_set()
881 } else if (val->val1 == TDK_APEX_WOM) { in icm42670_attr_set()
883 } else { in icm42670_attr_set()
887 } else { in icm42670_attr_set()
891 } else if ((chan == SENSOR_CHAN_ACCEL_XYZ) || (chan == SENSOR_CHAN_ACCEL_X) || in icm42670_attr_set()
895 } else if ((chan == SENSOR_CHAN_GYRO_XYZ) || (chan == SENSOR_CHAN_GYRO_X) || in icm42670_attr_set()
899 } else { in icm42670_attr_set()
928 } else if (attr == SENSOR_ATTR_FULL_SCALE) { in icm42670_attr_get()
930 } else { in icm42670_attr_get()
942 } else if (attr == SENSOR_ATTR_FULL_SCALE) { in icm42670_attr_get()
944 } else { in icm42670_attr_get()