/linux/drivers/pinctrl/ |
A D | pinctrl-utils.c | 33 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() 65 (*map)[*num_maps].data.mux.group = group; 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() 89 (*map)[*num_maps].type = type; in pinctrl_utils_add_map_configs() 93 (*num_maps)++; in pinctrl_utils_add_map_configs() [all …]
|
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 …]
|
A D | pinconf-generic.c | 294 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() 402 pinctrl_utils_free_map(pctldev, *map, *num_maps); in pinconf_generic_dt_node_to_map() 409 unsigned num_maps) in pinconf_generic_dt_free_map() argument [all …]
|
A D | pinctrl-utils.h | 27 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);
|
A D | pinctrl-lantiq.c | 47 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()
|
A D | pinctrl-k210.c | 762 unsigned int *num_maps) in k210_pinctrl_dt_subnode_to_map() argument 775 reserved_maps, num_maps, in k210_pinctrl_dt_subnode_to_map() 793 ret = pinctrl_utils_reserve_map(pctldev, map, reserved_maps, num_maps, in k210_pinctrl_dt_subnode_to_map() 815 num_maps, group_name, in k210_pinctrl_dt_subnode_to_map() 825 reserved_maps, num_maps, group_name, in k210_pinctrl_dt_subnode_to_map() 847 unsigned int *num_maps) in k210_pinctrl_dt_node_to_map() argument 855 *num_maps = 0; in k210_pinctrl_dt_node_to_map() 858 &reserved_maps, num_maps); in k210_pinctrl_dt_node_to_map() 864 &reserved_maps, num_maps); in k210_pinctrl_dt_node_to_map() 871 pinctrl_utils_free_map(pctldev, *map, *num_maps); in k210_pinctrl_dt_node_to_map()
|
A D | pinctrl-apple-gpio.c | 97 unsigned *num_maps) in apple_gpio_dt_node_to_map() argument 107 *num_maps = 0; in apple_gpio_dt_node_to_map() 122 ret = pinctrl_utils_reserve_map(pctldev, map, &reserved_maps, num_maps, in apple_gpio_dt_node_to_map() 144 &reserved_maps, num_maps, in apple_gpio_dt_node_to_map() 152 pinctrl_utils_free_map(pctldev, *map, *num_maps); in apple_gpio_dt_node_to_map()
|
A D | core.h | 182 unsigned num_maps; member 248 _i_ < _maps_node_->num_maps; \
|
A D | pinctrl-single.c | 317 struct pinctrl_map *map, unsigned num_maps) in pcs_dt_free_map() argument 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 1228 *num_maps = 1; in pcs_parse_bits_in_pinctrl_entry() 1266 *num_maps = 0; in pcs_dt_node_to_map() 1276 num_maps, pgnames); in pcs_dt_node_to_map() [all …]
|
/linux/include/linux/pinctrl/ |
A D | pinconf-generic.h | 188 unsigned *reserved_maps, unsigned *num_maps, 192 unsigned *num_maps, enum pinctrl_map_type type); 194 struct pinctrl_map *map, unsigned num_maps); 198 struct pinctrl_map **map, unsigned *num_maps) in pinconf_generic_dt_node_to_map_group() argument 200 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_group() 206 struct pinctrl_map **map, unsigned *num_maps) in pinconf_generic_dt_node_to_map_pin() argument 208 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_pin() 214 struct pinctrl_map **map, unsigned *num_maps) in pinconf_generic_dt_node_to_map_all() argument 220 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_all()
|
A D | pinctrl.h | 100 struct pinctrl_map **map, unsigned *num_maps); 102 struct pinctrl_map *map, unsigned num_maps);
|
A D | machine.h | 155 unsigned num_maps); 161 unsigned num_maps) in pinctrl_register_mappings() argument
|
/linux/drivers/pinctrl/nomadik/ |
A D | pinctrl-abx500.c | 690 if (*num_maps == *reserved_maps) in abx500_dt_add_map_mux() 696 (*num_maps)++; in abx500_dt_add_map_mux() 708 if (*num_maps == *reserved_maps) in abx500_dt_add_map_configs() 721 (*num_maps)++; in abx500_dt_add_map_configs() 743 unsigned *num_maps) in abx500_dt_subnode_to_map() argument 760 num_maps, ret); in abx500_dt_subnode_to_map() 766 num_maps, group, function); in abx500_dt_subnode_to_map() 783 num_maps, ret); in abx500_dt_subnode_to_map() 791 num_maps, gpio_name, configs, 1); in abx500_dt_subnode_to_map() 811 *num_maps = 0; in abx500_dt_node_to_map() [all …]
|
A D | pinctrl-nomadik.c | 1234 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() 1243 (*num_maps)++; in nmk_dt_add_map_mux() 1255 if (*num_maps == *reserved_maps) in nmk_dt_add_map_configs() 1268 (*num_maps)++; in nmk_dt_add_map_configs() 1391 unsigned *num_maps) in nmk_pinctrl_dt_subnode_to_map() argument 1410 num_maps, ret); in nmk_pinctrl_dt_subnode_to_map() 1435 num_maps, ret); in nmk_pinctrl_dt_subnode_to_map() 1443 num_maps, in nmk_pinctrl_dt_subnode_to_map() 1464 *num_maps = 0; in nmk_pinctrl_dt_node_to_map() [all …]
|
/linux/drivers/pinctrl/samsung/ |
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 …]
|
/linux/drivers/pinctrl/mediatek/ |
A D | pinctrl-paris.c | 365 unsigned *num_maps) in mtk_pctrl_dt_node_to_map_func() argument 369 if (*num_maps == *reserved_maps) in mtk_pctrl_dt_node_to_map_func() 372 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in mtk_pctrl_dt_node_to_map_func() 373 (*map)[*num_maps].data.mux.group = grp->name; in mtk_pctrl_dt_node_to_map_func() 383 (*num_maps)++; in mtk_pctrl_dt_node_to_map_func() 392 unsigned *num_maps) in mtk_pctrl_dt_subnode_to_map() argument 463 reserved_maps, num_maps); in mtk_pctrl_dt_subnode_to_map() 470 num_maps, in mtk_pctrl_dt_subnode_to_map() 490 unsigned *num_maps) in mtk_pctrl_dt_node_to_map() argument 497 *num_maps = 0; in mtk_pctrl_dt_node_to_map() [all …]
|
A D | pinctrl-mtk-common.c | 466 unsigned *num_maps) in mtk_pctrl_dt_node_to_map_func() argument 470 if (*num_maps == *reserved_maps) in mtk_pctrl_dt_node_to_map_func() 473 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in mtk_pctrl_dt_node_to_map_func() 474 (*map)[*num_maps].data.mux.group = grp->name; in mtk_pctrl_dt_node_to_map_func() 484 (*num_maps)++; in mtk_pctrl_dt_node_to_map_func() 493 unsigned *num_maps) in mtk_pctrl_dt_subnode_to_map() argument 537 reserved_maps, num_maps, reserve); in mtk_pctrl_dt_subnode_to_map() 566 reserved_maps, num_maps); in mtk_pctrl_dt_subnode_to_map() 572 reserved_maps, num_maps, grp->name, in mtk_pctrl_dt_subnode_to_map() 596 *num_maps = 0; in mtk_pctrl_dt_node_to_map() [all …]
|
/linux/drivers/pinctrl/renesas/ |
A D | pinctrl.c | 105 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() 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() 289 if (*num_maps) in sh_pfc_dt_node_to_map() [all …]
|
A D | pinctrl-rzg2l.c | 232 unsigned int *num_maps, in rzg2l_dt_subnode_to_map() argument 237 unsigned int nmaps = *num_maps; in rzg2l_dt_subnode_to_map() 296 *num_maps = nmaps; in rzg2l_dt_subnode_to_map() 369 unsigned int num_maps) in rzg2l_dt_free_map() argument 376 for (i = 0; i < num_maps; ++i) { in rzg2l_dt_free_map() 387 unsigned int *num_maps) in rzg2l_dt_node_to_map() argument 395 *num_maps = 0; in rzg2l_dt_node_to_map() 400 num_maps, &index); in rzg2l_dt_node_to_map() 407 if (*num_maps == 0) { in rzg2l_dt_node_to_map() 409 num_maps, &index); in rzg2l_dt_node_to_map() [all …]
|
A D | pinctrl-rzn1.c | 336 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()
|
/linux/drivers/thermal/intel/ |
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/ |
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/stm32/ |
A D | pinctrl-stm32.c | 543 unsigned *num_maps) in stm32_pctrl_dt_node_to_map_func() argument 545 if (*num_maps == *reserved_maps) in stm32_pctrl_dt_node_to_map_func() 548 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in stm32_pctrl_dt_node_to_map_func() 549 (*map)[*num_maps].data.mux.group = grp->name; in stm32_pctrl_dt_node_to_map_func() 555 (*num_maps)++; in stm32_pctrl_dt_node_to_map_func() 564 unsigned *num_maps) in stm32_pctrl_dt_subnode_to_map() argument 609 reserved_maps, num_maps, reserve); in stm32_pctrl_dt_subnode_to_map() 636 reserved_maps, num_maps); in stm32_pctrl_dt_subnode_to_map() 642 reserved_maps, num_maps, grp->name, in stm32_pctrl_dt_subnode_to_map() 664 *num_maps = 0; in stm32_pctrl_dt_node_to_map() [all …]
|
/linux/drivers/pinctrl/tegra/ |
A D | pinctrl-tegra.c | 103 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()
|
A D | pinctrl-tegra-xusb.c | 154 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()
|