Lines Matching refs:map
288 static int reserve_map(struct device *dev, struct pinctrl_map **map, in reserve_map() argument
299 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map()
307 *map = new_map; in reserve_map()
313 static int add_map_mux(struct pinctrl_map **map, unsigned int *reserved_maps, in add_map_mux() argument
320 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in add_map_mux()
321 (*map)[*num_maps].data.mux.group = group; in add_map_mux()
322 (*map)[*num_maps].data.mux.function = function; in add_map_mux()
347 struct pinctrl_map **map, in add_map_configs() argument
373 (*map)[*num_maps].type = type; in add_map_configs()
374 (*map)[*num_maps].data.configs.group_or_pin = group; in add_map_configs()
375 (*map)[*num_maps].data.configs.configs = dup_configs; in add_map_configs()
376 (*map)[*num_maps].data.configs.num_configs = num_configs; in add_map_configs()
383 struct pinctrl_map *map, in tz1090_pdc_pinctrl_dt_free_map() argument
389 if (map[i].type == PIN_MAP_TYPE_CONFIGS_GROUP) in tz1090_pdc_pinctrl_dt_free_map()
390 kfree(map[i].data.configs.configs); in tz1090_pdc_pinctrl_dt_free_map()
392 kfree(map); in tz1090_pdc_pinctrl_dt_free_map()
397 struct pinctrl_map **map, in tz1090_pdc_pinctrl_dt_subnode_to_map() argument
434 ret = reserve_map(dev, map, reserved_maps, num_maps, reserve); in tz1090_pdc_pinctrl_dt_subnode_to_map()
440 ret = add_map_mux(map, reserved_maps, num_maps, in tz1090_pdc_pinctrl_dt_subnode_to_map()
447 ret = add_map_configs(dev, map, reserved_maps, in tz1090_pdc_pinctrl_dt_subnode_to_map()
464 struct pinctrl_map **map, in tz1090_pdc_pinctrl_dt_node_to_map() argument
472 *map = NULL; in tz1090_pdc_pinctrl_dt_node_to_map()
477 map, &reserved_maps, in tz1090_pdc_pinctrl_dt_node_to_map()
480 tz1090_pdc_pinctrl_dt_free_map(pctldev, *map, in tz1090_pdc_pinctrl_dt_node_to_map()
773 u32 *mask, u32 *shift, const int **map) in tz1090_pdc_pinconf_group_reg() argument
790 *map = tz1090_pdc_boolean_map; in tz1090_pdc_pinconf_group_reg()
795 *map = tz1090_pdc_dr_map; in tz1090_pdc_pinconf_group_reg()
800 *map = tz1090_pdc_boolean_map; in tz1090_pdc_pinconf_group_reg()
821 const int *map; in tz1090_pdc_pinconf_group_get() local
825 ®, &width, &mask, &shift, &map); in tz1090_pdc_pinconf_group_get()
831 arg = map[(val & mask) >> shift]; in tz1090_pdc_pinconf_group_get()
854 const int *map; in tz1090_pdc_pinconf_group_set() local
866 &map); in tz1090_pdc_pinconf_group_set()
885 if (map[i] == arg || (map[i] == -EINVAL && !arg)) { in tz1090_pdc_pinconf_group_set()