Home
last modified time | relevance | path

Searched +full:align +full:- +full:size (Results 1 – 25 of 1277) sorted by relevance

12345678910>>...52

/linux/drivers/media/platform/qcom/venus/
H A Dhfi_plat_bufs_v6.c1 // SPDX-License-Identifier: GPL-2.0-only
56 (MAX_FE_NBR_DATA_LUMA_LINE_BUFFER_SIZE * ALIGN((width), 16) * 3)
76 (ALIGN((height), 16) * 32)
88 * size for high resolution
102 (MAX_FE_NBR_DATA_LUMA_LINE_BUFFER_SIZE * (ALIGN(width, 64) + 8) * 2)
106 (ALIGN(width, LCU_MAX_SIZE_PELS) / LCU_MIN_SIZE_PELS))
110 (ALIGN(height, LCU_MAX_SIZE_PELS) / LCU_MIN_SIZE_PELS))
119 x = ((height + 16 - 1) / 8) * MAX_SE_NBR_CTRL_LCU16_LINE_BUFFER_SIZE; in size_h265d_lb_se_left_ctrl()
120 y = ((height + 32 - 1) / 8) * MAX_SE_NBR_CTRL_LCU32_LINE_BUFFER_SIZE; in size_h265d_lb_se_left_ctrl()
121 z = ((height + 64 - 1) / 8) * MAX_SE_NBR_CTRL_LCU64_LINE_BUFFER_SIZE; in size_h265d_lb_se_left_ctrl()
[all …]
/linux/Documentation/networking/device_drivers/can/ctu/
H A Dfsm_txt_buffer_user.svg1 <?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/include/trace/events/
H A Dpercpu.h1 /* SPDX-License-Identifier: GPL-2.0 */
14 bool reserved, bool is_atomic, size_t size,
15 size_t align, void *base_addr, int off,
18 TP_ARGS(call_site, reserved, is_atomic, size, align, base_addr, off,
25 __field( size_t, size )
26 __field( size_t, align )
34 __entry->call_site = call_site;
35 __entry->reserved = reserved;
36 __entry->is_atomic = is_atomic;
37 __entry->size = size;
[all …]
H A Dvmalloc.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 * alloc_vmap_area - called when a new vmap allocation occurs
13 * @size: a requested size
14 * @align: a requested alignment
25 TP_PROTO(unsigned long addr, unsigned long size, unsigned long align,
28 TP_ARGS(addr, size, align, vstart, vend, failed),
32 __field(unsigned long, size)
33 __field(unsigned long, align)
40 __entry->addr = addr;
41 __entry->size = size;
[all …]
/linux/arch/sparc/lib/
H A Dbitext.c1 // SPDX-License-Identifier: GPL-2.0
9 * by align size, should provide fast enough search while maintaining low
19 * bit_map_string_get - find and set a bit string in bit map.
22 * @align: requested alignment
24 * Returns offset in the map or -1 if out of space.
28 int bit_map_string_get(struct bit_map *t, int len, int align) in bit_map_string_get() argument
35 if (t->num_colors) { in bit_map_string_get()
36 /* align is overloaded to be the page color */ in bit_map_string_get()
37 color = align; in bit_map_string_get()
38 align = t->num_colors; in bit_map_string_get()
[all …]
/linux/drivers/firmware/efi/libstub/
H A Dalignedmem.c1 // SPDX-License-Identifier: GPL-2.0
9 * efi_allocate_pages_aligned() - Allocate memory pages
10 * @size: minimum number of bytes to allocate
13 * architecture dependent multiple of the page size.
16 * @align: minimum alignment of the base of the allocation
20 * to @align, which should be >= EFI_ALLOC_ALIGN. The last allocated page will
25 efi_status_t efi_allocate_pages_aligned(unsigned long size, unsigned long *addr, in efi_allocate_pages_aligned() argument
26 unsigned long max, unsigned long align, in efi_allocate_pages_aligned() argument
35 if (align < EFI_ALLOC_ALIGN) in efi_allocate_pages_aligned()
36 align = EFI_ALLOC_ALIGN; in efi_allocate_pages_aligned()
[all …]
H A Drandomalloc.c1 // SPDX-License-Identifier: GPL-2.0
18 unsigned long size, in get_entry_num_slots() argument
22 unsigned long align = 1UL << align_shift; in get_entry_num_slots() local
25 if (md->type != EFI_CONVENTIONAL_MEMORY) in get_entry_num_slots()
28 if (md->attribute & EFI_MEMORY_HOT_PLUGGABLE) in get_entry_num_slots()
32 (md->attribute & EFI_MEMORY_SP)) in get_entry_num_slots()
35 region_end = min(md->phys_addr + md->num_pages * EFI_PAGE_SIZE - 1, in get_entry_num_slots()
37 if (region_end < size) in get_entry_num_slots()
40 first_slot = round_up(max(md->phys_addr, alloc_min), align); in get_entry_num_slots()
41 last_slot = round_down(region_end - size + 1, align); in get_entry_num_slots()
[all …]
/linux/mm/
H A Ddmapool_test.c2 #include <linux/dma-map-ops.h>
3 #include <linux/dma-mapping.h>
17 size_t size; member
18 size_t align; member
23 { .size = 16, .align = 16, .boundary = 0 },
24 { .size = 64, .align = 64, .boundary = 0 },
25 { .size = 256, .align = 256, .boundary = 0 },
26 { .size = 1024, .align = 1024, .boundary = 0 },
27 { .size = 4096, .align = 4096, .boundary = 0 },
28 { .size = 68, .align = 32, .boundary = 4096 },
[all …]
H A Dmemblock.c1 // 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 Dcma.c1 // 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 Dmaccess.c1 // SPDX-License-Identifier: GPL-2.0-only
11 size_t size) in copy_from_kernel_nofault_allowed() argument
26 len -= sizeof(type); \
29 long copy_from_kernel_nofault(void *dst, const void *src, size_t size) in copy_from_kernel_nofault() argument
31 unsigned long align = 0; in copy_from_kernel_nofault() local
34 align = (unsigned long)dst | (unsigned long)src; in copy_from_kernel_nofault()
36 if (!copy_from_kernel_nofault_allowed(src, size)) in copy_from_kernel_nofault()
64 copy_to_kernel_nofault(void * dst,const void * src,size_t size) copy_to_kernel_nofault() argument
66 unsigned long align = 0; copy_to_kernel_nofault() local
121 copy_from_user_nofault(void * dst,const void __user * src,size_t size) copy_from_user_nofault() argument
150 copy_to_user_nofault(void __user * dst,const void * src,size_t size) copy_to_user_nofault() argument
233 __copy_overflow(int size,unsigned long count) __copy_overflow() argument
[all...]
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Dmsm_media_info.h5 #define MSM_MEDIA_ALIGN(__sz, __align) (((__align) & ((__align) - 1)) ?\
6 ((((__sz) + (__align) - 1) / (__align)) * (__align)) :\
7 (((__sz) + (__align) - 1) & (~((__align) - 1))))
11 #define MSM_MEDIA_ROUNDUP(__sz, __r) (((__sz) + ((__r) - 1)) / (__r))
24 * <-------- Y/UV_Stride -------->
25 * <------- Width ------->
44 * . . . . . . . . . . . . . . . . --> Buffer size alignment
50 * Extradata: Arbitrary (software-imposed) padding
51 * Total size = align((Y_Stride * Y_Scanlines
62 * <-------- Y/UV_Stride -------->
[all …]
/linux/arch/s390/boot/
H A Dphysmem_info.c1 // SPDX-License-Identifier: GPL-2.0
35 return &physmem_info.online_extended[n - MEM_INLINED_ENTRIES]; in __get_physmem_range_ptr()
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()
94 if (rc == -1) in diag260()
[all …]
H A Dkaslr.c1 // SPDX-License-Identifier: GPL-2.0
88 return -1; in get_random()
94 static void sort_reserved_ranges(struct reserved_range *res, unsigned long size) in sort_reserved_ranges() argument
99 for (i = 1; i < size; i++) { in sort_reserved_ranges()
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
117 align = max(align, 8UL); in iterate_valid_positions()
118 _min = round_up(_min, align); in iterate_valid_positions()
122 start = round_up(start, align); in iterate_valid_positions()
128 while (start + size <= end) { in iterate_valid_positions()
[all …]
/linux/include/linux/
H A Dmemblock.h1 /* 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
69 * @size: size of the region
75 phys_addr_t size; member
83 * struct memblock_type - collection of memory regions of certain type
85 * @max: size of the allocated array
86 * @total_size: size of all regions
[all …]
/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-view.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #include "ptrace-decl.h"
73 * regs_query_register_offset() - query register offset from its name
77 * pt_regs from its name. If the name is invalid, this returns -EINVAL;
82 for (roff = regoffset_table; roff->name != NULL; roff++) in regs_query_register_offset()
83 if (!strcmp(roff->name, name)) in regs_query_register_offset()
84 return roff->offset; in regs_query_register_offset()
85 return -EINVAL; in regs_query_register_offset()
89 * regs_query_register_name() - query register name from its offset
98 for (roff = regoffset_table; roff->name != NULL; roff++) in regs_query_register_name()
[all …]
/linux/drivers/nvdimm/
H A Dpfn_devs.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright(c) 2013-2016 Intel Corporation. All rights reserved.
12 #include "nd-core.h"
20 struct nd_region *nd_region = to_nd_region(dev->parent); in nd_pfn_release()
24 nd_detach_ndns(&nd_pfn->dev, &nd_pfn->ndns); in nd_pfn_release()
25 ida_free(&nd_region->pfn_ida, nd_pfn->id); in nd_pfn_release()
26 kfree(nd_pfn->uuid); in nd_pfn_release()
44 switch (nd_pfn->mode) { in mode_show()
59 size_t n = len - 1; in mode_store()
63 if (dev->driver) in mode_store()
[all …]
/linux/Documentation/devicetree/bindings/mtd/partitions/
H A Dpartition.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 relative offset and size specified. Depending on partition function extra
16 Everything after 'partition-' will be used as the partition name to compare
26 - Rafał Miłecki <rafal@milecki.pl>
30 description: partition's offset and size within the flash
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
[all …]
/linux/include/trace/stages/
H A Dstage4_event_fields.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 .size = sizeof(_type), .align = ALIGN_STRUCTFIELD(_type), \
16 .size = sizeof(_type), .align = ALIGN_STRUCTFIELD(_type), \
28 .size = sizeof(_type[_len]), .align = ALIGN_STRUCTFIELD(_type), \
35 .size = 4, .align = 4, \
39 #define __string(item, src) __dynamic_array(char, item, -1)
42 #define __string_len(item, src, len) __dynamic_array(char, item, -1)
45 #define __vstring(item, fmt, ap) __dynamic_array(char, item, -1)
48 #define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1)
53 .size = 4, .align = 4, \
[all …]
/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_opr_v5.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Samsung MFC (Multi Function Codec - FIMV) driver
22 #include <linux/dma-mapping.h>
30 #define OFFSETA(x) (((x) - dev->dma_base[BANK_L_CTX]) >> MFC_OFFSET_SHIFT)
31 #define OFFSETB(x) (((x) - dev->dma_base[BANK_R_CTX]) >> MFC_OFFSET_SHIFT)
36 struct s5p_mfc_dev *dev = ctx->dev; in s5p_mfc_alloc_dec_temp_buffers_v5()
37 const struct s5p_mfc_buf_size_v5 *buf_size = dev->variant->buf_size->priv; in s5p_mfc_alloc_dec_temp_buffers_v5()
40 ctx->dsc.size = buf_size->dsc; in s5p_mfc_alloc_dec_temp_buffers_v5()
41 ret = s5p_mfc_alloc_priv_buf(dev, BANK_L_CTX, &ctx->dsc); in s5p_mfc_alloc_dec_temp_buffers_v5()
47 BUG_ON(ctx->dsc.dma & ((1 << MFC_BANK1_ALIGN_ORDER) - 1)); in s5p_mfc_alloc_dec_temp_buffers_v5()
[all …]
/linux/tools/testing/shared/
H A Dlinux.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/radix-tree.h>
21 cachep->callback = callback; member
26 cachep->private = private;
31 cachep->non_kernel = val;
36 return cachep->size * cachep->nr_allocate in kmem_cache_set_callback()
22 unsigned int align; global() member
150 kmem_cache_free_bulk(struct kmem_cache * cachep,size_t size,void ** list) kmem_cache_free_bulk() argument
165 kmem_cache_alloc_bulk(struct kmem_cache * cachep,gfp_t gfp,size_t size,void ** p) kmem_cache_alloc_bulk() argument
237 kmem_cache_create(const char * name,unsigned int size,unsigned int align,unsigned int flags,void (* ctor)(void *)) kmem_cache_create() argument
[all...]
/linux/drivers/pci/
H A Dsetup-bus.c1 // SPDX-License-Identifier: GPL-2.0
11 * PCI-PCI bridges cleanup, sorted resource allocation.
54 list_del(&dev_res->list); in free_list()
60 * add_to_list() - Add a new resource tracker to the list
64 * @add_size: Additional size to be optionally added to the resource
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/lib/
H A Dalloc_tag.c1 // SPDX-License-Identifier: GPL-2.0-only
54 priv = (struct allocinfo_private *)m->private; in allocinfo_start()
57 priv->print_header = true; in allocinfo_start()
58 priv->iter = codetag_get_ct_iter(alloc_tag_cttype); in allocinfo_start()
59 codetag_next_ct(&priv->iter); in allocinfo_start()
61 return priv->iter.ct ? priv : NULL; in allocinfo_start()
67 struct codetag *ct = codetag_next_ct(&priv->iter); in allocinfo_next()
84 seq_buf_printf(buf, "allocinfo - version: 2.0\n"); in print_allocinfo_header()
85 seq_buf_printf(buf, "# <size> <calls> <tag info>\n"); in print_allocinfo_header()
110 if (priv->print_header) { in allocinfo_show()
[all …]
H A Dusercopy.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/fault-inject-usercopy.h>
13 /* out-of-line parts */
34 * @size: Size of buffer.
36 * This is effectively shorthand for "memchr_inv(from, 0, size) == NULL" for
38 * first non-zero byte is).
41 * * 0: There were non-zero bytes present in the buffer.
43 * * -EFAULT: access to userspace failed.
45 int check_zeroed_user(const void __user *from, size_t size) in check_zeroed_user() argument
48 uintptr_t align = (uintptr_t) from % sizeof(unsigned long); in check_zeroed_user() local
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/acr/
H A Dlsfw.c31 nvkm_blob_dtor(&lsfw->img); in nvkm_acr_lsfw_del()
32 kfree(lsfw->sigs); in nvkm_acr_lsfw_del()
33 nvkm_firmware_put(lsfw->sig); in nvkm_acr_lsfw_del()
34 list_del(&lsfw->head); in nvkm_acr_lsfw_del()
42 list_for_each_entry_safe(lsfw, lsft, &acr->lsfw, head) { in nvkm_acr_lsfw_del_all()
51 list_for_each_entry(lsfw, &acr->lsfw, head) { in nvkm_acr_lsfw_get()
52 if (lsfw->id == id) in nvkm_acr_lsfw_get()
64 if (!acr || list_empty(&acr->hsfw)) in nvkm_acr_lsfw_add()
65 return ERR_PTR(-ENOSYS); in nvkm_acr_lsfw_add()
68 if (lsfw && lsfw->func) { in nvkm_acr_lsfw_add()
[all …]

12345678910>>...52