Home
last modified time | relevance | path

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

/linux/kernel/
A Duser_namespace.c731 prev = &new_map->extent[idx]; in mappings_overlap()
911 struct uid_gid_map new_map; in map_write() local
1022 if (new_map.nr_extents == 0) in map_write()
1039 e = &new_map.extent[idx]; in map_write()
1041 e = &new_map.forward[idx]; in map_write()
1060 ret = sort_idmaps(&new_map); in map_write()
1067 new_map.nr_extents * sizeof(new_map.extent[0])); in map_write()
1079 kfree(new_map.forward); in map_write()
1080 kfree(new_map.reverse); in map_write()
1145 struct uid_gid_map *new_map) in new_idmap_permitted() argument
[all …]
/linux/drivers/pinctrl/
A Dpinctrl-utils.c37 struct pinctrl_map *new_map; in pinctrl_utils_reserve_map() local
42 new_map = krealloc_array(*map, new_num, sizeof(*new_map), 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()
A Dpinctrl-st.c817 struct pinctrl_map *new_map; in st_pctl_dt_node_to_map() local
829 new_map = devm_kcalloc(pctldev->dev, in st_pctl_dt_node_to_map()
830 map_num, sizeof(*new_map), GFP_KERNEL); in st_pctl_dt_node_to_map()
831 if (!new_map) in st_pctl_dt_node_to_map()
836 devm_kfree(pctldev->dev, new_map); in st_pctl_dt_node_to_map()
840 *map = new_map; in st_pctl_dt_node_to_map()
842 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in st_pctl_dt_node_to_map()
844 new_map[0].data.mux.group = np->name; in st_pctl_dt_node_to_map()
848 new_map++; in st_pctl_dt_node_to_map()
851 new_map[i].data.configs.group_or_pin = in st_pctl_dt_node_to_map()
[all …]
A Dpinctrl-at91.c277 struct pinctrl_map *new_map; in at91_dt_node_to_map() local
294 new_map = devm_kcalloc(pctldev->dev, map_num, sizeof(*new_map), in at91_dt_node_to_map()
296 if (!new_map) in at91_dt_node_to_map()
299 *map = new_map; in at91_dt_node_to_map()
305 devm_kfree(pctldev->dev, new_map); in at91_dt_node_to_map()
308 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in at91_dt_node_to_map()
309 new_map[0].data.mux.function = parent->name; in at91_dt_node_to_map()
310 new_map[0].data.mux.group = np->name; in at91_dt_node_to_map()
314 new_map++; in at91_dt_node_to_map()
317 new_map[i].data.configs.group_or_pin = in at91_dt_node_to_map()
[all …]
A Dpinctrl-rockchip.c288 struct pinctrl_map *new_map; in rockchip_dt_node_to_map() local
306 new_map = kcalloc(map_num, sizeof(*new_map), GFP_KERNEL); in rockchip_dt_node_to_map()
307 if (!new_map) in rockchip_dt_node_to_map()
310 *map = new_map; in rockchip_dt_node_to_map()
316 kfree(new_map); in rockchip_dt_node_to_map()
319 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in rockchip_dt_node_to_map()
320 new_map[0].data.mux.function = parent->name; in rockchip_dt_node_to_map()
321 new_map[0].data.mux.group = np->name; in rockchip_dt_node_to_map()
325 new_map++; in rockchip_dt_node_to_map()
327 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in rockchip_dt_node_to_map()
[all …]
/linux/drivers/input/rmi4/
A Drmi_smbus.c84 struct mapping_table_entry new_map; in rmi_smb_get_command_code() local
109 memset(&new_map, 0, sizeof(new_map)); in rmi_smb_get_command_code()
110 new_map.rmiaddr = cpu_to_le16(rmiaddr); in rmi_smb_get_command_code()
111 new_map.readcount = bytecount; in rmi_smb_get_command_code()
112 new_map.flags = !isread ? RMI_SMB2_MAP_FLAGS_WE : 0; in rmi_smb_get_command_code()
114 retval = smb_block_write(xport, i + 0x80, &new_map, sizeof(new_map)); in rmi_smb_get_command_code()
120 memset(&new_map, 0, sizeof(new_map)); in rmi_smb_get_command_code()
124 rmi_smb->mapping_table[i] = new_map; in rmi_smb_get_command_code()
/linux/drivers/pinctrl/freescale/
A Dpinctrl-mxs.c64 struct pinctrl_map *new_map; in mxs_dt_node_to_map() local
92 new_map = kcalloc(new_num, sizeof(*new_map), GFP_KERNEL); in mxs_dt_node_to_map()
93 if (!new_map) in mxs_dt_node_to_map()
97 new_map[i].type = PIN_MAP_TYPE_MUX_GROUP; in mxs_dt_node_to_map()
98 new_map[i].data.mux.function = np->name; in mxs_dt_node_to_map()
107 new_map[i].data.mux.group = group; in mxs_dt_node_to_map()
118 new_map[i].type = PIN_MAP_TYPE_CONFIGS_GROUP; in mxs_dt_node_to_map()
121 new_map[i].data.configs.configs = pconfig; in mxs_dt_node_to_map()
122 new_map[i].data.configs.num_configs = 1; in mxs_dt_node_to_map()
125 *map = new_map; in mxs_dt_node_to_map()
[all …]
A Dpinctrl-imx1-core.c225 struct pinctrl_map *new_map; in imx1_dt_node_to_map() local
246 if (!new_map) in imx1_dt_node_to_map()
249 *map = new_map; in imx1_dt_node_to_map()
255 kfree(new_map); in imx1_dt_node_to_map()
258 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx1_dt_node_to_map()
259 new_map[0].data.mux.function = parent->name; in imx1_dt_node_to_map()
260 new_map[0].data.mux.group = np->name; in imx1_dt_node_to_map()
264 new_map++; in imx1_dt_node_to_map()
266 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx1_dt_node_to_map()
267 new_map[j].data.configs.group_or_pin = in imx1_dt_node_to_map()
[all …]
A Dpinctrl-imx.c63 struct pinctrl_map *new_map; in imx_dt_node_to_map() local
91 if (!new_map) in imx_dt_node_to_map()
94 *map = new_map; in imx_dt_node_to_map()
100 kfree(new_map); in imx_dt_node_to_map()
103 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx_dt_node_to_map()
105 new_map[0].data.mux.group = np->name; in imx_dt_node_to_map()
109 new_map++; in imx_dt_node_to_map()
122 new_map[j].data.configs.group_or_pin = in imx_dt_node_to_map()
130 new_map[j].data.configs.configs = in imx_dt_node_to_map()
132 new_map[j].data.configs.num_configs = 2; in imx_dt_node_to_map()
[all …]
/linux/tools/perf/util/
A Dsymbol.c1248 new_map->pgoff += old_map->end - new_map->start; in maps__merge_in()
1261 map__put(new_map); in maps__merge_in()
1262 new_map = NULL; in maps__merge_in()
1269 new_map->pgoff += old_map->end - new_map->start; in maps__merge_in()
1282 if (new_map) { in maps__merge_in()
1283 maps__insert(kmaps, new_map); in maps__merge_in()
1284 map__put(new_map); in maps__merge_in()
1355 if (stext >= new_map->start && stext < new_map->end) { in dso__load_kcore()
1356 replacement_map = new_map; in dso__load_kcore()
1371 map->end = new_map->end; in dso__load_kcore()
[all …]
A Dmaps.h83 int maps__merge_in(struct maps *kmaps, struct map *new_map);
/linux/drivers/md/
A Ddm-ioctl.c49 struct dm_table *new_map; member
229 hc->new_map = NULL; in alloc_cell()
310 if (hc->new_map) in __hash_remove()
311 table = hc->new_map; in __hash_remove()
923 if (hc->new_map) in __find_device_hash_cell()
1137 new_map = hc->new_map; in do_resume()
1138 hc->new_map = NULL; in do_resume()
1144 if (new_map) { in do_resume()
1479 if (hc->new_map) in table_load()
1481 hc->new_map = t; in table_load()
[all …]
A Ddm-ima.h64 void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map);
73 static inline void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map) {} in dm_ima_measure_on_table_clear() argument
A Ddm-ima.c609 void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map) in dm_ima_measure_on_table_clear() argument
666 if (new_map) { in dm_ima_measure_on_table_clear()
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_cotable.c394 struct ttm_bo_kmap_obj old_map, new_map; in vmw_cotable_resize() local
442 ret = ttm_bo_kmap(bo, i, 1, &new_map); in vmw_cotable_resize()
447 memcpy(ttm_kmap_obj_virtual(&new_map, &dummy), in vmw_cotable_resize()
450 ttm_bo_kunmap(&new_map); in vmw_cotable_resize()
/linux/drivers/pinctrl/samsung/
A Dpinctrl-samsung.c84 struct pinctrl_map *new_map; in reserve_map() local
89 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map()
90 if (!new_map) in reserve_map()
93 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map()
95 *map = new_map; in reserve_map()
/linux/drivers/nvdimm/
A Dbtt.c489 ent.new_map = cpu_to_le32(arena->external_nlba + i); in btt_log_init()
553 log_newmap = ent_lba(le32_to_cpu(log_new.new_map)); in btt_freelist_init()
596 le32_to_cpu(log_new.new_map), 0, 0, 0); in btt_freelist_init()
607 return (ent->lba == 0) && (ent->old_map == 0) && (ent->new_map == 0) in ent_is_padding()
1229 u32 new_map; in btt_read_pg() local
1249 ret = btt_map_read(arena, premap, &new_map, &new_t, in btt_read_pg()
1254 if ((postmap == new_map) && (t_flag == new_t) && in btt_read_pg()
1258 postmap = new_map; in btt_read_pg()
1391 log.new_map = cpu_to_le32(new_postmap); in btt_write_pg()
A Dbtt.h87 __le32 new_map; member
/linux/arch/powerpc/platforms/embedded6xx/
A Dmpc10x.h150 uint new_map,
/linux/drivers/tty/vt/
A Dkeyboard.c1936 unsigned short *key_map, *new_map, oldval; in vt_kdskbent() local
1967 new_map = kmalloc(sizeof(plain_map), GFP_KERNEL); in vt_kdskbent()
1968 if (!new_map) in vt_kdskbent()
1979 kfree(new_map); in vt_kdskbent()
1982 key_maps[map] = new_map; in vt_kdskbent()
1983 key_map = new_map; in vt_kdskbent()
1989 kfree(new_map); in vt_kdskbent()
/linux/fs/hpfs/
A Dalloc.c328 new_map: in hpfs_free_sectors()
348 goto new_map; in hpfs_free_sectors()
/linux/drivers/remoteproc/
A Dremoteproc_core.c470 const struct bus_dma_region *map = from->dma_range_map, *new_map, *r; in copy_dma_range_map() local
479 new_map = kmemdup(map, array_size(num_ranges + 1, sizeof(*map)), in copy_dma_range_map()
481 if (!new_map) in copy_dma_range_map()
483 to->dma_range_map = new_map; in copy_dma_range_map()
/linux/Documentation/driver-api/nvdimm/
A Dbtt.rst135 new_map The new postmap ABA. The map will up updated to reflect this
143 new_map' alternate new postmap entry
/linux/net/core/
A Ddev.c2513 struct xps_map *new_map; in expand_xps_map() local
2535 new_map = kzalloc(XPS_MAP_SIZE(alloc_len), GFP_KERNEL); in expand_xps_map()
2539 if (!new_map) in expand_xps_map()
2543 new_map->queues[i] = map->queues[i]; in expand_xps_map()
2544 new_map->alloc_len = alloc_len; in expand_xps_map()
2545 new_map->len = pos; in expand_xps_map()
2547 return new_map; in expand_xps_map()
2578 struct xps_map *map, *new_map; in __netif_set_xps_queue() local
2700 if (map == new_map) in __netif_set_xps_queue()
2760 if (new_map && new_map != map) in __netif_set_xps_queue()
[all …]
/linux/drivers/ata/
A Dsata_mv.c2511 unsigned int old_map, new_map; in mv_handle_fbs_ncq_dev_err() local
2526 new_map = old_map | mv_get_err_pmp_map(ap); in mv_handle_fbs_ncq_dev_err()
2528 if (old_map != new_map) { in mv_handle_fbs_ncq_dev_err()
2529 pp->delayed_eh_pmp_map = new_map; in mv_handle_fbs_ncq_dev_err()
2530 mv_pmp_eh_prep(ap, new_map & ~old_map); in mv_handle_fbs_ncq_dev_err()
2532 failed_links = hweight16(new_map); in mv_handle_fbs_ncq_dev_err()

Completed in 122 milliseconds