Home
last modified time | relevance | path

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

12345678910>>...42

/linux-6.14.4/drivers/media/platform/qcom/venus/
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 …]
Dhelpers.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
11 #include <media/videobuf2-dma-contig.h>
12 #include <media/v4l2-mem2mem.h>
22 #define NUM_MBS_720P (((ALIGN(1280, 16)) >> 4) * ((ALIGN(736, 16)) >> 4))
23 #define NUM_MBS_4K (((ALIGN(4096, 16)) >> 4) * ((ALIGN(2304, 16)) >> 4))
33 size_t size; member
43 struct venus_core *core = inst->core; in venus_helper_check_codec()
44 u32 session_type = inst->session_type; in venus_helper_check_codec()
83 if (session_type == VIDC_SESSION_TYPE_ENC && core->enc_codecs & codec) in venus_helper_check_codec()
[all …]
/linux-6.14.4/net/wireless/
Dradiotap.c26 [IEEE80211_RADIOTAP_TSFT] = { .align = 8, .size = 8, },
27 [IEEE80211_RADIOTAP_FLAGS] = { .align = 1, .size = 1, },
28 [IEEE80211_RADIOTAP_RATE] = { .align = 1, .size = 1, },
29 [IEEE80211_RADIOTAP_CHANNEL] = { .align = 2, .size = 4, },
30 [IEEE80211_RADIOTAP_FHSS] = { .align = 2, .size = 2, },
31 [IEEE80211_RADIOTAP_DBM_ANTSIGNAL] = { .align = 1, .size = 1, },
32 [IEEE80211_RADIOTAP_DBM_ANTNOISE] = { .align = 1, .size = 1, },
33 [IEEE80211_RADIOTAP_LOCK_QUALITY] = { .align = 2, .size = 2, },
34 [IEEE80211_RADIOTAP_TX_ATTENUATION] = { .align = 2, .size = 2, },
35 [IEEE80211_RADIOTAP_DB_TX_ATTENUATION] = { .align = 2, .size = 2, },
[all …]
/linux-6.14.4/Documentation/networking/device_drivers/can/ctu/
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-6.14.4/include/trace/events/
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 …]
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-6.14.4/arch/sparc/lib/
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-6.14.4/drivers/gpu/drm/
Ddrm_suballoc.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
48 #include <linux/dma-fence.h>
54 * drm_suballoc_manager_init() - Initialise the drm_suballoc_manager
56 * @size: number of bytes we want to suballocate
57 * @align: alignment for each suballocated chunk
62 size_t size, size_t align) in drm_suballoc_manager_init() argument
68 if (!align) in drm_suballoc_manager_init()
69 align = 1; in drm_suballoc_manager_init()
72 if (WARN_ON_ONCE(align & (align - 1))) in drm_suballoc_manager_init()
[all …]
/linux-6.14.4/drivers/firmware/efi/libstub/
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 …]
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-6.14.4/mm/
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 …]
Dmemblock.c1 // SPDX-License-Identifier: GPL-2.0-or-later
46 * * ``memory`` - describes the physical memory available to the
50 * * ``reserved`` - describes the regions that were allocated
51 * * ``physmem`` - describes the actual physical memory available during
81 * * memblock_phys_alloc*() - these functions return the **physical**
83 * * memblock_alloc*() - these functions return the **virtual** address
145 for (i = 0, rgn = &memblock_type->regions[0]; \
146 i < memblock_type->cnt; \
147 i++, rgn = &memblock_type->regions[i])
171 /* adjust *@size so that (@base + *@size) doesn't overflow, return new size */
[all …]
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()
37 return -ERANGE; in copy_from_kernel_nofault()
40 if (!(align & 7)) in copy_from_kernel_nofault()
41 copy_from_kernel_nofault_loop(dst, src, size, u64, Efault); in copy_from_kernel_nofault()
[all …]
/linux-6.14.4/drivers/gpu/drm/msm/disp/dpu1/
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-6.14.4/include/linux/
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
56 * struct memblock_region - represents a memory region
58 * @size: size of the region
64 phys_addr_t size; member
72 * struct memblock_type - collection of memory regions of certain type
74 * @max: size of the allocated array
75 * @total_size: size of all regions
[all …]
/linux-6.14.4/arch/powerpc/kernel/ptrace/
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-6.14.4/arch/s390/boot/
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()
87 "+Q" (get_lowcore()->program_new_psw), in __diag260()
91 [psw_pgm] "a" (&get_lowcore()->program_new_psw) in __diag260()
93 cc = exception ? -1 : CC_TRANSFORM(cc); in __diag260()
[all …]
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-6.14.4/Documentation/devicetree/bindings/mtd/partitions/
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 <[email protected]>
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-6.14.4/drivers/nvdimm/
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()
62 if (dev->driver) in mode_store()
63 rc = -EBUSY; in mode_store()
[all …]
/linux-6.14.4/drivers/pci/
Dsetup-bus.c1 // SPDX-License-Identifier: GPL-2.0
11 * PCI-PCI bridges cleanup, sorted resource allocation.
50 list_del(&dev_res->list); in free_list()
56 * add_to_list() - Add a new resource tracker to the list
60 * @add_size: Additional size to be optionally added to the resource
71 return -ENOMEM; in add_to_list()
73 tmp->res = res; in add_to_list()
74 tmp->dev = dev; in add_to_list()
75 tmp->start = res->start; in add_to_list()
76 tmp->end = res->end; in add_to_list()
[all …]
/linux-6.14.4/drivers/gpu/drm/xe/compat-i915-headers/gem/
Di915_gem_stolen.h15 u32 size, u32 align, in i915_gem_stolen_insert_node_in_range() argument
25 if (align) { in i915_gem_stolen_insert_node_in_range()
26 size = ALIGN(size, align); in i915_gem_stolen_insert_node_in_range()
27 start = ALIGN(start, align); in i915_gem_stolen_insert_node_in_range()
31 NULL, size, start, end, in i915_gem_stolen_insert_node_in_range()
42 xe_bo_put(fb->bo); in i915_gem_stolen_insert_node_in_range()
46 fb->bo = bo; in i915_gem_stolen_insert_node_in_range()
53 u32 size, u32 align) in i915_gem_stolen_insert_node() argument
57 return -ENODEV; in i915_gem_stolen_insert_node()
63 xe_bo_unpin_map_no_vm(fb->bo); in i915_gem_stolen_remove_node()
[all …]
/linux-6.14.4/include/trace/stages/
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-6.14.4/lib/
Dalloc_tag.c1 // SPDX-License-Identifier: GPL-2.0-only
52 m->private = priv; in allocinfo_start()
56 priv->print_header = (node == 0); in allocinfo_start()
58 priv->iter = codetag_get_ct_iter(alloc_tag_cttype); in allocinfo_start()
59 while ((ct = codetag_next_ct(&priv->iter)) != NULL && node) in allocinfo_start()
60 node--; in allocinfo_start()
68 struct codetag *ct = codetag_next_ct(&priv->iter); in allocinfo_next()
79 struct allocinfo_private *priv = (struct allocinfo_private *)m->private; in allocinfo_stop()
90 seq_buf_printf(buf, "allocinfo - version: 1.0\n"); in print_allocinfo_header()
91 seq_buf_printf(buf, "# <size> <calls> <tag info>\n"); in print_allocinfo_header()
[all …]
/linux-6.14.4/drivers/media/platform/samsung/s5p-mfc/
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 …]

12345678910>>...42