Home
last modified time | relevance | path

Searched refs:_pin (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/linux/drivers/pinctrl/pxa/
H A Dpinctrl-pxa2xx.h17 #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 Dpinctrl-stm32.h42 #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 Dpinctrl-mtk-common.h41 #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 Dpinctrl-mt2701.c30 #define MTK_PINMUX_SPEC(_pin, _offset, _bit) \ argument
32 .pin = _pin, \
H A Dpinctrl-mt8135.c35 #define SPEC_PULL(_pin, _pupd_offset, _pupd_bit, _r0_offset, \ argument
38 .pin = _pin, \
/openbmc/linux/drivers/pinctrl/renesas/
H A Dpinctrl.c542 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 Dsh_pfc.h615 #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 Dpinctrl-rzv2m.c458 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 Dpinctrl-rzg2l.c518 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 Diomux.h92 #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 Dpinctrl-sunxi.h183 #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 Dcm_t335.h129 #define GPIO_PIN(_bank, _pin) ((_bank << 5) + _pin) argument
/openbmc/u-boot/drivers/pinctrl/renesas/
H A Dsh_pfc.h507 #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 Dpfc.c606 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 Dpinctrl-common.h26 #define VISCONTI_PIN(_pin, dsel, d_sh, pude, pudsel, p_sh) \ argument
28 .pin = _pin, \
H A Dpinctrl-common.c37 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 Dtypes.rs211 _pin: PhantomPinned, field
219 _pin: PhantomPinned, in new()
227 _pin: PhantomPinned, in uninit()
/openbmc/linux/rust/kernel/sync/
H A Dcondvar.rs81 _pin: PhantomPinned, field
97 _pin: PhantomPinned, in new()
H A Dlock.rs87 _pin: PhantomPinned, field
106 _pin: PhantomPinned, in new()
/openbmc/linux/arch/arm64/boot/dts/exynos/
H A Dexynos5433-pinctrl.dtsi14 #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 Dexynos3250-pinctrl.dtsi14 #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 Dpinctrl-pistachio.c635 #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 Dpinctrl-lochnagar.c53 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 Dpinctrl_pic32.c42 #define PIN_CONFIG(_prt, _pin, _cfg) \ argument
43 {.port = (_prt), .pin = (_pin), .config = (_cfg), }
/openbmc/linux/drivers/iio/proximity/
H A Dsx9324.c76 #define SX9324_REG_AFE_PH0_PIN_MASK(_pin) \ argument
77 GENMASK(2 * (_pin) + 1, 2 * (_pin))

12