Home
last modified time | relevance | path

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

/linux-5.19.10/kernel/
Duser_namespace.c726 static bool mappings_overlap(struct uid_gid_map *new_map, in mappings_overlap() argument
737 for (idx = 0; idx < new_map->nr_extents; idx++) { in mappings_overlap()
742 if (new_map->nr_extents <= UID_GID_MAP_MAX_BASE_EXTENTS) in mappings_overlap()
743 prev = &new_map->extent[idx]; in mappings_overlap()
745 prev = &new_map->forward[idx]; in mappings_overlap()
875 struct uid_gid_map *new_map) in verify_root_map() argument
881 for (idx = 0; idx < new_map->nr_extents; idx++) { in verify_root_map()
882 if (new_map->nr_extents <= UID_GID_MAP_MAX_BASE_EXTENTS) in verify_root_map()
883 extent0 = &new_map->extent[idx]; in verify_root_map()
885 extent0 = &new_map->forward[idx]; in verify_root_map()
[all …]
/linux-5.19.10/drivers/pinctrl/
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()
Dpinctrl-st.c818 struct pinctrl_map *new_map; in st_pctl_dt_node_to_map() local
829 new_map = devm_kcalloc(dev, map_num, sizeof(*new_map), GFP_KERNEL); in st_pctl_dt_node_to_map()
830 if (!new_map) in st_pctl_dt_node_to_map()
835 devm_kfree(dev, new_map); in st_pctl_dt_node_to_map()
839 *map = new_map; in st_pctl_dt_node_to_map()
841 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in st_pctl_dt_node_to_map()
842 new_map[0].data.mux.function = parent->name; in st_pctl_dt_node_to_map()
843 new_map[0].data.mux.group = np->name; in st_pctl_dt_node_to_map()
847 new_map++; in st_pctl_dt_node_to_map()
849 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in st_pctl_dt_node_to_map()
[all …]
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()
316 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in at91_dt_node_to_map()
[all …]
Dpinctrl-rockchip.c313 struct pinctrl_map *new_map; in rockchip_dt_node_to_map() local
330 new_map = kcalloc(map_num, sizeof(*new_map), GFP_KERNEL); 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 kfree(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 …]
/linux-5.19.10/drivers/input/rmi4/
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-5.19.10/drivers/pinctrl/freescale/
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()
119 new_map[i].data.configs.group_or_pin = purecfg ? np->name : 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()
[all …]
Dpinctrl-imx1-core.c225 struct pinctrl_map *new_map; in imx1_dt_node_to_map() local
244 new_map = kmalloc_array(map_num, sizeof(struct pinctrl_map), in imx1_dt_node_to_map()
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()
[all …]
Dpinctrl-imx.c63 struct pinctrl_map *new_map; in imx_dt_node_to_map() local
89 new_map = kmalloc_array(map_num, sizeof(struct pinctrl_map), in imx_dt_node_to_map()
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()
104 new_map[0].data.mux.function = parent->name; 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()
121 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx_dt_node_to_map()
[all …]
/linux-5.19.10/tools/perf/util/
Dsymbol.c1231 int maps__merge_in(struct maps *kmaps, struct map *new_map) in maps__merge_in() argument
1238 if (new_map->end < old_map->start || in maps__merge_in()
1239 new_map->start >= old_map->end) in maps__merge_in()
1242 if (new_map->start < old_map->start) { in maps__merge_in()
1247 if (new_map->end < old_map->end) { in maps__merge_in()
1252 new_map->end = old_map->start; in maps__merge_in()
1258 struct map *m = map__clone(new_map); in maps__merge_in()
1265 new_map->pgoff += old_map->end - new_map->start; in maps__merge_in()
1266 new_map->start = old_map->end; in maps__merge_in()
1273 if (new_map->end < old_map->end) { in maps__merge_in()
[all …]
Dmaps.h81 int maps__merge_in(struct maps *kmaps, struct map *new_map);
/linux-5.19.10/drivers/md/
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
Ddm-ioctl.c50 struct dm_table *new_map; member
230 hc->new_map = NULL; in alloc_cell()
311 if (hc->new_map) in __hash_remove()
312 table = hc->new_map; in __hash_remove()
780 table = hc->new_map; in dm_get_inactive_table()
930 if (hc->new_map) in __find_device_hash_cell()
1131 struct dm_table *new_map, *old_map = NULL; in do_resume() local
1144 new_map = hc->new_map; in do_resume()
1145 hc->new_map = NULL; in do_resume()
1151 if (new_map) { in do_resume()
[all …]
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-5.19.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cotable.c394 struct ttm_bo_kmap_obj old_map, new_map; in vmw_cotable_resize() local
438 ret = ttm_bo_kmap(bo, i, 1, &new_map); in vmw_cotable_resize()
443 memcpy(ttm_kmap_obj_virtual(&new_map, &dummy), in vmw_cotable_resize()
446 ttm_bo_kunmap(&new_map); in vmw_cotable_resize()
/linux-5.19.10/arch/powerpc/platforms/embedded6xx/
Dmpc10x.h150 uint new_map,
/linux-5.19.10/drivers/pinctrl/samsung/
Dpinctrl-samsung.c85 struct pinctrl_map *new_map; in reserve_map() local
90 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map()
91 if (!new_map) in reserve_map()
94 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map()
96 *map = new_map; in reserve_map()
/linux-5.19.10/drivers/nvdimm/
Dbtt.c488 ent.new_map = cpu_to_le32(arena->external_nlba + i); in btt_log_init()
552 log_newmap = ent_lba(le32_to_cpu(log_new.new_map)); in btt_freelist_init()
595 le32_to_cpu(log_new.new_map), 0, 0, 0); in btt_freelist_init()
606 return (ent->lba == 0) && (ent->old_map == 0) && (ent->new_map == 0) in ent_is_padding()
1226 u32 new_map; in btt_read_pg() local
1246 ret = btt_map_read(arena, premap, &new_map, &new_t, in btt_read_pg()
1251 if ((postmap == new_map) && (t_flag == new_t) && in btt_read_pg()
1255 postmap = new_map; in btt_read_pg()
1388 log.new_map = cpu_to_le32(new_postmap); in btt_write_pg()
Dbtt.h87 __le32 new_map; member
/linux-5.19.10/drivers/tty/vt/
Dkeyboard.c1948 unsigned short *key_map, *new_map, oldval; in vt_kdskbent() local
1979 new_map = kmalloc(sizeof(plain_map), GFP_KERNEL); in vt_kdskbent()
1980 if (!new_map) in vt_kdskbent()
1991 kfree(new_map); in vt_kdskbent()
1994 key_maps[map] = new_map; in vt_kdskbent()
1995 key_map = new_map; in vt_kdskbent()
2001 kfree(new_map); in vt_kdskbent()
/linux-5.19.10/fs/hpfs/
Dalloc.c328 new_map: in hpfs_free_sectors()
348 goto new_map; in hpfs_free_sectors()
/linux-5.19.10/drivers/remoteproc/
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-5.19.10/Documentation/driver-api/nvdimm/
Dbtt.rst135 new_map The new postmap ABA. The map will up updated to reflect this
143 new_map' alternate new postmap entry
/linux-5.19.10/net/core/
Ddev.c2484 struct xps_map *new_map; in expand_xps_map() local
2506 new_map = kzalloc(XPS_MAP_SIZE(alloc_len), GFP_KERNEL); in expand_xps_map()
2508 new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len), GFP_KERNEL, in expand_xps_map()
2510 if (!new_map) in expand_xps_map()
2514 new_map->queues[i] = map->queues[i]; in expand_xps_map()
2515 new_map->alloc_len = alloc_len; in expand_xps_map()
2516 new_map->len = pos; in expand_xps_map()
2518 return new_map; in expand_xps_map()
2549 struct xps_map *map, *new_map; in __netif_set_xps_queue() local
2670 new_map = xmap_dereference(new_dev_maps->attr_map[tci]); in __netif_set_xps_queue()
[all …]
/linux-5.19.10/drivers/ata/
Dsata_mv.c2504 unsigned int old_map, new_map; in mv_handle_fbs_ncq_dev_err() local
2519 new_map = old_map | mv_get_err_pmp_map(ap); in mv_handle_fbs_ncq_dev_err()
2521 if (old_map != new_map) { in mv_handle_fbs_ncq_dev_err()
2522 pp->delayed_eh_pmp_map = new_map; in mv_handle_fbs_ncq_dev_err()
2523 mv_pmp_eh_prep(ap, new_map & ~old_map); in mv_handle_fbs_ncq_dev_err()
2525 failed_links = hweight16(new_map); in mv_handle_fbs_ncq_dev_err()