Lines Matching refs:i
30 size_t i; in bmi08x_freq_to_odr_val() local
37 for (i = 0; i < ARRAY_SIZE(bmi08x_odr_map); i++) { in bmi08x_freq_to_odr_val()
38 if (freq_int < bmi08x_odr_map[i].freq_int || in bmi08x_freq_to_odr_val()
39 (freq_int == bmi08x_odr_map[i].freq_int && in bmi08x_freq_to_odr_val()
40 freq_milli <= bmi08x_odr_map[i].freq_milli)) { in bmi08x_freq_to_odr_val()
41 return i; in bmi08x_freq_to_odr_val()
51 int i; in bmi08x_range_to_reg_val() local
53 for (i = 0; i < range_map_size; i++) { in bmi08x_range_to_reg_val()
54 if (range <= range_map[i].range) { in bmi08x_range_to_reg_val()
55 return range_map[i].reg_val; in bmi08x_range_to_reg_val()
65 int i; in bmi08x_reg_val_to_range() local
67 for (i = 0; i < range_map_size; i++) { in bmi08x_reg_val_to_range()
68 if (reg_val == range_map[i].reg_val) { in bmi08x_reg_val_to_range()
69 return range_map[i].range; in bmi08x_reg_val_to_range()