| /linux/arch/s390/boot/ |
| H A D | physmem_info.c | 1 // SPDX-License-Identifier: GPL-2.0 35 return &physmem_info.online_extended[n - MEM_INLINED_ENTRIES]; in __get_physmem_range_ptr() 42 void add_physmem_online_range(u64 start, u64 end) in add_physmem_online_range() argument 47 range = __get_physmem_range_ptr(physmem_info.range_count - 1); in add_physmem_online_range() 48 if (range->end == start) { in add_physmem_online_range() 49 range->end = end; in add_physmem_online_range() 55 range->start = start; in add_physmem_online_range() 56 range->end = end; in add_physmem_online_range() 79 cc = exception ? -1 : CC_TRANSFORM(cc); in __diag260() 80 return cc == 0 ? ry : -1; in __diag260() [all …]
|
| H A D | kaslr.c | 1 // SPDX-License-Identifier: GPL-2.0 88 return -1; in get_random() 101 for (j = i - 1; j >= 0 && res[j].start > tmp.start; j--) in sort_reserved_ranges() 107 static unsigned long iterate_valid_positions(unsigned long size, unsigned long align, in iterate_valid_positions() argument 112 unsigned long start, end, tmp_end, range_pos, pos = 0; in iterate_valid_positions() local 117 align = max(align, 8UL); in iterate_valid_positions() 118 _min = round_up(_min, align); in iterate_valid_positions() 119 for_each_physmem_usable_range(i, &start, &end) { in iterate_valid_positions() 120 if (_min >= end) in iterate_valid_positions() 122 start = round_up(start, align); in iterate_valid_positions() [all …]
|
| /linux/include/trace/events/ |
| H A D | vmalloc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 11 * alloc_vmap_area - called when a new vmap allocation occurs 14 * @align: a requested alignment 16 * @vend: a requested end range 25 TP_PROTO(unsigned long addr, unsigned long size, unsigned long align, 28 TP_ARGS(addr, size, align, vstart, vend, failed), 33 __field(unsigned long, align) 40 __entry->addr = addr; 41 __entry->size = size; 42 __entry->align = align; [all …]
|
| /linux/mm/ |
| H A D | memblock.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 52 * * ``memory`` - describes the physical memory available to the 56 * * ``reserved`` - describes the regions that were allocated 57 * * ``physmem`` - describes the actual physical memory available during 87 * * memblock_phys_alloc*() - these functions return the **physical** 89 * * memblock_alloc*() - these functions return the **virtual** address 158 for (i = 0, rgn = &memblock_type->regions[0]; \ 159 i < memblock_type->cnt; \ 160 i++, rgn = &memblock_type->regions[i]) 181 /* skip non-scratch memory for kho early boot allocations */ in choose_memblock_flags() [all …]
|
| H A D | cma.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2010-2011 by Samsung Electronics. 41 WARN_ON_ONCE(cma->nranges != 1); in cma_get_base() 42 return PFN_PHYS(cma->ranges[0].base_pfn); in cma_get_base() 47 return cma->count << PAGE_SHIFT; in cma_get_size() 52 return cma->name; in cma_get_name() 58 if (align_order <= cma->order_per_bit) in cma_bitmap_aligned_mask() 60 return (1UL << (align_order - cma->order_per_bit)) - 1; in cma_bitmap_aligned_mask() 71 return (cmr->base_pfn & ((1UL << align_order) - 1)) in cma_bitmap_aligned_offset() 72 >> cma->order_per_bit; in cma_bitmap_aligned_offset() [all …]
|
| H A D | vmalloc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * SMP-safe vmalloc/vfree/ioremap, Tigran Aivazian <tigran@veritas.com>, May 2000 51 #include "pgalloc-track.h" 54 static unsigned int __ro_after_init ioremap_max_page_shift = BITS_PER_LONG - 1; 94 static int vmap_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, in vmap_pte_range() argument 106 return -ENOMEM; in vmap_pte_range() 120 size = arch_vmap_pte_range_map_size(addr, end, pfn, max_page_shift); in vmap_pte_range() 132 } while (pte += PFN_DOWN(size), addr += size, addr != end); in vmap_pte_range() 139 static int vmap_try_huge_pmd(pmd_t *pmd, unsigned long addr, unsigned long end, in vmap_try_huge_pmd() argument 149 if ((end - addr) != PMD_SIZE) in vmap_try_huge_pmd() [all …]
|
| /linux/Documentation/devicetree/bindings/mtd/partitions/ |
| H A D | partition.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 16 Everything after 'partition-' will be used as the partition name to compare 26 - Rafał Miłecki <rafal@milecki.pl> 37 read-only: 39 should only be mounted read-only. This is usually used for flash 40 partitions containing early-boot firmware images or data which should 49 slc-mode: 52 immune to paired-pages corruptions [all …]
|
| /linux/Documentation/networking/device_drivers/can/ctu/ |
| H A D | fsm_txt_buffer_user.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 …mlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> 5 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 8 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 11 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 14 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 17 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 20 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 23 …-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.03544z" fill="#28a4ff" fil… 26 …3374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.03544z" fill-rule="eve… [all …]
|
| /linux/arch/arm/mm/ |
| H A D | proc-feroceon.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mm/proc-feroceon.S: MMU functions for Feroceon 5 * Heavily based on proc-arm926.S 15 #include <asm/pgtable-hwdef.h> 18 #include "proc-macros.S" 36 .align 3 53 movne r3, #((4 - 1) << 30) @ 4-way 55 moveq r3, #0 @ 1-way 94 .align 5 116 .align 5 [all …]
|
| H A D | proc-arm1026.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mm/proc-arm1026.S: MMU functions for ARM1026EJ-S 7 * hacked for non-paged-MM by Hyok S. Choi, 2003. 10 * functions on the ARM1026EJ-S. 17 #include <asm/asm-offsets.h> 19 #include <asm/pgtable-hwdef.h> 22 #include "proc-macros.S" 84 .align 5 104 .align 5 112 .align 5 [all …]
|
| H A D | proc-arm1022.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mm/proc-arm1022.S: MMU functions for ARM1022E 7 * hacked for non-paged-MM by Hyok S. Choi, 2003. 17 #include <asm/asm-offsets.h> 19 #include <asm/pgtable-hwdef.h> 22 #include "proc-macros.S" 84 .align 5 104 .align 5 112 .align 5 145 mov r1, #(CACHE_DSEGMENTS - 1) << 5 @ 16 segments [all …]
|
| /linux/include/linux/ |
| H A D | memblock.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 28 * enum memblock_flags - definition of memory region attributes 30 * @MEMBLOCK_HOTPLUG: memory region indicated in the firmware-provided memory 40 * via a driver, and never indicated in the firmware-provided memory map as 67 * struct memblock_region - represents a memory region 83 * struct memblock_type - collection of memory regions of certain type 99 * struct memblock - memblock allocator metadata 146 void memblock_trim_memory(phys_addr_t align); 189 * for_each_physmem_range - iterate through physmem areas not included in type. 193 * @p_end: ptr to phys_addr_t for end address of the range, can be %NULL [all …]
|
| /linux/arch/alpha/boot/ |
| H A D | head.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 .end __start 20 .align 5 27 .end wrent 29 .align 5 36 .end wrkgp 38 .align 5 86 .end switch_to_osf_pal 88 .align 3 95 .end tbi [all …]
|
| /linux/arch/microblaze/kernel/cpu/ |
| H A D | cache.c | 4 * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu> 5 * Copyright (C) 2007-2009 PetaLogix 6 * Copyright (C) 2007-2009 John Williams <john.williams@petalogix.com> 89 * End address can be unaligned which is OK for C implementation. 90 * ASM implementation align it in ASM macros 92 #define CACHE_LOOP_LIMITS(start, end, cache_line_length, cache_size) \ argument 94 int align = ~(cache_line_length - 1); \ 95 if (start < UINT_MAX - cache_size) \ 96 end = min(start + cache_size, end); \ 97 start &= align; \ [all …]
|
| /linux/drivers/pci/ |
| H A D | setup-bus.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * PCI-PCI bridges cleanup, sorted resource allocation. 43 resource_size_t end; member 54 list_del(&dev_res->list); in free_list() 60 * add_to_list() - Add a new resource tracker to the list 75 return -ENOMEM; in add_to_list() 77 tmp->res = res; in add_to_list() 78 tmp->dev = dev; in add_to_list() 79 tmp->start = res->start; in add_to_list() 80 tmp->end = res->end; in add_to_list() [all …]
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_random.c | 56 /* Fisher-Yates shuffle courtesy of Knuth */ in i915_prandom_shuffle() 57 while (--count) { in i915_prandom_shuffle() 93 u64 start, u64 end, in igt_random_offset() argument 94 u64 len, u64 align) in igt_random_offset() argument 98 BUG_ON(range_overflows(start, len, end)); in igt_random_offset() 99 BUG_ON(round_up(start, align) > round_down(end - len, align)); in igt_random_offset() 101 range = round_down(end - len, align) - round_up(start, align); in igt_random_offset() 108 return round_up(start, align); in igt_random_offset()
|
| /linux/drivers/nvdimm/ |
| H A D | dimm_devs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 14 #include "nd-core.h" 29 if (!nvdimm->cmd_mask || in nvdimm_check_config_data() 30 !test_bit(ND_CMD_GET_CONFIG_DATA, &nvdimm->cmd_mask)) { in nvdimm_check_config_data() 31 if (test_bit(NDD_LABELING, &nvdimm->flags)) in nvdimm_check_config_data() 32 return -ENXIO; in nvdimm_check_config_data() 34 return -ENOTTY; in nvdimm_check_config_data() 45 return -EINVAL; in validate_dimm() 47 rc = nvdimm_check_config_data(ndd->dev); in validate_dimm() [all …]
|
| /linux/arch/alpha/lib/ |
| H A D | callback_srm.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 .align 4 34 .align 4 50 .end srm_fixup 53 .align 3 55 lda $0,-1($31) 60 .align 4; .globl callback_##NAME; .ent callback_##NAME; callback_##NAME##: \ 61 ldgp $29,0($27); br $25,srm_dispatch; .word CODE, ARG_CNT; .end callback_##NAME 66 .align 3; .globl callback_##NAME; .ent callback_##NAME; callback_##NAME##: \ 67 lda $0,-1($31); ret; .end callback_##NAME [all …]
|
| H A D | memset.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * This routine is "moral-ware": you are free to use it any way you wish, and 28 .align 5 35 bis $17,$1,$17 /* E0 (p-c latency, next cycle) */ 36 sll $17,16,$1 /* E1 (p-c latency, next cycle) */ 38 bis $17,$1,$17 /* E0 (p-c latency, next cycle) */ 39 sll $17,32,$1 /* E1 (p-c latency, next cycle) */ 40 bis $17,$1,$17 /* E0 (p-c latency, next cycle) */ 43 .align 5 48 ble $18,end /* .. E1 */ [all …]
|
| /linux/arch/arm/kernel/ |
| H A D | vmlinux-xip.lds.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 /* No __ro_after_init data in the .rodata section - which will always be ro */ 57 _stext = .; /* Text and read-only data */ 63 . = ALIGN(4); 64 __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { 74 _etext = .; /* End of text and rodata section */ 102 . = ALIGN(SZ_128K); 104 _exiprom = .; /* End of XIP ROM area */ 109 __data_loc = ALIGN(4); /* location in file */ 112 #define LOAD_OFFSET (PAGE_OFFSET + TEXT_OFFSET - __data_loc) [all …]
|
| /linux/arch/alpha/kernel/ |
| H A D | pci_iommu.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include <linux/dma-map-ops.h> 15 #include <linux/iommu-helper.h> 44 return (paddr >> (PAGE_SHIFT-1)) | 1; in mk_iommu_pte() 61 unsigned long window_size, unsigned long align) in iommu_arena_new_node() argument 70 the size of the window. Retain the align parameter so that in iommu_arena_new_node() 71 particular systems can over-align the arena. */ in iommu_arena_new_node() 72 if (align < mem_size) in iommu_arena_new_node() 73 align = mem_size; in iommu_arena_new_node() 76 arena->ptes = memblock_alloc_or_panic(mem_size, align); in iommu_arena_new_node() [all …]
|
| H A D | head.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * switched into OSF/1 PAL-code, and loaded us at the correct address 8 * the kernel global pointer and jump to the kernel entry-point. 12 #include <asm/asm-offsets.h> 29 lda $30,0x4000 - SIZEOF_PT_REGS($8) 33 .end __start 36 .align 3 39 /* On entry here from SRM console, the HWPCB of the per-cpu 56 .end __smp_callin 65 .align 3 [all …]
|
| /linux/arch/x86/kernel/ |
| H A D | vmlinux.lds.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Historic 32-bit version written by Martin Mares <mj@atrey.karlin.mff.cuni.cz> 8 * Copyright (C) 2007-2009 Sam Ravnborg <sam@ravnborg.org> 24 #include <asm-generic/vmlinux.lds.h> 25 #include <asm/asm-offsets.h> 41 OUTPUT_ARCH(i386:x86-64) 51 * On 64-bit, align RODATA to 2MB so we retain large page mappings for 57 * pages. For 64-bit, kernel text and kernel identity mappings are different, 61 #define X86_ALIGN_RODATA_BEGIN . = ALIGN(HPAGE_SIZE); 64 . = ALIGN(HPAGE_SIZE); \ [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_gem_gtt.c | 1 // SPDX-License-Identifier: MIT 7 #include <linux/slab.h> /* fault-inject.h is not standalone! */ 9 #include <linux/fault-inject.h> 31 if (dma_map_sg_attrs(obj->base.dev->dev, in i915_gem_gtt_prepare_pages() 32 pages->sgl, pages->nents, in i915_gem_gtt_prepare_pages() 43 * try again - if there are no more pages to remove from in i915_gem_gtt_prepare_pages() 46 GEM_BUG_ON(obj->mm.pages == pages); in i915_gem_gtt_prepare_pages() 47 } while (i915_gem_shrink(NULL, to_i915(obj->base.dev), in i915_gem_gtt_prepare_pages() 48 obj->base.size >> PAGE_SHIFT, NULL, in i915_gem_gtt_prepare_pages() 52 return -ENOSPC; in i915_gem_gtt_prepare_pages() [all …]
|
| /linux/drivers/pcmcia/ |
| H A D | pcmcia_resource.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * PCMCIA 16-bit resource management functions 10 * Copyright (C) 2004-2010 Dominik Brodowski 39 if (s->resource_ops->validate_mem) in pcmcia_validate_mem() 40 return s->resource_ops->validate_mem(s); in pcmcia_validate_mem() 45 struct resource *pcmcia_find_mem_region(u_long base, u_long num, u_long align, in pcmcia_find_mem_region() argument 48 if (s->resource_ops->find_mem) in pcmcia_find_mem_region() 49 return s->resource_ops->find_mem(base, num, align, low, s); in pcmcia_find_mem_region() 55 * release_io_space() - release IO ports allocated with alloc_io_space() 65 dev_dbg(&s->dev, "release_io_space for %pR\n", res); in release_io_space() [all …]
|