Lines Matching refs:regval
97 unsigned int regval; in lp8755_buck_enable_time() local
101 ret = lp8755_read(pchip, 0x12 + id, ®val); in lp8755_buck_enable_time()
106 return (regval & 0xff) * 100; in lp8755_buck_enable_time()
155 unsigned int regval; in lp8755_buck_get_mode() local
159 ret = lp8755_read(pchip, 0x06, ®val); in lp8755_buck_get_mode()
164 if (regval & (0x01 << id)) in lp8755_buck_get_mode()
167 ret = lp8755_read(pchip, 0x08 + id, ®val); in lp8755_buck_get_mode()
172 if (regval & 0x20) in lp8755_buck_get_mode()
186 unsigned int regval = 0x00; in lp8755_buck_set_ramp() local
193 regval = 0x07; in lp8755_buck_set_ramp()
196 regval = 0x06; in lp8755_buck_set_ramp()
199 regval = 0x05; in lp8755_buck_set_ramp()
202 regval = 0x04; in lp8755_buck_set_ramp()
205 regval = 0x03; in lp8755_buck_set_ramp()
208 regval = 0x02; in lp8755_buck_set_ramp()
211 regval = 0x01; in lp8755_buck_set_ramp()
214 regval = 0x00; in lp8755_buck_set_ramp()
222 ret = lp8755_update_bits(pchip, 0x07 + id, 0x07, regval); in lp8755_buck_set_ramp()
280 unsigned int regval; in lp8755_init_data() local
285 ret = lp8755_read(pchip, 0x3D, ®val); in lp8755_init_data()
288 pchip->mphase = regval & 0x0F; in lp8755_init_data()
418 unsigned int regval; in lp8755_int_config() local
425 ret = lp8755_read(pchip, 0x0F, ®val); in lp8755_int_config()
428 pchip->irqmask = regval; in lp8755_int_config()