Lines Matching refs:reg_data
19 u8 reg_data; in max14577_reg_is_enabled() local
23 max14577_read_reg(rmap, MAX14577_CHG_REG_CHG_CTRL2, ®_data); in max14577_reg_is_enabled()
24 if ((reg_data & CHGCTRL2_MBCHOSTEN_MASK) == 0) in max14577_reg_is_enabled()
26 max14577_read_reg(rmap, MAX14577_CHG_REG_STATUS3, ®_data); in max14577_reg_is_enabled()
27 if ((reg_data & STATUS3_CGMBC_MASK) == 0) in max14577_reg_is_enabled()
38 u8 reg_data; in max14577_reg_get_current_limit() local
47 max14577_read_reg(rmap, MAX14577_CHG_REG_CHG_CTRL4, ®_data); in max14577_reg_get_current_limit()
49 if ((reg_data & CHGCTRL4_MBCICHWRCL_MASK) == 0) in max14577_reg_get_current_limit()
52 reg_data = ((reg_data & CHGCTRL4_MBCICHWRCH_MASK) >> in max14577_reg_get_current_limit()
54 return limits->high_start + reg_data * limits->high_step; in max14577_reg_get_current_limit()
60 u8 reg_data; in max14577_reg_set_current_limit() local
69 ret = maxim_charger_calc_reg_current(limits, min_uA, max_uA, ®_data); in max14577_reg_set_current_limit()
75 reg_data); in max14577_reg_set_current_limit()