Lines Matching refs:tc3589x_gpio
27 struct tc3589x_gpio {
39 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
40 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
54 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
55 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
66 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
67 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
79 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
80 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
90 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
91 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
109 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
110 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
160 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
166 tc3589x_gpio->regs[REG_IBE][regoffset] |= mask;
170 tc3589x_gpio->regs[REG_IBE][regoffset] &= ~mask;
173 tc3589x_gpio->regs[REG_IS][regoffset] |= mask;
175 tc3589x_gpio->regs[REG_IS][regoffset] &= ~mask;
178 tc3589x_gpio->regs[REG_IEV][regoffset] |= mask;
180 tc3589x_gpio->regs[REG_IEV][regoffset] &= ~mask;
188 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
190 mutex_lock(&tc3589x_gpio->irq_lock);
196 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
197 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
209 u8 old = tc3589x_gpio->oldregs[i][j];
210 u8 new = tc3589x_gpio->regs[i][j];
215 tc3589x_gpio->oldregs[i][j] = new;
220 mutex_unlock(&tc3589x_gpio->irq_lock);
226 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
231 tc3589x_gpio->regs[REG_IE][regoffset] &= ~mask;
232 tc3589x_gpio->regs[REG_DIRECT][regoffset] |= mask;
238 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
243 tc3589x_gpio->regs[REG_IE][regoffset] |= mask;
244 tc3589x_gpio->regs[REG_DIRECT][regoffset] &= ~mask;
258 struct tc3589x_gpio *tc3589x_gpio = dev;
259 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
277 int irq = irq_find_mapping(tc3589x_gpio->chip.irq.domain,
294 struct tc3589x_gpio *tc3589x_gpio;
308 tc3589x_gpio = devm_kzalloc(&pdev->dev, sizeof(struct tc3589x_gpio),
310 if (!tc3589x_gpio)
313 mutex_init(&tc3589x_gpio->irq_lock);
315 tc3589x_gpio->dev = &pdev->dev;
316 tc3589x_gpio->tc3589x = tc3589x;
318 tc3589x_gpio->chip = template_chip;
319 tc3589x_gpio->chip.ngpio = tc3589x->num_gpio;
320 tc3589x_gpio->chip.parent = &pdev->dev;
321 tc3589x_gpio->chip.base = -1;
322 tc3589x_gpio->chip.of_node = np;
324 girq = &tc3589x_gpio->chip.irq;
354 tc3589x_gpio);
360 ret = devm_gpiochip_add_data(&pdev->dev, &tc3589x_gpio->chip,
361 tc3589x_gpio);
367 platform_set_drvdata(pdev, tc3589x_gpio);