tc3589x_gpio
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
tc3589x_gpio->regs[REG_IBE][regoffset] |= mask;
tc3589x_gpio->regs[REG_IBE][regoffset] &= ~mask;
tc3589x_gpio->regs[REG_IS][regoffset] |= mask;
tc3589x_gpio->regs[REG_IS][regoffset] &= ~mask;
tc3589x_gpio->regs[REG_IEV][regoffset] |= mask;
tc3589x_gpio->regs[REG_IEV][regoffset] &= ~mask;
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
mutex_lock(&tc3589x_gpio->irq_lock);
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
u8 old = tc3589x_gpio->oldregs[i][j];
u8 new = tc3589x_gpio->regs[i][j];
tc3589x_gpio->oldregs[i][j] = new;
mutex_unlock(&tc3589x_gpio->irq_lock);
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
tc3589x_gpio->regs[REG_IE][regoffset] &= ~mask;
tc3589x_gpio->regs[REG_DIRECT][regoffset] |= mask;
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(gc);
tc3589x_gpio->regs[REG_IE][regoffset] |= mask;
tc3589x_gpio->regs[REG_DIRECT][regoffset] &= ~mask;
struct tc3589x_gpio *tc3589x_gpio = dev;
struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
int irq = irq_find_mapping(tc3589x_gpio->chip.irq.domain,
struct tc3589x_gpio *tc3589x_gpio;
tc3589x_gpio = devm_kzalloc(&pdev->dev, sizeof(struct tc3589x_gpio),
if (!tc3589x_gpio)
mutex_init(&tc3589x_gpio->irq_lock);
tc3589x_gpio->dev = &pdev->dev;
tc3589x_gpio->tc3589x = tc3589x;
tc3589x_gpio->chip = template_chip;
tc3589x_gpio->chip.ngpio = tc3589x->num_gpio;
tc3589x_gpio->chip.parent = &pdev->dev;
tc3589x_gpio->chip.base = -1;
girq = &tc3589x_gpio->chip.irq;
tc3589x_gpio);
return devm_gpiochip_add_data(&pdev->dev, &tc3589x_gpio->chip, tc3589x_gpio);
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;
struct tc3589x_gpio *tc3589x_gpio = gpiochip_get_data(chip);
struct tc3589x *tc3589x = tc3589x_gpio->tc3589x;