/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, \
|
/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, \
|
/linux/drivers/pinctrl/renesas/ |
H A D | pinctrl.c | 538 static bool sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, in sh_pfc_pinconf_validate() argument 541 int idx = sh_pfc_get_pin_index(pfc, _pin); in sh_pfc_pinconf_validate() 565 static int sh_pfc_pinconf_get(struct pinctrl_dev *pctldev, unsigned _pin, in sh_pfc_pinconf_get() argument 574 if (!sh_pfc_pinconf_validate(pfc, _pin, param)) in sh_pfc_pinconf_get() 587 bias = pfc->info->ops->get_bias(pfc, _pin); in sh_pfc_pinconf_get() 600 ret = sh_pfc_pinconf_get_drive_strength(pfc, _pin); in sh_pfc_pinconf_get() 609 int idx = sh_pfc_get_pin_index(pfc, _pin); in sh_pfc_pinconf_get() 618 bit = pfc->info->ops->pin_to_pocctrl(_pin, &pocctrl); in sh_pfc_pinconf_get() 619 if (WARN(bit < 0, "invalid pin %#x", _pin)) in sh_pfc_pinconf_get() 640 static int sh_pfc_pinconf_set(struct pinctrl_dev *pctldev, unsigned _pin, in sh_pfc_pinconf_set() argument [all …]
|
H A D | pinctrl-rzg2l.c | 291 u32 (*oen_read)(struct rzg2l_pinctrl *pctrl, unsigned int _pin); 292 int (*oen_write)(struct rzg2l_pinctrl *pctrl, unsigned int _pin, u8 oen); 995 static int rzg2l_pin_to_oen_bit(struct rzg2l_pinctrl *pctrl, unsigned int _pin) in rzg2l_pin_to_oen_bit() argument 997 u64 *pin_data = pctrl->desc.pins[_pin].drv_data; in rzg2l_pin_to_oen_bit() 999 u8 pin = RZG2L_PIN_ID_TO_PIN(_pin); in rzg2l_pin_to_oen_bit() 1016 static u32 rzg2l_read_oen(struct rzg2l_pinctrl *pctrl, unsigned int _pin) in rzg2l_read_oen() argument 1020 bit = rzg2l_pin_to_oen_bit(pctrl, _pin); in rzg2l_read_oen() 1027 static int rzg2l_write_oen(struct rzg2l_pinctrl *pctrl, unsigned int _pin, u8 oen) in rzg2l_write_oen() argument 1033 bit = rzg2l_pin_to_oen_bit(pctrl, _pin); in rzg2l_write_oen() 1049 static int rzg3s_pin_to_oen_bit(struct rzg2l_pinctrl *pctrl, unsigned int _pin) in rzg3s_pin_to_oen_bit() argument [all …]
|
H A D | sh_pfc.h | 616 #define _GP_GPIO(bank, _pin, _name, sfx, cfg) { \ argument 617 .pin = (bank * 32) + _pin, \ 671 #define PINMUX_GPIO(_pin) \ argument 672 [GPIO_##_pin] = { \ 674 .name = __stringify(GPIO_##_pin), \ 675 .enum_id = _pin##_DATA, \ 679 #define SH_PFC_PIN_CFG(_pin, cfgs) { \ argument 680 .pin = _pin, \ 681 .name = __stringify(PORT##_pin), \ 682 .enum_id = PORT##_pin##_DATA, \ [all …]
|
H A D | pinctrl-rzv2m.c | 454 unsigned int _pin, in rzv2m_pinctrl_pinconf_get() argument 459 const struct pinctrl_pin_desc *pin = &pctrl->desc.pins[_pin]; in rzv2m_pinctrl_pinconf_get() 476 port = RZV2M_PIN_ID_TO_PORT(_pin); in rzv2m_pinctrl_pinconf_get() 477 bit = RZV2M_PIN_ID_TO_PIN(_pin); in rzv2m_pinctrl_pinconf_get() 479 if (rzv2m_validate_gpio_pin(pctrl, *pin_data, RZV2M_PIN_ID_TO_PORT(_pin), bit)) in rzv2m_pinctrl_pinconf_get() 557 unsigned int _pin, in rzv2m_pinctrl_pinconf_set() argument 562 const struct pinctrl_pin_desc *pin = &pctrl->desc.pins[_pin]; in rzv2m_pinctrl_pinconf_set() 580 port = RZV2M_PIN_ID_TO_PORT(_pin); in rzv2m_pinctrl_pinconf_set() 581 bit = RZV2M_PIN_ID_TO_PIN(_pin); in rzv2m_pinctrl_pinconf_set() 583 if (rzv2m_validate_gpio_pin(pctrl, *pin_data, RZV2M_PIN_ID_TO_PORT(_pin), bit)) in rzv2m_pinctrl_pinconf_set()
|
/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, \
|
/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()
|
/linux/rust/kernel/ |
H A D | types.rs | 263 _pin: PhantomPinned, field 271 _pin: PhantomPinned, in new() 279 _pin: PhantomPinned, in uninit()
|
/linux/rust/kernel/sync/ |
H A D | condvar.rs | 92 _pin: PhantomPinned, field 107 _pin: PhantomPinned, in new()
|
H A D | lock.rs | 94 _pin: PhantomPinned, field 112 _pin: PhantomPinned, in new()
|
/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)
|
/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; \
|
H A D | s5pv210-pinctrl.dtsi | 17 #define PIN_SLP(_pin, _mode, _pull) \ argument 18 pin- ## _pin { \ 19 samsung,pins = #_pin; \
|
H A D | exynos4x12-pinctrl.dtsi | 14 #define PIN_SLP(_pin, _mode, _pull) \ argument 15 pin- ## _pin { \ 16 samsung,pins = #_pin; \
|
/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), \
|
/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, \
|
/linux/rust/kernel/list/ |
H A D | arc.rs | 474 _pin: PhantomPinned, field 484 _pin: PhantomPinned, in new()
|
/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))
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ptp_hw.h | 230 #define E810T_CGU_INPUT_C827(_phy, _pin) ((_phy) * ICE_E810_RCLK_PINS_NUM + \ argument 231 (_pin) + ZL_REF1P)
|
/linux/drivers/clk/qcom/ |
H A D | clk-smd-rpm.c | 153 __DEFINE_CLK_SMD_RPM_BRANCH(_name##_pin, _name##_a##_pin, \
|
/linux/drivers/pinctrl/realtek/ |
H A D | pinctrl-rtd1619b.c | 246 #define DECLARE_RTD1619B_PIN(_pin, _name) \ argument 247 static const unsigned int rtd1619b_## _name ##_pins[] = { _pin }
|