Lines Matching refs:pos
31 uint32_t pos, bit; in mt_set_gpio_dir_chip() local
36 pos = pin / MAX_GPIO_REG_BITS; in mt_set_gpio_dir_chip()
40 mmio_write_32(DIR_BASE + 0x10U * pos + CLR, 1U << bit); in mt_set_gpio_dir_chip()
42 mmio_write_32(DIR_BASE + 0x10U * pos + SET, 1U << bit); in mt_set_gpio_dir_chip()
48 uint32_t pos, bit; in mt_get_gpio_dir_chip() local
53 pos = pin / MAX_GPIO_REG_BITS; in mt_get_gpio_dir_chip()
56 reg = mmio_read_32(DIR_BASE + 0x10U * pos); in mt_get_gpio_dir_chip()
62 uint32_t pos, bit; in mt_set_gpio_out_chip() local
67 pos = pin / MAX_GPIO_REG_BITS; in mt_set_gpio_out_chip()
71 mmio_write_32(DOUT_BASE + 0x10U * pos + CLR, 1U << bit); in mt_set_gpio_out_chip()
73 mmio_write_32(DOUT_BASE + 0x10U * pos + SET, 1U << bit); in mt_set_gpio_out_chip()
79 uint32_t pos, bit; in mt_get_gpio_in_chip() local
84 pos = pin / MAX_GPIO_REG_BITS; in mt_get_gpio_in_chip()
87 reg = mmio_read_32(DIN_BASE + 0x10U * pos); in mt_get_gpio_in_chip()