Searched refs:afe440x_attr (Results 1 – 3 of 3) sorted by relevance
145 struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); in afe440x_show_register() local150 ret = regmap_field_read(afe->fields[afe440x_attr->field], ®_val); in afe440x_show_register()154 if (reg_val >= afe440x_attr->table_size) in afe440x_show_register()157 vals[0] = afe440x_attr->val_table[reg_val].integer; in afe440x_show_register()158 vals[1] = afe440x_attr->val_table[reg_val].fract; in afe440x_show_register()169 struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); in afe440x_store_register() local176 for (val = 0; val < afe440x_attr->table_size; val++) in afe440x_store_register()177 if (afe440x_attr->val_table[val].integer == integer && in afe440x_store_register()178 afe440x_attr->val_table[val].fract == fract) in afe440x_store_register()180 if (val == afe440x_attr->table_size) in afe440x_store_register()[all …]
179 struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); in afe440x_show_register() local184 ret = regmap_field_read(afe->fields[afe440x_attr->field], ®_val); in afe440x_show_register()188 if (reg_val >= afe440x_attr->table_size) in afe440x_show_register()191 vals[0] = afe440x_attr->val_table[reg_val].integer; in afe440x_show_register()192 vals[1] = afe440x_attr->val_table[reg_val].fract; in afe440x_show_register()203 struct afe440x_attr *afe440x_attr = to_afe440x_attr(attr); in afe440x_store_register() local210 for (val = 0; val < afe440x_attr->table_size; val++) in afe440x_store_register()211 if (afe440x_attr->val_table[val].integer == integer && in afe440x_store_register()212 afe440x_attr->val_table[val].fract == fract) in afe440x_store_register()214 if (val == afe440x_attr->table_size) in afe440x_store_register()[all …]
143 struct afe440x_attr { struct151 container_of(_dev_attr, struct afe440x_attr, dev_attr) argument154 struct afe440x_attr afe440x_attr_##_name = { \