Lines Matching refs:mode
68 cfg->mode = (io_read32(base + GPIO_MODER_OFFSET) >> (pin << 1)) & in get_gpio_cfg()
104 cfg->mode << (pin << 1)); in set_gpio_cfg()
233 uint32_t mode = 0; in get_pinctrl_from_fdt() local
244 mode = pincfg & DT_GPIO_MODE_MASK; in get_pinctrl_from_fdt()
246 switch (mode) { in get_pinctrl_from_fdt()
248 mode = GPIO_MODE_INPUT; in get_pinctrl_from_fdt()
266 alternate = mode - 1U; in get_pinctrl_from_fdt()
267 mode = GPIO_MODE_ALTERNATE; in get_pinctrl_from_fdt()
270 mode = GPIO_MODE_ANALOG; in get_pinctrl_from_fdt()
273 mode = GPIO_MODE_OUTPUT; in get_pinctrl_from_fdt()
288 ref->active_cfg.mode = mode; in get_pinctrl_from_fdt()
295 ref->standby_cfg.mode = GPIO_MODE_ANALOG; in get_pinctrl_from_fdt()
379 uint32_t mode = (io_read32(base + GPIO_MODER_OFFSET) >> (pin << 1)) & in valid_gpio_config() local
386 return mode == GPIO_MODE_INPUT; in valid_gpio_config()
388 return mode == GPIO_MODE_OUTPUT; in valid_gpio_config()