Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 488) sorted by relevance

12345678910>>...20

/arch/powerpc/platforms/cell/
Dcbe_regs.c83 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_pmd_regs() local
84 if (map == NULL) in cbe_get_pmd_regs()
86 return map->pmd_regs; in cbe_get_pmd_regs()
92 struct cbe_regs_map *map = cbe_thread_map[cpu].regs; in cbe_get_cpu_pmd_regs() local
93 if (map == NULL) in cbe_get_cpu_pmd_regs()
95 return map->pmd_regs; in cbe_get_cpu_pmd_regs()
101 struct cbe_regs_map *map = cbe_find_map(np); in cbe_get_pmd_shadow_regs() local
102 if (map == NULL) in cbe_get_pmd_shadow_regs()
104 return &map->pmd_shadow_regs; in cbe_get_pmd_shadow_regs()
109 struct cbe_regs_map *map = cbe_thread_map[cpu].regs; in cbe_get_cpu_pmd_shadow_regs() local
[all …]
/arch/x86/include/asm/
Dmpspec.h98 #define physid_set(physid, map) set_bit(physid, (map).mask) argument
99 #define physid_clear(physid, map) clear_bit(physid, (map).mask) argument
100 #define physid_isset(physid, map) test_bit(physid, (map).mask) argument
101 #define physid_test_and_set(physid, map) \ argument
102 test_and_set_bit(physid, (map).mask)
110 #define physids_clear(map) \ argument
111 bitmap_zero((map).mask, MAX_LOCAL_APIC)
116 #define physids_empty(map) \ argument
117 bitmap_empty((map).mask, MAX_LOCAL_APIC)
122 #define physids_weight(map) \ argument
[all …]
/arch/powerpc/oprofile/cell/
Dvma_map.c27 void vma_map_free(struct vma_to_fileoffset_map *map) in vma_map_free() argument
29 while (map) { in vma_map_free()
30 struct vma_to_fileoffset_map *next = map->next; in vma_map_free()
31 kfree(map); in vma_map_free()
32 map = next; in vma_map_free()
37 vma_map_lookup(struct vma_to_fileoffset_map *map, unsigned int vma, in vma_map_lookup() argument
50 for (; map; map = map->next) { in vma_map_lookup()
51 if (vma < map->vma || vma >= map->vma + map->size) in vma_map_lookup()
54 if (map->guard_ptr) { in vma_map_lookup()
55 ovly_grd = *(u32 *)(aSpu->local_store + map->guard_ptr); in vma_map_lookup()
[all …]
/arch/powerpc/include/asm/
Dscom.h54 scom_map_t (*map)(struct device_node *ctrl_dev, u64 reg, u64 count); member
55 void (*unmap)(scom_map_t map);
57 int (*read)(scom_map_t map, u64 reg, u64 *value);
58 int (*write)(scom_map_t map, u64 reg, u64 value);
76 static inline int scom_map_ok(scom_map_t map) in scom_map_ok() argument
78 return map != SCOM_MAP_INVALID; in scom_map_ok()
92 return scom_controller->map(ctrl_dev, reg, count); in scom_map()
126 static inline void scom_unmap(scom_map_t map) in scom_unmap() argument
128 if (scom_map_ok(map)) in scom_unmap()
129 scom_controller->unmap(map); in scom_unmap()
[all …]
/arch/sh/kernel/cpu/sh4/
Dsq.c73 static inline void sq_mapping_list_add(struct sq_mapping *map) in sq_mapping_list_add() argument
83 map->next = tmp; in sq_mapping_list_add()
84 *p = map; in sq_mapping_list_add()
89 static inline void sq_mapping_list_del(struct sq_mapping *map) in sq_mapping_list_del() argument
96 if (tmp == map) { in sq_mapping_list_del()
104 static int __sq_remap(struct sq_mapping *map, pgprot_t prot) in __sq_remap() argument
109 vma = __get_vm_area(map->size, VM_ALLOC, map->sq_addr, SQ_ADDRMAX); in __sq_remap()
113 vma->phys_addr = map->addr; in __sq_remap()
116 (unsigned long)vma->addr + map->size, in __sq_remap()
127 __raw_writel(((map->addr >> 26) << 2) & 0x1c, SQ_QACR0); in __sq_remap()
[all …]
/arch/sh/mm/
Dioremap_fixed.c37 struct ioremap_map *map; in ioremap_fixed_init() local
41 map = &ioremap_maps[i]; in ioremap_fixed_init()
42 map->fixmap_addr = __fix_to_virt(FIX_IOREMAP_BEGIN + i); in ioremap_fixed_init()
50 struct ioremap_map *map; in ioremap_fixed() local
64 map = &ioremap_maps[i]; in ioremap_fixed()
65 if (!map->addr) { in ioremap_fixed()
66 map->size = size; in ioremap_fixed()
95 map->addr = (void __iomem *)(offset + map->fixmap_addr); in ioremap_fixed()
96 return map->addr; in ioremap_fixed()
102 struct ioremap_map *map; in iounmap_fixed() local
[all …]
/arch/mips/netlogic/xlp/
Dsetup.c73 if (boot_mem_map.map[i].type != BOOT_MEM_RAM) in nlm_fixup_mem()
75 boot_mem_map.map[i].size -= pref_backup; in nlm_fixup_mem()
81 uint64_t map[16]; in xlp_init_mem_from_bars() local
84 n = nlm_get_dram_map(-1, map, ARRAY_SIZE(map)); /* -1 : all nodes */ in xlp_init_mem_from_bars()
87 if (map[i] <= 0x10000000 && map[i+1] > 0x10000000) in xlp_init_mem_from_bars()
88 map[i+1] = 0x10000000; in xlp_init_mem_from_bars()
89 if (map[i] > 0x10000000 && map[i] < 0x20000000) in xlp_init_mem_from_bars()
90 map[i] = 0x20000000; in xlp_init_mem_from_bars()
92 add_memory_region(map[i], map[i+1] - map[i], BOOT_MEM_RAM); in xlp_init_mem_from_bars()
/arch/m32r/include/asm/
Dsmp.h21 #define physid_set(physid, map) set_bit(physid, (map).mask) argument
22 #define physid_clear(physid, map) clear_bit(physid, (map).mask) argument
23 #define physid_isset(physid, map) test_bit(physid, (map).mask) argument
24 #define physid_test_and_set(physid, map) test_and_set_bit(physid, (map).mask) argument
28 #define physids_clear(map) bitmap_zero((map).mask, MAX_APICS) argument
30 #define physids_empty(map) bitmap_empty((map).mask, MAX_APICS) argument
32 #define physids_weight(map) bitmap_weight((map).mask, MAX_APICS) argument
35 #define physids_coerce(map) ((map).mask[0]) argument
/arch/x86/pci/
Dsta2x11-fixup.c54 struct sta2x11_mapping map[STA2X11_NR_EP]; member
117 return instance->map + ep; in sta2x11_pdev_to_mapping()
136 struct sta2x11_mapping *map; in p2a() local
139 map = sta2x11_pdev_to_mapping(pdev); in p2a()
140 a = p + map->amba_base; in p2a()
152 struct sta2x11_mapping *map; in a2p() local
155 map = sta2x11_pdev_to_mapping(pdev); in a2p()
156 p = a - map->amba_base; in a2p()
224 struct sta2x11_mapping *map; in dma_capable() local
232 map = sta2x11_pdev_to_mapping(to_pci_dev(dev)); in dma_capable()
[all …]
Di386.c59 struct pcibios_fwaddrmap *map; in pcibios_fwaddrmap_lookup() local
63 list_for_each_entry(map, &pcibios_fwaddrmappings, list) in pcibios_fwaddrmap_lookup()
64 if (map->dev == dev) in pcibios_fwaddrmap_lookup()
65 return map; in pcibios_fwaddrmap_lookup()
74 struct pcibios_fwaddrmap *map; in pcibios_save_fw_addr() local
80 map = pcibios_fwaddrmap_lookup(dev); in pcibios_save_fw_addr()
81 if (!map) { in pcibios_save_fw_addr()
83 map = kzalloc(sizeof(*map), GFP_KERNEL); in pcibios_save_fw_addr()
84 if (!map) in pcibios_save_fw_addr()
87 map->dev = pci_dev_get(dev); in pcibios_save_fw_addr()
[all …]
/arch/powerpc/kvm/
Dbook3s_64_mmu_host.c59 struct kvmppc_sid_map *map; in find_sid_vsid() local
66 map = &to_book3s(vcpu)->sid_map[sid_map_mask]; in find_sid_vsid()
67 if (map->valid && (map->guest_vsid == gvsid)) { in find_sid_vsid()
68 trace_kvm_book3s_slb_found(gvsid, map->host_vsid); in find_sid_vsid()
69 return map; in find_sid_vsid()
72 map = &to_book3s(vcpu)->sid_map[SID_MAP_MASK - sid_map_mask]; in find_sid_vsid()
73 if (map->valid && (map->guest_vsid == gvsid)) { in find_sid_vsid()
74 trace_kvm_book3s_slb_found(gvsid, map->host_vsid); in find_sid_vsid()
75 return map; in find_sid_vsid()
93 struct kvmppc_sid_map *map; in kvmppc_mmu_map_page() local
[all …]
Dbook3s_32_mmu_host.c93 struct kvmppc_sid_map *map; in find_sid_vsid() local
100 map = &to_book3s(vcpu)->sid_map[sid_map_mask]; in find_sid_vsid()
101 if (map->guest_vsid == gvsid) { in find_sid_vsid()
103 gvsid, map->host_vsid); in find_sid_vsid()
104 return map; in find_sid_vsid()
107 map = &to_book3s(vcpu)->sid_map[SID_MAP_MASK - sid_map_mask]; in find_sid_vsid()
108 if (map->guest_vsid == gvsid) { in find_sid_vsid()
110 gvsid, map->host_vsid); in find_sid_vsid()
111 return map; in find_sid_vsid()
148 struct kvmppc_sid_map *map; in kvmppc_mmu_map_page() local
[all …]
/arch/sh/boot/compressed/
Dinstall.sh37 if [ -f $4/System.map-$1 ]; then
38 mv $4/System.map-$1 $4/System.old
42 cp $3 $4/System.map-$1
50 if [ -f $4/System.map ]; then
51 mv $4/System.map $4/System.old
55 cp $3 $4/System.map
/arch/m32r/boot/compressed/
Dinstall.sh38 if [ -f $4/System.map-$1 ]; then
39 mv $4/System.map-$1 $4/System.old
43 cp $3 $4/System.map-$1
51 if [ -f $4/System.map ]; then
52 mv $4/System.map $4/System.old
56 cp $3 $4/System.map
/arch/mips/pci/
Dpci-malta.c93 resource_size_t start, end, map, start1, end1, map1, map2, map3, mask; in mips_pcibios_init() local
117 map = GT_READ(GT_PCI0M0REMAP_OFS); in mips_pcibios_init()
127 map = map1; in mips_pcibios_init()
131 BUG_ON((start & GT_PCI_HD_MSK) != (map & GT_PCI_HD_MSK) && in mips_pcibios_init()
135 gt64120_controller.mem_offset = (start & mask) - (map & mask); in mips_pcibios_init()
144 map = GT_READ(GT_PCI0IOREMAP_OFS); in mips_pcibios_init()
148 BUG_ON((start & GT_PCI_HD_MSK) != (map & GT_PCI_HD_MSK) && in mips_pcibios_init()
150 gt64120_io_resource.start = map & mask; in mips_pcibios_init()
151 gt64120_io_resource.end = (map & mask) | ~mask; in mips_pcibios_init()
163 map = BONITO_PCIMAP; in mips_pcibios_init()
[all …]
/arch/arm/mm/
Dmmu.c1067 struct map_desc map; in debug_ll_io_init() local
1069 debug_ll_addr(&map.pfn, &map.virtual); in debug_ll_io_init()
1070 if (!map.pfn || !map.virtual) in debug_ll_io_init()
1072 map.pfn = __phys_to_pfn(map.pfn); in debug_ll_io_init()
1073 map.virtual &= PAGE_MASK; in debug_ll_io_init()
1074 map.length = PAGE_SIZE; in debug_ll_io_init()
1075 map.type = MT_DEVICE; in debug_ll_io_init()
1076 iotable_init(&map, 1); in debug_ll_io_init()
1271 struct map_desc map; in devicemaps_init() local
1293 map.pfn = __phys_to_pfn(CONFIG_XIP_PHYS_ADDR & SECTION_MASK); in devicemaps_init()
[all …]
/arch/powerpc/platforms/ps3/
Dmm.c110 struct map { struct
119 static void __maybe_unused _debug_dump_map(const struct map *m, in _debug_dump_map() argument
131 static struct map map; variable
141 return (phys_addr < map.rm.size || phys_addr >= map.total) in ps3_mm_phys_to_lpar()
142 ? phys_addr : phys_addr + map.r1.offset; in ps3_mm_phys_to_lpar()
182 &map.vas_id, &map.htab_size); in ps3_mm_vas_create()
190 result = lv1_select_virtual_address_space(map.vas_id); in ps3_mm_vas_create()
198 *htab_size = map.htab_size; in ps3_mm_vas_create()
200 debug_dump_map(&map); in ps3_mm_vas_create()
216 if (map.vas_id) { in ps3_mm_vas_destroy()
[all …]
/arch/mips/kernel/
Dsetup.c106 struct boot_mem_map_entry *entry = boot_mem_map.map + i; in add_memory_region()
130 boot_mem_map.map[x].addr = start; in add_memory_region()
131 boot_mem_map.map[x].size = size; in add_memory_region()
132 boot_mem_map.map[x].type = type; in add_memory_region()
163 start_ = boot_mem_map.map[i].addr; in memory_region_available()
164 end_ = boot_mem_map.map[i].addr + boot_mem_map.map[i].size; in memory_region_available()
166 switch (boot_mem_map.map[i].type) { in memory_region_available()
191 field, (unsigned long long) boot_mem_map.map[i].size, in print_memory_map()
192 field, (unsigned long long) boot_mem_map.map[i].addr); in print_memory_map()
194 switch (boot_mem_map.map[i].type) { in print_memory_map()
[all …]
/arch/sparc/lib/
Dbitext.c59 off_new = find_next_zero_bit(t->map, t->size, offset); in bit_map_string_get()
80 while (test_bit(offset + i, t->map) == 0) { in bit_map_string_get()
83 bitmap_set(t->map, offset, len); in bit_map_string_get()
86 (t->map, t->size, in bit_map_string_get()
110 if (test_bit(offset + i, t->map) == 0) in bit_map_clear()
112 __clear_bit(offset + i, t->map); in bit_map_clear()
120 void bit_map_init(struct bit_map *t, unsigned long *map, int size) in bit_map_init() argument
122 bitmap_zero(map, size); in bit_map_init()
125 t->map = map; in bit_map_init()
/arch/arm64/boot/
Dinstall.sh43 if [ -f $4/System.map-$1 ]; then
44 mv $4/System.map-$1 $4/System.map-$1.old
46 cp $3 $4/System.map-$1
/arch/mips/cavium-octeon/
Dflash_setup.c30 static map_word octeon_flash_map_read(struct map_info *map, unsigned long ofs) in octeon_flash_map_read() argument
35 r = inline_map_read(map, ofs); in octeon_flash_map_read()
41 static void octeon_flash_map_write(struct map_info *map, const map_word datum, in octeon_flash_map_write() argument
45 inline_map_write(map, datum, ofs); in octeon_flash_map_write()
49 static void octeon_flash_map_copy_from(struct map_info *map, void *to, in octeon_flash_map_copy_from() argument
53 inline_map_copy_from(map, to, from, len); in octeon_flash_map_copy_from()
57 static void octeon_flash_map_copy_to(struct map_info *map, unsigned long to, in octeon_flash_map_copy_to() argument
61 inline_map_copy_to(map, to, from, len); in octeon_flash_map_copy_to()
/arch/powerpc/platforms/powernv/
Dopal-xscom.c58 static void opal_scom_unmap(scom_map_t map) in opal_scom_unmap() argument
60 kfree(map); in opal_scom_unmap()
98 static int opal_scom_read(scom_map_t map, u64 reg, u64 *value) in opal_scom_read() argument
100 struct opal_scom_map *m = map; in opal_scom_read()
110 static int opal_scom_write(scom_map_t map, u64 reg, u64 value) in opal_scom_write() argument
112 struct opal_scom_map *m = map; in opal_scom_write()
121 .map = opal_scom_map,
/arch/arm/mach-omap2/
Dpm44xx.c189 static inline int omap4plus_init_static_deps(const struct static_dep_map *map) in omap4plus_init_static_deps() argument
194 if (!map) in omap4plus_init_static_deps()
197 while (map->from) { in omap4plus_init_static_deps()
198 from = clkdm_lookup(map->from); in omap4plus_init_static_deps()
199 to = clkdm_lookup(map->to); in omap4plus_init_static_deps()
202 map->from, map->to); in omap4plus_init_static_deps()
208 map->from, map->to, ret); in omap4plus_init_static_deps()
212 map++; in omap4plus_init_static_deps()
/arch/arm/boot/
Dinstall.sh57 if [ -f $4/System.map-$1 ]; then
58 mv $4/System.map-$1 $4/System.map-$1.old
60 cp $3 $4/System.map-$1
/arch/mips/loongson64/common/
Dmem.c67 node_id = loongson_memmap->map[i].node_id; in prom_init_memory()
68 mem_type = loongson_memmap->map[i].mem_type; in prom_init_memory()
73 add_memory_region(loongson_memmap->map[i].mem_start, in prom_init_memory()
74 (u64)loongson_memmap->map[i].mem_size << 20, in prom_init_memory()
78 add_memory_region(loongson_memmap->map[i].mem_start, in prom_init_memory()
79 (u64)loongson_memmap->map[i].mem_size << 20, in prom_init_memory()
83 add_memory_region(loongson_memmap->map[i].mem_start, in prom_init_memory()
84 (u64)loongson_memmap->map[i].mem_size << 20, in prom_init_memory()

12345678910>>...20