Lines Matching refs:reg_data
59 struct mlxreg_core_data *reg_data; in mlxreg_wdt_check_card_reset() local
69 reg_data = &wdt->pdata->data[wdt->reset_idx]; in mlxreg_wdt_check_card_reset()
70 rc = regmap_read(wdt->regmap, reg_data->reg, ®val); in mlxreg_wdt_check_card_reset()
72 if (regval & ~reg_data->mask) { in mlxreg_wdt_check_card_reset()
83 struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->action_idx]; in mlxreg_wdt_start() local
85 return regmap_update_bits(wdt->regmap, reg_data->reg, ~reg_data->mask, in mlxreg_wdt_start()
86 BIT(reg_data->bit)); in mlxreg_wdt_start()
92 struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->action_idx]; in mlxreg_wdt_stop() local
94 return regmap_update_bits(wdt->regmap, reg_data->reg, ~reg_data->mask, in mlxreg_wdt_stop()
95 ~BIT(reg_data->bit)); in mlxreg_wdt_stop()
101 struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->ping_idx]; in mlxreg_wdt_ping() local
103 return regmap_write_bits(wdt->regmap, reg_data->reg, ~reg_data->mask, in mlxreg_wdt_ping()
104 BIT(reg_data->bit)); in mlxreg_wdt_ping()
111 struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->timeout_idx]; in mlxreg_wdt_set_timeout() local
117 rc = regmap_read(wdt->regmap, reg_data->reg, ®val); in mlxreg_wdt_set_timeout()
122 regval = (regval & reg_data->mask) | hw_timeout; in mlxreg_wdt_set_timeout()
125 rc = regmap_write(wdt->regmap, reg_data->reg, regval); in mlxreg_wdt_set_timeout()
129 rc = regmap_write(wdt->regmap, reg_data->reg, timeout); in mlxreg_wdt_set_timeout()
136 rc = regmap_write(wdt->regmap, reg_data->reg, regval); in mlxreg_wdt_set_timeout()
140 reg_data->reg + 1, regval); in mlxreg_wdt_set_timeout()
143 rc = regmap_write(wdt->regmap, reg_data->reg, timeout); in mlxreg_wdt_set_timeout()
169 struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->tleft_idx]; in mlxreg_wdt_get_timeleft() local
174 rc = regmap_read(wdt->regmap, reg_data->reg, ®val); in mlxreg_wdt_get_timeleft()
178 rc = regmap_read(wdt->regmap, reg_data->reg, &lsb); in mlxreg_wdt_get_timeleft()
181 reg_data->reg + 1, &msb); in mlxreg_wdt_get_timeleft()
185 rc = regmap_read(wdt->regmap, reg_data->reg, ®val); in mlxreg_wdt_get_timeleft()