/linux/drivers/pinctrl/ |
H A D | pinctrl-utils.c | 22 unsigned int *num_maps, unsigned int reserve) in pinctrl_utils_reserve_map() argument 25 unsigned int new_num = *num_maps + reserve; in pinctrl_utils_reserve_map() 47 unsigned int *num_maps, const char *group, in pinctrl_utils_add_map_mux() argument 50 if (WARN_ON(*num_maps == *reserved_maps)) in pinctrl_utils_add_map_mux() 53 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in pinctrl_utils_add_map_mux() 54 (*map)[*num_maps].data.mux.group = group; in pinctrl_utils_add_map_mux() 55 (*map)[*num_maps].data.mux.function = function; in pinctrl_utils_add_map_mux() 56 (*num_maps)++; in pinctrl_utils_add_map_mux() 64 unsigned int *num_maps, const char *group, in pinctrl_utils_add_map_configs() argument 70 if (WARN_ON(*num_maps == *reserved_maps)) in pinctrl_utils_add_map_configs() [all …]
|
H A D | devicetree.c | 27 unsigned int num_maps; member 31 struct pinctrl_map *map, unsigned int 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 int 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 …]
|
H A D | pinconf-generic.c | 300 unsigned int *reserved_maps, unsigned int *num_maps, in pinconf_generic_dt_subnode_to_map() argument 353 num_maps, reserve); in pinconf_generic_dt_subnode_to_map() 360 reserved_maps, num_maps, group, in pinconf_generic_dt_subnode_to_map() 368 reserved_maps, num_maps, group, configs, in pinconf_generic_dt_subnode_to_map() 384 unsigned int *num_maps, enum pinctrl_map_type type) in pinconf_generic_dt_node_to_map() argument 391 *num_maps = 0; in pinconf_generic_dt_node_to_map() 394 &reserved_maps, num_maps, type); in pinconf_generic_dt_node_to_map() 400 &reserved_maps, num_maps, type); in pinconf_generic_dt_node_to_map() 407 pinctrl_utils_free_map(pctldev, *map, *num_maps); in pinconf_generic_dt_node_to_map() 414 unsigned int num_maps) in pinconf_generic_dt_free_map() argument [all …]
|
H A D | pinctrl-utils.h | 19 unsigned int *num_maps, unsigned int reserve); 22 unsigned int *num_maps, const char *group, 26 unsigned int *num_maps, const char *group, 33 struct pinctrl_map *map, unsigned int num_maps);
|
H A D | pinctrl-k210.c | 762 unsigned int *num_maps) in k210_pinctrl_dt_subnode_to_map() argument 773 reserved_maps, num_maps, in k210_pinctrl_dt_subnode_to_map() 791 ret = pinctrl_utils_reserve_map(pctldev, map, reserved_maps, num_maps, in k210_pinctrl_dt_subnode_to_map() 813 num_maps, group_name, in k210_pinctrl_dt_subnode_to_map() 823 reserved_maps, num_maps, group_name, in k210_pinctrl_dt_subnode_to_map() 845 unsigned int *num_maps) in k210_pinctrl_dt_node_to_map() argument 852 *num_maps = 0; in k210_pinctrl_dt_node_to_map() 855 &reserved_maps, num_maps); in k210_pinctrl_dt_node_to_map() 861 &reserved_maps, num_maps); in k210_pinctrl_dt_node_to_map() 868 pinctrl_utils_free_map(pctldev, *map, *num_maps); in k210_pinctrl_dt_node_to_map()
|
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()
|
/linux/include/linux/pinctrl/ |
H A D | pinconf-generic.h | 199 unsigned int *reserved_maps, unsigned int *num_maps, 203 unsigned int *num_maps, enum pinctrl_map_type type); 205 struct pinctrl_map *map, unsigned int num_maps); 209 unsigned int *num_maps) in pinconf_generic_dt_node_to_map_group() argument 211 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_group() 217 unsigned int *num_maps) in pinconf_generic_dt_node_to_map_pin() argument 219 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_pin() 225 unsigned *num_maps) in pinconf_generic_dt_node_to_map_all() argument 231 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_all()
|
/linux/drivers/pinctrl/nomadik/ |
H A D | pinctrl-abx500.c | 695 unsigned *num_maps, const char *group, in abx500_dt_add_map_mux() argument 698 if (*num_maps == *reserved_maps) in abx500_dt_add_map_mux() 701 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in abx500_dt_add_map_mux() 702 (*map)[*num_maps].data.mux.group = group; in abx500_dt_add_map_mux() 703 (*map)[*num_maps].data.mux.function = function; in abx500_dt_add_map_mux() 704 (*num_maps)++; in abx500_dt_add_map_mux() 711 unsigned *num_maps, const char *group, in abx500_dt_add_map_configs() argument 716 if (*num_maps == *reserved_maps) in abx500_dt_add_map_configs() 723 (*map)[*num_maps].type = PIN_MAP_TYPE_CONFIGS_PIN; in abx500_dt_add_map_configs() 725 (*map)[*num_maps].data.configs.group_or_pin = group; in abx500_dt_add_map_configs() [all …]
|
H A D | pinctrl-nomadik.c | 580 unsigned int *num_maps, const char *group, in nmk_dt_add_map_mux() argument 583 if (*num_maps == *reserved_maps) in nmk_dt_add_map_mux() 586 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in nmk_dt_add_map_mux() 587 (*map)[*num_maps].data.mux.group = group; in nmk_dt_add_map_mux() 588 (*map)[*num_maps].data.mux.function = function; in nmk_dt_add_map_mux() 589 (*num_maps)++; in nmk_dt_add_map_mux() 596 unsigned int *num_maps, const char *group, in nmk_dt_add_map_configs() argument 601 if (*num_maps == *reserved_maps) in nmk_dt_add_map_configs() 608 (*map)[*num_maps].type = PIN_MAP_TYPE_CONFIGS_PIN; in nmk_dt_add_map_configs() 610 (*map)[*num_maps].data.configs.group_or_pin = group; in nmk_dt_add_map_configs() [all …]
|
/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-samsung.c | 78 unsigned *reserved_maps, unsigned *num_maps, in reserve_map() argument 82 unsigned new_num = *num_maps + reserve; in reserve_map() 101 unsigned *num_maps, const char *group, in add_map_mux() argument 104 if (WARN_ON(*num_maps == *reserved_maps)) in add_map_mux() 107 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in add_map_mux() 108 (*map)[*num_maps].data.mux.group = group; in add_map_mux() 109 (*map)[*num_maps].data.mux.function = function; in add_map_mux() 110 (*num_maps)++; in add_map_mux() 116 unsigned *reserved_maps, unsigned *num_maps, in add_map_configs() argument 122 if (WARN_ON(*num_maps == *reserved_maps)) in add_map_configs() [all …]
|
/linux/drivers/platform/x86/intel/pmc/ |
H A D | core_ssram.c | 47 int num_maps, mode_offset = 0; in pmc_core_get_lpm_req() local 53 num_maps = pmc->map->lpm_num_maps; in pmc_core_get_lpm_req() 54 lpm_size = LPM_MAX_NUM_MODES * num_maps; in pmc_core_get_lpm_req() 120 u32 *req_offset = pmc->lpm_req_regs + (mode * num_maps); in pmc_core_get_lpm_req() 123 for (m = 0; m < num_maps; m++) { in pmc_core_get_lpm_req()
|
/linux/drivers/pinctrl/renesas/ |
H A D | pinctrl.c | 101 unsigned int *num_maps, unsigned int *index) in sh_pfc_dt_subnode_to_map() argument 106 unsigned int nmaps = *num_maps; in sh_pfc_dt_subnode_to_map() 177 *num_maps = nmaps; in sh_pfc_dt_subnode_to_map() 221 struct pinctrl_map *map, unsigned num_maps) in sh_pfc_dt_free_map() argument 228 for (i = 0; i < num_maps; ++i) { in sh_pfc_dt_free_map() 239 struct pinctrl_map **map, unsigned *num_maps) in sh_pfc_dt_node_to_map() argument 247 *num_maps = 0; in sh_pfc_dt_node_to_map() 251 ret = sh_pfc_dt_subnode_to_map(pctldev, child, map, num_maps, in sh_pfc_dt_node_to_map() 258 if (*num_maps == 0) { in sh_pfc_dt_node_to_map() 259 ret = sh_pfc_dt_subnode_to_map(pctldev, np, map, num_maps, in sh_pfc_dt_node_to_map() [all …]
|
H A D | pinctrl-rzv2m.c | 215 unsigned int *num_maps, in rzv2m_dt_subnode_to_map() argument 220 unsigned int nmaps = *num_maps; in rzv2m_dt_subnode_to_map() 280 *num_maps = nmaps; in rzv2m_dt_subnode_to_map() 369 unsigned int num_maps) in rzv2m_dt_free_map() argument 376 for (i = 0; i < num_maps; ++i) { in rzv2m_dt_free_map() 387 unsigned int *num_maps) in rzv2m_dt_node_to_map() argument 394 *num_maps = 0; in rzv2m_dt_node_to_map() 399 num_maps, &index); in rzv2m_dt_node_to_map() 404 if (*num_maps == 0) { in rzv2m_dt_node_to_map() 406 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 410 *num_maps = 0; in rzn1_dt_node_to_map() 412 ret = rzn1_dt_node_to_map_one(pctldev, np, map, num_maps); in rzn1_dt_node_to_map() 417 ret = rzn1_dt_node_to_map_one(pctldev, child, map, num_maps); in rzn1_dt_node_to_map()
|
/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() 429 (*map)[*num_maps].data.mux.function = mtk_gpio_functions[fnum]; 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 481 err = pinctrl_utils_reserve_map(pctldev, map, reserved_maps, num_maps, in mtk_pctrl_dt_subnode_to_map() 510 reserved_maps, num_maps); in mtk_pctrl_dt_subnode_to_map() 517 num_maps, in mtk_pctrl_dt_subnode_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() 516 (*map)[*num_maps].data.mux.function = mtk_gpio_functions[fnum]; 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() [all …]
|
/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()
|
/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()
|
/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 …]
|
/linux/rust/kernel/block/mq/ |
H A D | tag_set.rs | 40 num_maps: u32, in new() 57 nr_maps: num_maps, in new()
|
/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()
|
/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 195 *num_maps = 0; in tegra_pinctrl_dt_node_to_map() 199 &reserved_maps, num_maps); in tegra_pinctrl_dt_node_to_map() 202 *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 243 *num_maps = 0; in tegra_xusb_padctl_dt_node_to_map() 249 num_maps); in tegra_xusb_padctl_dt_node_to_map()
|
/linux/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 557 unsigned *num_maps) in stm32_pctrl_dt_node_to_map_func() argument 559 if (*num_maps == *reserved_maps) in stm32_pctrl_dt_node_to_map_func() 562 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in stm32_pctrl_dt_node_to_map_func() 563 (*map)[*num_maps].data.mux.group = grp->name; in stm32_pctrl_dt_node_to_map_func() 568 (*map)[*num_maps].data.mux.function = stm32_gpio_functions[fnum]; in stm32_pctrl_dt_node_to_map_func() 569 (*num_maps)++; in stm32_pctrl_dt_node_to_map_func() 578 unsigned *num_maps) in stm32_pctrl_dt_subnode_to_map() argument 623 reserved_maps, num_maps, reserve); in stm32_pctrl_dt_subnode_to_map() 650 reserved_maps, num_maps); in stm32_pctrl_dt_subnode_to_map() 656 reserved_maps, num_maps, grp->name, in stm32_pctrl_dt_subnode_to_map() [all …]
|
/linux/drivers/pinctrl/nxp/ |
H A D | pinctrl-s32cc.c | 222 unsigned int *num_maps, in s32_dt_group_node_to_map() argument 247 ret = pinctrl_utils_reserve_map(pctldev, map, reserved_maps, num_maps, in s32_dt_group_node_to_map() 252 ret = pinctrl_utils_add_map_mux(pctldev, map, reserved_maps, num_maps, in s32_dt_group_node_to_map() 259 num_maps, np->name, cfgs, n_cfgs, in s32_dt_group_node_to_map() 273 unsigned int *num_maps) in s32_dt_node_to_map() argument 280 *num_maps = 0; in s32_dt_node_to_map() 284 &reserved_maps, num_maps, in s32_dt_node_to_map() 287 pinctrl_utils_free_map(pctldev, *map, *num_maps); in s32_dt_node_to_map()
|