/linux-5.19.10/drivers/pinctrl/pxa/ |
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, \
|
/linux-5.19.10/drivers/pinctrl/stm32/ |
D | pinctrl-stm32.h | 39 #define STM32_PIN(_pin, ...) \ argument 41 .pin = _pin, \ 46 #define STM32_PIN_PKG(_pin, _pkg, ...) \ argument 48 .pin = _pin, \
|
/linux-5.19.10/drivers/pinctrl/mediatek/ |
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, \
|
D | pinctrl-mt2701.c | 31 #define MTK_PINMUX_SPEC(_pin, _offset, _bit) \ argument 33 .pin = _pin, \
|
D | pinctrl-mt8135.c | 36 #define SPEC_PULL(_pin, _pupd_offset, _pupd_bit, _r0_offset, \ argument 39 .pin = _pin, \
|
/linux-5.19.10/drivers/pinctrl/renesas/ |
D | pinctrl.c | 561 static bool sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, in sh_pfc_pinconf_validate() argument 564 int idx = sh_pfc_get_pin_index(pfc, _pin); in sh_pfc_pinconf_validate() 588 static int sh_pfc_pinconf_get(struct pinctrl_dev *pctldev, unsigned _pin, in sh_pfc_pinconf_get() argument 597 if (!sh_pfc_pinconf_validate(pfc, _pin, param)) in sh_pfc_pinconf_get() 610 bias = pfc->info->ops->get_bias(pfc, _pin); in sh_pfc_pinconf_get() 623 ret = sh_pfc_pinconf_get_drive_strength(pfc, _pin); in sh_pfc_pinconf_get() 632 int idx = sh_pfc_get_pin_index(pfc, _pin); in sh_pfc_pinconf_get() 641 bit = pfc->info->ops->pin_to_pocctrl(_pin, &pocctrl); in sh_pfc_pinconf_get() 642 if (WARN(bit < 0, "invalid pin %#x", _pin)) in sh_pfc_pinconf_get() 662 static int sh_pfc_pinconf_set(struct pinctrl_dev *pctldev, unsigned _pin, in sh_pfc_pinconf_set() argument [all …]
|
D | sh_pfc.h | 614 #define _GP_GPIO(bank, _pin, _name, sfx, cfg) { \ argument 615 .pin = (bank * 32) + _pin, \ 669 #define PINMUX_GPIO(_pin) \ argument 670 [GPIO_##_pin] = { \ 672 .name = __stringify(GPIO_##_pin), \ 673 .enum_id = _pin##_DATA, \ 677 #define SH_PFC_PIN_CFG(_pin, cfgs) { \ argument 678 .pin = _pin, \ 679 .name = __stringify(PORT##_pin), \ 680 .enum_id = PORT##_pin##_DATA, \ [all …]
|
D | pinctrl-rzg2l.c | 485 unsigned int _pin, in rzg2l_pinctrl_pinconf_get() argument 490 const struct pinctrl_pin_desc *pin = &pctrl->desc.pins[_pin]; in rzg2l_pinctrl_pinconf_get() 508 port_offset = RZG2L_PIN_ID_TO_PORT_OFFSET(_pin); in rzg2l_pinctrl_pinconf_get() 509 bit = RZG2L_PIN_ID_TO_PIN(_pin); in rzg2l_pinctrl_pinconf_get() 511 if (rzg2l_validate_gpio_pin(pctrl, *pin_data, RZG2L_PIN_ID_TO_PORT(_pin), bit)) in rzg2l_pinctrl_pinconf_get() 575 unsigned int _pin, in rzg2l_pinctrl_pinconf_set() argument 580 const struct pinctrl_pin_desc *pin = &pctrl->desc.pins[_pin]; in rzg2l_pinctrl_pinconf_set() 599 port_offset = RZG2L_PIN_ID_TO_PORT_OFFSET(_pin); in rzg2l_pinctrl_pinconf_set() 600 bit = RZG2L_PIN_ID_TO_PIN(_pin); in rzg2l_pinctrl_pinconf_set() 602 if (rzg2l_validate_gpio_pin(pctrl, *pin_data, RZG2L_PIN_ID_TO_PORT(_pin), bit)) in rzg2l_pinctrl_pinconf_set()
|
/linux-5.19.10/drivers/pinctrl/visconti/ |
D | pinctrl-common.h | 26 #define VISCONTI_PIN(_pin, dsel, d_sh, pude, pudsel, p_sh) \ argument 28 .pin = _pin, \
|
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()
|
/linux-5.19.10/drivers/pinctrl/sunxi/ |
D | pinctrl-sunxi.h | 175 #define SUNXI_PIN(_pin, ...) \ argument 177 .pin = _pin, \ 182 #define SUNXI_PIN_VARIANT(_pin, _variant, ...) \ argument 184 .pin = _pin, \
|
/linux-5.19.10/arch/arm64/boot/dts/exynos/ |
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)
|
/linux-5.19.10/arch/arm/boot/dts/ |
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; \
|
D | s5pv210-pinctrl.dtsi | 21 #define PIN_SLP(_pin, _mode, _pull) \ argument 22 _pin { \ 23 samsung,pins = #_pin; \
|
D | exynos4412-pinctrl.dtsi | 14 #define PIN_SLP(_pin, _mode, _pull) \ argument 15 _pin { \ 16 samsung,pins = #_pin; \
|
/linux-5.19.10/drivers/pinctrl/ |
D | pinctrl-pistachio.c | 634 #define PIN_GROUP(_pin, _name) \ argument 637 .pin = PISTACHIO_PIN_##_pin, \ 648 #define MFIO_PIN_GROUP(_pin, _func) \ argument 650 .name = "mfio" #_pin, \ 651 .pin = PISTACHIO_PIN_MFIO(_pin), \ 662 #define MFIO_MUX_PIN_GROUP(_pin, _f0, _f1, _f2, _reg, _shift, _mask) \ argument 664 .name = "mfio" #_pin, \ 665 .pin = PISTACHIO_PIN_MFIO(_pin), \
|
D | pinctrl-oxnas.c | 271 #define OXNAS_PINCTRL_GROUP(_pin, _name, ...) \ argument 274 .pin = _pin, \ 275 .bank = _pin / PINS_PER_BANK, \
|
D | pinctrl-pic32.c | 372 #define PIC32_PINCTRL_GROUP(_pin, _name, ...) \ argument 375 .pin = _pin, \
|
/linux-5.19.10/drivers/pinctrl/cirrus/ |
D | pinctrl-lochnagar.c | 51 static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = { \ 57 static const struct lochnagar_pin lochnagar##REV##_##ID##_pin = \ 70 static const struct lochnagar_pin lochnagar1_##ID##_pin = \ 79 static const struct lochnagar_pin lochnagar2_##ID##_pin = \ 92 .name = lochnagar##REV##_##ID##_pin.name, \ 93 .drv_data = (void *)&lochnagar##REV##_##ID##_pin, \ 441 LN_FUNC(lochnagar##REV##_##ID##_pin.name, PIN, OP) 606 .name = lochnagar##REV##_##ID##_pin.name, \
|
/linux-5.19.10/drivers/iio/proximity/ |
D | sx9324.c | 66 #define SX9324_REG_AFE_PH0_PIN_MASK(_pin) \ argument 67 GENMASK(2 * (_pin) + 1, 2 * (_pin))
|
/linux-5.19.10/drivers/pinctrl/bcm/ |
D | pinctrl-bcm281xx.c | 376 { .number = a, .name = b, .drv_data = &c##_pin }
|
/linux-5.19.10/drivers/soc/tegra/ |
D | pmc.c | 310 #define TEGRA_WAKE_GPIO(_name, _id, _instance, _pin) \ argument 317 .pin = _pin, \
|