Home
last modified time | relevance | path

Searched refs:new_map (Results 1 – 20 of 20) sorted by relevance

/linux-4.1.27/drivers/pinctrl/
Dpinctrl-utils.c37 struct pinctrl_map *new_map; in pinctrl_utils_reserve_map() local
42 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in pinctrl_utils_reserve_map()
43 if (!new_map) { in pinctrl_utils_reserve_map()
48 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in pinctrl_utils_reserve_map()
50 *map = new_map; in pinctrl_utils_reserve_map()
Dpinctrl-tz1090-pdc.c294 struct pinctrl_map *new_map; in reserve_map() local
299 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map()
300 if (!new_map) { in reserve_map()
305 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map()
307 *map = new_map; in reserve_map()
Dpinctrl-st.c878 struct pinctrl_map *new_map; in st_pctl_dt_node_to_map() local
890 new_map = devm_kzalloc(pctldev->dev, in st_pctl_dt_node_to_map()
891 sizeof(*new_map) * map_num, GFP_KERNEL); in st_pctl_dt_node_to_map()
892 if (!new_map) in st_pctl_dt_node_to_map()
897 devm_kfree(pctldev->dev, new_map); in st_pctl_dt_node_to_map()
901 *map = new_map; in st_pctl_dt_node_to_map()
903 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in st_pctl_dt_node_to_map()
904 new_map[0].data.mux.function = parent->name; in st_pctl_dt_node_to_map()
905 new_map[0].data.mux.group = np->name; in st_pctl_dt_node_to_map()
909 new_map++; in st_pctl_dt_node_to_map()
[all …]
Dpinctrl-at91.c255 struct pinctrl_map *new_map; in at91_dt_node_to_map() local
272 new_map = devm_kzalloc(pctldev->dev, sizeof(*new_map) * map_num, GFP_KERNEL); in at91_dt_node_to_map()
273 if (!new_map) in at91_dt_node_to_map()
276 *map = new_map; in at91_dt_node_to_map()
282 devm_kfree(pctldev->dev, new_map); in at91_dt_node_to_map()
285 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in at91_dt_node_to_map()
286 new_map[0].data.mux.function = parent->name; in at91_dt_node_to_map()
287 new_map[0].data.mux.group = np->name; in at91_dt_node_to_map()
291 new_map++; in at91_dt_node_to_map()
293 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in at91_dt_node_to_map()
[all …]
Dpinctrl-rockchip.c312 struct pinctrl_map *new_map; in rockchip_dt_node_to_map() local
329 new_map = devm_kzalloc(pctldev->dev, sizeof(*new_map) * map_num, in rockchip_dt_node_to_map()
331 if (!new_map) in rockchip_dt_node_to_map()
334 *map = new_map; in rockchip_dt_node_to_map()
340 devm_kfree(pctldev->dev, new_map); in rockchip_dt_node_to_map()
343 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in rockchip_dt_node_to_map()
344 new_map[0].data.mux.function = parent->name; in rockchip_dt_node_to_map()
345 new_map[0].data.mux.group = np->name; in rockchip_dt_node_to_map()
349 new_map++; in rockchip_dt_node_to_map()
351 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in rockchip_dt_node_to_map()
[all …]
Dpinctrl-tz1090.c1038 struct pinctrl_map *new_map; in reserve_map() local
1043 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map()
1044 if (!new_map) { in reserve_map()
1049 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map()
1051 *map = new_map; in reserve_map()
/linux-4.1.27/kernel/
Duser_namespace.c557 static bool mappings_overlap(struct uid_gid_map *new_map, in mappings_overlap() argument
568 for (idx = 0; idx < new_map->nr_extents; idx++) { in mappings_overlap()
573 prev = &new_map->extent[idx]; in mappings_overlap()
601 struct uid_gid_map new_map; in map_write() local
661 new_map.nr_extents = 0; in map_write()
663 extent = &new_map.extent[new_map.nr_extents]; in map_write()
709 if (mappings_overlap(&new_map, extent)) in map_write()
712 new_map.nr_extents++; in map_write()
715 if ((new_map.nr_extents == UID_GID_MAP_MAX_EXTENTS) && in map_write()
720 if (new_map.nr_extents == 0) in map_write()
[all …]
/linux-4.1.27/drivers/pinctrl/freescale/
Dpinctrl-mxs.c72 struct pinctrl_map *new_map; in mxs_dt_node_to_map() local
100 new_map = kzalloc(sizeof(*new_map) * new_num, GFP_KERNEL); in mxs_dt_node_to_map()
101 if (!new_map) in mxs_dt_node_to_map()
105 new_map[i].type = PIN_MAP_TYPE_MUX_GROUP; in mxs_dt_node_to_map()
106 new_map[i].data.mux.function = np->name; in mxs_dt_node_to_map()
115 new_map[i].data.mux.group = group; in mxs_dt_node_to_map()
126 new_map[i].type = PIN_MAP_TYPE_CONFIGS_GROUP; in mxs_dt_node_to_map()
127 new_map[i].data.configs.group_or_pin = purecfg ? np->name : in mxs_dt_node_to_map()
129 new_map[i].data.configs.configs = pconfig; in mxs_dt_node_to_map()
130 new_map[i].data.configs.num_configs = 1; in mxs_dt_node_to_map()
[all …]
Dpinctrl-imx1-core.c231 struct pinctrl_map *new_map; in imx1_dt_node_to_map() local
250 new_map = kmalloc(sizeof(struct pinctrl_map) * map_num, GFP_KERNEL); in imx1_dt_node_to_map()
251 if (!new_map) in imx1_dt_node_to_map()
254 *map = new_map; in imx1_dt_node_to_map()
260 kfree(new_map); in imx1_dt_node_to_map()
263 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx1_dt_node_to_map()
264 new_map[0].data.mux.function = parent->name; in imx1_dt_node_to_map()
265 new_map[0].data.mux.group = np->name; in imx1_dt_node_to_map()
269 new_map++; in imx1_dt_node_to_map()
271 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx1_dt_node_to_map()
[all …]
Dpinctrl-imx.c108 struct pinctrl_map *new_map; in imx_dt_node_to_map() local
129 new_map = kmalloc(sizeof(struct pinctrl_map) * map_num, GFP_KERNEL); in imx_dt_node_to_map()
130 if (!new_map) in imx_dt_node_to_map()
133 *map = new_map; in imx_dt_node_to_map()
139 kfree(new_map); in imx_dt_node_to_map()
142 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx_dt_node_to_map()
143 new_map[0].data.mux.function = parent->name; in imx_dt_node_to_map()
144 new_map[0].data.mux.group = np->name; in imx_dt_node_to_map()
148 new_map++; in imx_dt_node_to_map()
151 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx_dt_node_to_map()
[all …]
/linux-4.1.27/drivers/md/
Ddm-ioctl.c36 struct dm_table *new_map; member
190 hc->new_map = NULL; in alloc_cell()
271 if (hc->new_map) in __hash_remove()
272 table = hc->new_map; in __hash_remove()
660 table = hc->new_map; in dm_get_inactive_table()
804 if (hc->new_map) in __find_device_hash_cell()
1003 struct dm_table *new_map, *old_map = NULL; in do_resume() local
1016 new_map = hc->new_map; in do_resume()
1017 hc->new_map = NULL; in do_resume()
1023 if (new_map) { in do_resume()
[all …]
/linux-4.1.27/tools/perf/util/
Dsymbol.c1101 struct map *old_map, *new_map, *replacement_map = NULL; in dso__load_kcore() local
1156 list_for_each_entry(new_map, &md.maps, node) { in dso__load_kcore()
1157 if (sym && sym->start >= new_map->start && in dso__load_kcore()
1158 sym->start < new_map->end) { in dso__load_kcore()
1159 replacement_map = new_map; in dso__load_kcore()
1169 new_map = list_entry(md.maps.next, struct map, node); in dso__load_kcore()
1170 list_del(&new_map->node); in dso__load_kcore()
1171 if (new_map == replacement_map) { in dso__load_kcore()
1172 map->start = new_map->start; in dso__load_kcore()
1173 map->end = new_map->end; in dso__load_kcore()
[all …]
/linux-4.1.27/arch/powerpc/oprofile/cell/
Dspu_task_sync.c194 struct vma_to_fileoffset_map *new_map; in prepare_cached_spu_info() local
219 new_map = create_vma_map(spu, objectId); in prepare_cached_spu_info()
220 if (!new_map) { in prepare_cached_spu_info()
229 info->map = new_map; in prepare_cached_spu_info()
/linux-4.1.27/arch/blackfin/kernel/
Dsetup.c87 static struct bfin_memmap_entry new_map[BFIN_MEMMAP_MAX] __initdata; variable
422 new_map[new_entry].size = in sanitize_memmap()
425 if (new_map[new_entry].size != 0) in sanitize_memmap()
430 new_map[new_entry].addr = change_point[chgidx]->addr; in sanitize_memmap()
431 new_map[new_entry].type = current_type; in sanitize_memmap()
440 memcpy(map, new_map, new_nr*sizeof(struct bfin_memmap_entry)); in sanitize_memmap()
/linux-4.1.27/drivers/pinctrl/samsung/
Dpinctrl-samsung.c97 struct pinctrl_map *new_map; in reserve_map() local
102 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map()
103 if (!new_map) { in reserve_map()
108 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map()
110 *map = new_map; in reserve_map()
/linux-4.1.27/arch/powerpc/platforms/embedded6xx/
Dmpc10x.h160 uint new_map,
/linux-4.1.27/drivers/tty/vt/
Dkeyboard.c1773 ushort *key_map, *new_map, val, ov; in vt_do_kdsk_ioctl() local
1827 new_map = kmalloc(sizeof(plain_map), GFP_KERNEL); in vt_do_kdsk_ioctl()
1828 if (!new_map) in vt_do_kdsk_ioctl()
1838 kfree(new_map); in vt_do_kdsk_ioctl()
1841 key_maps[s] = new_map; in vt_do_kdsk_ioctl()
1842 key_map = new_map; in vt_do_kdsk_ioctl()
1848 kfree(new_map); in vt_do_kdsk_ioctl()
/linux-4.1.27/fs/hpfs/
Dalloc.c327 new_map: in hpfs_free_sectors()
347 goto new_map; in hpfs_free_sectors()
/linux-4.1.27/net/core/
Ddev.c1966 struct xps_map *new_map; in expand_xps_map() local
1985 new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len), GFP_KERNEL, in expand_xps_map()
1987 if (!new_map) in expand_xps_map()
1991 new_map->queues[i] = map->queues[i]; in expand_xps_map()
1992 new_map->alloc_len = alloc_len; in expand_xps_map()
1993 new_map->len = pos; in expand_xps_map()
1995 return new_map; in expand_xps_map()
2002 struct xps_map *map, *new_map; in netif_set_xps_queue() local
2066 new_map = xmap_dereference(new_dev_maps->cpu_map[cpu]); in netif_set_xps_queue()
2068 if (map && map != new_map) in netif_set_xps_queue()
[all …]
/linux-4.1.27/drivers/ata/
Dsata_mv.c2522 unsigned int old_map, new_map; in mv_handle_fbs_ncq_dev_err() local
2537 new_map = old_map | mv_get_err_pmp_map(ap); in mv_handle_fbs_ncq_dev_err()
2539 if (old_map != new_map) { in mv_handle_fbs_ncq_dev_err()
2540 pp->delayed_eh_pmp_map = new_map; in mv_handle_fbs_ncq_dev_err()
2541 mv_pmp_eh_prep(ap, new_map & ~old_map); in mv_handle_fbs_ncq_dev_err()
2543 failed_links = hweight16(new_map); in mv_handle_fbs_ncq_dev_err()