Searched refs:gpio_n (Results 1 – 7 of 7) sorted by relevance
/openbmc/u-boot/board/siemens/common/ |
H A D | board.c | 193 unsigned char gpio_n, gpio_s0, gpio_s1; in set_env_gpios() local 224 gpio_n = (unsigned char)simple_strtoul(str_tmp, NULL, 0); in set_env_gpios() 227 if (gpio_n > MAX_PIN_NUMBER) in set_env_gpios() 230 gpio_request(gpio_n, ""); in set_env_gpios() 240 gpio_direction_output(gpio_n, gpio_s0); in set_env_gpios() 248 gpio_direction_output(gpio_n, gpio_s1); in set_env_gpios()
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common-v2.c | 260 bool mtk_is_virt_gpio(struct mtk_pinctrl *hw, unsigned int gpio_n) in mtk_is_virt_gpio() argument 265 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio_n]; in mtk_is_virt_gpio() 279 unsigned int *gpio_n, in mtk_xt_get_gpio_n() argument 294 *gpio_n = eint_n; in mtk_xt_get_gpio_n() 296 *gpio_n = mtk_xt_find_eint_num(hw, eint_n); in mtk_xt_get_gpio_n() 298 return *gpio_n == EINT_NA ? -EINVAL : 0; in mtk_xt_get_gpio_n() 306 unsigned int gpio_n; in mtk_xt_get_gpio_state() local 309 err = mtk_xt_get_gpio_n(hw, eint_n, &gpio_n, &gpio_chip); in mtk_xt_get_gpio_state() 313 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio_n]; in mtk_xt_get_gpio_state() 327 unsigned int gpio_n; in mtk_xt_set_gpio_as_eint() local [all …]
|
H A D | mtk-eint.c | 254 unsigned int gpio_n; in mtk_eint_irq_request_resources() local 258 &gpio_n, &gpio_c); in mtk_eint_irq_request_resources() 264 err = gpiochip_lock_as_irq(gpio_c, gpio_n); in mtk_eint_irq_request_resources() 284 unsigned int gpio_n; in mtk_eint_irq_release_resources() local 286 eint->gpio_xlate->get_gpio_n(eint->pctl, d->hwirq, &gpio_n, in mtk_eint_irq_release_resources() 289 gpiochip_unlock_as_irq(gpio_c, gpio_n); in mtk_eint_irq_release_resources()
|
H A D | mtk-eint.h | 51 unsigned int *gpio_n,
|
H A D | pinctrl-mtk-common-v2.h | 371 bool mtk_is_virt_gpio(struct mtk_pinctrl *hw, unsigned int gpio_n);
|
H A D | pinctrl-mtk-common.c | 961 mtk_xt_get_gpio_n(void *data, unsigned long eint_n, unsigned int *gpio_n, in mtk_xt_get_gpio_n() argument 972 *gpio_n = pin->pin.number; in mtk_xt_get_gpio_n()
|
/openbmc/u-boot/arch/powerpc/include/asm/ |
H A D | immap_83xx.h | 250 typedef struct gpio_n { struct
|