Lines Matching refs:pos

36 	uint32_t pos, bit;  in mt_set_gpio_dir_chip()  local
41 pos = pin / MAX_GPIO_REG_BITS; in mt_set_gpio_dir_chip()
45 mmio_write_32(DIR_BASE + 0x10 * pos + CLR, 1U << bit); in mt_set_gpio_dir_chip()
47 mmio_write_32(DIR_BASE + 0x10 * pos + SET, 1U << bit); in mt_set_gpio_dir_chip()
52 uint32_t pos, bit; in mt_get_gpio_dir_chip() local
57 pos = pin / MAX_GPIO_REG_BITS; in mt_get_gpio_dir_chip()
60 reg = mmio_read_32(DIR_BASE + 0x10 * pos); in mt_get_gpio_dir_chip()
66 uint32_t pos, bit; in mt_set_gpio_out_chip() local
71 pos = pin / MAX_GPIO_REG_BITS; in mt_set_gpio_out_chip()
75 mmio_write_32(DOUT_BASE + 0x10 * pos + CLR, 1U << bit); in mt_set_gpio_out_chip()
77 mmio_write_32(DOUT_BASE + 0x10 * pos + SET, 1U << bit); in mt_set_gpio_out_chip()
82 uint32_t pos, bit; in mt_get_gpio_out_chip() local
87 pos = pin / MAX_GPIO_REG_BITS; in mt_get_gpio_out_chip()
90 reg = mmio_read_32(DOUT_BASE + 0x10 * pos); in mt_get_gpio_out_chip()
96 uint32_t pos, bit; in mt_get_gpio_in_chip() local
101 pos = pin / MAX_GPIO_REG_BITS; in mt_get_gpio_in_chip()
104 reg = mmio_read_32(DIN_BASE + 0x10 * pos); in mt_get_gpio_in_chip()
110 uint32_t pos, bit; in mt_set_gpio_mode_chip() local
120 pos = pin / MAX_GPIO_MODE_PER_REG; in mt_set_gpio_mode_chip()
123 data = mmio_read_32(MODE_BASE + 0x10 * pos); in mt_set_gpio_mode_chip()
126 mmio_write_32(MODE_BASE + 0x10 * pos, data); in mt_set_gpio_mode_chip()
131 uint32_t pos, bit; in mt_get_gpio_mode_chip() local
139 pos = pin / MAX_GPIO_MODE_PER_REG; in mt_get_gpio_mode_chip()
142 data = mmio_read_32(MODE_BASE + 0x10 * pos); in mt_get_gpio_mode_chip()