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

12

/linux-master/drivers/pinctrl/
H A Dpinctrl-utils.c26 struct pinctrl_map *new_map; local
31 new_map = krealloc_array(*map, new_num, sizeof(*new_map), GFP_KERNEL);
32 if (!new_map) {
37 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map));
39 *map = new_map;
H A Dpinctrl-at91.c294 struct pinctrl_map *new_map; local
311 new_map = devm_kcalloc(pctldev->dev, map_num, sizeof(*new_map),
313 if (!new_map)
316 *map = new_map;
322 devm_kfree(pctldev->dev, new_map);
325 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP;
326 new_map[0].data.mux.function = parent->name;
327 new_map[0].data.mux.group = np->name;
331 new_map
[all...]
H A Dpinctrl-st.c814 struct pinctrl_map *new_map; local
825 new_map = devm_kcalloc(dev, map_num, sizeof(*new_map), GFP_KERNEL);
826 if (!new_map)
831 devm_kfree(dev, new_map);
835 *map = new_map;
837 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP;
838 new_map[0].data.mux.function = parent->name;
839 new_map[0].data.mux.group = np->name;
843 new_map
[all...]
H A Dpinctrl-rockchip.c328 struct pinctrl_map *new_map; local
345 new_map = kcalloc(map_num, sizeof(*new_map), GFP_KERNEL);
346 if (!new_map)
349 *map = new_map;
355 kfree(new_map);
358 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP;
359 new_map[0].data.mux.function = parent->name;
360 new_map[0].data.mux.group = np->name;
364 new_map
[all...]
/linux-master/drivers/md/
H A Ddm-ima.h63 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) {} argument
H A Ddm-ioctl.c53 struct dm_table *new_map; member in struct:hash_cell
245 hc->new_map = NULL;
328 if (hc->new_map)
329 table = hc->new_map;
804 table = hc->new_map;
955 if (hc->new_map)
1155 struct dm_table *new_map, *old_map = NULL; local
1169 new_map = hc->new_map;
1170 hc->new_map
[all...]
H A Ddm-ima.c605 void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map) argument
662 if (new_map) {
/linux-master/kernel/
H A Duser_namespace.c734 static bool mappings_overlap(struct uid_gid_map *new_map, argument
745 for (idx = 0; idx < new_map->nr_extents; idx++) {
750 if (new_map->nr_extents <= UID_GID_MAP_MAX_BASE_EXTENTS)
751 prev = &new_map->extent[idx];
753 prev = &new_map->forward[idx];
873 * @new_map: requested idmap
883 struct uid_gid_map *new_map)
889 for (idx = 0; idx < new_map->nr_extents; idx++) {
890 if (new_map->nr_extents <= UID_GID_MAP_MAX_BASE_EXTENTS)
891 extent0 = &new_map
881 verify_root_map(const struct file *file, struct user_namespace *map_ns, struct uid_gid_map *new_map) argument
931 struct uid_gid_map new_map; local
1163 new_idmap_permitted(const struct file *file, struct user_namespace *ns, int cap_setid, struct uid_gid_map *new_map) argument
[all...]
/linux-master/drivers/input/rmi4/
H A Drmi_smbus.c84 struct mapping_table_entry new_map; local
109 memset(&new_map, 0, sizeof(new_map));
110 new_map.rmiaddr = cpu_to_le16(rmiaddr);
111 new_map.readcount = bytecount;
112 new_map.flags = !isread ? RMI_SMB2_MAP_FLAGS_WE : 0;
114 retval = smb_block_write(xport, i + 0x80, &new_map, sizeof(new_map));
120 memset(&new_map, 0, sizeof(new_map));
[all...]
/linux-master/drivers/pinctrl/freescale/
H A Dpinctrl-imx1-core.c228 struct pinctrl_map *new_map; local
247 new_map = kmalloc_array(map_num, sizeof(struct pinctrl_map),
249 if (!new_map)
252 *map = new_map;
258 kfree(new_map);
261 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP;
262 new_map[0].data.mux.function = parent->name;
263 new_map[0].data.mux.group = np->name;
267 new_map++;
269 new_map[
[all...]
H A Dpinctrl-mxs.c67 struct pinctrl_map *new_map; local
95 new_map = kcalloc(new_num, sizeof(*new_map), GFP_KERNEL);
96 if (!new_map)
100 new_map[i].type = PIN_MAP_TYPE_MUX_GROUP;
101 new_map[i].data.mux.function = np->name;
110 new_map[i].data.mux.group = group;
121 new_map[i].type = PIN_MAP_TYPE_CONFIGS_GROUP;
122 new_map[i].data.configs.group_or_pin = purecfg ? np->name :
124 new_map[
[all...]
H A Dpinctrl-imx.c65 struct pinctrl_map *new_map; local
91 new_map = kmalloc_array(map_num, sizeof(struct pinctrl_map),
93 if (!new_map)
96 *map = new_map;
102 kfree(new_map);
105 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP;
106 new_map[0].data.mux.function = parent->name;
107 new_map[0].data.mux.group = np->name;
111 new_map++;
123 new_map[
[all...]
/linux-master/drivers/nvdimm/
H A Dbtt.h87 __le32 new_map; member in struct:log_entry
H A Dbtt.c489 ent.new_map = cpu_to_le32(arena->external_nlba + i);
553 log_newmap = ent_lba(le32_to_cpu(log_new.new_map));
596 le32_to_cpu(log_new.new_map), 0, 0, 0);
607 return (ent->lba == 0) && (ent->old_map == 0) && (ent->new_map == 0)
1221 u32 new_map; local
1241 ret = btt_map_read(arena, premap, &new_map, &new_t,
1246 if ((postmap == new_map) && (t_flag == new_t) &&
1250 postmap = new_map;
1383 log.new_map = cpu_to_le32(new_postmap);
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cotable.c409 struct ttm_bo_kmap_obj old_map, new_map; local
462 ret = ttm_bo_kmap(bo, i, 1, &new_map);
467 memcpy(ttm_kmap_obj_virtual(&new_map, &dummy),
470 ttm_bo_kunmap(&new_map);
/linux-master/tools/perf/util/
H A Dmaps.h75 int maps__merge_in(struct maps *kmaps, struct map *new_map);
H A Dmaps.c1108 int maps__merge_in(struct maps *kmaps, struct map *new_map) argument
1126 first_after_ = first_ending_after(kmaps, new_map);
1130 map__start(kmaps_maps_by_address[first_after_]) >= map__end(new_map)) {
1133 return maps__insert(kmaps, new_map);
1142 first_after_ = first_ending_after(kmaps, new_map);
1147 map__start(kmaps_maps_by_address[first_after_]) >= map__end(new_map)) {
1149 int ret = __maps__insert(kmaps, new_map);
1153 /* Array to merge into, possibly 1 more for the sake of new_map. */
1169 /* Copy entries before the new_map that can't overlap. */
1176 __maps__insert(kmaps, new_map);
[all...]
H A Dsymbol.c1346 struct map *new_map = new_node->map; local
1347 u64 new_size = map__size(new_map);
1349 if (!(stext >= map__start(new_map) && stext < map__end(new_map)))
1359 replacement_map = new_map;
1371 struct map *new_map = new_node->map; local
1375 if (RC_CHK_EQUAL(new_map, replacement_map)) {
1378 map__set_start(map, map__start(new_map));
1379 map__set_end(map, map__end(new_map));
1380 map__set_pgoff(map, map__pgoff(new_map));
[all...]
/linux-master/arch/powerpc/platforms/embedded6xx/
H A Dmpc10x.h150 uint new_map,
/linux-master/drivers/remoteproc/
H A Dremoteproc_virtio.c31 const struct bus_dma_region *map = from->dma_range_map, *new_map, *r; local
40 new_map = kmemdup(map, array_size(num_ranges + 1, sizeof(*map)),
42 if (!new_map)
44 to->dma_range_map = new_map;
/linux-master/drivers/pinctrl/samsung/
H A Dpinctrl-samsung.c82 struct pinctrl_map *new_map; local
87 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL);
88 if (!new_map)
91 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map));
93 *map = new_map;
/linux-master/drivers/tty/vt/
H A Dkeyboard.c1946 unsigned short *key_map, *new_map, oldval; local
1977 new_map = kmalloc(sizeof(plain_map), GFP_KERNEL);
1978 if (!new_map)
1989 kfree(new_map);
1992 key_maps[map] = new_map;
1993 key_map = new_map;
1999 kfree(new_map);
/linux-master/kernel/bpf/
H A Dbpf_struct_ops.c1094 static int bpf_struct_ops_map_link_update(struct bpf_link *link, struct bpf_map *new_map, argument
1103 st_map = container_of(new_map, struct bpf_struct_ops_map, map);
1105 if (!bpf_struct_ops_valid_to_reg(new_map))
1130 bpf_map_inc(new_map);
1131 rcu_assign_pointer(st_link->map, new_map);
/linux-master/fs/hpfs/
H A Dalloc.c328 new_map:
348 goto new_map;
/linux-master/drivers/ata/
H A Dsata_mv.c2473 unsigned int old_map, new_map; local
2488 new_map = old_map | mv_get_err_pmp_map(ap);
2490 if (old_map != new_map) {
2491 pp->delayed_eh_pmp_map = new_map;
2492 mv_pmp_eh_prep(ap, new_map & ~old_map);
2494 failed_links = hweight16(new_map);

Completed in 266 milliseconds

12