/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-utils.c | 20 unsigned *num_maps, unsigned reserve) in pinctrl_utils_reserve_map() argument 23 unsigned new_num = *num_maps + reserve; in pinctrl_utils_reserve_map() 45 unsigned *num_maps, const char *group, in pinctrl_utils_add_map_mux() argument 48 if (WARN_ON(*num_maps == *reserved_maps)) in pinctrl_utils_add_map_mux() 52 (*map)[*num_maps].data.mux.group = group; in pinctrl_utils_add_map_mux() 54 (*num_maps)++; in pinctrl_utils_add_map_mux() 62 unsigned *num_maps, const char *group, in pinctrl_utils_add_map_configs() argument 68 if (WARN_ON(*num_maps == *reserved_maps)) in pinctrl_utils_add_map_configs() 76 (*map)[*num_maps].type = type; in pinctrl_utils_add_map_configs() 80 (*num_maps)++; in pinctrl_utils_add_map_configs() [all …]
|
H A D | devicetree.c | 27 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() 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() 119 unsigned num_maps; in dt_to_map_one_config() local [all …]
|
H A D | pinctrl-utils.h | 19 unsigned *num_maps, unsigned reserve); 22 unsigned *num_maps, const char *group, 26 unsigned *num_maps, const char *group, 33 struct pinctrl_map *map, unsigned num_maps);
|
H A D | pinconf-generic.c | 296 unsigned *reserved_maps, unsigned *num_maps, in pinconf_generic_dt_subnode_to_map() argument 349 num_maps, reserve); in pinconf_generic_dt_subnode_to_map() 356 reserved_maps, num_maps, group, in pinconf_generic_dt_subnode_to_map() 364 reserved_maps, num_maps, group, configs, in pinconf_generic_dt_subnode_to_map() 380 unsigned *num_maps, enum pinctrl_map_type type) in pinconf_generic_dt_node_to_map() argument 388 *num_maps = 0; in pinconf_generic_dt_node_to_map() 391 &reserved_maps, num_maps, type); in pinconf_generic_dt_node_to_map() 397 &reserved_maps, num_maps, type); in pinconf_generic_dt_node_to_map() 406 pinctrl_utils_free_map(pctldev, *map, *num_maps); in pinconf_generic_dt_node_to_map() 413 unsigned num_maps) in pinconf_generic_dt_free_map() argument [all …]
|
H A D | pinctrl-lantiq.c | 48 struct pinctrl_map *map, unsigned num_maps) in ltq_pinctrl_dt_free_map() argument 52 for (i = 0; i < num_maps; i++) in ltq_pinctrl_dt_free_map() 151 unsigned *num_maps) in ltq_pinctrl_dt_node_to_map() argument 167 *num_maps = ((int)(tmp - *map)); in ltq_pinctrl_dt_node_to_map()
|
H A D | core.h | 192 unsigned num_maps; member 258 __i < _maps_node_->num_maps && (_map_ = &_maps_node_->maps[__i]); \
|
H A D | pinctrl-k210.c | 764 unsigned int *num_maps) in k210_pinctrl_dt_subnode_to_map() argument 777 reserved_maps, num_maps, in k210_pinctrl_dt_subnode_to_map() 795 ret = pinctrl_utils_reserve_map(pctldev, map, reserved_maps, num_maps, in k210_pinctrl_dt_subnode_to_map() 817 num_maps, group_name, in k210_pinctrl_dt_subnode_to_map() 827 reserved_maps, num_maps, group_name, in k210_pinctrl_dt_subnode_to_map() 849 unsigned int *num_maps) in k210_pinctrl_dt_node_to_map() argument 857 *num_maps = 0; in k210_pinctrl_dt_node_to_map() 860 &reserved_maps, num_maps); in k210_pinctrl_dt_node_to_map() 866 &reserved_maps, num_maps); in k210_pinctrl_dt_node_to_map() 875 pinctrl_utils_free_map(pctldev, *map, *num_maps); in k210_pinctrl_dt_node_to_map()
|
/openbmc/linux/include/linux/pinctrl/ |
H A D | pinconf-generic.h | 196 unsigned *reserved_maps, unsigned *num_maps, 200 unsigned *num_maps, enum pinctrl_map_type type); 202 struct pinctrl_map *map, unsigned num_maps); 206 unsigned *num_maps) in pinconf_generic_dt_node_to_map_group() argument 208 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_group() 214 unsigned *num_maps) in pinconf_generic_dt_node_to_map_pin() argument 216 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_pin() 222 unsigned *num_maps) in pinconf_generic_dt_node_to_map_all() argument 228 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_all()
|
H A D | machine.h | 157 unsigned num_maps); 163 unsigned num_maps) in pinctrl_register_mappings() argument
|
H A D | pinctrl.h | 120 struct pinctrl_map **map, unsigned *num_maps); 122 struct pinctrl_map *map, unsigned num_maps);
|
/openbmc/linux/drivers/pinctrl/nomadik/ |
H A D | pinctrl-abx500.c | 693 if (*num_maps == *reserved_maps) in abx500_dt_add_map_mux() 699 (*num_maps)++; in abx500_dt_add_map_mux() 711 if (*num_maps == *reserved_maps) in abx500_dt_add_map_configs() 724 (*num_maps)++; in abx500_dt_add_map_configs() 746 unsigned *num_maps) in abx500_dt_subnode_to_map() argument 763 num_maps, ret); in abx500_dt_subnode_to_map() 769 num_maps, group, function); in abx500_dt_subnode_to_map() 786 num_maps, ret); in abx500_dt_subnode_to_map() 794 num_maps, gpio_name, configs, 1); in abx500_dt_subnode_to_map() 814 *num_maps = 0; in abx500_dt_node_to_map() [all …]
|
H A D | pinctrl-nomadik.c | 1243 unsigned *num_maps, const char *group, in nmk_dt_add_map_mux() argument 1246 if (*num_maps == *reserved_maps) in nmk_dt_add_map_mux() 1252 (*num_maps)++; in nmk_dt_add_map_mux() 1264 if (*num_maps == *reserved_maps) in nmk_dt_add_map_configs() 1277 (*num_maps)++; in nmk_dt_add_map_configs() 1400 unsigned *num_maps) in nmk_pinctrl_dt_subnode_to_map() argument 1419 num_maps, ret); in nmk_pinctrl_dt_subnode_to_map() 1446 num_maps, ret); in nmk_pinctrl_dt_subnode_to_map() 1454 num_maps, in nmk_pinctrl_dt_subnode_to_map() 1475 *num_maps = 0; in nmk_pinctrl_dt_node_to_map() [all …]
|
/openbmc/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-samsung.c | 111 (*num_maps)++; in add_map_mux() 135 (*num_maps)++; in add_map_configs() 162 unsigned num_maps) in samsung_dt_free_map() argument 166 for (i = 0; i < num_maps; i++) in samsung_dt_free_map() 178 unsigned *num_maps) in samsung_dt_subnode_to_map() argument 227 num_maps, group, np->full_name); in samsung_dt_subnode_to_map() 234 num_maps, group, configs, in samsung_dt_subnode_to_map() 251 unsigned *num_maps) in samsung_dt_node_to_map() argument 262 *num_maps = 0; in samsung_dt_node_to_map() 268 num_maps); in samsung_dt_node_to_map() [all …]
|
/openbmc/linux/drivers/pinctrl/renesas/ |
H A D | pinctrl.c | 102 unsigned int *num_maps, unsigned int *index) in sh_pfc_dt_subnode_to_map() argument 107 unsigned int nmaps = *num_maps; in sh_pfc_dt_subnode_to_map() 178 *num_maps = nmaps; in sh_pfc_dt_subnode_to_map() 222 struct pinctrl_map *map, unsigned num_maps) in sh_pfc_dt_free_map() argument 229 for (i = 0; i < num_maps; ++i) { in sh_pfc_dt_free_map() 240 struct pinctrl_map **map, unsigned *num_maps) in sh_pfc_dt_node_to_map() argument 249 *num_maps = 0; in sh_pfc_dt_node_to_map() 262 if (*num_maps == 0) { in sh_pfc_dt_node_to_map() 263 ret = sh_pfc_dt_subnode_to_map(pctldev, np, map, num_maps, in sh_pfc_dt_node_to_map() 269 if (*num_maps) in sh_pfc_dt_node_to_map() [all …]
|
H A D | pinctrl-rzv2m.c | 216 unsigned int *num_maps, in rzv2m_dt_subnode_to_map() argument 221 unsigned int nmaps = *num_maps; in rzv2m_dt_subnode_to_map() 281 *num_maps = nmaps; in rzv2m_dt_subnode_to_map() 370 unsigned int num_maps) in rzv2m_dt_free_map() argument 377 for (i = 0; i < num_maps; ++i) { in rzv2m_dt_free_map() 388 unsigned int *num_maps) in rzv2m_dt_node_to_map() argument 396 *num_maps = 0; in rzv2m_dt_node_to_map() 401 num_maps, &index); in rzv2m_dt_node_to_map() 408 if (*num_maps == 0) { in rzv2m_dt_node_to_map() 410 num_maps, &index); in rzv2m_dt_node_to_map() [all …]
|
H A D | pinctrl-rzn1.c | 340 unsigned int *num_maps) in rzn1_dt_node_to_map_one() argument 345 unsigned int reserved_maps = *num_maps; in rzn1_dt_node_to_map_one() 372 ret = pinctrl_utils_reserve_map(pctldev, map, &reserved_maps, num_maps, in rzn1_dt_node_to_map_one() 378 ret = pinctrl_utils_add_map_mux(pctldev, map, &reserved_maps, num_maps, in rzn1_dt_node_to_map_one() 386 &reserved_maps, num_maps, grp->name, in rzn1_dt_node_to_map_one() 405 unsigned int *num_maps) in rzn1_dt_node_to_map() argument 411 *num_maps = 0; in rzn1_dt_node_to_map() 413 ret = rzn1_dt_node_to_map_one(pctldev, np, map, num_maps); in rzn1_dt_node_to_map() 418 ret = rzn1_dt_node_to_map_one(pctldev, child, map, num_maps); in rzn1_dt_node_to_map()
|
/openbmc/linux/drivers/thermal/intel/ |
H A D | intel_bxt_pmic_thermal.c | 47 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()
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-paris.c | 412 unsigned *num_maps) in mtk_pctrl_dt_node_to_map_func() argument 416 if (*num_maps == *reserved_maps) in mtk_pctrl_dt_node_to_map_func() 419 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in mtk_pctrl_dt_node_to_map_func() 420 (*map)[*num_maps].data.mux.group = grp->name; in mtk_pctrl_dt_node_to_map_func() 430 (*num_maps)++; in mtk_pctrl_dt_node_to_map_func() 439 unsigned *num_maps) in mtk_pctrl_dt_subnode_to_map() argument 510 reserved_maps, num_maps); in mtk_pctrl_dt_subnode_to_map() 517 num_maps, in mtk_pctrl_dt_subnode_to_map() 537 unsigned *num_maps) in mtk_pctrl_dt_node_to_map() argument 544 *num_maps = 0; in mtk_pctrl_dt_node_to_map() [all …]
|
H A D | pinctrl-mtk-common.c | 499 unsigned *num_maps) in mtk_pctrl_dt_node_to_map_func() argument 503 if (*num_maps == *reserved_maps) in mtk_pctrl_dt_node_to_map_func() 506 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in mtk_pctrl_dt_node_to_map_func() 507 (*map)[*num_maps].data.mux.group = grp->name; in mtk_pctrl_dt_node_to_map_func() 517 (*num_maps)++; in mtk_pctrl_dt_node_to_map_func() 526 unsigned *num_maps) in mtk_pctrl_dt_subnode_to_map() argument 570 reserved_maps, num_maps, reserve); in mtk_pctrl_dt_subnode_to_map() 599 reserved_maps, num_maps); in mtk_pctrl_dt_subnode_to_map() 605 reserved_maps, num_maps, grp->name, in mtk_pctrl_dt_subnode_to_map() 629 *num_maps = 0; in mtk_pctrl_dt_node_to_map() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | local_storage_bench.c | 42 const volatile unsigned int num_maps; variable 82 unsigned int map_idx = index % num_maps; in loop()
|
/openbmc/linux/drivers/pinctrl/berlin/ |
H A D | berlin.c | 53 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()
|
/openbmc/linux/drivers/pinctrl/sunplus/ |
H A D | sppctl.c | 820 struct pinctrl_map **map, unsigned int *num_maps) in sppctl_dt_node_to_map() argument 836 *num_maps = size / sizeof(*list); in sppctl_dt_node_to_map() 852 for (i = 0; i < (*num_maps); i++) { in sppctl_dt_node_to_map() 866 *map = kcalloc(*num_maps + nmG, sizeof(**map), GFP_KERNEL); in sppctl_dt_node_to_map() 871 for (i = 0; i < (*num_maps); i++) { in sppctl_dt_node_to_map() 924 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in sppctl_dt_node_to_map() 925 (*map)[*num_maps].data.mux.function = s_f; in sppctl_dt_node_to_map() 926 (*map)[*num_maps].data.mux.group = s_g; in sppctl_dt_node_to_map() 927 (*num_maps)++; in sppctl_dt_node_to_map() 968 dev_dbg(pctldev->dev, "%d pins mapped\n", *num_maps); in sppctl_dt_node_to_map() [all …]
|
/openbmc/linux/drivers/pinctrl/tegra/ |
H A D | pinctrl-tegra.c | 105 unsigned *num_maps) in tegra_pinctrl_dt_subnode_to_map() argument 155 num_maps, reserve); in tegra_pinctrl_dt_subnode_to_map() 162 reserved_maps, num_maps, group, in tegra_pinctrl_dt_subnode_to_map() 170 reserved_maps, num_maps, group, in tegra_pinctrl_dt_subnode_to_map() 188 unsigned *num_maps) in tegra_pinctrl_dt_node_to_map() argument 196 *num_maps = 0; in tegra_pinctrl_dt_node_to_map() 200 &reserved_maps, num_maps); in tegra_pinctrl_dt_node_to_map() 203 *num_maps); in tegra_pinctrl_dt_node_to_map()
|
H A D | pinctrl-tegra-xusb.c | 157 unsigned int *num_maps) in tegra_xusb_padctl_parse_subnode() argument 204 num_maps, reserve); in tegra_xusb_padctl_parse_subnode() 211 reserved_maps, num_maps, group, in tegra_xusb_padctl_parse_subnode() 219 maps, reserved_maps, num_maps, group, in tegra_xusb_padctl_parse_subnode() 237 unsigned int *num_maps) in tegra_xusb_padctl_dt_node_to_map() argument 244 *num_maps = 0; in tegra_xusb_padctl_dt_node_to_map() 250 num_maps); in tegra_xusb_padctl_dt_node_to_map()
|
/openbmc/linux/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 568 unsigned *num_maps) in stm32_pctrl_dt_node_to_map_func() argument 570 if (*num_maps == *reserved_maps) in stm32_pctrl_dt_node_to_map_func() 573 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in stm32_pctrl_dt_node_to_map_func() 574 (*map)[*num_maps].data.mux.group = grp->name; in stm32_pctrl_dt_node_to_map_func() 580 (*num_maps)++; in stm32_pctrl_dt_node_to_map_func() 589 unsigned *num_maps) in stm32_pctrl_dt_subnode_to_map() argument 634 reserved_maps, num_maps, reserve); in stm32_pctrl_dt_subnode_to_map() 661 reserved_maps, num_maps); in stm32_pctrl_dt_subnode_to_map() 667 reserved_maps, num_maps, grp->name, in stm32_pctrl_dt_subnode_to_map() 689 *num_maps = 0; in stm32_pctrl_dt_node_to_map() [all …]
|