Lines Matching refs:pcf
63 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val)
69 return pcf50633_reg_set_bit_mask(pcf, reg, 0x07, val);
73 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio)
78 val = pcf50633_reg_read(pcf, reg) & 0x07;
84 int pcf50633_gpio_invert_set(struct pcf50633 *pcf, int gpio, int invert)
91 return pcf50633_reg_set_bit_mask(pcf, reg, 1 << 3, val);
95 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio)
100 val = pcf50633_reg_read(pcf, reg);
106 int pcf50633_gpio_power_supply_set(struct pcf50633 *pcf,
117 return pcf50633_reg_set_bit_mask(pcf, reg, mask, val);