/openbmc/linux/drivers/pinctrl/pxa/ |
H A D | pinctrl-pxa2xx.h | 17 #define PXA_PIN(_pin, funcs...) \ argument 19 .pin = _pin, \ 24 #define PXA_GPIO_PIN(_pin, funcs...) \ argument 26 .pin = _pin, \ 33 #define PXA_GPIO_ONLY_PIN(_pin) \ argument 35 .pin = _pin, \
|
/openbmc/linux/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.h | 42 #define STM32_PIN(_pin, ...) \ argument 44 .pin = _pin, \ 49 #define STM32_PIN_PKG(_pin, _pkg, ...) \ argument 51 .pin = _pin, \
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.h | 41 #define MTK_PIN(_pin, _pad, _chip, _eint, ...) \ argument 43 .pin = _pin, \ 109 #define MTK_PIN_DRV_GRP(_pin, _offset, _bit, _grp) \ argument 111 .pin = _pin, \ 134 #define MTK_PIN_PUPD_SPEC_SR(_pin, _offset, _pupd, _r1, _r0) \ argument 136 .pin = _pin, \
|
H A D | pinctrl-mt2701.c | 30 #define MTK_PINMUX_SPEC(_pin, _offset, _bit) \ argument 32 .pin = _pin, \
|
H A D | pinctrl-mt8135.c | 35 #define SPEC_PULL(_pin, _pupd_offset, _pupd_bit, _r0_offset, \ argument 38 .pin = _pin, \
|
/openbmc/linux/drivers/pinctrl/renesas/ |
H A D | pinctrl.c | 542 static bool sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, in sh_pfc_pinconf_validate() argument 545 int idx = sh_pfc_get_pin_index(pfc, _pin); in sh_pfc_pinconf_validate() 569 static int sh_pfc_pinconf_get(struct pinctrl_dev *pctldev, unsigned _pin, in sh_pfc_pinconf_get() argument 578 if (!sh_pfc_pinconf_validate(pfc, _pin, param)) in sh_pfc_pinconf_get() 591 bias = pfc->info->ops->get_bias(pfc, _pin); in sh_pfc_pinconf_get() 604 ret = sh_pfc_pinconf_get_drive_strength(pfc, _pin); in sh_pfc_pinconf_get() 613 int idx = sh_pfc_get_pin_index(pfc, _pin); in sh_pfc_pinconf_get() 622 bit = pfc->info->ops->pin_to_pocctrl(_pin, &pocctrl); in sh_pfc_pinconf_get() 623 if (WARN(bit < 0, "invalid pin %#x", _pin)) in sh_pfc_pinconf_get() 644 static int sh_pfc_pinconf_set(struct pinctrl_dev *pctldev, unsigned _pin, in sh_pfc_pinconf_set() argument [all …]
|
H A D | sh_pfc.h | 615 #define _GP_GPIO(bank, _pin, _name, sfx, cfg) { \ argument 616 .pin = (bank * 32) + _pin, \ 670 #define PINMUX_GPIO(_pin) \ argument 671 [GPIO_##_pin] = { \ 673 .name = __stringify(GPIO_##_pin), \ 674 .enum_id = _pin##_DATA, \ 678 #define SH_PFC_PIN_CFG(_pin, cfgs) { \ argument 679 .pin = _pin, \ 680 .name = __stringify(PORT##_pin), \ 681 .enum_id = PORT##_pin##_DATA, \ [all …]
|
H A D | pinctrl-rzv2m.c | 458 unsigned int _pin, in rzv2m_pinctrl_pinconf_get() argument 463 const struct pinctrl_pin_desc *pin = &pctrl->desc.pins[_pin]; in rzv2m_pinctrl_pinconf_get() 480 port = RZV2M_PIN_ID_TO_PORT(_pin); in rzv2m_pinctrl_pinconf_get() 481 bit = RZV2M_PIN_ID_TO_PIN(_pin); in rzv2m_pinctrl_pinconf_get() 483 if (rzv2m_validate_gpio_pin(pctrl, *pin_data, RZV2M_PIN_ID_TO_PORT(_pin), bit)) in rzv2m_pinctrl_pinconf_get() 561 unsigned int _pin, in rzv2m_pinctrl_pinconf_set() argument 566 const struct pinctrl_pin_desc *pin = &pctrl->desc.pins[_pin]; in rzv2m_pinctrl_pinconf_set() 584 port = RZV2M_PIN_ID_TO_PORT(_pin); in rzv2m_pinctrl_pinconf_set() 585 bit = RZV2M_PIN_ID_TO_PIN(_pin); in rzv2m_pinctrl_pinconf_set() 587 if (rzv2m_validate_gpio_pin(pctrl, *pin_data, RZV2M_PIN_ID_TO_PORT(_pin), bit)) in rzv2m_pinctrl_pinconf_set()
|
H A D | pinctrl-rzg2l.c | 518 unsigned int _pin, in rzg2l_pinctrl_pinconf_get() argument 523 const struct pinctrl_pin_desc *pin = &pctrl->desc.pins[_pin]; in rzg2l_pinctrl_pinconf_get() 541 port_offset = RZG2L_PIN_ID_TO_PORT_OFFSET(_pin); in rzg2l_pinctrl_pinconf_get() 542 bit = RZG2L_PIN_ID_TO_PIN(_pin); in rzg2l_pinctrl_pinconf_get() 544 if (rzg2l_validate_gpio_pin(pctrl, *pin_data, RZG2L_PIN_ID_TO_PORT(_pin), bit)) in rzg2l_pinctrl_pinconf_get() 608 unsigned int _pin, in rzg2l_pinctrl_pinconf_set() argument 613 const struct pinctrl_pin_desc *pin = &pctrl->desc.pins[_pin]; in rzg2l_pinctrl_pinconf_set() 632 port_offset = RZG2L_PIN_ID_TO_PORT_OFFSET(_pin); in rzg2l_pinctrl_pinconf_set() 633 bit = RZG2L_PIN_ID_TO_PIN(_pin); in rzg2l_pinctrl_pinconf_set() 635 if (rzg2l_validate_gpio_pin(pctrl, *pin_data, RZG2L_PIN_ID_TO_PORT(_pin), bit)) in rzg2l_pinctrl_pinconf_set()
|
/openbmc/u-boot/arch/arm/include/asm/arch-mxs/ |
H A D | iomux.h | 92 #define MXS_IOMUX_PAD(_bank, _pin, _muxsel, _ma, _vol, _pull) \ argument 94 ((iomux_cfg_t)(_pin) << MXS_PAD_PIN_SHIFT) | \ 104 #define MXS_IOMUX_PAD_NAKED(_bank, _pin, _muxsel) \ argument 105 MXS_IOMUX_PAD(_bank, _pin, _muxsel, 0, 0, 0)
|
/openbmc/linux/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sunxi.h | 183 #define SUNXI_PIN(_pin, ...) \ argument 185 .pin = _pin, \ 190 #define SUNXI_PIN_VARIANT(_pin, _variant, ...) \ argument 192 .pin = _pin, \
|
/openbmc/u-boot/include/configs/ |
H A D | cm_t335.h | 129 #define GPIO_PIN(_bank, _pin) ((_bank << 5) + _pin) argument
|
/openbmc/u-boot/drivers/pinctrl/renesas/ |
H A D | sh_pfc.h | 507 #define _GP_GPIO(bank, _pin, _name, sfx, cfg) \ argument 509 .pin = (bank * 32) + _pin, \ 545 #define PINMUX_GPIO(_pin) \ argument 546 [GPIO_##_pin] = { \ 548 .name = __stringify(GPIO_##_pin), \ 549 .enum_id = _pin##_DATA, \ 553 #define SH_PFC_PIN_CFG(_pin, cfgs) \ argument 555 .pin = _pin, \ 556 .name = __stringify(PORT##_pin), \ 557 .enum_id = PORT##_pin##_DATA, \
|
H A D | pfc.c | 606 static bool sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, in sh_pfc_pinconf_validate() argument 609 int idx = sh_pfc_get_pin_index(pfc, _pin); in sh_pfc_pinconf_validate() 634 static int sh_pfc_pinconf_set(struct sh_pfc_pinctrl *pmx, unsigned _pin, in sh_pfc_pinconf_set() argument 644 if (!sh_pfc_pinconf_validate(pfc, _pin, param)) in sh_pfc_pinconf_set() 654 pfc->info->ops->set_bias(pfc, _pin, param); in sh_pfc_pinconf_set() 659 ret = sh_pfc_pinconf_set_drive_strength(pfc, _pin, arg); in sh_pfc_pinconf_set() 669 bit = pfc->info->ops->pin_to_pocctrl(pfc, _pin, &addr); in sh_pfc_pinconf_set() 671 printf("invalid pin %#x", _pin); in sh_pfc_pinconf_set()
|
/openbmc/linux/drivers/pinctrl/visconti/ |
H A D | pinctrl-common.h | 26 #define VISCONTI_PIN(_pin, dsel, d_sh, pude, pudsel, p_sh) \ argument 28 .pin = _pin, \
|
H A D | pinctrl-common.c | 37 unsigned int _pin, in visconti_pin_config_set() argument 42 const struct visconti_desc_pin *pin = &priv->devdata->pins[_pin]; in visconti_pin_config_set() 49 dev_dbg(priv->dev, "%s: pin = %d (%s)\n", __func__, _pin, pin->pin.name); in visconti_pin_config_set()
|
/openbmc/linux/rust/kernel/ |
H A D | types.rs | 211 _pin: PhantomPinned, field 219 _pin: PhantomPinned, in new() 227 _pin: PhantomPinned, in uninit()
|
/openbmc/linux/rust/kernel/sync/ |
H A D | condvar.rs | 81 _pin: PhantomPinned, field 97 _pin: PhantomPinned, in new()
|
H A D | lock.rs | 87 _pin: PhantomPinned, field 106 _pin: PhantomPinned, in new()
|
/openbmc/linux/arch/arm64/boot/dts/exynos/ |
H A D | exynos5433-pinctrl.dtsi | 14 #define PIN(_pin, _func, _pull, _drv) \ argument 15 pin- ## _pin { \ 16 samsung,pins = #_pin; \ 22 #define PIN_IN(_pin, _pull, _drv) \ argument 23 PIN(_pin, INPUT, _pull, _drv) 25 #define PIN_OT(_pin, _pull, _drv) \ argument 26 PIN(_pin, OUTPUT, _pull, _drv) 28 #define PIN_F2(_pin, _pull, _drv) \ argument 29 PIN(_pin, 2, _pull, _drv)
|
/openbmc/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos3250-pinctrl.dtsi | 14 #define PIN_IN(_pin, _pull, _drv) \ argument 15 pin- ## _pin { \ 16 samsung,pins = #_pin; \ 22 #define PIN_SLP(_pin, _mode, _pull) \ argument 23 pin- ## _pin { \ 24 samsung,pins = #_pin; \
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-pistachio.c | 635 #define PIN_GROUP(_pin, _name) \ argument 638 .pin = PISTACHIO_PIN_##_pin, \ 649 #define MFIO_PIN_GROUP(_pin, _func) \ argument 651 .name = "mfio" #_pin, \ 652 .pin = PISTACHIO_PIN_MFIO(_pin), \ 663 #define MFIO_MUX_PIN_GROUP(_pin, _f0, _f1, _f2, _reg, _shift, _mask) \ argument 665 .name = "mfio" #_pin, \ 666 .pin = PISTACHIO_PIN_MFIO(_pin), \
|
/openbmc/linux/drivers/pinctrl/cirrus/ |
H A D | pinctrl-lochnagar.c | 53 static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = { \ 59 static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = \ 72 static const struct lochnagar_pin lochnagar1_##ID##_pin = \ 81 static const struct lochnagar_pin lochnagar2_##ID##_pin = \ 94 .name = lochnagar##REV##_##ID##_pin.name, \ 95 .drv_data = (void *)&lochnagar##REV##_##ID##_pin, \ 443 LN_FUNC(lochnagar##REV##_##ID##_pin.name, PIN, OP) 608 .name = lochnagar##REV##_##ID##_pin.name, \
|
/openbmc/u-boot/drivers/pinctrl/ |
H A D | pinctrl_pic32.c | 42 #define PIN_CONFIG(_prt, _pin, _cfg) \ argument 43 {.port = (_prt), .pin = (_pin), .config = (_cfg), }
|
/openbmc/linux/drivers/iio/proximity/ |
H A D | sx9324.c | 76 #define SX9324_REG_AFE_PH0_PIN_MASK(_pin) \ argument 77 GENMASK(2 * (_pin) + 1, 2 * (_pin))
|