/Linux-v5.4/drivers/pinctrl/ |
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() 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 …]
|
D | devicetree.c | 26 unsigned num_maps; member 30 struct pinctrl_map *map, unsigned num_maps) in dt_free_map() argument 35 ops->dt_free_map(pctldev, map, num_maps); in dt_free_map() 50 dt_map->num_maps); in pinctrl_dt_free_maps() 59 struct pinctrl_map *map, unsigned num_maps) in dt_remember_or_free_map() argument 65 for (i = 0; i < num_maps; i++) { in dt_remember_or_free_map() 75 dt_free_map(pctldev, map, num_maps); in dt_remember_or_free_map() 81 dt_map->num_maps = num_maps; in dt_remember_or_free_map() 84 return pinctrl_register_map(map, num_maps, false); in dt_remember_or_free_map() 102 unsigned num_maps; in dt_to_map_one_config() local [all …]
|
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);
|
D | pinconf-generic.c | 292 unsigned *reserved_maps, unsigned *num_maps, in pinconf_generic_dt_subnode_to_map() argument 345 num_maps, reserve); in pinconf_generic_dt_subnode_to_map() 352 reserved_maps, num_maps, group, in pinconf_generic_dt_subnode_to_map() 360 reserved_maps, num_maps, group, configs, in pinconf_generic_dt_subnode_to_map() 376 unsigned *num_maps, enum pinctrl_map_type type) in pinconf_generic_dt_node_to_map() argument 384 *num_maps = 0; in pinconf_generic_dt_node_to_map() 387 &reserved_maps, num_maps, type); in pinconf_generic_dt_node_to_map() 393 &reserved_maps, num_maps, type); in pinconf_generic_dt_node_to_map() 400 pinctrl_utils_free_map(pctldev, *map, *num_maps); in pinconf_generic_dt_node_to_map() 407 unsigned num_maps) in pinconf_generic_dt_free_map() argument [all …]
|
D | core.h | 182 unsigned num_maps; member 239 int pinctrl_register_map(const struct pinctrl_map *maps, unsigned num_maps, 252 _i_ < _maps_node_->num_maps; \
|
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()
|
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()
|
D | pinctrl-at91-pio4.c | 482 unsigned *num_maps) in atmel_pctl_dt_subnode_to_map() argument 517 ret = pinctrl_utils_reserve_map(pctldev, map, reserved_maps, num_maps, in atmel_pctl_dt_subnode_to_map() 534 pinctrl_utils_add_map_mux(pctldev, map, reserved_maps, num_maps, in atmel_pctl_dt_subnode_to_map() 539 reserved_maps, num_maps, group, in atmel_pctl_dt_subnode_to_map() 555 unsigned *num_maps) in atmel_pctl_dt_node_to_map() argument 562 *num_maps = 0; in atmel_pctl_dt_node_to_map() 571 &reserved_maps, num_maps); in atmel_pctl_dt_node_to_map() 575 &reserved_maps, num_maps); in atmel_pctl_dt_node_to_map() 584 pinctrl_utils_free_map(pctldev, *map, *num_maps); in atmel_pctl_dt_node_to_map()
|
D | pinctrl-single.c | 290 struct pinctrl_map *map, unsigned num_maps) in pcs_dt_free_map() argument 300 struct pinctrl_map **map, unsigned *num_maps); 983 unsigned *num_maps, in pcs_parse_one_pinctrl_entry() argument 1061 *num_maps = 2; in pcs_parse_one_pinctrl_entry() 1063 *num_maps = 1; in pcs_parse_one_pinctrl_entry() 1071 *num_maps = 1; in pcs_parse_one_pinctrl_entry() 1087 unsigned *num_maps, in pcs_parse_bits_in_pinctrl_entry() argument 1204 *num_maps = 1; in pcs_parse_bits_in_pinctrl_entry() 1211 *num_maps = 1; in pcs_parse_bits_in_pinctrl_entry() 1232 struct pinctrl_map **map, unsigned *num_maps) in pcs_dt_node_to_map() argument [all …]
|
D | pinctrl-rza2.c | 328 unsigned int *num_maps) in rza2_dt_node_to_map() argument 382 *num_maps = 0; in rza2_dt_node_to_map() 392 *num_maps = 1; in rza2_dt_node_to_map() 408 struct pinctrl_map *map, unsigned int num_maps) in rza2_dt_free_map() argument
|
/Linux-v5.4/include/linux/pinctrl/ |
D | pinconf-generic.h | 186 unsigned *reserved_maps, unsigned *num_maps, 190 unsigned *num_maps, enum pinctrl_map_type type); 192 struct pinctrl_map *map, unsigned num_maps); 196 struct pinctrl_map **map, unsigned *num_maps) in pinconf_generic_dt_node_to_map_group() argument 198 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_group() 204 struct pinctrl_map **map, unsigned *num_maps) in pinconf_generic_dt_node_to_map_pin() argument 206 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_pin() 212 struct pinctrl_map **map, unsigned *num_maps) in pinconf_generic_dt_node_to_map_all() argument 218 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_all()
|
D | pinctrl.h | 100 struct pinctrl_map **map, unsigned *num_maps); 102 struct pinctrl_map *map, unsigned num_maps);
|
D | machine.h | 155 unsigned num_maps); 160 unsigned num_maps) in pinctrl_register_mappings() argument
|
/Linux-v5.4/drivers/pinctrl/nomadik/ |
D | pinctrl-abx500.c | 687 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 …]
|
D | pinctrl-nomadik.c | 1272 unsigned *num_maps, const char *group, in nmk_dt_add_map_mux() argument 1275 if (*num_maps == *reserved_maps) in nmk_dt_add_map_mux() 1278 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in nmk_dt_add_map_mux() 1279 (*map)[*num_maps].data.mux.group = group; in nmk_dt_add_map_mux() 1280 (*map)[*num_maps].data.mux.function = function; in nmk_dt_add_map_mux() 1281 (*num_maps)++; in nmk_dt_add_map_mux() 1288 unsigned *num_maps, const char *group, in nmk_dt_add_map_configs() argument 1293 if (*num_maps == *reserved_maps) in nmk_dt_add_map_configs() 1301 (*map)[*num_maps].type = PIN_MAP_TYPE_CONFIGS_PIN; in nmk_dt_add_map_configs() 1303 (*map)[*num_maps].data.configs.group_or_pin = group; in nmk_dt_add_map_configs() [all …]
|
/Linux-v5.4/drivers/pinctrl/samsung/ |
D | pinctrl-samsung.c | 79 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 …]
|
/Linux-v5.4/drivers/pinctrl/mediatek/ |
D | pinctrl-paris.c | 402 unsigned *num_maps) in mtk_pctrl_dt_node_to_map_func() argument 406 if (*num_maps == *reserved_maps) in mtk_pctrl_dt_node_to_map_func() 409 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in mtk_pctrl_dt_node_to_map_func() 410 (*map)[*num_maps].data.mux.group = grp->name; in mtk_pctrl_dt_node_to_map_func() 419 (*map)[*num_maps].data.mux.function = mtk_gpio_functions[fnum]; in mtk_pctrl_dt_node_to_map_func() 420 (*num_maps)++; in mtk_pctrl_dt_node_to_map_func() 429 unsigned *num_maps) in mtk_pctrl_dt_subnode_to_map() argument 471 err = pinctrl_utils_reserve_map(pctldev, map, reserved_maps, num_maps, in mtk_pctrl_dt_subnode_to_map() 500 reserved_maps, num_maps); in mtk_pctrl_dt_subnode_to_map() 507 num_maps, in mtk_pctrl_dt_subnode_to_map() [all …]
|
D | pinctrl-mtk-common.c | 467 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 …]
|
/Linux-v5.4/drivers/pinctrl/sh-pfc/ |
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() 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 …]
|
/Linux-v5.4/drivers/thermal/intel/ |
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-v5.4/drivers/pinctrl/berlin/ |
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-v5.4/drivers/pinctrl/tegra/ |
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()
|
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()
|
/Linux-v5.4/drivers/pinctrl/stm32/ |
D | pinctrl-stm32.c | 485 unsigned *num_maps) in stm32_pctrl_dt_node_to_map_func() argument 487 if (*num_maps == *reserved_maps) in stm32_pctrl_dt_node_to_map_func() 490 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in stm32_pctrl_dt_node_to_map_func() 491 (*map)[*num_maps].data.mux.group = grp->name; in stm32_pctrl_dt_node_to_map_func() 499 (*map)[*num_maps].data.mux.function = stm32_gpio_functions[fnum]; in stm32_pctrl_dt_node_to_map_func() 500 (*num_maps)++; in stm32_pctrl_dt_node_to_map_func() 509 unsigned *num_maps) in stm32_pctrl_dt_subnode_to_map() argument 554 reserved_maps, num_maps, reserve); in stm32_pctrl_dt_subnode_to_map() 582 reserved_maps, num_maps); in stm32_pctrl_dt_subnode_to_map() 588 reserved_maps, num_maps, grp->name, in stm32_pctrl_dt_subnode_to_map() [all …]
|
/Linux-v5.4/drivers/pinctrl/spear/ |
D | pinctrl-spear.c | 149 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
|