Lines Matching refs:reg_val
102 unsigned int reg_val; in lm3646_get_ctrl() local
108 rval = regmap_read(flash->regmap, REG_FLAG, ®_val); in lm3646_get_ctrl()
113 if (reg_val & FAULT_TIMEOUT) in lm3646_get_ctrl()
115 if (reg_val & FAULT_SHORT_CIRCUIT) in lm3646_get_ctrl()
117 if (reg_val & FAULT_UVLO) in lm3646_get_ctrl()
119 if (reg_val & FAULT_IVFM) in lm3646_get_ctrl()
121 if (reg_val & FAULT_OCP) in lm3646_get_ctrl()
123 if (reg_val & FAULT_OVERTEMP) in lm3646_get_ctrl()
125 if (reg_val & FAULT_NTC_TRIP) in lm3646_get_ctrl()
127 if (reg_val & FAULT_OVP) in lm3646_get_ctrl()
136 unsigned int reg_val; in lm3646_set_ctrl() local
155 rval = regmap_read(flash->regmap, REG_ENABLE, ®_val); in lm3646_set_ctrl()
156 if (rval < 0 || ((reg_val & MASK_ENABLE) != MODE_SHDN)) in lm3646_set_ctrl()
168 rval = regmap_read(flash->regmap, REG_ENABLE, ®_val); in lm3646_set_ctrl()
171 if ((reg_val & MASK_ENABLE) == MODE_FLASH) in lm3646_set_ctrl()
296 unsigned int reg_val; in lm3646_init_device() local
300 rval = regmap_read(flash->regmap, REG_ENABLE, ®_val); in lm3646_init_device()
303 flash->mode_reg = reg_val & 0xfc; in lm3646_init_device()
334 return regmap_read(flash->regmap, REG_FLAG, ®_val); in lm3646_init_device()