Lines Matching refs:bank_id

76 						int bank_id, u32 lockcode)  in bcm_kona_gpio_write_lock_regs()  argument
79 writel(lockcode, reg_base + GPIO_PWD_STATUS(bank_id)); in bcm_kona_gpio_write_lock_regs()
87 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_lock_gpio() local
91 val = readl(kona_gpio->reg_base + GPIO_PWD_STATUS(bank_id)); in bcm_kona_gpio_lock_gpio()
93 bcm_kona_gpio_write_lock_regs(kona_gpio->reg_base, bank_id, val); in bcm_kona_gpio_lock_gpio()
103 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_unlock_gpio() local
107 val = readl(kona_gpio->reg_base + GPIO_PWD_STATUS(bank_id)); in bcm_kona_gpio_unlock_gpio()
109 bcm_kona_gpio_write_lock_regs(kona_gpio->reg_base, bank_id, val); in bcm_kona_gpio_unlock_gpio()
128 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_set() local
141 reg_offset = value ? GPIO_OUT_SET(bank_id) : GPIO_OUT_CLEAR(bank_id); in bcm_kona_gpio_set()
155 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_get() local
165 reg_offset = GPIO_IN_STATUS(bank_id); in bcm_kona_gpio_get()
167 reg_offset = GPIO_OUT_STATUS(bank_id); in bcm_kona_gpio_get()
219 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_direction_output() local
232 reg_offset = value ? GPIO_OUT_SET(bank_id) : GPIO_OUT_CLEAR(bank_id); in bcm_kona_gpio_direction_output()
334 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_ack() local
343 val = readl(reg_base + GPIO_INT_STATUS(bank_id)); in bcm_kona_gpio_irq_ack()
345 writel(val, reg_base + GPIO_INT_STATUS(bank_id)); in bcm_kona_gpio_irq_ack()
355 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_mask() local
364 val = readl(reg_base + GPIO_INT_MASK(bank_id)); in bcm_kona_gpio_irq_mask()
366 writel(val, reg_base + GPIO_INT_MASK(bank_id)); in bcm_kona_gpio_irq_mask()
377 int bank_id = GPIO_BANK(gpio); in bcm_kona_gpio_irq_unmask() local
386 val = readl(reg_base + GPIO_INT_MSKCLR(bank_id)); in bcm_kona_gpio_irq_unmask()
388 writel(val, reg_base + GPIO_INT_MSKCLR(bank_id)); in bcm_kona_gpio_irq_unmask()
442 int bit, bank_id; in bcm_kona_gpio_irq_handler() local
455 bank_id = bank->id; in bcm_kona_gpio_irq_handler()
457 while ((sta = readl(reg_base + GPIO_INT_STATUS(bank_id)) & in bcm_kona_gpio_irq_handler()
458 (~(readl(reg_base + GPIO_INT_MASK(bank_id)))))) { in bcm_kona_gpio_irq_handler()
460 int hwirq = GPIO_PER_BANK * bank_id + bit; in bcm_kona_gpio_irq_handler()
465 writel(readl(reg_base + GPIO_INT_STATUS(bank_id)) | in bcm_kona_gpio_irq_handler()
466 BIT(bit), reg_base + GPIO_INT_STATUS(bank_id)); in bcm_kona_gpio_irq_handler()