Lines Matching defs:offset
51 unsigned int data, offset;
56 offset = gpio % GPIOS_PER_PL061;
58 if (data & BIT(offset))
66 unsigned int data, offset;
71 offset = gpio % GPIOS_PER_PL061;
73 data = mmio_read_8(base_addr + PL061_GPIO_DIR) | BIT(offset);
76 data = mmio_read_8(base_addr + PL061_GPIO_DIR) & ~BIT(offset);
82 * The offset of GPIODATA register is 0.
92 unsigned int offset;
97 offset = gpio % GPIOS_PER_PL061;
98 if (mmio_read_8(base_addr + BIT(offset + 2)))
111 int offset;
116 offset = gpio % GPIOS_PER_PL061;
118 mmio_write_8(base_addr + BIT(offset + 2), BIT(offset));
120 mmio_write_8(base_addr + BIT(offset + 2), 0);
125 * Register the PL061 GPIO controller with a base address and the offset