Lines Matching refs:tc3589x
29 struct tc3589x *tc3589x; member
45 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_get() local
50 ret = tc3589x_reg_read(tc3589x, reg); in tc3589x_gpio_get()
60 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_set() local
65 tc3589x_block_write(tc3589x, reg, ARRAY_SIZE(data), data); in tc3589x_gpio_set()
72 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_output() local
78 return tc3589x_set_bits(tc3589x, reg, 1 << pos, 1 << pos); in tc3589x_gpio_direction_output()
85 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_input() local
89 return tc3589x_set_bits(tc3589x, reg, 1 << pos, 0); in tc3589x_gpio_direction_input()
142 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_irq_sync_unlock() local
160 tc3589x_reg_write(tc3589x, regmap[i] + j * 8, new); in tc3589x_gpio_irq_sync_unlock()
201 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_irq() local
206 ret = tc3589x_block_read(tc3589x, TC3589x_GPIOMIS0, in tc3589x_gpio_irq()
226 tc3589x_reg_write(tc3589x, TC3589x_GPIOIC0 + i, status[i]); in tc3589x_gpio_irq()
234 struct tc3589x *tc3589x = dev_get_drvdata(pdev->dev.parent); in tc3589x_gpio_probe() local
257 tc3589x_gpio->tc3589x = tc3589x; in tc3589x_gpio_probe()
260 tc3589x_gpio->chip.ngpio = tc3589x->num_gpio; in tc3589x_gpio_probe()
266 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL, in tc3589x_gpio_probe()