Lines Matching refs:base_addr
50 uintptr_t base_addr; in pl061_get_direction() local
55 base_addr = pl061_reg_base[gpio / GPIOS_PER_PL061]; in pl061_get_direction()
57 data = mmio_read_8(base_addr + PL061_GPIO_DIR); in pl061_get_direction()
65 uintptr_t base_addr; in pl061_set_direction() local
70 base_addr = pl061_reg_base[gpio / GPIOS_PER_PL061]; in pl061_set_direction()
73 data = mmio_read_8(base_addr + PL061_GPIO_DIR) | BIT(offset); in pl061_set_direction()
74 mmio_write_8(base_addr + PL061_GPIO_DIR, data); in pl061_set_direction()
76 data = mmio_read_8(base_addr + PL061_GPIO_DIR) & ~BIT(offset); in pl061_set_direction()
77 mmio_write_8(base_addr + PL061_GPIO_DIR, data); in pl061_set_direction()
91 uintptr_t base_addr; in pl061_get_value() local
96 base_addr = pl061_reg_base[gpio / GPIOS_PER_PL061]; in pl061_get_value()
98 if (mmio_read_8(base_addr + BIT(offset + 2))) in pl061_get_value()
110 uintptr_t base_addr; in pl061_set_value() local
115 base_addr = pl061_reg_base[gpio / GPIOS_PER_PL061]; in pl061_set_value()
118 mmio_write_8(base_addr + BIT(offset + 2), BIT(offset)); in pl061_set_value()
120 mmio_write_8(base_addr + BIT(offset + 2), 0); in pl061_set_value()
129 void pl061_gpio_register(uintptr_t base_addr, int gpio_dev) in pl061_gpio_register() argument
133 pl061_reg_base[gpio_dev] = base_addr; in pl061_gpio_register()