Lines Matching defs:tc3589x
15 #include <linux/mfd/tc3589x.h>
29 struct tc3589x *tc3589x;
40 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
45 ret = tc3589x_reg_read(tc3589x, reg);
55 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
60 tc3589x_block_write(tc3589x, reg, ARRAY_SIZE(data), data);
67 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
73 return tc3589x_set_bits(tc3589x, reg, BIT(pos), BIT(pos));
80 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
84 return tc3589x_set_bits(tc3589x, reg, BIT(pos), 0);
91 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
96 ret = tc3589x_reg_read(tc3589x, reg);
110 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
124 ret = tc3589x_set_bits(tc3589x, odmreg, BIT(pos), 0);
128 return tc3589x_set_bits(tc3589x, odereg, BIT(pos), BIT(pos));
131 ret = tc3589x_set_bits(tc3589x, odmreg, BIT(pos), BIT(pos));
135 return tc3589x_set_bits(tc3589x, odereg, BIT(pos), BIT(pos));
138 return tc3589x_set_bits(tc3589x, odereg, BIT(pos), 0);
146 .label = "tc3589x",
197 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
216 tc3589x_reg_write(tc3589x, regmap[i] + j, new);
250 .name = "tc3589x-gpio",
263 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
268 ret = tc3589x_block_read(tc3589x, TC3589x_GPIOMIS0,
288 tc3589x_reg_write(tc3589x, TC3589x_GPIOIC0 + i, status[i]);
296 struct tc3589x *tc3589x = dev_get_drvdata(pdev->dev.parent);
320 tc3589x_gpio->tc3589x = tc3589x;
323 tc3589x_gpio->chip.ngpio = tc3589x->num_gpio;
338 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL,
346 * TODO: need more test on other tc3589x chip.
349 ret = tc3589x_reg_write(tc3589x, TC3589x_DKBDMSK,
356 IRQF_ONESHOT, "tc3589x-gpio",
367 .driver.name = "tc3589x-gpio",