Lines Matching refs:offset
51 unsigned int data, offset; in pl061_get_direction() local
56 offset = gpio % GPIOS_PER_PL061; in pl061_get_direction()
58 if (data & BIT(offset)) in pl061_get_direction()
66 unsigned int data, offset; in pl061_set_direction() local
71 offset = gpio % GPIOS_PER_PL061; in pl061_set_direction()
73 data = mmio_read_8(base_addr + PL061_GPIO_DIR) | BIT(offset); in pl061_set_direction()
76 data = mmio_read_8(base_addr + PL061_GPIO_DIR) & ~BIT(offset); in pl061_set_direction()
92 unsigned int offset; in pl061_get_value() local
97 offset = gpio % GPIOS_PER_PL061; in pl061_get_value()
98 if (mmio_read_8(base_addr + BIT(offset + 2))) in pl061_get_value()
111 int offset; in pl061_set_value() local
116 offset = 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()