Lines Matching refs:p
12 int pfuze_mode_init(struct pmic *p, u32 mode) in pfuze_mode_init() argument
18 pmic_reg_read(p, PFUZE100_DEVICEID, &id); in pfuze_mode_init()
32 ret = pmic_reg_write(p, PFUZE100_SW1ABMODE, mode); in pfuze_mode_init()
39 ret = pmic_reg_write(p, offset + i * SWITCH_SIZE, mode); in pfuze_mode_init()
52 struct pmic *p; in pfuze_common_init() local
60 p = pmic_get("PFUZE100"); in pfuze_common_init()
61 ret = pmic_probe(p); in pfuze_common_init()
65 pmic_reg_read(p, PFUZE100_DEVICEID, ®); in pfuze_common_init()
69 pmic_reg_read(p, PFUZE100_SW1ABSTBY, ®); in pfuze_common_init()
72 pmic_reg_write(p, PFUZE100_SW1ABSTBY, reg); in pfuze_common_init()
75 pmic_reg_read(p, PFUZE100_SW1ABCONF, ®); in pfuze_common_init()
78 pmic_reg_write(p, PFUZE100_SW1ABCONF, reg); in pfuze_common_init()
81 pmic_reg_read(p, PFUZE100_SW1CSTBY, ®); in pfuze_common_init()
84 pmic_reg_write(p, PFUZE100_SW1CSTBY, reg); in pfuze_common_init()
87 pmic_reg_read(p, PFUZE100_SW1CCONF, ®); in pfuze_common_init()
90 pmic_reg_write(p, PFUZE100_SW1CCONF, reg); in pfuze_common_init()
92 return p; in pfuze_common_init()