Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/pinctrl/
H A Dpinctrl-utils.c26 struct pinctrl_map *new_map; in pinctrl_utils_reserve_map() local
31 new_map = krealloc_array(*map, new_num, sizeof(*new_map), GFP_KERNEL); in pinctrl_utils_reserve_map()
32 if (!new_map) { in pinctrl_utils_reserve_map()
37 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in pinctrl_utils_reserve_map()
39 *map = new_map; in pinctrl_utils_reserve_map()
H A Dpinctrl-k230.c196 struct pinctrl_map *new_map; in k230_dt_node_to_map() local
213 new_map = kcalloc(map_num, sizeof(*new_map), GFP_KERNEL); in k230_dt_node_to_map()
214 if (!new_map) in k230_dt_node_to_map()
216 *map = new_map; in k230_dt_node_to_map()
223 new_map[idx].type = PIN_MAP_TYPE_MUX_GROUP; in k230_dt_node_to_map()
224 new_map[idx].data.mux.group = grp->name; in k230_dt_node_to_map()
225 new_map[idx].data.mux.function = np_config->name; in k230_dt_node_to_map()
229 new_map[idx].type = PIN_MAP_TYPE_CONFIGS_PIN; in k230_dt_node_to_map()
230 new_map[idx].data.configs.group_or_pin = in k230_dt_node_to_map()
232 new_map[idx].data.configs.configs = in k230_dt_node_to_map()
[all …]
H A Dpinctrl-st.c814 struct pinctrl_map *new_map; in st_pctl_dt_node_to_map() local
825 new_map = devm_kcalloc(dev, map_num, sizeof(*new_map), GFP_KERNEL); in st_pctl_dt_node_to_map()
826 if (!new_map) in st_pctl_dt_node_to_map()
831 devm_kfree(dev, new_map); in st_pctl_dt_node_to_map()
835 *map = new_map; in st_pctl_dt_node_to_map()
837 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in st_pctl_dt_node_to_map()
838 new_map[0].data.mux.function = parent->name; in st_pctl_dt_node_to_map()
839 new_map[0].data.mux.group = np->name; in st_pctl_dt_node_to_map()
843 new_map++; in st_pctl_dt_node_to_map()
846 new_map[i].data.configs.group_or_pin = in st_pctl_dt_node_to_map()
[all …]
H A Dpinctrl-at91.c294 struct pinctrl_map *new_map; in at91_dt_node_to_map() local
311 new_map = devm_kcalloc(pctldev->dev, map_num, sizeof(*new_map), in at91_dt_node_to_map()
313 if (!new_map) in at91_dt_node_to_map()
316 *map = new_map; in at91_dt_node_to_map()
322 devm_kfree(pctldev->dev, new_map); in at91_dt_node_to_map()
325 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in at91_dt_node_to_map()
326 new_map[0].data.mux.function = parent->name; in at91_dt_node_to_map()
327 new_map[0].data.mux.group = np->name; in at91_dt_node_to_map()
331 new_map++; in at91_dt_node_to_map()
334 new_map[i].data.configs.group_or_pin = in at91_dt_node_to_map()
[all …]
/linux-6.15/kernel/
H A Duser_namespace.c759 prev = &new_map->extent[idx]; in mappings_overlap()
938 struct uid_gid_map new_map; in map_write() local
1049 if (new_map.nr_extents == 0) in map_write()
1066 e = &new_map.extent[idx]; in map_write()
1068 e = &new_map.forward[idx]; in map_write()
1087 ret = sort_idmaps(&new_map); in map_write()
1094 new_map.nr_extents * sizeof(new_map.extent[0])); in map_write()
1106 kfree(new_map.forward); in map_write()
1107 kfree(new_map.reverse); in map_write()
1172 struct uid_gid_map *new_map) in new_idmap_permitted() argument
[all …]
/linux-6.15/drivers/input/rmi4/
H 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-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dfd_array.c10 static inline int new_map(void) in new_map() function
123 map_fd = new_map(); in load_test_prog()
175 extra_fds[0] = new_map(); in check_fd_array_cnt__fd_array_ok()
178 extra_fds[1] = new_map(); in check_fd_array_cnt__fd_array_ok()
214 extra_fds[0] = extra_fds[2] = new_map(); in check_fd_array_cnt__duplicated_maps()
217 extra_fds[1] = extra_fds[3] = new_map(); in check_fd_array_cnt__duplicated_maps()
253 extra_fds[0] = new_map(); in check_fd_array_cnt__referenced_maps_in_fd_array()
357 extra_fds[0] = new_map(); in check_fd_array_cnt__fd_array_with_trash()
406 extra_fds[i] = new_map(); in check_fd_array_cnt__fd_array_too_big()
/linux-6.15/drivers/pinctrl/freescale/
H A Dpinctrl-mxs.c67 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()
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()
128 *map = new_map; in mxs_dt_node_to_map()
[all …]
H A Dpinctrl-imx-scmi.c60 struct pinctrl_map *new_map; in pinctrl_scmi_imx_dt_node_to_map() local
95 new_map = kmalloc_array(map_num, sizeof(struct pinctrl_map), in pinctrl_scmi_imx_dt_node_to_map()
97 if (!new_map) in pinctrl_scmi_imx_dt_node_to_map()
100 *map = new_map; in pinctrl_scmi_imx_dt_node_to_map()
135 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in pinctrl_scmi_imx_dt_node_to_map()
136 new_map[i].data.configs.group_or_pin = pin_get_name(pctldev, pin_id); in pinctrl_scmi_imx_dt_node_to_map()
137 new_map[i].data.configs.configs = configs; in pinctrl_scmi_imx_dt_node_to_map()
138 new_map[i].data.configs.num_configs = ncfg; in pinctrl_scmi_imx_dt_node_to_map()
H A Dpinctrl-imx1-core.c228 struct pinctrl_map *new_map; in imx1_dt_node_to_map() local
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()
270 new_map[j].data.configs.group_or_pin = in imx1_dt_node_to_map()
[all …]
H A Dpinctrl-imx.c65 struct pinctrl_map *new_map; in imx_dt_node_to_map() local
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()
107 new_map[0].data.mux.group = np->name; in imx_dt_node_to_map()
111 new_map++; in imx_dt_node_to_map()
124 new_map[j].data.configs.group_or_pin = in imx_dt_node_to_map()
132 new_map[j].data.configs.configs = in imx_dt_node_to_map()
134 new_map[j].data.configs.num_configs = 2; in imx_dt_node_to_map()
[all …]
/linux-6.15/drivers/md/
H A Ddm-ioctl.c245 hc->new_map = NULL; in alloc_cell()
328 if (hc->new_map) in __hash_remove()
329 table = hc->new_map; in __hash_remove()
955 if (hc->new_map) in __find_device_hash_cell()
1169 new_map = hc->new_map; in do_resume()
1176 if (new_map) { in do_resume()
1190 hc->new_map = new_map; in do_resume()
1196 if (new_map) { in do_resume()
1574 if (hc->new_map) in table_load()
1576 hc->new_map = t; in table_load()
[all …]
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) {} in dm_ima_measure_on_table_clear() argument
/linux-6.15/drivers/pinctrl/nuvoton/
H A Dpinctrl-ma35.c192 struct pinctrl_map *new_map; in ma35_pinctrl_dt_node_to_map_func() local
209 new_map = kcalloc(map_num, sizeof(*new_map), GFP_KERNEL); in ma35_pinctrl_dt_node_to_map_func()
210 if (!new_map) in ma35_pinctrl_dt_node_to_map_func()
213 *map = new_map; in ma35_pinctrl_dt_node_to_map_func()
222 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in ma35_pinctrl_dt_node_to_map_func()
223 new_map[0].data.mux.function = parent->name; in ma35_pinctrl_dt_node_to_map_func()
224 new_map[0].data.mux.group = np->name; in ma35_pinctrl_dt_node_to_map_func()
227 new_map++; in ma35_pinctrl_dt_node_to_map_func()
229 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in ma35_pinctrl_dt_node_to_map_func()
231 new_map[i].data.configs.configs = setting[i].configs; in ma35_pinctrl_dt_node_to_map_func()
[all …]
/linux-6.15/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cotable.c409 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.15/drivers/remoteproc/
H A Dremoteproc_virtio.c31 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.15/tools/perf/util/
H A Dmaps.c1228 int maps__merge_in(struct maps *kmaps, struct map *new_map) in maps__merge_in() argument
1246 first_after_ = first_ending_after(kmaps, new_map); in maps__merge_in()
1250 map__start(kmaps_maps_by_address[first_after_]) >= map__end(new_map)) { in maps__merge_in()
1253 return maps__insert(kmaps, new_map); in maps__merge_in()
1262 first_after_ = first_ending_after(kmaps, new_map); in maps__merge_in()
1267 map__start(kmaps_maps_by_address[first_after_]) >= map__end(new_map)) { in maps__merge_in()
1269 int ret = __maps__insert(kmaps, new_map); in maps__merge_in()
1297 __maps__insert(kmaps, new_map); in maps__merge_in()
H A Dmaps.h75 int maps__merge_in(struct maps *kmaps, struct map *new_map);
/linux-6.15/arch/powerpc/platforms/embedded6xx/
H A Dmpc10x.h150 uint new_map,
/linux-6.15/drivers/nvdimm/
H A Dbtt.c490 ent.new_map = cpu_to_le32(arena->external_nlba + i); in btt_log_init()
554 log_newmap = ent_lba(le32_to_cpu(log_new.new_map)); in btt_freelist_init()
597 le32_to_cpu(log_new.new_map), 0, 0, 0); in btt_freelist_init()
608 return (ent->lba == 0) && (ent->old_map == 0) && (ent->new_map == 0) in ent_is_padding()
1222 u32 new_map; in btt_read_pg() local
1242 ret = btt_map_read(arena, premap, &new_map, &new_t, in btt_read_pg()
1247 if ((postmap == new_map) && (t_flag == new_t) && in btt_read_pg()
1251 postmap = new_map; in btt_read_pg()
1384 log.new_map = cpu_to_le32(new_postmap); in btt_write_pg()
H A Dbtt.h87 __le32 new_map; member
/linux-6.15/sound/usb/
H A Dfcp.c657 s16 *new_map __free(kfree) = NULL; in fcp_ioctl_set_meter_map()
661 new_map = kmalloc_array(map.map_size, sizeof(s16), GFP_KERNEL); in fcp_ioctl_set_meter_map()
662 if (!new_map) in fcp_ioctl_set_meter_map()
678 private->meter_level_map = new_map; in fcp_ioctl_set_meter_map()
681 new_map = NULL; in fcp_ioctl_set_meter_map()
/linux-6.15/drivers/pinctrl/samsung/
H A Dpinctrl-samsung.c83 struct pinctrl_map *new_map; in reserve_map() local
88 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in reserve_map()
89 if (!new_map) in reserve_map()
92 memset(new_map + old_num, 0, (new_num - old_num) * sizeof(*new_map)); in reserve_map()
94 *map = new_map; in reserve_map()
/linux-6.15/drivers/tty/vt/
H A Dkeyboard.c1944 unsigned short *key_map, *new_map, oldval; in vt_kdskbent() local
1975 new_map = kmalloc(sizeof(plain_map), GFP_KERNEL); in vt_kdskbent()
1976 if (!new_map) in vt_kdskbent()
1987 kfree(new_map); in vt_kdskbent()
1990 key_maps[map] = new_map; in vt_kdskbent()
1991 key_map = new_map; in vt_kdskbent()
1997 kfree(new_map); in vt_kdskbent()
/linux-6.15/kernel/bpf/
H A Dbpf_struct_ops.c1231 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
1240 st_map = container_of(new_map, struct bpf_struct_ops_map, map); in bpf_struct_ops_map_link_update()
1242 if (!bpf_struct_ops_valid_to_reg(new_map)) in bpf_struct_ops_map_link_update()
1271 bpf_map_inc(new_map); in bpf_struct_ops_map_link_update()
1272 rcu_assign_pointer(st_link->map, new_map); in bpf_struct_ops_map_link_update()

12