Lines Matching refs:bank_id
84 int bank_id, u32 lockcode) in bcm_kona_gpio_write_lock_regs() argument
87 writel(lockcode, reg_base + GPIO_PWD_STATUS(bank_id)); in bcm_kona_gpio_write_lock_regs()
95 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_lock_gpio() local
99 val = readl(kona_gpio->reg_base + GPIO_PWD_STATUS(bank_id)); in bcm_kona_gpio_lock_gpio()
101 bcm_kona_gpio_write_lock_regs(kona_gpio->reg_base, bank_id, val); in bcm_kona_gpio_lock_gpio()
111 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_unlock_gpio() local
115 val = readl(kona_gpio->reg_base + GPIO_PWD_STATUS(bank_id)); in bcm_kona_gpio_unlock_gpio()
117 bcm_kona_gpio_write_lock_regs(kona_gpio->reg_base, bank_id, val); in bcm_kona_gpio_unlock_gpio()
136 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_set() local
149 reg_offset = value ? GPIO_OUT_SET(bank_id) : GPIO_OUT_CLEAR(bank_id); in bcm_kona_gpio_set()
163 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_get() local
173 reg_offset = GPIO_IN_STATUS(bank_id); in bcm_kona_gpio_get()
175 reg_offset = GPIO_OUT_STATUS(bank_id); in bcm_kona_gpio_get()
227 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_direction_output() local
240 reg_offset = value ? GPIO_OUT_SET(bank_id) : GPIO_OUT_CLEAR(bank_id); in bcm_kona_gpio_direction_output()
342 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_ack() local
351 val = readl(reg_base + GPIO_INT_STATUS(bank_id)); in bcm_kona_gpio_irq_ack()
353 writel(val, reg_base + GPIO_INT_STATUS(bank_id)); in bcm_kona_gpio_irq_ack()
363 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_mask() local
372 val = readl(reg_base + GPIO_INT_MASK(bank_id)); in bcm_kona_gpio_irq_mask()
374 writel(val, reg_base + GPIO_INT_MASK(bank_id)); in bcm_kona_gpio_irq_mask()
385 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_unmask() local
394 val = readl(reg_base + GPIO_INT_MSKCLR(bank_id)); in bcm_kona_gpio_irq_unmask()
396 writel(val, reg_base + GPIO_INT_MSKCLR(bank_id)); in bcm_kona_gpio_irq_unmask()
450 int bit, bank_id; in bcm_kona_gpio_irq_handler() local
463 bank_id = bank->id; in bcm_kona_gpio_irq_handler()
465 while ((sta = readl(reg_base + GPIO_INT_STATUS(bank_id)) & in bcm_kona_gpio_irq_handler()
466 (~(readl(reg_base + GPIO_INT_MASK(bank_id)))))) { in bcm_kona_gpio_irq_handler()
468 int hwirq = GPIO_PER_BANK * bank_id + bit; in bcm_kona_gpio_irq_handler()
473 writel(readl(reg_base + GPIO_INT_STATUS(bank_id)) | in bcm_kona_gpio_irq_handler()
474 BIT(bit), reg_base + GPIO_INT_STATUS(bank_id)); in bcm_kona_gpio_irq_handler()