Lines Matching refs:gpio_regs

144 	data = rockchip_gpio_readl_bit(bank, offset, bank->gpio_regs->port_ddr);  in rockchip_gpio_get_direction()
159 rockchip_gpio_writel_bit(bank, offset, data, bank->gpio_regs->port_ddr); in rockchip_gpio_set_direction()
172 rockchip_gpio_writel_bit(bank, offset, value, bank->gpio_regs->port_dr); in rockchip_gpio_set()
181 data = readl(bank->reg_base + bank->gpio_regs->ext_port); in rockchip_gpio_get()
193 const struct rockchip_gpio_regs *reg = bank->gpio_regs; in rockchip_gpio_set_debounce()
333 pend = readl_relaxed(bank->reg_base + bank->gpio_regs->int_status); in rockchip_irq_demux()
358 bank->gpio_regs->ext_port); in rockchip_irq_demux()
363 bank->gpio_regs->int_polarity); in rockchip_irq_demux()
370 bank->gpio_regs->int_polarity); in rockchip_irq_demux()
376 bank->gpio_regs->ext_port); in rockchip_irq_demux()
400 bank->gpio_regs->port_ddr); in rockchip_irq_set_type()
411 level = rockchip_gpio_readl(bank, bank->gpio_regs->int_type); in rockchip_irq_set_type()
412 polarity = rockchip_gpio_readl(bank, bank->gpio_regs->int_polarity); in rockchip_irq_set_type()
417 bank->gpio_regs->int_bothedge); in rockchip_irq_set_type()
427 data = readl(bank->reg_base + bank->gpio_regs->ext_port); in rockchip_irq_set_type()
436 bank->gpio_regs->int_bothedge); in rockchip_irq_set_type()
463 rockchip_gpio_writel(bank, level, bank->gpio_regs->int_type); in rockchip_irq_set_type()
464 rockchip_gpio_writel(bank, polarity, bank->gpio_regs->int_polarity); in rockchip_irq_set_type()
492 bank->saved_masks = irq_reg_readl(gc, bank->gpio_regs->int_mask); in rockchip_irq_suspend()
493 irq_reg_writel(gc, ~gc->wake_active, bank->gpio_regs->int_mask); in rockchip_irq_suspend()
501 irq_reg_writel(gc, bank->saved_masks, bank->gpio_regs->int_mask); in rockchip_irq_resume()
547 gc->chip_types[0].regs.mask = bank->gpio_regs->int_mask; in rockchip_interrupts_register()
548 gc->chip_types[0].regs.ack = bank->gpio_regs->port_eoi; in rockchip_interrupts_register()
567 rockchip_gpio_writel(bank, 0xffffffff, bank->gpio_regs->int_mask); in rockchip_interrupts_register()
568 rockchip_gpio_writel(bank, 0xffffffff, bank->gpio_regs->port_eoi); in rockchip_interrupts_register()
569 rockchip_gpio_writel(bank, 0xffffffff, bank->gpio_regs->int_en); in rockchip_interrupts_register()
668 bank->gpio_regs = &gpio_regs_v2; in rockchip_get_bank_data()
677 bank->gpio_regs = &gpio_regs_v1; in rockchip_get_bank_data()