/arch/um/kernel/ |
D | physmem.c | 127 struct iomem_region *region = iomem_regions; in phys_mapping() local 129 while (region != NULL) { in phys_mapping() 130 if ((phys >= region->phys) && in phys_mapping() 131 (phys < region->phys + region->size)) { in phys_mapping() 132 fd = region->fd; in phys_mapping() 133 *offset_out = phys - region->phys; in phys_mapping() 136 region = region->next; in phys_mapping() 183 struct iomem_region *region = iomem_regions; in find_iomem() local 185 while (region != NULL) { in find_iomem() 186 if (!strcmp(region->driver, driver)) { in find_iomem() [all …]
|
/arch/x86/boot/compressed/ |
D | kaslr.c | 496 static void store_slot_info(struct mem_vector *region, unsigned long image_size) in store_slot_info() argument 503 slot_area.addr = region->start; in store_slot_info() 504 slot_area.num = 1 + (region->size - image_size) / CONFIG_PHYSICAL_ALIGN; in store_slot_info() 515 process_gb_huge_pages(struct mem_vector *region, unsigned long image_size) in process_gb_huge_pages() argument 522 store_slot_info(region, image_size); in process_gb_huge_pages() 527 pud_start = ALIGN(region->start, PUD_SIZE); in process_gb_huge_pages() 528 pud_end = ALIGN_DOWN(region->start + region->size, PUD_SIZE); in process_gb_huge_pages() 532 store_slot_info(region, image_size); in process_gb_huge_pages() 537 if (pud_start >= region->start + image_size) { in process_gb_huge_pages() 538 tmp.start = region->start; in process_gb_huge_pages() [all …]
|
/arch/mips/include/asm/sn/sn0/ |
D | hubmd.h | 449 #define MD_MEMORY_CONFIG_DIR_TYPE_GET(region) (\ argument 450 (REMOTE_HUB_L(region, MD_MEMORY_CONFIG) & MMC_DIR_PREMIUM_MASK) >> \ 459 #define MD_MIG_DIFF_THRESH_GET(region) ( \ argument 460 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) & \ 463 #define MD_MIG_DIFF_THRESH_SET(region, value) ( \ argument 464 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \ 467 #define MD_MIG_DIFF_THRESH_DISABLE(region) ( \ argument 468 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \ 469 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) \ 472 #define MD_MIG_DIFF_THRESH_ENABLE(region) ( \ argument [all …]
|
/arch/arm/mm/ |
D | pmsa-v7.c | 19 struct region { struct 25 static struct region __initdata mem[MPU_MAX_REGIONS]; argument 27 static struct region __initdata xip[MPU_MAX_REGIONS]; 146 static bool __init try_split_region(phys_addr_t base, phys_addr_t size, struct region *region) in try_split_region() argument 177 _set_bit(i, ®ion->subreg); in try_split_region() 180 _set_bit(PMSAv7_NR_SUBREGS - i, ®ion->subreg); in try_split_region() 183 region->base = abase; in try_split_region() 184 region->size = p2size; in try_split_region() 190 unsigned int limit, struct region *regions) in allocate_region() 422 int i, region = 0, err = 0; in pmsav7_setup() local [all …]
|
D | pmsa-v8.c | 242 int region = PMSAv8_KERNEL_REGION; in pmsav8_setup() local 280 err |= pmsav8_setup_fixed(region++, __pa(KERNEL_START), __pa(KERNEL_END)); in pmsav8_setup() 288 err |= pmsav8_setup_io(region++, io[i].start, io[i].end); in pmsav8_setup() 296 err |= pmsav8_setup_ram(region++, mem[i].start, mem[i].end); in pmsav8_setup() 301 err |= pmsav8_setup_vector(region++, vectors_base, vectors_base + 2 * PAGE_SIZE); in pmsav8_setup()
|
/arch/arm64/kvm/vgic/ |
D | vgic-mmio.c | 817 const struct vgic_register_region *region = elt; in match_region() local 819 if (offset < region->reg_offset) in match_region() 822 if (offset >= region->reg_offset + region->len) in match_region() 912 const struct vgic_register_region *region, in check_region() argument 931 if ((region->access_flags & flags) && IS_ALIGNED(addr, len)) { in check_region() 932 if (!region->bits_per_irq) in check_region() 936 return VGIC_ADDR_TO_INTID(addr, region->bits_per_irq) < nr_irqs; in check_region() 946 const struct vgic_register_region *region; in vgic_get_mmio_region() local 948 region = vgic_find_mmio_region(iodev->regions, iodev->nr_regions, in vgic_get_mmio_region() 950 if (!region || !check_region(vcpu->kvm, region, addr, len)) in vgic_get_mmio_region() [all …]
|
/arch/arm64/kernel/ |
D | alternative.c | 140 struct alt_region *region = alt_region; in __apply_alternatives() local 144 for (alt = region->begin; alt < region->end; alt++) { in __apply_alternatives() 202 struct alt_region region = { in __apply_alternatives_multi_stop() local 219 __apply_alternatives(®ion, false, remaining_capabilities); in __apply_alternatives_multi_stop() 240 struct alt_region region = { in apply_boot_alternatives() local 248 __apply_alternatives(®ion, false, &boot_capabilities[0]); in apply_boot_alternatives() 254 struct alt_region region = { in apply_alternatives_module() local 262 __apply_alternatives(®ion, true, &all_capabilities[0]); in apply_alternatives_module()
|
D | acpi.c | 266 efi_memory_desc_t *md, *region = NULL; in acpi_os_ioremap() local 282 region = md; in acpi_os_ioremap() 293 if (region) { in acpi_os_ioremap() 294 switch (region->type) { in acpi_os_ioremap() 341 if (region->attribute & EFI_MEMORY_WB) in acpi_os_ioremap() 343 else if (region->attribute & EFI_MEMORY_WT) in acpi_os_ioremap() 345 else if (region->attribute & EFI_MEMORY_WC) in acpi_os_ioremap()
|
D | setup.c | 219 struct memblock_region *region; in request_standard_resources() local 235 for_each_mem_region(region) { in request_standard_resources() 237 if (memblock_is_nomap(region)) { in request_standard_resources() 244 res->start = __pfn_to_phys(memblock_region_memory_base_pfn(region)); in request_standard_resources() 245 res->end = __pfn_to_phys(memblock_region_memory_end_pfn(region)) - 1; in request_standard_resources()
|
/arch/arm/mach-ixp4xx/include/mach/ |
D | platform.h | 42 #define IXP4XX_EXP_BUS_BASE(region)\ argument 43 (IXP4XX_EXP_BUS_BASE_PHYS + ((region) * ixp4xx_exp_bus_size)) 45 #define IXP4XX_EXP_BUS_END(region)\ argument 46 (IXP4XX_EXP_BUS_BASE(region) + ixp4xx_exp_bus_size - 1)
|
/arch/sh/drivers/pci/ |
D | fixups-dreamcast.c | 32 struct pci_bus_region region; in gapspci_fixup_resources() local 62 pcibios_resource_to_bus(dev->bus, ®ion, &res); in gapspci_fixup_resources() 65 region.start, in gapspci_fixup_resources()
|
/arch/arm/boot/dts/ |
D | keystone-k2hk-evm.dts | 199 memory-region = <&dsp_common_memory>; 204 memory-region = <&dsp_common_memory>; 209 memory-region = <&dsp_common_memory>; 214 memory-region = <&dsp_common_memory>; 219 memory-region = <&dsp_common_memory>; 224 memory-region = <&dsp_common_memory>; 229 memory-region = <&dsp_common_memory>; 234 memory-region = <&dsp_common_memory>;
|
D | keystone-k2l-evm.dts | 148 memory-region = <&dsp_common_memory>; 153 memory-region = <&dsp_common_memory>; 158 memory-region = <&dsp_common_memory>; 163 memory-region = <&dsp_common_memory>;
|
D | dra72-evm.dts | 116 memory-region = <&ipu2_memory_region>; 121 memory-region = <&ipu1_memory_region>; 126 memory-region = <&dsp1_memory_region>;
|
D | am572x-idk-common.dtsi | 187 memory-region = <&ipu2_memory_region>; 192 memory-region = <&ipu1_memory_region>; 197 memory-region = <&dsp1_memory_region>; 202 memory-region = <&dsp2_memory_region>;
|
D | aspeed-bmc-opp-romulus.dts | 29 flash_memory: region@98000000 { 76 memory-region = <&coldfire_memory>; 135 memory-region = <&flash_memory>; 289 memory-region = <&gfx_memory>; 351 memory-region = <&video_engine_memory>;
|
D | aspeed-bmc-opp-nicole.dts | 30 flash_memory: region@98000000 { 85 memory-region = <&coldfire_memory>; 138 memory-region = <&flash_memory>; 284 memory-region = <&gfx_memory>; 323 memory-region = <&video_engine_memory>;
|
/arch/nios2/ |
D | Kconfig | 151 bool "Set custom kernel MMU region base address" 154 This option allows you to set the virtual address of the kernel MMU region. 159 hex "Virtual base address of the kernel MMU region " if NIOS2_KERNEL_MMU_REGION_BASE_BOOL 162 This option allows you to set the virtual base address of the kernel MMU region. 165 bool "Set custom kernel region base address" 168 This option allows you to set the virtual address of the kernel region. 173 hex "Virtual base address of the kernel region " if NIOS2_KERNEL_REGION_BASE_BOOL 177 bool "Set custom I/O region base address" 180 This option allows you to set the virtual address of the I/O region. 185 hex "Virtual base address of the I/O region" if NIOS2_IO_REGION_BASE_BOOL
|
/arch/sparc/kernel/ |
D | pci.c | 388 struct pci_bus_region region; in apb_fake_ranges() local 397 region.start = (first << 21); in apb_fake_ranges() 398 region.end = (last << 21) + ((1 << 21) - 1); in apb_fake_ranges() 399 pcibios_bus_to_resource(dev->bus, res, ®ion); in apb_fake_ranges() 405 region.start = (first << 29); in apb_fake_ranges() 406 region.end = (last << 29) + ((1 << 29) - 1); in apb_fake_ranges() 407 pcibios_bus_to_resource(dev->bus, res, ®ion); in apb_fake_ranges() 423 struct pci_bus_region region; in of_scan_pci_bridge() local 524 region.start = start = GET_64BIT(ranges, 1); in of_scan_pci_bridge() 525 region.end = region.start + size - 1; in of_scan_pci_bridge() [all …]
|
/arch/powerpc/kernel/ |
D | pci_of_scan.c | 121 struct pci_bus_region region; in of_pci_parse_addrs() local 163 region.start = base; in of_pci_parse_addrs() 164 region.end = base + size - 1; in of_pci_parse_addrs() 165 pcibios_bus_to_resource(dev->bus, res, ®ion); in of_pci_parse_addrs() 257 struct pci_bus_region region; in of_scan_pci_bridge() local 326 region.start = of_read_number(&ranges[1], 2); in of_scan_pci_bridge() 327 region.end = region.start + size - 1; in of_scan_pci_bridge() 328 pcibios_bus_to_resource(dev->bus, res, ®ion); in of_scan_pci_bridge()
|
/arch/x86/kvm/svm/ |
D | sev.c | 1006 struct enc_region *region; in svm_register_enc_region() local 1015 region = kzalloc(sizeof(*region), GFP_KERNEL_ACCOUNT); in svm_register_enc_region() 1016 if (!region) in svm_register_enc_region() 1020 region->pages = sev_pin_memory(kvm, range->addr, range->size, ®ion->npages, 1); in svm_register_enc_region() 1021 if (IS_ERR(region->pages)) { in svm_register_enc_region() 1022 ret = PTR_ERR(region->pages); in svm_register_enc_region() 1027 region->uaddr = range->addr; in svm_register_enc_region() 1028 region->size = range->size; in svm_register_enc_region() 1030 list_add_tail(®ion->list, &sev->regions_list); in svm_register_enc_region() 1039 sev_clflush_pages(region->pages, region->npages); in svm_register_enc_region() [all …]
|
/arch/arm/mach-ixp4xx/ |
D | common.c | 243 int region; in ixp4xx_sys_init() local 248 for (region = 0; region < 7; region++) { in ixp4xx_sys_init() 249 if((*(IXP4XX_EXP_REG(0x4 * region)) & 0x200)) { in ixp4xx_sys_init()
|
/arch/arm64/kvm/ |
D | guest.c | 394 static int sve_reg_to_region(struct sve_state_reg_region *region, in sve_reg_to_region() argument 454 region->koffset = array_index_nospec(reqoffset, sve_state_size); in sve_reg_to_region() 455 region->klen = min(maxlen, reqlen); in sve_reg_to_region() 456 region->upad = reqlen - region->klen; in sve_reg_to_region() 464 struct sve_state_reg_region region; in get_sve_reg() local 472 ret = sve_reg_to_region(®ion, vcpu, reg); in get_sve_reg() 479 if (copy_to_user(uptr, vcpu->arch.sve_state + region.koffset, in get_sve_reg() 480 region.klen) || in get_sve_reg() 481 clear_user(uptr + region.klen, region.upad)) in get_sve_reg() 490 struct sve_state_reg_region region; in set_sve_reg() local [all …]
|
/arch/arm/kernel/ |
D | head-nommu.S | 217 mov \tmp, \rgnr @ Use static region numbers 273 sub r6, r6, r5 @ Minimum size of region to map 275 rsb r6, r6, #31 @ ...so round up region size 277 orr r6, r6, #(1 << PMSAv7_RSR_EN) @ Set region enabled bit 283 ands r5, r0, #MPUIR_DREGION_SZMASK @ 0 size d region => No MPU 303 mov r0, #0 @ BG region starts at 0x0 305 mov r6, #PMSAv7_RSR_ALL_MEM @ 4GB region, enabled 307 setup_region r0, r5, r6, PMSAv7_DATA_SIDE, r12 @ 0x0, BG region, enabled 309 setup_region r0, r5, r6, PMSAv7_INSTR_SIDE r12 @ 0x0, BG region, enabled 320 sub r6, r6, r0 @ Minimum size of region to map [all …]
|
D | perf_event_v7.c | 1407 static u32 krait_get_pmresrn_event(unsigned int region) in krait_get_pmresrn_event() argument 1412 return pmresrn_table[region]; in krait_get_pmresrn_event() 1420 unsigned int region = EVENT_REGION(config_base); in krait_evt_setup() local 1433 val = krait_get_pmresrn_event(region); in krait_evt_setup() 1448 val = krait_read_pmresrn(region); in krait_evt_setup() 1452 krait_write_pmresrn(region, val); in krait_evt_setup() 1476 unsigned int region = EVENT_REGION(config_base); in krait_clearpmu() local 1487 val = krait_read_pmresrn(region); in krait_clearpmu() 1489 krait_write_pmresrn(region, val); in krait_clearpmu() 1580 static int krait_event_to_bit(struct perf_event *event, unsigned int region, in krait_event_to_bit() argument [all …]
|