/openbmc/linux/tools/testing/selftests/mm/ |
H A D | hmm-tests.c | 310 buffer->size = size; in TEST_F() 373 buffer->size = size; in TEST_F() 432 buffer->size = size; in TEST_F() 480 buffer->size = size; in TEST_F() 548 buffer->size = size; in TEST_F() 626 buffer->size = size; in TEST_F() 701 buffer->size = size; in TEST_F() 819 buffer->size = size; in TEST_F() 867 buffer->size = size; in TEST_F() 922 buffer->size = size; in TEST_F() [all …]
|
H A D | ksm_functional_tests.c | 179 memset(map, val, size); in mmap_and_merge_range() 181 if (mprotect(map, size, prot)) { in mmap_and_merge_range() 217 munmap(map, size); in mmap_and_merge_range() 240 munmap(map, size); in test_unmerge() 291 for (offs = size / 2; offs < size; offs += pagesize) in test_unmerge_zero_pages() 304 munmap(map, size); in test_unmerge_zero_pages() 332 munmap(map, size); in test_unmerge_discarded() 394 munmap(map, size); in test_unmerge_uffd_wp() 501 munmap(map, size); in test_prctl_unmerge() 526 if (madvise(map + size / 2, size / 2, MADV_UNMERGEABLE)) { in test_prot_none() [all …]
|
/openbmc/linux/sound/pci/ctxfi/ |
H A D | ctvmem.c | 35 size = CT_PAGE_ALIGN(size); in get_vm_block() 36 if (size > vm->size) { in get_vm_block() 45 if (entry->size >= size) in get_vm_block() 51 if (entry->size == size) { in get_vm_block() 54 vm->size -= size; in get_vm_block() 64 block->size = size; in get_vm_block() 67 entry->size -= size; in get_vm_block() 68 vm->size -= size; in get_vm_block() 84 vm->size += block->size; in put_vm_block() 148 block->size = size; in ct_vm_map() [all …]
|
/openbmc/linux/arch/x86/kernel/cpu/mtrr/ |
H A D | if.c | 55 size >>= PAGE_SHIFT; in mtrr_file_add() 74 size >>= PAGE_SHIFT; in mtrr_file_del() 160 unsigned long size; in mtrr_ioctl() local 197 err |= get_user(sentry.size, &s32->size); in mtrr_ioctl() 210 err |= get_user(gentry.size, &g32->size); in mtrr_ioctl() 258 || size >= (1UL << (8 * sizeof(gentry.size) - PAGE_SHIFT))) in mtrr_ioctl() 262 gentry.size = size << PAGE_SHIFT; in mtrr_ioctl() 302 if (size != (__typeof__(gentry.size))size) in mtrr_ioctl() 306 gentry.size = size; in mtrr_ioctl() 328 err |= put_user(gentry.size, &g32->size); in mtrr_ioctl() [all …]
|
/openbmc/linux/include/linux/ |
H A D | dma-map-ops.h | 49 unsigned long offset, size_t size, 72 dma_addr_t dma_handle, size_t size, 166 size_t size) in dma_free_contiguous() argument 168 __free_pages(page, get_order(size)); in dma_free_contiguous() 174 dma_addr_t device_addr, size_t size); 180 void *cpu_addr, size_t size, int *ret); 199 size_t size, int *ret); 203 ssize_t size, dma_addr_t *dma_handle) in dma_alloc_from_global_coherent() argument 212 void *cpu_addr, size_t size, int *ret) in dma_mmap_from_global_coherent() argument 256 dma_addr_t dma_start, u64 size); [all …]
|
H A D | instrumented.h | 26 kasan_check_read(v, size); in instrument_read() 27 kcsan_check_read(v, size); in instrument_read() 40 kasan_check_write(v, size); in instrument_write() 41 kcsan_check_write(v, size); in instrument_write() 54 kasan_check_write(v, size); in instrument_read_write() 55 kcsan_check_read_write(v, size); in instrument_read_write() 68 kasan_check_read(v, size); in instrument_atomic_read() 69 kcsan_check_atomic_read(v, size); in instrument_atomic_read() 82 kasan_check_write(v, size); in instrument_atomic_write() 83 kcsan_check_atomic_write(v, size); in instrument_atomic_write() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 213.out | 17 virtual size: 128 MiB (134217728 bytes) 34 virtual size: 64 MiB (67108864 bytes) 51 virtual size: 32 MiB (33554432 bytes) 62 === Zero size === 71 virtual size: 0 B (0 bytes) 74 === Maximum size === 83 virtual size: 64 TiB (70368744177664 bytes) 90 Job failed: Image size too large; max of 64TB 96 Job failed: Image size too large; max of 64TB 112 === Invalid block size === [all …]
|
H A D | 178.out.raw | 21 required size: 0 22 fully allocated size: 0 23 required size: 2147483648 25 required size: 68719476736 27 required size: 274877906944 39 required size: 0 40 fully allocated size: 0 47 required size: 1073741824 55 required size: 1073741824 62 required size: 1073741824 [all …]
|
/openbmc/linux/tools/perf/trace/beauty/ |
H A D | ioctl.c | 44 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'T', nr, dir); in ioctl__scnprintf_tty_cmd() 55 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'd', nr, dir); in ioctl__scnprintf_drm_cmd() 66 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'A', nr, dir); in ioctl__scnprintf_sndrv_pcm_cmd() 77 return scnprintf(bf, size, "(%#x, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_sndrv_ctl_cmd() 88 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); in ioctl__scnprintf_kvm_cmd() 99 return scnprintf(bf, size, "VHOST_%s", s->entries[nr]); in ioctl__scnprintf_vhost_virtio_cmd() 101 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAF, nr, dir); in ioctl__scnprintf_vhost_virtio_cmd() 112 return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir); in ioctl__scnprintf_perf_cmd() 123 return scnprintf(bf, size, "(%c, %#x, %#x)", 'U', nr, dir); in ioctl__scnprintf_usbdevfs_cmd() 136 size_t (*scnprintf)(int nr, int dir, char *bf, size_t size); in ioctl__scnprintf_cmd() [all …]
|
/openbmc/linux/mm/ |
H A D | early_ioremap.c | 36 unsigned long size, in early_memremap_pgprot_adjust() argument 119 __func__, &phys_addr, size)) in __early_ioremap() 123 last_addr = phys_addr + size - 1; in __early_ioremap() 127 prev_size[slot] = size; in __early_ioremap() 138 nrpages = size >> PAGE_SHIFT; in __early_ioremap() 179 __func__, addr, size)) in early_iounmap() 182 if (WARN(prev_size[slot] != size, in early_iounmap() 188 __func__, addr, size, slot); in early_iounmap() 253 while (size) { in copy_from_early_mem() 255 clen = size; in copy_from_early_mem() [all …]
|
/openbmc/u-boot/common/ |
H A D | bloblist.c | 62 ALIGN(size, BLOBLIST_ALIGN); in bloblist_addrec() 63 if (new_alloced >= hdr->size) { in bloblist_addrec() 66 size, hdr->size, new_alloced); in bloblist_addrec() 74 rec->size = size; in bloblist_addrec() 87 if (size && size != rec->size) in bloblist_ensurerec() 108 if (size && size != rec->size) in bloblist_find() 114 void *bloblist_add(uint tag, int size) in bloblist_add() argument 166 if (size < sizeof(*hdr)) in bloblist_new() 170 hdr = map_sysmem(addr, size); in bloblist_new() 176 hdr->size = size; in bloblist_new() [all …]
|
/openbmc/linux/arch/powerpc/lib/ |
H A D | rheap.c | 162 size = blkn->size; in attach_free_block() 215 before->size += size; in attach_free_block() 222 after->size += size; in attach_free_block() 227 before->size += size + after->size; in attach_free_block() 360 blk->size = size; in rh_attach_region() 420 blk->size -= size; in rh_detach_region() 474 if (blk->size == size) { in rh_alloc_align() 493 newblk->size = size; in rh_alloc_align() 582 blk->size -= size; in rh_alloc_fixed() 634 size = blk->size; in rh_free() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | nvs.c | 23 __u64 size; member 46 region->size = size; in acpi_nvs_register() 49 return suspend_nvs_register(start, size); in acpi_nvs_register() 77 unsigned int size; member 100 start, start + size - 1, size); in suspend_nvs_register() 102 while (size > 0) { in suspend_nvs_register() 112 entry->size = (size < nr_bytes) ? size : nr_bytes; in suspend_nvs_register() 114 start += entry->size; in suspend_nvs_register() 115 size -= entry->size; in suspend_nvs_register() 144 entry->size); in suspend_nvs_free() [all …]
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | ibm-power10-quad.dtsi | 11 #size-cells = <0>; 16 #size-cells = <1>; 28 #size-cells = <0>; 39 #size-cells = <0>; 44 #size-cells = <1>; 56 #size-cells = <0>; 67 #size-cells = <0>; 72 #size-cells = <1>; 95 #size-cells = <0>; 123 #size-cells = <0>; [all …]
|
/openbmc/linux/drivers/usb/core/ |
H A D | buffer.c | 68 int i, size; in hcd_buffer_create() local 74 size = pool_max[i]; in hcd_buffer_create() 75 if (!size) in hcd_buffer_create() 79 size, size, 0); in hcd_buffer_create() 117 size_t size, in hcd_buffer_alloc() argument 125 if (size == 0) in hcd_buffer_alloc() 138 if (size <= pool_max[i]) in hcd_buffer_alloc() 146 size_t size, in hcd_buffer_free() argument 179 if (size == 0) in hcd_buffer_alloc_pages() 190 get_order(size)); in hcd_buffer_alloc_pages() [all …]
|
/openbmc/linux/arch/s390/lib/ |
H A D | find.c | 27 size -= BITS_PER_LONG; in find_first_bit_inv() 29 if (!size) in find_first_bit_inv() 33 return result + size; /* Nope. */ in find_first_bit_inv() 46 if (offset >= size) in find_next_bit_inv() 47 return size; in find_next_bit_inv() 48 size -= result; in find_next_bit_inv() 53 if (size < BITS_PER_LONG) in find_next_bit_inv() 57 size -= BITS_PER_LONG; in find_next_bit_inv() 64 size -= BITS_PER_LONG; in find_next_bit_inv() 66 if (!size) in find_next_bit_inv() [all …]
|
/openbmc/linux/mm/kfence/ |
H A D | kfence_test.c | 189 return size; in setup_test_cache() 201 return size; in setup_test_cache() 320 size_t size = 32; in test_out_of_bounds_read() local 335 size = kmalloc_cache_alignment(size); in test_out_of_bounds_read() 354 size_t size = 32; in test_out_of_bounds_write() local 372 const size_t size = 32; in test_use_after_free_read() local 388 const size_t size = 32; in test_double_free() local 403 const size_t size = 32; in test_invalid_addr_free() local 420 size_t size = 32; in test_corruption() local 456 const size_t size = 73; in test_kmalloc_aligned_oob_read() local [all …]
|
/openbmc/linux/tools/testing/selftests/breakpoints/ |
H A D | breakpoint_test_arm64.c | 57 switch (size) { in child() 204 int wr, wp, size; in main() local 214 for (size = 1; size <= 32; size = size*2) { in main() 216 for (wp = wr - size; wp <= wr + size; wp = wp + size) { in main() 217 result = run_test(size, MIN(size, 8), wr, wp); in main() 222 size, wr, wp); in main() 226 size, wr, wp); in main() 233 for (size = 1; size <= 32; size = size*2) { in main() 234 if (run_test(size, 8, -size, -8)) in main() 237 size, -size); in main() [all …]
|
/openbmc/linux/kernel/dma/ |
H A D | direct.c | 75 return dma_addr + size - 1 <= in dma_coherent_ok() 99 size_t size) in __dma_direct_free_pages() argument 101 if (swiotlb_free(dev, page, size)) in __dma_direct_free_pages() 103 dma_free_contiguous(dev, page, size); in __dma_direct_free_pages() 111 swiotlb_free(dev, page, size); in dma_direct_alloc_swiotlb() 125 WARN_ON_ONCE(!PAGE_ALIGNED(size)); in __dma_direct_alloc_pages() 200 arch_dma_prep_coherent(page, size); in dma_direct_alloc_no_mapping() 214 size = PAGE_ALIGN(size); in dma_direct_alloc() 301 memset(ret, 0, size); in dma_direct_alloc() 384 memset(ret, 0, size); in dma_direct_alloc_pages() [all …]
|
H A D | mapping.c | 30 size_t size; member 49 WARN_ON(this->size != match->size || in dmam_match() 107 dr->size = size; in dmam_alloc_attrs() 407 size, attrs); in dma_get_sgtable_attrs() 570 size = PAGE_ALIGN(size); in __dma_alloc_pages() 594 size = PAGE_ALIGN(size); in __dma_free_pages() 610 size_t size, struct page *page) in dma_mmap_pages() argument 799 size_t size = SIZE_MAX; in dma_max_mapping_size() local 806 return size; in dma_max_mapping_size() 813 size_t size = SIZE_MAX; in dma_opt_mapping_size() local [all …]
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | patch-scs.c | 97 size--; in skip_xleb128() 100 return size; in skip_xleb128() 107 u32 size; member 149 size -= l + 1; in scs_handle_fde_frame() 165 size--; in scs_handle_fde_frame() 171 size -= 2; in scs_handle_fde_frame() 176 size = skip_xleb128(&opcode, size); in scs_handle_fde_frame() 184 size = skip_xleb128(&opcode, size); in scs_handle_fde_frame() 220 frame->size > size) in scs_patch() 248 p += sizeof(frame->size) + frame->size; in scs_patch() [all …]
|
/openbmc/linux/arch/arm/mm/ |
H A D | dma-mapping.c | 43 size_t size; member 53 size_t size; member 265 dma_mmu_remap[dma_mmu_remap_num].size = size; in dma_contiguous_early_fixup() 544 .size = PAGE_ALIGN(size), in __dma_alloc() 613 .size = PAGE_ALIGN(size), in __arm_dma_free() 724 if (!size) in __dma_page_dev_to_cpu() 823 if (!size) in __free_iova() 1013 size = PAGE_ALIGN((iova & ~PAGE_MASK) + size); in __iommu_remove_mapping() 1087 size = PAGE_ALIGN(size); in arm_iommu_alloc_attrs() 1151 size = PAGE_ALIGN(size); in arm_iommu_free_attrs() [all …]
|
H A D | ioremap.c | 50 size_t size, unsigned int mtype) in find_static_vm_paddr() argument 63 paddr + size - 1 > vm->phys_addr + vm->size - 1) in find_static_vm_paddr() 191 unsigned long addr = virt, end = virt + size; in remap_area_sections() 198 unmap_area_sections(virt, size); in remap_area_sections() 216 size_t size, const struct mem_type *type) in remap_area_supersections() argument 218 unsigned long addr = virt, end = virt + size; in remap_area_supersections() 225 unmap_area_sections(virt, size); in remap_area_supersections() 273 size = PAGE_ALIGN(offset + size); in __arm_ioremap_pfn_caller() 323 flush_cache_vmap(addr, addr + size); in __arm_ioremap_pfn_caller() 337 last_addr = phys_addr + size - 1; in __arm_ioremap_caller() [all …]
|
/openbmc/linux/arch/parisc/kernel/ |
H A D | pci-dma.c | 84 end = vaddr + size; in map_pte_uncached() 111 end = vaddr + size; in map_pmd_uncached() 154 unsigned long size) in unmap_uncached_pte() argument 169 end = vaddr + size; in unmap_uncached_pte() 190 unsigned long size) in unmap_uncached_pmd() argument 205 end = vaddr + size; in unmap_uncached_pmd() 241 u##size *res_ptr = (u##size *)&(pcxl_res_map[pcxl_res_hint & ~((size >> 3) - 1)]); \ 242 u##size *res_end = (u##size *)&pcxl_res_map[pcxl_res_size]; \ 259 size, pages_needed, mask); in pcxl_alloc_range() 297 …u##size *res_ptr = (u##size *)&(pcxl_res_map[(idx) + (((size >> 3) - 1) & (~((size >> 3) - 1)))]);… [all …]
|
/openbmc/linux/drivers/pnp/isapnp/ |
H A D | core.c | 549 *size >= name_max ? (name_max - 1) : *size; in isapnp_parse_name() 585 if (size >= 5 && size <= 6) { in isapnp_create_device() 611 if (size < 2 || size > 3) in isapnp_create_device() 614 size = 0; in isapnp_create_device() 620 size = 0; in isapnp_create_device() 642 size = 0; in isapnp_create_device() 649 size = 0; in isapnp_create_device() 657 size = 0; in isapnp_create_device() 672 size = 0; in isapnp_create_device() 679 size = 0; in isapnp_create_device() [all …]
|