Lines Matching refs:tc3589x

29 	struct tc3589x *tc3589x;  member
40 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_get() local
45 ret = tc3589x_reg_read(tc3589x, reg); in tc3589x_gpio_get()
55 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_set() local
60 tc3589x_block_write(tc3589x, reg, ARRAY_SIZE(data), data); in tc3589x_gpio_set()
67 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_output() local
73 return tc3589x_set_bits(tc3589x, reg, BIT(pos), BIT(pos)); in tc3589x_gpio_direction_output()
80 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_input() local
84 return tc3589x_set_bits(tc3589x, reg, BIT(pos), 0); in tc3589x_gpio_direction_input()
91 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_get_direction() local
96 ret = tc3589x_reg_read(tc3589x, reg); in tc3589x_gpio_get_direction()
110 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_set_config() local
124 ret = tc3589x_set_bits(tc3589x, odmreg, BIT(pos), 0); in tc3589x_gpio_set_config()
128 return tc3589x_set_bits(tc3589x, odereg, BIT(pos), BIT(pos)); in tc3589x_gpio_set_config()
131 ret = tc3589x_set_bits(tc3589x, odmreg, BIT(pos), BIT(pos)); in tc3589x_gpio_set_config()
135 return tc3589x_set_bits(tc3589x, odereg, BIT(pos), BIT(pos)); in tc3589x_gpio_set_config()
138 return tc3589x_set_bits(tc3589x, odereg, BIT(pos), 0); in tc3589x_gpio_set_config()
197 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_irq_sync_unlock() local
216 tc3589x_reg_write(tc3589x, regmap[i] + j, new); in tc3589x_gpio_irq_sync_unlock()
263 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_irq() local
268 ret = tc3589x_block_read(tc3589x, TC3589x_GPIOMIS0, in tc3589x_gpio_irq()
288 tc3589x_reg_write(tc3589x, TC3589x_GPIOIC0 + i, status[i]); in tc3589x_gpio_irq()
296 struct tc3589x *tc3589x = dev_get_drvdata(pdev->dev.parent); in tc3589x_gpio_probe() local
320 tc3589x_gpio->tc3589x = tc3589x; in tc3589x_gpio_probe()
323 tc3589x_gpio->chip.ngpio = tc3589x->num_gpio; in tc3589x_gpio_probe()
338 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL, in tc3589x_gpio_probe()
349 ret = tc3589x_reg_write(tc3589x, TC3589x_DKBDMSK, in tc3589x_gpio_probe()