Home
last modified time | relevance | path

Searched refs:pin_desc (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/drivers/pinctrl/nomadik/
Dpinctrl-nomadik.c350 const struct prcm_gpiocr_altcx_pin_desc *pin_desc; in nmk_prcm_altcx_set_mode() local
372 pin_desc = npct->soc->altcx_pins + i; in nmk_prcm_altcx_set_mode()
381 if (pin_desc->altcx[i].used) { in nmk_prcm_altcx_set_mode()
382 reg = gpiocr_regs[pin_desc->altcx[i].reg_index]; in nmk_prcm_altcx_set_mode()
383 bit = pin_desc->altcx[i].control_bit; in nmk_prcm_altcx_set_mode()
396 if (!pin_desc->altcx[alt_index].used) { in nmk_prcm_altcx_set_mode()
410 if (pin_desc->altcx[i].used) { in nmk_prcm_altcx_set_mode()
411 reg = gpiocr_regs[pin_desc->altcx[i].reg_index]; in nmk_prcm_altcx_set_mode()
412 bit = pin_desc->altcx[i].control_bit; in nmk_prcm_altcx_set_mode()
422 reg = gpiocr_regs[pin_desc->altcx[alt_index].reg_index]; in nmk_prcm_altcx_set_mode()
[all …]
/linux-6.12.1/drivers/net/ethernet/aquantia/atlantic/
Daq_ptp.c1095 struct ptp_pin_desc pin_desc[MAX_PTP_GPIO_COUNT]; in aq_ptp_gpio_init() local
1100 memset(pin_desc, 0, sizeof(pin_desc)); in aq_ptp_gpio_init()
1105 snprintf(pin_desc[out_pin_cnt].name, in aq_ptp_gpio_init()
1106 sizeof(pin_desc[out_pin_cnt].name), in aq_ptp_gpio_init()
1108 pin_desc[out_pin_cnt].index = out_pin_cnt; in aq_ptp_gpio_init()
1109 pin_desc[out_pin_cnt].chan = out_pin_cnt; in aq_ptp_gpio_init()
1110 pin_desc[out_pin_cnt++].func = PTP_PF_PEROUT; in aq_ptp_gpio_init()
1119 snprintf(pin_desc[out_pin_cnt].name, in aq_ptp_gpio_init()
1120 sizeof(pin_desc[out_pin_cnt].name), in aq_ptp_gpio_init()
1122 pin_desc[out_pin_cnt].index = out_pin_cnt; in aq_ptp_gpio_init()
[all …]
/linux-6.12.1/drivers/pinctrl/uniphier/
Dpinctrl-uniphier-core.c77 const struct pin_desc *desc = pin_desc_get(pctldev, offset); in uniphier_pctl_pin_dbg_show()
155 const struct pin_desc *desc = pin_desc_get(pctldev, pin); in uniphier_conf_get_drvctrl_data()
211 const struct pin_desc *desc = pin_desc_get(pctldev, pin); in uniphier_conf_pin_bias_get()
287 const struct pin_desc *desc = pin_desc_get(pctldev, pin); in uniphier_conf_pin_input_enable_get()
348 const struct pin_desc *desc = pin_desc_get(pctldev, pin); in uniphier_conf_pin_bias_set()
422 const struct pin_desc *desc = pin_desc_get(pctldev, pin); in uniphier_conf_pin_drive_set()
460 const struct pin_desc *desc = pin_desc_get(pctldev, pin); in uniphier_conf_pin_input_enable()
/linux-6.12.1/drivers/pinctrl/
Dcore.h169 struct pin_desc { struct
244 static inline struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, in pin_desc_get()
Dpinctrl-at91-pio4.c1078 struct pinctrl_pin_desc *pin_desc; in atmel_pinctrl_probe() local
1119 pin_desc = devm_kcalloc(dev, atmel_pioctrl->npins, sizeof(*pin_desc), in atmel_pinctrl_probe()
1121 if (!pin_desc) in atmel_pinctrl_probe()
1123 atmel_pinctrl_desc.pins = pin_desc; in atmel_pinctrl_probe()
1155 pin_desc[i].number = i; in atmel_pinctrl_probe()
1157 pin_desc[i].name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "P%c%u", in atmel_pinctrl_probe()
1159 if (!pin_desc[i].name) in atmel_pinctrl_probe()
1162 group->name = group_names[i] = pin_desc[i].name; in atmel_pinctrl_probe()
1163 group->pin = pin_desc[i].number; in atmel_pinctrl_probe()
Dpinmux.c89 struct pin_desc *desc = pin_desc_get(pctldev, pin); in pinmux_can_be_used_for_gpio()
115 struct pin_desc *desc; in pin_request()
212 struct pin_desc *desc; in pin_free()
415 struct pin_desc *desc; in pinmux_enable_setting()
494 struct pin_desc *desc; in pinmux_disable_setting()
602 struct pin_desc *desc; in pinmux_pins_show()
Dpinconf.c266 struct pin_desc *desc; in pinconf_show_setting()
316 struct pin_desc *desc; in pinconf_pins_show()
Dcore.c150 struct pin_desc *desc; in pin_get_from_name()
169 const struct pin_desc *desc; in pin_get_name()
190 struct pin_desc *pindesc; in pinctrl_free_pindescs()
207 struct pin_desc *pindesc; in pinctrl_register_one_pin()
1662 struct pin_desc *desc; in pinctrl_pins_show()
Dpinctrl-amd.c877 const struct pin_desc *pd = pin_desc_get(gpio_dev->pctrl, pin); in amd_gpio_irq_init()
895 const struct pin_desc *pd = pin_desc_get(gpio_dev->pctrl, pin); in amd_gpio_should_save()
999 struct pin_desc *pd; in amd_set_mux()
Dpinctrl-falcon.c325 struct pin_desc *desc; in falcon_pinconf_dbg_show()
Dpinctrl-single.c337 struct pin_desc *pdesc = pin_desc_get(pctldev, pin); in pcs_get_function()
/linux-6.12.1/drivers/pinctrl/stm32/
Dpinctrl-stm32.c1185 const struct stm32_desc_pin *pin_desc; in stm32_pconf_dbg_show() local
1240 pin_desc = stm32_pconf_get_pin_desc_by_pin_number(pctl, pin); in stm32_pconf_dbg_show()
1241 if (!pin_desc) in stm32_pconf_dbg_show()
1245 pin_desc->functions[alt + 1].name, in stm32_pconf_dbg_show()
1269 struct stm32_desc_pin *pin_desc; in stm32_pctrl_get_desc_pin_from_gpio() local
1274 pin_desc = pctl->pins + stm32_pin_nb; in stm32_pctrl_get_desc_pin_from_gpio()
1275 if (pin_desc->pin.number == stm32_pin_nb) in stm32_pctrl_get_desc_pin_from_gpio()
1276 return pin_desc; in stm32_pctrl_get_desc_pin_from_gpio()
1281 pin_desc = pctl->pins + i; in stm32_pctrl_get_desc_pin_from_gpio()
1282 if (pin_desc->pin.number == stm32_pin_nb) in stm32_pctrl_get_desc_pin_from_gpio()
[all …]
/linux-6.12.1/drivers/pinctrl/sprd/
Dpinctrl-sprd.c1045 struct pinctrl_pin_desc *pin_desc; in sprd_pinctrl_core_probe() local
1079 pin_desc = devm_kcalloc(&pdev->dev, in sprd_pinctrl_core_probe()
1083 if (!pin_desc) in sprd_pinctrl_core_probe()
1087 pin_desc[i].number = pinctrl_info->pins[i].number; in sprd_pinctrl_core_probe()
1088 pin_desc[i].name = pinctrl_info->pins[i].name; in sprd_pinctrl_core_probe()
1089 pin_desc[i].drv_data = pinctrl_info; in sprd_pinctrl_core_probe()
1092 sprd_pinctrl_desc.pins = pin_desc; in sprd_pinctrl_core_probe()
/linux-6.12.1/drivers/pinctrl/realtek/
Dpinctrl-rtd.c262 const struct pinctrl_pin_desc *pin_desc; in rtd_pinctrl_find_sconfig() local
265 pin_desc = rtd_pinctrl_get_pin_by_number(data, pin); in rtd_pinctrl_find_sconfig()
266 if (!pin_desc) in rtd_pinctrl_find_sconfig()
269 pin_name = pin_desc->name; in rtd_pinctrl_find_sconfig()
/linux-6.12.1/drivers/pinctrl/renesas/
Dpinctrl-rzg2l.c1172 const struct pinctrl_pin_desc *pin_desc = &pctrl->desc.pins[_pin]; in rzv2h_pin_to_oen_bit() local
1176 if (!strcmp(pin_desc->name, pin_names[i])) in rzv2h_pin_to_oen_bit()
1597 const struct pinctrl_pin_desc *pin_desc = &pctrl->desc.pins[offset]; in rzg2l_gpio_request() local
1598 u64 *pin_data = pin_desc->drv_data; in rzg2l_gpio_request()
1629 const struct pinctrl_pin_desc *pin_desc = &pctrl->desc.pins[offset]; in rzg2l_gpio_set_direction() local
1630 u64 *pin_data = pin_desc->drv_data; in rzg2l_gpio_set_direction()
1650 const struct pinctrl_pin_desc *pin_desc = &pctrl->desc.pins[offset]; in rzg2l_gpio_get_direction() local
1651 u64 *pin_data = pin_desc->drv_data; in rzg2l_gpio_get_direction()
1681 const struct pinctrl_pin_desc *pin_desc = &pctrl->desc.pins[offset]; in rzg2l_gpio_set() local
1682 u64 *pin_data = pin_desc->drv_data; in rzg2l_gpio_set()
[all …]
/linux-6.12.1/drivers/pinctrl/nxp/
Dpinctrl-s32cc.c681 const struct pin_desc *pd = pin_desc_get(ipctl->pctl, pin); in s32_pinctrl_should_save()
/linux-6.12.1/drivers/pinctrl/intel/
Dpinctrl-intel.c1733 const struct pin_desc *pd = pin_desc_get(pctrl->pctldev, pin); in intel_pinctrl_should_save()