Home
last modified time | relevance | path

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

/linux-4.4.14/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.c868 struct pinctrl_map *new_map; in st_pctl_dt_node_to_map() local
880 new_map = devm_kzalloc(pctldev->dev, in st_pctl_dt_node_to_map()
881 sizeof(*new_map) * map_num, GFP_KERNEL); in st_pctl_dt_node_to_map()
882 if (!new_map) in st_pctl_dt_node_to_map()
887 devm_kfree(pctldev->dev, new_map); in st_pctl_dt_node_to_map()
891 *map = new_map; in st_pctl_dt_node_to_map()
893 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in st_pctl_dt_node_to_map()
894 new_map[0].data.mux.function = parent->name; in st_pctl_dt_node_to_map()
895 new_map[0].data.mux.group = np->name; in st_pctl_dt_node_to_map()
899 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.c316 struct pinctrl_map *new_map; in rockchip_dt_node_to_map() local
333 new_map = devm_kzalloc(pctldev->dev, sizeof(*new_map) * map_num, in rockchip_dt_node_to_map()
335 if (!new_map) in rockchip_dt_node_to_map()
338 *map = new_map; in rockchip_dt_node_to_map()
344 devm_kfree(pctldev->dev, new_map); in rockchip_dt_node_to_map()
347 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in rockchip_dt_node_to_map()
348 new_map[0].data.mux.function = parent->name; in rockchip_dt_node_to_map()
349 new_map[0].data.mux.group = np->name; in rockchip_dt_node_to_map()
353 new_map++; in rockchip_dt_node_to_map()
355 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.4.14/kernel/
Duser_namespace.c558 static bool mappings_overlap(struct uid_gid_map *new_map, in mappings_overlap() argument
569 for (idx = 0; idx < new_map->nr_extents; idx++) { in mappings_overlap()
574 prev = &new_map->extent[idx]; in mappings_overlap()
602 struct uid_gid_map new_map; in map_write() local
662 new_map.nr_extents = 0; in map_write()
664 extent = &new_map.extent[new_map.nr_extents]; in map_write()
710 if (mappings_overlap(&new_map, extent)) in map_write()
713 new_map.nr_extents++; in map_write()
716 if ((new_map.nr_extents == UID_GID_MAP_MAX_EXTENTS) && in map_write()
721 if (new_map.nr_extents == 0) in map_write()
[all …]
/linux-4.4.14/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.c110 struct pinctrl_map *new_map; in imx_dt_node_to_map() local
131 new_map = kmalloc(sizeof(struct pinctrl_map) * map_num, GFP_KERNEL); in imx_dt_node_to_map()
132 if (!new_map) in imx_dt_node_to_map()
135 *map = new_map; in imx_dt_node_to_map()
141 kfree(new_map); in imx_dt_node_to_map()
144 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx_dt_node_to_map()
145 new_map[0].data.mux.function = parent->name; in imx_dt_node_to_map()
146 new_map[0].data.mux.group = np->name; in imx_dt_node_to_map()
150 new_map++; in imx_dt_node_to_map()
153 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx_dt_node_to_map()
[all …]
/linux-4.4.14/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.4.14/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.4.14/tools/perf/util/
Dsymbol.c1120 struct map *old_map, *new_map, *replacement_map = NULL; in dso__load_kcore() local
1178 list_for_each_entry(new_map, &md.maps, node) { in dso__load_kcore()
1179 if (sym && sym->start >= new_map->start && in dso__load_kcore()
1180 sym->start < new_map->end) { in dso__load_kcore()
1181 replacement_map = new_map; in dso__load_kcore()
1191 new_map = list_entry(md.maps.next, struct map, node); in dso__load_kcore()
1192 list_del_init(&new_map->node); in dso__load_kcore()
1193 if (new_map == replacement_map) { in dso__load_kcore()
1194 map->start = new_map->start; in dso__load_kcore()
1195 map->end = new_map->end; in dso__load_kcore()
[all …]
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cotable.c396 struct ttm_bo_kmap_obj old_map, new_map; in vmw_cotable_resize() local
444 ret = ttm_bo_kmap(bo, i, 1, &new_map); in vmw_cotable_resize()
449 memcpy(ttm_kmap_obj_virtual(&new_map, &dummy), in vmw_cotable_resize()
452 ttm_bo_kunmap(&new_map); in vmw_cotable_resize()
/linux-4.4.14/drivers/nvdimm/
Dbtt.c431 log.new_map = cpu_to_le32(arena->external_nlba + i); in btt_log_init()
470 if (log_new.old_map == log_new.new_map) in btt_freelist_init()
478 if ((le32_to_cpu(log_new.new_map) != map_entry) && in btt_freelist_init()
485 le32_to_cpu(log_new.new_map), 0, 0); in btt_freelist_init()
991 u32 new_map; in btt_read_pg() local
1010 ret = btt_map_read(arena, premap, &new_map, &t_flag, in btt_read_pg()
1015 if (postmap == new_map) in btt_read_pg()
1018 postmap = new_map; in btt_read_pg()
1108 log.new_map = cpu_to_le32(new_postmap); in btt_write_pg()
Dbtt.h50 __le32 new_map; member
/linux-4.4.14/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.4.14/drivers/pinctrl/samsung/
Dpinctrl-samsung.c92 struct pinctrl_map *new_map; in reserve_map() local
97 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map()
98 if (!new_map) { in reserve_map()
103 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map()
105 *map = new_map; in reserve_map()
/linux-4.4.14/arch/powerpc/platforms/embedded6xx/
Dmpc10x.h160 uint new_map,
/linux-4.4.14/drivers/tty/vt/
Dkeyboard.c1877 ushort *key_map, *new_map, val, ov; in vt_do_kdsk_ioctl() local
1931 new_map = kmalloc(sizeof(plain_map), GFP_KERNEL); in vt_do_kdsk_ioctl()
1932 if (!new_map) in vt_do_kdsk_ioctl()
1942 kfree(new_map); in vt_do_kdsk_ioctl()
1945 key_maps[s] = new_map; in vt_do_kdsk_ioctl()
1946 key_map = new_map; in vt_do_kdsk_ioctl()
1952 kfree(new_map); in vt_do_kdsk_ioctl()
/linux-4.4.14/fs/hpfs/
Dalloc.c327 new_map: in hpfs_free_sectors()
347 goto new_map; in hpfs_free_sectors()
/linux-4.4.14/net/core/
Ddev.c1998 struct xps_map *new_map; in expand_xps_map() local
2017 new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len), GFP_KERNEL, in expand_xps_map()
2019 if (!new_map) in expand_xps_map()
2023 new_map->queues[i] = map->queues[i]; in expand_xps_map()
2024 new_map->alloc_len = alloc_len; in expand_xps_map()
2025 new_map->len = pos; in expand_xps_map()
2027 return new_map; in expand_xps_map()
2034 struct xps_map *map, *new_map; in netif_set_xps_queue() local
2098 new_map = xmap_dereference(new_dev_maps->cpu_map[cpu]); in netif_set_xps_queue()
2100 if (map && map != new_map) in netif_set_xps_queue()
[all …]
/linux-4.4.14/Documentation/nvdimm/
Dbtt.txt127 new_map : The new postmap ABA. The map will up updated to reflect this
135 new_map': alternate new postmap entry
/linux-4.4.14/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()