/Linux-v4.19/drivers/pinctrl/ |
D | pinctrl-utils.c | 37 struct pinctrl_map *new_map; in pinctrl_utils_reserve_map() local 42 new_map = krealloc(*map, sizeof(*new_map) * new_num, 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()
|
D | pinctrl-at91.c | 255 struct pinctrl_map *new_map; in at91_dt_node_to_map() local 272 new_map = devm_kcalloc(pctldev->dev, map_num, sizeof(*new_map), in at91_dt_node_to_map() 274 if (!new_map) in at91_dt_node_to_map() 277 *map = new_map; in at91_dt_node_to_map() 283 devm_kfree(pctldev->dev, new_map); in at91_dt_node_to_map() 286 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in at91_dt_node_to_map() 287 new_map[0].data.mux.function = parent->name; in at91_dt_node_to_map() 288 new_map[0].data.mux.group = np->name; in at91_dt_node_to_map() 292 new_map++; in at91_dt_node_to_map() 294 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in at91_dt_node_to_map() [all …]
|
D | pinctrl-st.c | 814 struct pinctrl_map *new_map; in st_pctl_dt_node_to_map() local 826 new_map = devm_kcalloc(pctldev->dev, in st_pctl_dt_node_to_map() 827 map_num, sizeof(*new_map), GFP_KERNEL); in st_pctl_dt_node_to_map() 828 if (!new_map) in st_pctl_dt_node_to_map() 833 devm_kfree(pctldev->dev, new_map); in st_pctl_dt_node_to_map() 837 *map = new_map; in st_pctl_dt_node_to_map() 839 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in st_pctl_dt_node_to_map() 840 new_map[0].data.mux.function = parent->name; in st_pctl_dt_node_to_map() 841 new_map[0].data.mux.group = np->name; in st_pctl_dt_node_to_map() 845 new_map++; in st_pctl_dt_node_to_map() [all …]
|
D | pinctrl-rockchip.c | 493 struct pinctrl_map *new_map; in rockchip_dt_node_to_map() local 510 new_map = devm_kcalloc(pctldev->dev, map_num, sizeof(*new_map), in rockchip_dt_node_to_map() 512 if (!new_map) in rockchip_dt_node_to_map() 515 *map = new_map; in rockchip_dt_node_to_map() 521 devm_kfree(pctldev->dev, new_map); in rockchip_dt_node_to_map() 524 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in rockchip_dt_node_to_map() 525 new_map[0].data.mux.function = parent->name; in rockchip_dt_node_to_map() 526 new_map[0].data.mux.group = np->name; in rockchip_dt_node_to_map() 530 new_map++; in rockchip_dt_node_to_map() 532 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; in rockchip_dt_node_to_map() [all …]
|
/Linux-v4.19/kernel/ |
D | user_namespace.c | 715 static bool mappings_overlap(struct uid_gid_map *new_map, in mappings_overlap() argument 726 for (idx = 0; idx < new_map->nr_extents; idx++) { in mappings_overlap() 731 if (new_map->nr_extents <= UID_GID_MAP_MAX_BASE_EXTENTS) in mappings_overlap() 732 prev = &new_map->extent[idx]; in mappings_overlap() 734 prev = &new_map->forward[idx]; in mappings_overlap() 858 struct uid_gid_map new_map; in map_write() local 894 memset(&new_map, 0, sizeof(struct uid_gid_map)); in map_write() 956 if (mappings_overlap(&new_map, &extent)) in map_write() 959 if ((new_map.nr_extents + 1) == UID_GID_MAP_MAX_EXTENTS && in map_write() 963 ret = insert_extent(&new_map, &extent); in map_write() [all …]
|
/Linux-v4.19/drivers/input/rmi4/ |
D | rmi_smbus.c | 87 struct mapping_table_entry new_map; in rmi_smb_get_command_code() local 112 memset(&new_map, 0, sizeof(new_map)); in rmi_smb_get_command_code() 113 new_map.rmiaddr = cpu_to_le16(rmiaddr); in rmi_smb_get_command_code() 114 new_map.readcount = bytecount; in rmi_smb_get_command_code() 115 new_map.flags = !isread ? RMI_SMB2_MAP_FLAGS_WE : 0; in rmi_smb_get_command_code() 117 retval = smb_block_write(xport, i + 0x80, &new_map, sizeof(new_map)); in rmi_smb_get_command_code() 123 memset(&new_map, 0, sizeof(new_map)); in rmi_smb_get_command_code() 127 rmi_smb->mapping_table[i] = new_map; in rmi_smb_get_command_code()
|
/Linux-v4.19/drivers/pinctrl/freescale/ |
D | pinctrl-mxs.c | 64 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 …]
|
D | pinctrl-imx1-core.c | 225 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 …]
|
D | pinctrl-imx.c | 61 struct pinctrl_map *new_map; in imx_dt_node_to_map() local 84 new_map = kmalloc_array(map_num, sizeof(struct pinctrl_map), in imx_dt_node_to_map() 86 if (!new_map) in imx_dt_node_to_map() 89 *map = new_map; in imx_dt_node_to_map() 95 kfree(new_map); in imx_dt_node_to_map() 98 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; in imx_dt_node_to_map() 99 new_map[0].data.mux.function = parent->name; in imx_dt_node_to_map() 100 new_map[0].data.mux.group = np->name; in imx_dt_node_to_map() 104 new_map++; in imx_dt_node_to_map() 109 new_map[j].type = PIN_MAP_TYPE_CONFIGS_PIN; in imx_dt_node_to_map() [all …]
|
/Linux-v4.19/drivers/md/ |
D | dm-ioctl.c | 45 struct dm_table *new_map; member 191 hc->new_map = NULL; in alloc_cell() 272 if (hc->new_map) in __hash_remove() 273 table = hc->new_map; in __hash_remove() 672 table = hc->new_map; in dm_get_inactive_table() 816 if (hc->new_map) in __find_device_hash_cell() 1015 struct dm_table *new_map, *old_map = NULL; in do_resume() local 1028 new_map = hc->new_map; in do_resume() 1029 hc->new_map = NULL; in do_resume() 1035 if (new_map) { in do_resume() [all …]
|
/Linux-v4.19/arch/powerpc/oprofile/cell/ |
D | spu_task_sync.c | 194 struct vma_to_fileoffset_map *new_map; in prepare_cached_spu_info() local 219 new_map = create_vma_map(spu, objectId); in prepare_cached_spu_info() 220 if (!new_map) { in prepare_cached_spu_info() 229 info->map = new_map; in prepare_cached_spu_info()
|
/Linux-v4.19/tools/perf/util/ |
D | symbol.c | 1159 struct map *old_map, *new_map, *replacement_map = NULL; in dso__load_kcore() local 1218 list_for_each_entry(new_map, &md.maps, node) { in dso__load_kcore() 1219 if (stext >= new_map->start && stext < new_map->end) { in dso__load_kcore() 1220 replacement_map = new_map; in dso__load_kcore() 1231 new_map = list_entry(md.maps.next, struct map, node); in dso__load_kcore() 1232 list_del_init(&new_map->node); in dso__load_kcore() 1233 if (new_map == replacement_map) { in dso__load_kcore() 1234 map->start = new_map->start; in dso__load_kcore() 1235 map->end = new_map->end; in dso__load_kcore() 1236 map->pgoff = new_map->pgoff; in dso__load_kcore() [all …]
|
/Linux-v4.19/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cotable.c | 398 struct ttm_bo_kmap_obj old_map, new_map; in vmw_cotable_resize() local 446 ret = ttm_bo_kmap(bo, i, 1, &new_map); in vmw_cotable_resize() 451 memcpy(ttm_kmap_obj_virtual(&new_map, &dummy), in vmw_cotable_resize() 454 ttm_bo_kunmap(&new_map); in vmw_cotable_resize()
|
/Linux-v4.19/drivers/nvdimm/ |
D | btt.c | 496 ent.new_map = cpu_to_le32(arena->external_nlba + i); in btt_log_init() 579 if (log_new.old_map == log_new.new_map) in btt_freelist_init() 587 if ((le32_to_cpu(log_new.new_map) != map_entry) && in btt_freelist_init() 594 le32_to_cpu(log_new.new_map), 0, 0, 0); in btt_freelist_init() 605 return (ent->lba == 0) && (ent->old_map == 0) && (ent->new_map == 0) in ent_is_padding() 1227 u32 new_map; in btt_read_pg() local 1247 ret = btt_map_read(arena, premap, &new_map, &new_t, in btt_read_pg() 1252 if ((postmap == new_map) && (t_flag == new_t) && in btt_read_pg() 1256 postmap = new_map; in btt_read_pg() 1389 log.new_map = cpu_to_le32(new_postmap); in btt_write_pg()
|
D | btt.h | 94 __le32 new_map; member
|
/Linux-v4.19/arch/powerpc/platforms/embedded6xx/ |
D | mpc10x.h | 150 uint new_map,
|
/Linux-v4.19/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-v4.19/drivers/tty/vt/ |
D | keyboard.c | 1886 ushort *key_map, *new_map, val, ov; in vt_do_kdsk_ioctl() local 1940 new_map = kmalloc(sizeof(plain_map), GFP_KERNEL); in vt_do_kdsk_ioctl() 1941 if (!new_map) in vt_do_kdsk_ioctl() 1951 kfree(new_map); in vt_do_kdsk_ioctl() 1954 key_maps[s] = new_map; in vt_do_kdsk_ioctl() 1955 key_map = new_map; in vt_do_kdsk_ioctl() 1961 kfree(new_map); in vt_do_kdsk_ioctl()
|
/Linux-v4.19/fs/hpfs/ |
D | alloc.c | 328 new_map: in hpfs_free_sectors() 348 goto new_map; in hpfs_free_sectors()
|
/Linux-v4.19/net/core/ |
D | dev.c | 2239 struct xps_map *new_map; in expand_xps_map() local 2261 new_map = kzalloc(XPS_MAP_SIZE(alloc_len), GFP_KERNEL); in expand_xps_map() 2263 new_map = kzalloc_node(XPS_MAP_SIZE(alloc_len), GFP_KERNEL, in expand_xps_map() 2265 if (!new_map) in expand_xps_map() 2269 new_map->queues[i] = map->queues[i]; in expand_xps_map() 2270 new_map->alloc_len = alloc_len; in expand_xps_map() 2271 new_map->len = pos; in expand_xps_map() 2273 return new_map; in expand_xps_map() 2284 struct xps_map *map, *new_map; in __netif_set_xps_queue() local 2407 new_map = xmap_dereference(new_dev_maps->attr_map[tci]); in __netif_set_xps_queue() [all …]
|
/Linux-v4.19/Documentation/nvdimm/ |
D | btt.txt | 127 new_map : The new postmap ABA. The map will up updated to reflect this 135 new_map': alternate new postmap entry
|
/Linux-v4.19/drivers/ata/ |
D | sata_mv.c | 2518 unsigned int old_map, new_map; in mv_handle_fbs_ncq_dev_err() local 2533 new_map = old_map | mv_get_err_pmp_map(ap); in mv_handle_fbs_ncq_dev_err() 2535 if (old_map != new_map) { in mv_handle_fbs_ncq_dev_err() 2536 pp->delayed_eh_pmp_map = new_map; in mv_handle_fbs_ncq_dev_err() 2537 mv_pmp_eh_prep(ap, new_map & ~old_map); in mv_handle_fbs_ncq_dev_err() 2539 failed_links = hweight16(new_map); in mv_handle_fbs_ncq_dev_err()
|