Home
last modified time | relevance | path

Searched refs:num_maps (Results 1 – 25 of 41) sorted by relevance

12

/drivers/pinctrl/
Dpinctrl-utils.c33 unsigned *num_maps, unsigned reserve) in pinctrl_utils_reserve_map() argument
36 unsigned new_num = *num_maps + reserve; in pinctrl_utils_reserve_map()
58 unsigned *num_maps, const char *group, in pinctrl_utils_add_map_mux() argument
61 if (WARN_ON(*num_maps == *reserved_maps)) in pinctrl_utils_add_map_mux()
64 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in pinctrl_utils_add_map_mux()
65 (*map)[*num_maps].data.mux.group = group; in pinctrl_utils_add_map_mux()
66 (*map)[*num_maps].data.mux.function = function; in pinctrl_utils_add_map_mux()
67 (*num_maps)++; in pinctrl_utils_add_map_mux()
75 unsigned *num_maps, const char *group, in pinctrl_utils_add_map_configs() argument
81 if (WARN_ON(*num_maps == *reserved_maps)) in pinctrl_utils_add_map_configs()
[all …]
Ddevicetree.c27 unsigned num_maps; member
31 struct pinctrl_map *map, unsigned num_maps) in dt_free_map() argument
35 for (i = 0; i < num_maps; ++i) { in dt_free_map()
43 ops->dt_free_map(pctldev, map, num_maps); in dt_free_map()
58 dt_map->num_maps); in pinctrl_dt_free_maps()
67 struct pinctrl_map *map, unsigned num_maps) in dt_remember_or_free_map() argument
73 for (i = 0; i < num_maps; i++) { in dt_remember_or_free_map()
93 dt_map->num_maps = num_maps; in dt_remember_or_free_map()
96 return pinctrl_register_mappings(map, num_maps); in dt_remember_or_free_map()
99 dt_free_map(pctldev, map, num_maps); in dt_remember_or_free_map()
[all …]
Dpinconf-generic.c294 unsigned *reserved_maps, unsigned *num_maps, in pinconf_generic_dt_subnode_to_map() argument
347 num_maps, reserve); in pinconf_generic_dt_subnode_to_map()
354 reserved_maps, num_maps, group, in pinconf_generic_dt_subnode_to_map()
362 reserved_maps, num_maps, group, configs, in pinconf_generic_dt_subnode_to_map()
378 unsigned *num_maps, enum pinctrl_map_type type) in pinconf_generic_dt_node_to_map() argument
386 *num_maps = 0; in pinconf_generic_dt_node_to_map()
389 &reserved_maps, num_maps, type); in pinconf_generic_dt_node_to_map()
395 &reserved_maps, num_maps, type); in pinconf_generic_dt_node_to_map()
404 pinctrl_utils_free_map(pctldev, *map, *num_maps); in pinconf_generic_dt_node_to_map()
411 unsigned num_maps) in pinconf_generic_dt_free_map() argument
[all …]
Dpinctrl-utils.h27 unsigned *num_maps, unsigned reserve);
30 unsigned *num_maps, const char *group,
34 unsigned *num_maps, const char *group,
41 struct pinctrl_map *map, unsigned num_maps);
Dpinctrl-lantiq.c47 struct pinctrl_map *map, unsigned num_maps) in ltq_pinctrl_dt_free_map() argument
51 for (i = 0; i < num_maps; i++) in ltq_pinctrl_dt_free_map()
150 unsigned *num_maps) in ltq_pinctrl_dt_node_to_map() argument
166 *num_maps = ((int)(tmp - *map)); in ltq_pinctrl_dt_node_to_map()
Dpinctrl-single.c317 struct pinctrl_map *map, unsigned num_maps) in pcs_dt_free_map() argument
327 struct pinctrl_map **map, unsigned *num_maps);
999 unsigned *num_maps, in pcs_parse_one_pinctrl_entry() argument
1083 *num_maps = 2; in pcs_parse_one_pinctrl_entry()
1085 *num_maps = 1; in pcs_parse_one_pinctrl_entry()
1089 *num_maps = 1; in pcs_parse_one_pinctrl_entry()
1097 *num_maps = 1; in pcs_parse_one_pinctrl_entry()
1113 unsigned *num_maps, in pcs_parse_bits_in_pinctrl_entry() argument
1231 *num_maps = 1; in pcs_parse_bits_in_pinctrl_entry()
1238 *num_maps = 1; in pcs_parse_bits_in_pinctrl_entry()
[all …]
Dpinctrl-at91-pio4.c546 unsigned *num_maps) in atmel_pctl_dt_subnode_to_map() argument
581 ret = pinctrl_utils_reserve_map(pctldev, map, reserved_maps, num_maps, in atmel_pctl_dt_subnode_to_map()
598 pinctrl_utils_add_map_mux(pctldev, map, reserved_maps, num_maps, in atmel_pctl_dt_subnode_to_map()
603 reserved_maps, num_maps, group, in atmel_pctl_dt_subnode_to_map()
619 unsigned *num_maps) in atmel_pctl_dt_node_to_map() argument
626 *num_maps = 0; in atmel_pctl_dt_node_to_map()
635 &reserved_maps, num_maps); in atmel_pctl_dt_node_to_map()
639 &reserved_maps, num_maps); in atmel_pctl_dt_node_to_map()
648 pinctrl_utils_free_map(pctldev, *map, *num_maps); in atmel_pctl_dt_node_to_map()
Dcore.h182 unsigned num_maps; member
248 _i_ < _maps_node_->num_maps; \
/drivers/pinctrl/nomadik/
Dpinctrl-abx500.c687 unsigned *num_maps, const char *group, in abx500_dt_add_map_mux() argument
690 if (*num_maps == *reserved_maps) in abx500_dt_add_map_mux()
693 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in abx500_dt_add_map_mux()
694 (*map)[*num_maps].data.mux.group = group; in abx500_dt_add_map_mux()
695 (*map)[*num_maps].data.mux.function = function; in abx500_dt_add_map_mux()
696 (*num_maps)++; in abx500_dt_add_map_mux()
703 unsigned *num_maps, const char *group, in abx500_dt_add_map_configs() argument
708 if (*num_maps == *reserved_maps) in abx500_dt_add_map_configs()
716 (*map)[*num_maps].type = PIN_MAP_TYPE_CONFIGS_PIN; in abx500_dt_add_map_configs()
718 (*map)[*num_maps].data.configs.group_or_pin = group; in abx500_dt_add_map_configs()
[all …]
Dpinctrl-nomadik.c1234 unsigned *num_maps, const char *group, in nmk_dt_add_map_mux() argument
1237 if (*num_maps == *reserved_maps) in nmk_dt_add_map_mux()
1240 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in nmk_dt_add_map_mux()
1241 (*map)[*num_maps].data.mux.group = group; in nmk_dt_add_map_mux()
1242 (*map)[*num_maps].data.mux.function = function; in nmk_dt_add_map_mux()
1243 (*num_maps)++; in nmk_dt_add_map_mux()
1250 unsigned *num_maps, const char *group, in nmk_dt_add_map_configs() argument
1255 if (*num_maps == *reserved_maps) in nmk_dt_add_map_configs()
1263 (*map)[*num_maps].type = PIN_MAP_TYPE_CONFIGS_PIN; in nmk_dt_add_map_configs()
1265 (*map)[*num_maps].data.configs.group_or_pin = group; in nmk_dt_add_map_configs()
[all …]
/drivers/pinctrl/samsung/
Dpinctrl-samsung.c79 unsigned *reserved_maps, unsigned *num_maps, in reserve_map() argument
83 unsigned new_num = *num_maps + reserve; in reserve_map()
102 unsigned *num_maps, const char *group, in add_map_mux() argument
105 if (WARN_ON(*num_maps == *reserved_maps)) in add_map_mux()
108 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in add_map_mux()
109 (*map)[*num_maps].data.mux.group = group; in add_map_mux()
110 (*map)[*num_maps].data.mux.function = function; in add_map_mux()
111 (*num_maps)++; in add_map_mux()
117 unsigned *reserved_maps, unsigned *num_maps, in add_map_configs() argument
123 if (WARN_ON(*num_maps == *reserved_maps)) in add_map_configs()
[all …]
/drivers/pinctrl/renesas/
Dpinctrl.c105 unsigned int *num_maps, unsigned int *index) in sh_pfc_dt_subnode_to_map() argument
110 unsigned int nmaps = *num_maps; in sh_pfc_dt_subnode_to_map()
198 *num_maps = nmaps; in sh_pfc_dt_subnode_to_map()
242 struct pinctrl_map *map, unsigned num_maps) in sh_pfc_dt_free_map() argument
249 for (i = 0; i < num_maps; ++i) { in sh_pfc_dt_free_map()
260 struct pinctrl_map **map, unsigned *num_maps) in sh_pfc_dt_node_to_map() argument
269 *num_maps = 0; in sh_pfc_dt_node_to_map()
273 ret = sh_pfc_dt_subnode_to_map(pctldev, child, map, num_maps, in sh_pfc_dt_node_to_map()
282 if (*num_maps == 0) { in sh_pfc_dt_node_to_map()
283 ret = sh_pfc_dt_subnode_to_map(pctldev, np, map, num_maps, in sh_pfc_dt_node_to_map()
[all …]
Dpinctrl-rzn1.c336 unsigned int *num_maps) in rzn1_dt_node_to_map_one() argument
341 unsigned int reserved_maps = *num_maps; in rzn1_dt_node_to_map_one()
368 ret = pinctrl_utils_reserve_map(pctldev, map, &reserved_maps, num_maps, in rzn1_dt_node_to_map_one()
374 ret = pinctrl_utils_add_map_mux(pctldev, map, &reserved_maps, num_maps, in rzn1_dt_node_to_map_one()
382 &reserved_maps, num_maps, grp->name, in rzn1_dt_node_to_map_one()
401 unsigned int *num_maps) in rzn1_dt_node_to_map() argument
407 *num_maps = 0; in rzn1_dt_node_to_map()
409 ret = rzn1_dt_node_to_map_one(pctldev, np, map, num_maps); in rzn1_dt_node_to_map()
414 ret = rzn1_dt_node_to_map_one(pctldev, child, map, num_maps); in rzn1_dt_node_to_map()
Dpinctrl-rza2.c330 unsigned int *num_maps) in rza2_dt_node_to_map() argument
388 *num_maps = 0; in rza2_dt_node_to_map()
398 *num_maps = 1; in rza2_dt_node_to_map()
419 struct pinctrl_map *map, unsigned int num_maps) in rza2_dt_free_map() argument
/drivers/pinctrl/mediatek/
Dpinctrl-paris.c360 unsigned *num_maps) in mtk_pctrl_dt_node_to_map_func() argument
364 if (*num_maps == *reserved_maps) in mtk_pctrl_dt_node_to_map_func()
367 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in mtk_pctrl_dt_node_to_map_func()
368 (*map)[*num_maps].data.mux.group = grp->name; in mtk_pctrl_dt_node_to_map_func()
377 (*map)[*num_maps].data.mux.function = mtk_gpio_functions[fnum]; in mtk_pctrl_dt_node_to_map_func()
378 (*num_maps)++; in mtk_pctrl_dt_node_to_map_func()
387 unsigned *num_maps) in mtk_pctrl_dt_subnode_to_map() argument
429 err = pinctrl_utils_reserve_map(pctldev, map, reserved_maps, num_maps, in mtk_pctrl_dt_subnode_to_map()
458 reserved_maps, num_maps); in mtk_pctrl_dt_subnode_to_map()
465 num_maps, in mtk_pctrl_dt_subnode_to_map()
[all …]
Dpinctrl-mtk-common.c467 unsigned *num_maps) in mtk_pctrl_dt_node_to_map_func() argument
471 if (*num_maps == *reserved_maps) in mtk_pctrl_dt_node_to_map_func()
474 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in mtk_pctrl_dt_node_to_map_func()
475 (*map)[*num_maps].data.mux.group = grp->name; in mtk_pctrl_dt_node_to_map_func()
484 (*map)[*num_maps].data.mux.function = mtk_gpio_functions[fnum]; in mtk_pctrl_dt_node_to_map_func()
485 (*num_maps)++; in mtk_pctrl_dt_node_to_map_func()
494 unsigned *num_maps) in mtk_pctrl_dt_subnode_to_map() argument
538 reserved_maps, num_maps, reserve); in mtk_pctrl_dt_subnode_to_map()
567 reserved_maps, num_maps); in mtk_pctrl_dt_subnode_to_map()
573 reserved_maps, num_maps, grp->name, in mtk_pctrl_dt_subnode_to_map()
[all …]
/drivers/thermal/intel/
Dintel_bxt_pmic_thermal.c47 int num_maps; member
150 .num_maps = ARRAY_SIZE(bxtwc_thermal_irq_map),
170 for (i = 0; i < td->num_maps; i++) { in pmic_thermal_irq_handler()
256 for (i = 0; i < thermal_data->num_maps; i++) { in pmic_thermal_probe()
/drivers/pinctrl/berlin/
Dberlin.c53 unsigned *num_maps) in berlin_pinctrl_dt_node_to_map() argument
62 *num_maps = 0; in berlin_pinctrl_dt_node_to_map()
79 num_maps, ngroups); in berlin_pinctrl_dt_node_to_map()
87 num_maps, group_name, in berlin_pinctrl_dt_node_to_map()
/drivers/pinctrl/tegra/
Dpinctrl-tegra.c103 unsigned *num_maps) in tegra_pinctrl_dt_subnode_to_map() argument
153 num_maps, reserve); in tegra_pinctrl_dt_subnode_to_map()
160 reserved_maps, num_maps, group, in tegra_pinctrl_dt_subnode_to_map()
168 reserved_maps, num_maps, group, in tegra_pinctrl_dt_subnode_to_map()
186 unsigned *num_maps) in tegra_pinctrl_dt_node_to_map() argument
194 *num_maps = 0; in tegra_pinctrl_dt_node_to_map()
198 &reserved_maps, num_maps); in tegra_pinctrl_dt_node_to_map()
201 *num_maps); in tegra_pinctrl_dt_node_to_map()
Dpinctrl-tegra-xusb.c154 unsigned int *num_maps) in tegra_xusb_padctl_parse_subnode() argument
201 num_maps, reserve); in tegra_xusb_padctl_parse_subnode()
208 reserved_maps, num_maps, group, in tegra_xusb_padctl_parse_subnode()
216 maps, reserved_maps, num_maps, group, in tegra_xusb_padctl_parse_subnode()
234 unsigned int *num_maps) in tegra_xusb_padctl_dt_node_to_map() argument
241 *num_maps = 0; in tegra_xusb_padctl_dt_node_to_map()
247 num_maps); in tegra_xusb_padctl_dt_node_to_map()
/drivers/pinctrl/stm32/
Dpinctrl-stm32.c559 unsigned *num_maps) in stm32_pctrl_dt_node_to_map_func() argument
561 if (*num_maps == *reserved_maps) in stm32_pctrl_dt_node_to_map_func()
564 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in stm32_pctrl_dt_node_to_map_func()
565 (*map)[*num_maps].data.mux.group = grp->name; in stm32_pctrl_dt_node_to_map_func()
573 (*map)[*num_maps].data.mux.function = stm32_gpio_functions[fnum]; in stm32_pctrl_dt_node_to_map_func()
574 (*num_maps)++; in stm32_pctrl_dt_node_to_map_func()
583 unsigned *num_maps) in stm32_pctrl_dt_subnode_to_map() argument
628 reserved_maps, num_maps, reserve); in stm32_pctrl_dt_subnode_to_map()
656 reserved_maps, num_maps); in stm32_pctrl_dt_subnode_to_map()
662 reserved_maps, num_maps, grp->name, in stm32_pctrl_dt_subnode_to_map()
[all …]
/drivers/pinctrl/spear/
Dpinctrl-spear.c149 unsigned *num_maps) in spear_pinctrl_dt_node_to_map() argument
193 *num_maps = count; in spear_pinctrl_dt_node_to_map()
200 unsigned num_maps) in spear_pinctrl_dt_free_map() argument
/drivers/pinctrl/vt8500/
Dpinctrl-wmt.c284 unsigned num_maps) in wmt_pctl_dt_free_map() argument
288 for (i = 0; i < num_maps; i++) in wmt_pctl_dt_free_map()
298 unsigned *num_maps) in wmt_pctl_dt_node_to_map() argument
388 *num_maps = num_pins * maps_per_pin; in wmt_pctl_dt_node_to_map()
/drivers/pinctrl/freescale/
Dpinctrl-mxs.c62 struct pinctrl_map **map, unsigned *num_maps) in mxs_dt_node_to_map() argument
126 *num_maps = new_num; in mxs_dt_node_to_map()
139 struct pinctrl_map *map, unsigned num_maps) in mxs_dt_free_map() argument
143 for (i = 0; i < num_maps; i++) { in mxs_dt_free_map()
/drivers/pinctrl/sprd/
Dpinctrl-sprd.c245 unsigned int *num_maps) in sprd_dt_node_to_map() argument
291 *num_maps = 0; in sprd_dt_node_to_map()
299 num_maps, reserve); in sprd_dt_node_to_map()
305 &reserved_maps, num_maps, in sprd_dt_node_to_map()
323 &reserved_maps, num_maps, in sprd_dt_node_to_map()

12