| /linux/kernel/ |
| H A D | user_namespace.c | 745 static bool mappings_overlap(struct uid_gid_map *new_map, in mappings_overlap() argument 756 for (idx = 0; idx < new_map->nr_extents; idx++) { in mappings_overlap() 761 if (new_map->nr_extents <= UID_GID_MAP_MAX_BASE_EXTENTS) in mappings_overlap() 762 prev = &new_map->extent[idx]; in mappings_overlap() 764 prev = &new_map->forward[idx]; in mappings_overlap() 892 struct uid_gid_map *new_map) in verify_root_map() argument 898 for (idx = 0; idx < new_map->nr_extents; idx++) { in verify_root_map() 899 if (new_map->nr_extents <= UID_GID_MAP_MAX_BASE_EXTENTS) in verify_root_map() 900 extent0 = &new_map->extent[idx]; in verify_root_map() 902 extent0 = &new_map->forward[idx]; in verify_root_map() [all …]
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-utils.c | 26 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 D | pinctrl-k230.c | 197 struct pinctrl_map *new_map; in k230_dt_node_to_map() local 214 new_map = kzalloc_objs(*new_map, map_num); in k230_dt_node_to_map() 215 if (!new_map) in k230_dt_node_to_map() 217 *map = new_map; in k230_dt_node_to_map() 224 new_map[idx].type = PIN_MAP_TYPE_MUX_GROUP; in k230_dt_node_to_map() 225 new_map[idx].data.mux.group = grp->name; in k230_dt_node_to_map() 226 new_map[idx].data.mux.function = np_config->name; in k230_dt_node_to_map() 230 new_map[idx].type = PIN_MAP_TYPE_CONFIGS_PIN; in k230_dt_node_to_map() 231 new_map[idx].data.configs.group_or_pin = in k230_dt_node_to_map() 233 new_map[idx].data.configs.configs = in k230_dt_node_to_map() [all …]
|
| H A D | pinctrl-at91.c | 294 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() 333 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in at91_dt_node_to_map() [all …]
|
| H A D | pinctrl-rockchip.c | 401 struct pinctrl_map *new_map; in rockchip_dt_node_to_map() local 418 new_map = kzalloc_objs(*new_map, map_num); in rockchip_dt_node_to_map() 419 if (!new_map) in rockchip_dt_node_to_map() 422 *map = new_map; in rockchip_dt_node_to_map() 428 kfree(new_map); in rockchip_dt_node_to_map() 431 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in rockchip_dt_node_to_map() 432 new_map[0].data.mux.function = parent->name; in rockchip_dt_node_to_map() 433 new_map[0].data.mux.group = np->name; in rockchip_dt_node_to_map() 437 new_map++; in rockchip_dt_node_to_map() 439 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in rockchip_dt_node_to_map() [all …]
|
| /linux/drivers/input/rmi4/ |
| H A 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/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fd_array.c | 10 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/drivers/pinctrl/freescale/ |
| H A D | pinctrl-mxs.c | 67 struct pinctrl_map *new_map; in mxs_dt_node_to_map() local 95 new_map = kzalloc_objs(*new_map, new_num); 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 …]
|
| H A D | pinctrl-imx-scmi.c | 63 struct pinctrl_map *new_map; in pinctrl_scmi_imx_dt_node_to_map() local 102 new_map = kmalloc_objs(struct pinctrl_map, map_num); in pinctrl_scmi_imx_dt_node_to_map() 103 if (!new_map) in pinctrl_scmi_imx_dt_node_to_map() 106 *map = new_map; in pinctrl_scmi_imx_dt_node_to_map() 148 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in pinctrl_scmi_imx_dt_node_to_map() 149 new_map[i].data.configs.group_or_pin = pin_get_name(pctldev, pin_id); in pinctrl_scmi_imx_dt_node_to_map() 150 new_map[i].data.configs.configs = configs; in pinctrl_scmi_imx_dt_node_to_map() 151 new_map[i].data.configs.num_configs = ncfg; in pinctrl_scmi_imx_dt_node_to_map()
|
| H A D | pinctrl-imx1-core.c | 228 struct pinctrl_map *new_map; in imx1_dt_node_to_map() local 247 new_map = kmalloc_objs(struct pinctrl_map, map_num); in imx1_dt_node_to_map() 248 if (!new_map) in imx1_dt_node_to_map() 251 *map = new_map; in imx1_dt_node_to_map() 257 kfree(new_map); in imx1_dt_node_to_map() 260 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx1_dt_node_to_map() 261 new_map[0].data.mux.function = parent->name; in imx1_dt_node_to_map() 262 new_map[0].data.mux.group = np->name; in imx1_dt_node_to_map() 266 new_map++; in imx1_dt_node_to_map() 268 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx1_dt_node_to_map() [all …]
|
| H A D | pinctrl-imx.c | 65 struct pinctrl_map *new_map; in imx_dt_node_to_map() local 91 new_map = kmalloc_objs(struct pinctrl_map, map_num); in imx_dt_node_to_map() 92 if (!new_map) in imx_dt_node_to_map() 95 *map = new_map; in imx_dt_node_to_map() 101 kfree(new_map); in imx_dt_node_to_map() 104 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx_dt_node_to_map() 105 new_map[0].data.mux.function = parent->name; in imx_dt_node_to_map() 106 new_map[0].data.mux.group = np->name; in imx_dt_node_to_map() 110 new_map++; in imx_dt_node_to_map() 122 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx_dt_node_to_map() [all …]
|
| /linux/drivers/pinctrl/nuvoton/ |
| H A D | pinctrl-ma35.c | 188 struct pinctrl_map *new_map; in ma35_pinctrl_dt_node_to_map_func() local 205 new_map = kzalloc_objs(*new_map, map_num); in ma35_pinctrl_dt_node_to_map_func() 206 if (!new_map) in ma35_pinctrl_dt_node_to_map_func() 209 *map = new_map; in ma35_pinctrl_dt_node_to_map_func() 218 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in ma35_pinctrl_dt_node_to_map_func() 219 new_map[0].data.mux.function = parent->name; in ma35_pinctrl_dt_node_to_map_func() 220 new_map[0].data.mux.group = np->name; in ma35_pinctrl_dt_node_to_map_func() 223 new_map++; in ma35_pinctrl_dt_node_to_map_func() 225 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in ma35_pinctrl_dt_node_to_map_func() 226 new_map[i].data.configs.group_or_pin = pin_get_name(pctldev, grp->grp.pins[i]); in ma35_pinctrl_dt_node_to_map_func() [all …]
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A 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/drivers/remoteproc/ |
| H A 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/tools/perf/util/ |
| H A D | maps.c | 1277 int maps__merge_in(struct maps *kmaps, struct map *new_map) in maps__fixup_end() 1295 first_after_ = first_ending_after(kmaps, new_map); in maps__merge_in() 1299 map__start(kmaps_maps_by_address[first_after_]) >= map__end(new_map)) { in maps__merge_in() 1302 return maps__insert(kmaps, new_map); in maps__merge_in() 1311 first_after_ = first_ending_after(kmaps, new_map); in maps__merge_in() 1316 map__start(kmaps_maps_by_address[first_after_]) >= map__end(new_map)) { in maps__merge_in() 1318 int ret = __maps__insert(kmaps, new_map); in maps__merge_in() 1324 /* Array to merge into, possibly 1 more for the sake of new_map. */ in maps__merge_in() 1339 /* Copy entries before the new_map that can't overlap. */ in maps__merge_in() 1346 __maps__insert(kmaps, new_map); in maps__merge_in() 1283 maps__merge_in(struct maps * kmaps,struct map * new_map) maps__merge_in() argument [all...] |
| H A D | maps.h | 79 int maps__merge_in(struct maps *kmaps, struct map *new_map);
|
| H A D | symbol.c | 1368 struct map *new_map = new_node->map; in dso__load_kcore() 1369 u64 new_size = map__size(new_map); in dso__load_kcore() 1371 if (!(stext >= map__start(new_map) && stext < map__end(new_map))) in dso__load_kcore() 1381 replacement_map = new_map; in dso__load_kcore() 1411 struct map *new_map = new_node->map; in dso__load_kcore() 1416 if (!RC_CHK_EQUAL(new_map, replacement_map)) { in dso__load_kcore() 1422 if (maps__merge_in(kmaps, new_map)) { in dso__load_kcore() 1367 struct map *new_map = new_node->map; dso__load_kcore() local 1410 struct map *new_map = new_node->map; dso__load_kcore() local
|
| /linux/arch/powerpc/platforms/embedded6xx/ |
| H A D | mpc10x.h | 150 uint new_map,
|
| /linux/sound/usb/ |
| H A D | fcp.c | 656 s16 *new_map __free(kfree) = in fcp_ioctl_set_meter_map() 658 if (!new_map) in fcp_ioctl_set_meter_map() 675 private->meter_level_map = new_map; in fcp_ioctl_set_meter_map() 678 new_map = NULL; in fcp_ioctl_set_meter_map()
|
| /linux/drivers/nvdimm/ |
| H A D | btt.h | 87 __le32 new_map; member
|
| /linux/fs/hpfs/ |
| H A D | alloc.c | 328 new_map: in hpfs_free_sectors() 348 goto new_map; in hpfs_free_sectors()
|
| /linux/drivers/pinctrl/sunxi/ |
| H A D | pinctrl-sunxi.c | 440 struct pinctrl_map *new_map; in sunxi_pctrl_dt_node_to_map() local 515 new_map = krealloc(*map, i * sizeof(struct pinctrl_map), GFP_KERNEL); in sunxi_pctrl_dt_node_to_map() 516 if (!new_map) { in sunxi_pctrl_dt_node_to_map() 521 *map = new_map; in sunxi_pctrl_dt_node_to_map()
|
| /linux/Documentation/driver-api/nvdimm/ |
| H A 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/drivers/ata/ |
| H A D | sata_mv.c | 2473 unsigned int old_map, new_map; in mv_handle_fbs_ncq_dev_err() local 2488 new_map = old_map | mv_get_err_pmp_map(ap); in mv_handle_fbs_ncq_dev_err() 2490 if (old_map != new_map) { in mv_handle_fbs_ncq_dev_err() 2491 pp->delayed_eh_pmp_map = new_map; in mv_handle_fbs_ncq_dev_err() 2492 mv_pmp_eh_prep(ap, new_map & ~old_map); in mv_handle_fbs_ncq_dev_err() 2494 failed_links = hweight16(new_map); in mv_handle_fbs_ncq_dev_err()
|
| /linux/net/core/ |
| H A D | dev.c | 2792 struct xps_map *new_map; in expand_xps_map() local 2814 new_map = kzalloc(XPS_MAP_SIZE(alloc_len), GFP_KERNEL); in expand_xps_map() 2816 new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len), GFP_KERNEL, in expand_xps_map() 2818 if (!new_map) in expand_xps_map() 2822 new_map->queues[i] = map->queues[i]; in expand_xps_map() 2823 new_map->alloc_len = alloc_len; in expand_xps_map() 2824 new_map->len = pos; in expand_xps_map() 2826 return new_map; in expand_xps_map() 2857 struct xps_map *map, *new_map; in __netif_set_xps_queue() local 2980 new_map = xmap_dereference(new_dev_maps->attr_map[tci]); in __netif_set_xps_queue() [all …]
|