Lines Matching +refs:rate +refs:id +refs:attrs
303 int ret, reg, rate, filter; in in_voltage_filter2_notch_center_show() local
309 rate = FIELD_GET(MAX11410_FILTER_RATE_MASK, reg); in in_voltage_filter2_notch_center_show()
310 rate = clamp_val(rate, 0, in in_voltage_filter2_notch_center_show()
312 filter = max11410_sampling_rates[MAX11410_FILTER_SINC4][rate][0]; in in_voltage_filter2_notch_center_show()
339 .attrs = max11410_attributes,
459 int ret, reg_val, filter, rate; in max11410_read_raw() local
498 rate = reg_val & MAX11410_FILTER_RATE_MASK; in max11410_read_raw()
499 if (rate >= max11410_sampling_len[filter]) in max11410_read_raw()
500 rate = max11410_sampling_len[filter] - 1; in max11410_read_raw()
502 *val = max11410_sampling_rates[filter][rate][0]; in max11410_read_raw()
503 *val2 = max11410_sampling_rates[filter][rate][1]; in max11410_read_raw()
619 .attrs = &max11410_attribute_group,
835 const char *id) in max11410_init_vref() argument
840 reg = devm_regulator_get_optional(dev, id); in max11410_init_vref()
850 "Failed to enable regulator %s\n", id); in max11410_init_vref()