Home
last modified time | relevance | path

Searched refs:num_pins (Results 1 – 25 of 129) sorted by relevance

123456

/linux-6.1.9/drivers/pinctrl/
Dpinctrl-gemini.c77 const unsigned int num_pins; member
708 .num_pins = ARRAY_SIZE(gnd_3512_pins),
713 .num_pins = ARRAY_SIZE(dram_3512_pins),
719 .num_pins = ARRAY_SIZE(rtc_3512_pins),
724 .num_pins = ARRAY_SIZE(power_3512_pins),
729 .num_pins = ARRAY_SIZE(system_3512_pins),
734 .num_pins = ARRAY_SIZE(vcontrol_3512_pins),
739 .num_pins = ARRAY_SIZE(ice_3512_pins),
745 .num_pins = ARRAY_SIZE(ide_3512_pins),
754 .num_pins = ARRAY_SIZE(sata_3512_pins),
[all …]
Dpinctrl-artpec6.c60 unsigned int num_pins; member
70 const unsigned int num_pins; member
216 .num_pins = ARRAY_SIZE(cpuclkout_pins0),
222 .num_pins = ARRAY_SIZE(udlclkout_pins0),
228 .num_pins = ARRAY_SIZE(i2c1_pins0),
234 .num_pins = ARRAY_SIZE(i2c2_pins0),
240 .num_pins = ARRAY_SIZE(i2c3_pins0),
246 .num_pins = ARRAY_SIZE(i2s0_pins0),
252 .num_pins = ARRAY_SIZE(i2s1_pins0),
258 .num_pins = ARRAY_SIZE(i2srefclk_pins0),
[all …]
Dpinmux.c412 unsigned num_pins = 0; in pinmux_enable_setting() local
418 &pins, &num_pins); in pinmux_enable_setting()
429 num_pins = 0; in pinmux_enable_setting()
433 for (i = 0; i < num_pins; i++) { in pinmux_enable_setting()
453 for (i = 0; i < num_pins; i++) { in pinmux_enable_setting()
473 for (i = 0; i < num_pins; i++) { in pinmux_enable_setting()
492 unsigned num_pins = 0; in pinmux_disable_setting() local
498 &pins, &num_pins); in pinmux_disable_setting()
508 num_pins = 0; in pinmux_disable_setting()
512 for (i = 0; i < num_pins; i++) { in pinmux_disable_setting()
/linux-6.1.9/drivers/irqchip/
Dirq-mbigen.c242 u32 num_pins; in mbigen_of_create_domain() local
256 &num_pins) < 0) { in mbigen_of_create_domain()
262 domain = platform_msi_create_device_domain(&child->dev, num_pins, in mbigen_of_create_domain()
286 u32 num_pins = 0; in mbigen_acpi_create_domain() local
312 ret = device_property_read_u32(&pdev->dev, "num-pins", &num_pins); in mbigen_acpi_create_domain()
313 if (ret || num_pins == 0) in mbigen_acpi_create_domain()
316 domain = platform_msi_create_device_domain(&pdev->dev, num_pins, in mbigen_acpi_create_domain()
/linux-6.1.9/drivers/pinctrl/vt8500/
Dpinctrl-wmt.c185 unsigned *num_pins) in wmt_get_group_pins() argument
190 *num_pins = 1; in wmt_get_group_pins()
303 int num_pins, num_funcs, num_pulls, maps_per_pin; in wmt_pctl_dt_node_to_map() local
325 num_pins = pins->length / sizeof(u32); in wmt_pctl_dt_node_to_map()
329 if (num_funcs > 1 && num_funcs != num_pins) { in wmt_pctl_dt_node_to_map()
331 num_pins); in wmt_pctl_dt_node_to_map()
335 if (num_pulls > 1 && num_pulls != num_pins) { in wmt_pctl_dt_node_to_map()
337 num_pins); in wmt_pctl_dt_node_to_map()
347 cur_map = maps = kcalloc(num_pins * maps_per_pin, sizeof(*maps), in wmt_pctl_dt_node_to_map()
352 for (i = 0; i < num_pins; i++) { in wmt_pctl_dt_node_to_map()
[all …]
/linux-6.1.9/sound/pci/lola/
Dlola_mixer.c85 for (i = 0; i < chip->pin[dir].num_pins; i++, nid++) { in lola_init_pins()
129 chip->mixer.src_phys_ins = chip->pin[CAPT].num_pins; in lola_init_mixer_widget()
133 chip->mixer.dest_phys_outs = chip->pin[PLAY].num_pins; in lola_init_mixer_widget()
328 max_idx = chip->pin[dir].num_pins; in lola_setup_all_analog_gains()
392 if (idx >= chip->pin[dir].num_pins) in set_analog_volume()
423 for (n = 0; n < chip->pin[CAPT].num_pins; n += 2) { in lola_set_src_config()
456 lola_set_src_config(chip, (1 << chip->pin[CAPT].num_pins) - 1, false); in init_mixer_values()
508 uinfo->count = chip->pin[dir].num_pins; in lola_analog_vol_info()
521 for (i = 0; i < chip->pin[dir].num_pins; i++) in lola_analog_vol_get()
534 for (i = 0; i < chip->pin[dir].num_pins; i++) { in lola_analog_vol_put()
[all …]
Dlola_proc.c111 chip->pin[CAPT].num_pins, chip->pin[PLAY].num_pins); in lola_proc_codec_read()
117 for (i = 0; i < chip->pin[CAPT].num_pins; i++, nid++) in lola_proc_codec_read()
120 for (i = 0; i < chip->pin[PLAY].num_pins; i++, nid++) in lola_proc_codec_read()
/linux-6.1.9/drivers/pinctrl/bcm/
Dpinctrl-nsp-mux.c74 const unsigned int num_pins; member
223 .num_pins = ARRAY_SIZE(group_name ## _pins), \
327 unsigned int *num_pins) in nsp_get_group_pins() argument
332 *num_pins = pinctrl->groups[selector].num_pins; in nsp_get_group_pins()
557 unsigned int num_pins = ARRAY_SIZE(nsp_pins); in nsp_pinmux_probe() local
590 pins = devm_kcalloc(&pdev->dev, num_pins, sizeof(*pins), GFP_KERNEL); in nsp_pinmux_probe()
594 for (i = 0; i < num_pins; i++) { in nsp_pinmux_probe()
605 nsp_pinctrl_desc.npins = num_pins; in nsp_pinmux_probe()
Dpinctrl-cygnus-mux.c66 unsigned num_pins; member
478 .num_pins = ARRAY_SIZE(group_name ## _pins), \
712 unsigned *num_pins) in cygnus_get_group_pins() argument
717 *num_pins = pinctrl->groups[selector].num_pins; in cygnus_get_group_pins()
935 unsigned num_pins = ARRAY_SIZE(cygnus_pins); in cygnus_pinmux_probe() local
963 pins = devm_kcalloc(&pdev->dev, num_pins, sizeof(*pins), GFP_KERNEL); in cygnus_pinmux_probe()
967 for (i = 0; i < num_pins; i++) { in cygnus_pinmux_probe()
978 cygnus_pinctrl_desc.npins = num_pins; in cygnus_pinmux_probe()
Dpinctrl-ns.c68 const unsigned int num_pins; member
88 .num_pins = ARRAY_SIZE(_pins), \
174 for (i = 0; i < group->num_pins; i++) in ns_pinctrl_set_mux()
274 group->pins, group->num_pins, NULL); in ns_pinctrl_probe()
Dpinctrl-bcm4908.c255 const unsigned int num_pins; member
432 for (i = 0; i < group->num_pins; i++) { in bcm4908_pinctrl_set_mux()
527 pins = devm_kcalloc(dev, group->num_pins, sizeof(*pins), GFP_KERNEL); in bcm4908_pinctrl_probe()
530 for (j = 0; j < group->num_pins; j++) in bcm4908_pinctrl_probe()
534 pins, group->num_pins, (void *)group); in bcm4908_pinctrl_probe()
Dpinctrl-bcm2835.c725 unsigned *num_pins) in bcm2835_pctl_get_group_pins() argument
728 *num_pins = 1; in bcm2835_pctl_get_group_pins()
812 int num_pins, num_funcs, num_pulls, maps_per_pin; in bcm2835_pctl_dt_node_to_map() local
839 num_pins = pins->length / 4; in bcm2835_pctl_dt_node_to_map()
843 if (num_funcs > 1 && num_funcs != num_pins) { in bcm2835_pctl_dt_node_to_map()
846 np, num_pins); in bcm2835_pctl_dt_node_to_map()
850 if (num_pulls > 1 && num_pulls != num_pins) { in bcm2835_pctl_dt_node_to_map()
853 np, num_pins); in bcm2835_pctl_dt_node_to_map()
862 cur_map = maps = kcalloc(num_pins * maps_per_pin, sizeof(*maps), in bcm2835_pctl_dt_node_to_map()
867 for (i = 0; i < num_pins; i++) { in bcm2835_pctl_dt_node_to_map()
[all …]
Dpinctrl-ns2-mux.c80 const unsigned int num_pins; member
368 .num_pins = ARRAY_SIZE(group_name ## _pins), \
510 unsigned int *num_pins) in ns2_get_group_pins() argument
515 *num_pins = pinctrl->groups[selector].num_pins; in ns2_get_group_pins()
1027 unsigned int num_pins = ARRAY_SIZE(ns2_pins); in ns2_pinmux_probe() local
1061 pins = devm_kcalloc(&pdev->dev, num_pins, sizeof(*pins), GFP_KERNEL); in ns2_pinmux_probe()
1065 for (i = 0; i < num_pins; i++) { in ns2_pinmux_probe()
1076 ns2_pinctrl_desc.npins = num_pins; in ns2_pinmux_probe()
/linux-6.1.9/drivers/pinctrl/visconti/
Dpinctrl-common.c129 unsigned int num_pins; in visconti_pin_config_group_set() local
133 num_pins = priv->devdata->groups[selector].nr_pins; in visconti_pin_config_group_set()
136 __func__, selector, num_pins, num_configs); in visconti_pin_config_group_set()
138 for (i = 0; i < num_pins; i++) { in visconti_pin_config_group_set()
173 unsigned int *num_pins) in visconti_get_group_pins() argument
178 *num_pins = priv->devdata->groups[selector].nr_pins; in visconti_get_group_pins()
/linux-6.1.9/drivers/pinctrl/meson/
Dpinctrl-meson8-pmx.h26 .num_pins = ARRAY_SIZE(grp ## _pins), \
36 .num_pins = 1, \
Dpinctrl-meson-axg-pmx.h46 .num_pins = ARRAY_SIZE(grp ## _pins), \
56 .num_pins = 1, \
Dpinctrl-meson8-pmx.c45 for (j = 0; j < group->num_pins; j++) { in meson8_pmx_disable_other_groups()
73 for (i = 0; i < group->num_pins; i++) in meson8_pmx_set_mux()
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_audio.c248 rdev->audio.num_pins = 3; in radeon_audio_init()
250 rdev->audio.num_pins = 7; in radeon_audio_init()
252 rdev->audio.num_pins = 7; in radeon_audio_init()
254 rdev->audio.num_pins = 2; in radeon_audio_init()
256 rdev->audio.num_pins = 6; in radeon_audio_init()
258 rdev->audio.num_pins = 6; in radeon_audio_init()
260 rdev->audio.num_pins = 1; in radeon_audio_init()
262 for (i = 0; i < rdev->audio.num_pins; i++) { in radeon_audio_init()
276 for (i = 0; i < rdev->audio.num_pins; i++) in radeon_audio_init()
427 for (i = 0; i < rdev->audio.num_pins; i++) in radeon_audio_fini()
/linux-6.1.9/sound/soc/
Dsoc-card.c98 unsigned int num_pins) in snd_soc_card_jack_new_pins() argument
106 if (num_pins) in snd_soc_card_jack_new_pins()
107 ret = snd_soc_jack_add_pins(jack, num_pins, pins); in snd_soc_card_jack_new_pins()
/linux-6.1.9/drivers/pinctrl/renesas/
Dpinctrl.c63 const unsigned **pins, unsigned *num_pins) in sh_pfc_get_group_pins() argument
68 *num_pins = pmx->pfc->info->groups[selector].nr_pins; in sh_pfc_get_group_pins()
116 unsigned int num_pins; in sh_pfc_dt_subnode_to_map() local
161 num_pins = 0; in sh_pfc_dt_subnode_to_map()
166 num_pins = ret; in sh_pfc_dt_subnode_to_map()
179 if (!num_pins && !num_groups) { in sh_pfc_dt_subnode_to_map()
188 nmaps += num_pins + num_groups; in sh_pfc_dt_subnode_to_map()
749 unsigned int num_pins; in sh_pfc_pinconf_group_set() local
753 num_pins = pmx->pfc->info->groups[group].nr_pins; in sh_pfc_pinconf_group_set()
755 for (i = 0; i < num_pins; ++i) { in sh_pfc_pinconf_group_set()
Dpinctrl-rzv2m.c176 for (i = 0; i < group->num_pins; i++) { in rzv2m_pinctrl_set_mux()
221 unsigned int num_pins, i; in rzv2m_dt_subnode_to_map() local
235 num_pins = 0; in rzv2m_dt_subnode_to_map()
240 num_pins = ret; in rzv2m_dt_subnode_to_map()
243 if (!num_pinmux && !num_pins) in rzv2m_dt_subnode_to_map()
246 if (num_pinmux && num_pins) { in rzv2m_dt_subnode_to_map()
256 if (num_pins && !num_configs) { in rzv2m_dt_subnode_to_map()
265 if (num_pins) in rzv2m_dt_subnode_to_map()
266 nmaps += num_pins; in rzv2m_dt_subnode_to_map()
276 if (num_pins) { in rzv2m_dt_subnode_to_map()
/linux-6.1.9/sound/soc/intel/avs/boards/
Drt286.c55 int num_pins, ret; in avs_rt286_codec_init() local
58 num_pins = ARRAY_SIZE(card_headset_pins); in avs_rt286_codec_init()
60 pins = devm_kmemdup(card->dev, card_headset_pins, sizeof(*pins) * num_pins, GFP_KERNEL); in avs_rt286_codec_init()
65 pins, num_pins); in avs_rt286_codec_init()
Drt298.c66 int num_pins, ret; in avs_rt298_codec_init() local
69 num_pins = ARRAY_SIZE(card_headset_pins); in avs_rt298_codec_init()
71 pins = devm_kmemdup(card->dev, card_headset_pins, sizeof(*pins) * num_pins, GFP_KERNEL); in avs_rt298_codec_init()
76 pins, num_pins); in avs_rt298_codec_init()
Drt274.c95 int num_pins, ret; in avs_rt274_codec_init() local
98 num_pins = ARRAY_SIZE(card_headset_pins); in avs_rt274_codec_init()
100 pins = devm_kmemdup(card->dev, card_headset_pins, sizeof(*pins) * num_pins, GFP_KERNEL); in avs_rt274_codec_init()
104 ret = snd_soc_card_jack_new_pins(card, "Headset", SND_JACK_HEADSET, jack, pins, num_pins); in avs_rt274_codec_init()
/linux-6.1.9/drivers/pinctrl/freescale/
Dpinctrl-imx.c80 map_num += grp->num_pins; in imx_dt_node_to_map()
82 for (i = 0; i < grp->num_pins; i++) { in imx_dt_node_to_map()
110 for (i = j = 0; i < grp->num_pins; i++) { in imx_dt_node_to_map()
264 npins = grp->num_pins; in imx_pmx_set()
480 for (i = 0; i < grp->num_pins; i++) { in imx_pinconf_group_dbg_show()
620 grp->num_pins = size / pin_size; in imx_pinctrl_parse_groups()
622 grp->num_pins, sizeof(struct imx_pin), in imx_pinctrl_parse_groups()
625 grp->num_pins, sizeof(unsigned int), in imx_pinctrl_parse_groups()
630 for (i = 0; i < grp->num_pins; i++) { in imx_pinctrl_parse_groups()

123456