Home
last modified time | relevance | path

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

12

/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, \
/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, \
/linux/drivers/pinctrl/renesas/
H A Dpinctrl.c538 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 Dpinctrl-rzg2l.c291 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 Dsh_pfc.h616 #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 Dpinctrl-rzv2m.c454 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 Dpinctrl-sunxi.h183 #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 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()
/linux/rust/kernel/
H A Dtypes.rs263 _pin: PhantomPinned, field
271 _pin: PhantomPinned, in new()
279 _pin: PhantomPinned, in uninit()
/linux/rust/kernel/sync/
H A Dcondvar.rs92 _pin: PhantomPinned, field
107 _pin: PhantomPinned, in new()
H A Dlock.rs94 _pin: PhantomPinned, field
112 _pin: PhantomPinned, in new()
/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)
/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; \
H A Ds5pv210-pinctrl.dtsi17 #define PIN_SLP(_pin, _mode, _pull) \ argument
18 pin- ## _pin { \
19 samsung,pins = #_pin; \
H A Dexynos4x12-pinctrl.dtsi14 #define PIN_SLP(_pin, _mode, _pull) \ argument
15 pin- ## _pin { \
16 samsung,pins = #_pin; \
/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), \
/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, \
/linux/rust/kernel/list/
H A Darc.rs474 _pin: PhantomPinned, field
484 _pin: PhantomPinned, in new()
/linux/drivers/iio/proximity/
H A Dsx9324.c76 #define SX9324_REG_AFE_PH0_PIN_MASK(_pin) \ argument
77 GENMASK(2 * (_pin) + 1, 2 * (_pin))
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp_hw.h230 #define E810T_CGU_INPUT_C827(_phy, _pin) ((_phy) * ICE_E810_RCLK_PINS_NUM + \ argument
231 (_pin) + ZL_REF1P)
/linux/drivers/clk/qcom/
H A Dclk-smd-rpm.c153 __DEFINE_CLK_SMD_RPM_BRANCH(_name##_pin, _name##_a##_pin, \
/linux/drivers/pinctrl/realtek/
H A Dpinctrl-rtd1619b.c246 #define DECLARE_RTD1619B_PIN(_pin, _name) \ argument
247 static const unsigned int rtd1619b_## _name ##_pins[] = { _pin }

12