Lines Matching refs:p
18 int pmic_reg_write(struct pmic *p, u32 reg, u32 val) in pmic_reg_write() argument
22 if (check_reg(p, reg)) in pmic_reg_write()
25 I2C_SET_BUS(p->bus); in pmic_reg_write()
29 if (p->sensor_byte_order == PMIC_SENSOR_BYTE_ORDER_BIG) { in pmic_reg_write()
40 if (p->sensor_byte_order == PMIC_SENSOR_BYTE_ORDER_BIG) { in pmic_reg_write()
59 int pmic_reg_read(struct pmic *p, u32 reg, u32 *val) in pmic_reg_read() argument
65 if (check_reg(p, reg)) in pmic_reg_read()
68 I2C_SET_BUS(p->bus); in pmic_reg_read()
76 if (p->sensor_byte_order == PMIC_SENSOR_BYTE_ORDER_BIG) in pmic_reg_read()
84 if (p->sensor_byte_order == PMIC_SENSOR_BYTE_ORDER_BIG) in pmic_reg_read()
101 int pmic_probe(struct pmic *p) in pmic_probe() argument
103 i2c_set_bus_num(p->bus); in pmic_probe()
104 debug("Bus: %d PMIC:%s probed!\n", p->bus, p->name); in pmic_probe()
106 printf("Can't find PMIC:%s\n", p->name); in pmic_probe()