Home
last modified time | relevance | path

Searched refs:afe440x_attr (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/drivers/iio/health/
Dafe4403.c142 struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); in afe440x_show_register() local
147 ret = regmap_field_read(afe->fields[afe440x_attr->field], &reg_val); in afe440x_show_register()
151 if (reg_val >= afe440x_attr->table_size) in afe440x_show_register()
154 vals[0] = afe440x_attr->val_table[reg_val].integer; in afe440x_show_register()
155 vals[1] = afe440x_attr->val_table[reg_val].fract; in afe440x_show_register()
166 struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); in afe440x_store_register() local
173 for (val = 0; val < afe440x_attr->table_size; val++) in afe440x_store_register()
174 if (afe440x_attr->val_table[val].integer == integer && in afe440x_store_register()
175 afe440x_attr->val_table[val].fract == fract) in afe440x_store_register()
177 if (val == afe440x_attr->table_size) in afe440x_store_register()
[all …]
Dafe4404.c173 struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); in afe440x_show_register() local
178 ret = regmap_field_read(afe->fields[afe440x_attr->field], &reg_val); in afe440x_show_register()
182 if (reg_val >= afe440x_attr->table_size) in afe440x_show_register()
185 vals[0] = afe440x_attr->val_table[reg_val].integer; in afe440x_show_register()
186 vals[1] = afe440x_attr->val_table[reg_val].fract; in afe440x_show_register()
197 struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); in afe440x_store_register() local
204 for (val = 0; val < afe440x_attr->table_size; val++) in afe440x_store_register()
205 if (afe440x_attr->val_table[val].integer == integer && in afe440x_store_register()
206 afe440x_attr->val_table[val].fract == fract) in afe440x_store_register()
208 if (val == afe440x_attr->table_size) in afe440x_store_register()
[all …]
Dafe440x.h135 struct afe440x_attr { struct
143 container_of(_dev_attr, struct afe440x_attr, dev_attr) argument
146 struct afe440x_attr afe440x_attr_##_name = { \