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;
239 struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
245 tc3589x_gpio->regs[REG_IE][regoffset] |= mask;
246 tc3589x_gpio->regs[REG_DIRECT][regoffset] &= ~mask;
262 struct tc3589x_gpio *tc3589x_gpio = dev;
263 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
281 int irq = irq_find_mapping(tc3589x_gpio->chip.irq.domain,
298 struct tc3589x_gpio *tc3589x_gpio;
312 tc3589x_gpio = devm_kzalloc(&pdev->dev, sizeof(struct tc3589x_gpio),
314 if (!tc3589x_gpio)
317 mutex_init(&tc3589x_gpio->irq_lock);
319 tc3589x_gpio->dev = &pdev->dev;
320 tc3589x_gpio->tc3589x = tc3589x;
322 tc3589x_gpio->chip = template_chip;
323 tc3589x_gpio->chip.ngpio = tc3589x->num_gpio;
324 tc3589x_gpio->chip.parent = &pdev->dev;
325 tc3589x_gpio->chip.base = -1;
327 girq = &tc3589x_gpio->chip.irq;
357 tc3589x_gpio);
363 return devm_gpiochip_add_data(&pdev->dev, &tc3589x_gpio->chip, tc3589x_gpio);