/linux-6.6.21/kernel/ |
D | user_namespace.c | 731 static bool mappings_overlap(struct uid_gid_map *new_map, in mappings_overlap() argument 742 for (idx = 0; idx < new_map->nr_extents; idx++) { in mappings_overlap() 747 if (new_map->nr_extents <= UID_GID_MAP_MAX_BASE_EXTENTS) in mappings_overlap() 748 prev = &new_map->extent[idx]; in mappings_overlap() 750 prev = &new_map->forward[idx]; in mappings_overlap() 880 struct uid_gid_map *new_map) in verify_root_map() argument 886 for (idx = 0; idx < new_map->nr_extents; idx++) { in verify_root_map() 887 if (new_map->nr_extents <= UID_GID_MAP_MAX_BASE_EXTENTS) in verify_root_map() 888 extent0 = &new_map->extent[idx]; in verify_root_map() 890 extent0 = &new_map->forward[idx]; in verify_root_map() [all …]
|
/linux-6.6.21/drivers/pinctrl/ |
D | pinctrl-utils.c | 24 struct pinctrl_map *new_map; in pinctrl_utils_reserve_map() local 29 new_map = krealloc_array(*map, new_num, sizeof(*new_map), GFP_KERNEL); in pinctrl_utils_reserve_map() 30 if (!new_map) { in pinctrl_utils_reserve_map() 35 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in pinctrl_utils_reserve_map() 37 *map = new_map; in pinctrl_utils_reserve_map()
|
D | pinctrl-st.c | 822 struct pinctrl_map *new_map; in st_pctl_dt_node_to_map() local 833 new_map = devm_kcalloc(dev, map_num, sizeof(*new_map), GFP_KERNEL); in st_pctl_dt_node_to_map() 834 if (!new_map) in st_pctl_dt_node_to_map() 839 devm_kfree(dev, new_map); in st_pctl_dt_node_to_map() 843 *map = new_map; in st_pctl_dt_node_to_map() 845 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in st_pctl_dt_node_to_map() 846 new_map[0].data.mux.function = parent->name; in st_pctl_dt_node_to_map() 847 new_map[0].data.mux.group = np->name; in st_pctl_dt_node_to_map() 851 new_map++; in st_pctl_dt_node_to_map() 853 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in st_pctl_dt_node_to_map() [all …]
|
D | pinctrl-at91.c | 295 struct pinctrl_map *new_map; in at91_dt_node_to_map() local 312 new_map = devm_kcalloc(pctldev->dev, map_num, sizeof(*new_map), in at91_dt_node_to_map() 314 if (!new_map) in at91_dt_node_to_map() 317 *map = new_map; in at91_dt_node_to_map() 323 devm_kfree(pctldev->dev, new_map); in at91_dt_node_to_map() 326 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in at91_dt_node_to_map() 327 new_map[0].data.mux.function = parent->name; in at91_dt_node_to_map() 328 new_map[0].data.mux.group = np->name; in at91_dt_node_to_map() 332 new_map++; in at91_dt_node_to_map() 334 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in at91_dt_node_to_map() [all …]
|
D | pinctrl-rockchip.c | 328 struct pinctrl_map *new_map; in rockchip_dt_node_to_map() local 345 new_map = kcalloc(map_num, sizeof(*new_map), GFP_KERNEL); in rockchip_dt_node_to_map() 346 if (!new_map) in rockchip_dt_node_to_map() 349 *map = new_map; in rockchip_dt_node_to_map() 355 kfree(new_map); in rockchip_dt_node_to_map() 358 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in rockchip_dt_node_to_map() 359 new_map[0].data.mux.function = parent->name; in rockchip_dt_node_to_map() 360 new_map[0].data.mux.group = np->name; in rockchip_dt_node_to_map() 364 new_map++; in rockchip_dt_node_to_map() 366 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in rockchip_dt_node_to_map() [all …]
|
/linux-6.6.21/drivers/input/rmi4/ |
D | rmi_smbus.c | 84 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-6.6.21/drivers/pinctrl/freescale/ |
D | pinctrl-mxs.c | 67 struct pinctrl_map *new_map; in mxs_dt_node_to_map() local 95 new_map = kcalloc(new_num, sizeof(*new_map), GFP_KERNEL); in mxs_dt_node_to_map() 96 if (!new_map) in mxs_dt_node_to_map() 100 new_map[i].type = PIN_MAP_TYPE_MUX_GROUP; in mxs_dt_node_to_map() 101 new_map[i].data.mux.function = np->name; in mxs_dt_node_to_map() 110 new_map[i].data.mux.group = group; in mxs_dt_node_to_map() 121 new_map[i].type = PIN_MAP_TYPE_CONFIGS_GROUP; in mxs_dt_node_to_map() 122 new_map[i].data.configs.group_or_pin = purecfg ? np->name : in mxs_dt_node_to_map() 124 new_map[i].data.configs.configs = pconfig; in mxs_dt_node_to_map() 125 new_map[i].data.configs.num_configs = 1; in mxs_dt_node_to_map() [all …]
|
D | pinctrl-imx1-core.c | 228 struct pinctrl_map *new_map; in imx1_dt_node_to_map() local 247 new_map = kmalloc_array(map_num, sizeof(struct pinctrl_map), in imx1_dt_node_to_map() 249 if (!new_map) in imx1_dt_node_to_map() 252 *map = new_map; in imx1_dt_node_to_map() 258 kfree(new_map); in imx1_dt_node_to_map() 261 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx1_dt_node_to_map() 262 new_map[0].data.mux.function = parent->name; in imx1_dt_node_to_map() 263 new_map[0].data.mux.group = np->name; in imx1_dt_node_to_map() 267 new_map++; in imx1_dt_node_to_map() 269 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx1_dt_node_to_map() [all …]
|
D | pinctrl-imx.c | 65 struct pinctrl_map *new_map; in imx_dt_node_to_map() local 91 new_map = kmalloc_array(map_num, sizeof(struct pinctrl_map), in imx_dt_node_to_map() 93 if (!new_map) in imx_dt_node_to_map() 96 *map = new_map; in imx_dt_node_to_map() 102 kfree(new_map); in imx_dt_node_to_map() 105 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx_dt_node_to_map() 106 new_map[0].data.mux.function = parent->name; in imx_dt_node_to_map() 107 new_map[0].data.mux.group = np->name; in imx_dt_node_to_map() 111 new_map++; in imx_dt_node_to_map() 123 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx_dt_node_to_map() [all …]
|
/linux-6.6.21/tools/perf/util/ |
D | symbol.c | 1278 int maps__merge_in(struct maps *kmaps, struct map *new_map) in maps__merge_in() argument 1288 if (map__end(new_map) < map__start(old_map) || in maps__merge_in() 1289 map__start(new_map) >= map__end(old_map)) in maps__merge_in() 1292 if (map__start(new_map) < map__start(old_map)) { in maps__merge_in() 1297 if (map__end(new_map) < map__end(old_map)) { in maps__merge_in() 1302 map__set_end(new_map, map__start(old_map)); in maps__merge_in() 1315 m->map = map__clone(new_map); in maps__merge_in() 1324 map__add_pgoff(new_map, map__end(old_map) - map__start(new_map)); in maps__merge_in() 1325 map__set_start(new_map, map__end(old_map)); in maps__merge_in() 1332 if (map__end(new_map) < map__end(old_map)) { in maps__merge_in() [all …]
|
D | maps.h | 132 int maps__merge_in(struct maps *kmaps, struct map *new_map);
|
/linux-6.6.21/drivers/md/ |
D | dm-ima.h | 63 void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map); 72 static inline void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map) {} in dm_ima_measure_on_table_clear() argument
|
D | dm-ioctl.c | 53 struct dm_table *new_map; member 245 hc->new_map = NULL; in alloc_cell() 328 if (hc->new_map) in __hash_remove() 329 table = hc->new_map; in __hash_remove() 804 table = hc->new_map; in dm_get_inactive_table() 955 if (hc->new_map) in __find_device_hash_cell() 1155 struct dm_table *new_map, *old_map = NULL; in do_resume() local 1169 new_map = hc->new_map; in do_resume() 1170 hc->new_map = NULL; in do_resume() 1176 if (new_map) { in do_resume() [all …]
|
D | dm-ima.c | 605 void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map) in dm_ima_measure_on_table_clear() argument 662 if (new_map) { in dm_ima_measure_on_table_clear()
|
/linux-6.6.21/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cotable.c | 409 struct ttm_bo_kmap_obj old_map, new_map; in vmw_cotable_resize() local 462 ret = ttm_bo_kmap(bo, i, 1, &new_map); in vmw_cotable_resize() 467 memcpy(ttm_kmap_obj_virtual(&new_map, &dummy), in vmw_cotable_resize() 470 ttm_bo_kunmap(&new_map); in vmw_cotable_resize()
|
/linux-6.6.21/drivers/remoteproc/ |
D | remoteproc_virtio.c | 31 const struct bus_dma_region *map = from->dma_range_map, *new_map, *r; in copy_dma_range_map() local 40 new_map = kmemdup(map, array_size(num_ranges + 1, sizeof(*map)), in copy_dma_range_map() 42 if (!new_map) in copy_dma_range_map() 44 to->dma_range_map = new_map; in copy_dma_range_map()
|
/linux-6.6.21/kernel/bpf/ |
D | bpf_struct_ops.c | 812 static int bpf_struct_ops_map_link_update(struct bpf_link *link, struct bpf_map *new_map, in bpf_struct_ops_map_link_update() argument 821 st_map = container_of(new_map, struct bpf_struct_ops_map, map); in bpf_struct_ops_map_link_update() 823 if (!bpf_struct_ops_valid_to_reg(new_map)) in bpf_struct_ops_map_link_update() 848 bpf_map_inc(new_map); in bpf_struct_ops_map_link_update() 849 rcu_assign_pointer(st_link->map, new_map); in bpf_struct_ops_map_link_update()
|
/linux-6.6.21/drivers/pinctrl/samsung/ |
D | pinctrl-samsung.c | 84 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-6.6.21/arch/powerpc/platforms/embedded6xx/ |
D | mpc10x.h | 150 uint new_map,
|
/linux-6.6.21/drivers/nvdimm/ |
D | btt.c | 488 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()
|
D | btt.h | 87 __le32 new_map; member
|
/linux-6.6.21/drivers/tty/vt/ |
D | keyboard.c | 1948 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-6.6.21/fs/hpfs/ |
D | alloc.c | 328 new_map: in hpfs_free_sectors() 348 goto new_map; in hpfs_free_sectors()
|
/linux-6.6.21/Documentation/driver-api/nvdimm/ |
D | btt.rst | 135 new_map The new postmap ABA. The map will up updated to reflect this 143 new_map' alternate new postmap entry
|
/linux-6.6.21/net/core/ |
D | dev.c | 2527 struct xps_map *new_map; in expand_xps_map() local 2549 new_map = kzalloc(XPS_MAP_SIZE(alloc_len), GFP_KERNEL); in expand_xps_map() 2551 new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len), GFP_KERNEL, in expand_xps_map() 2553 if (!new_map) in expand_xps_map() 2557 new_map->queues[i] = map->queues[i]; in expand_xps_map() 2558 new_map->alloc_len = alloc_len; in expand_xps_map() 2559 new_map->len = pos; in expand_xps_map() 2561 return new_map; in expand_xps_map() 2592 struct xps_map *map, *new_map; in __netif_set_xps_queue() local 2715 new_map = xmap_dereference(new_dev_maps->attr_map[tci]); in __netif_set_xps_queue() [all …]
|