Home
last modified time | relevance | path

Searched refs:sizes (Results 1 – 25 of 271) sorted by relevance

1234567891011

/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_buffer_fill.c16 static int sizes[] = { variable
35 item = ARRAY_SIZE(sizes); in check_buffer_by_byte()
38 ptr = (char *)mte_allocate_memory(sizes[i], mem_type, 0, true); in check_buffer_by_byte()
39 if (check_allocated_memory(ptr, sizes[i], mem_type, true) != KSFT_PASS) in check_buffer_by_byte()
41 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[i]); in check_buffer_by_byte()
43 for (j = 0; j < sizes[i]; j++) in check_buffer_by_byte()
48 for (j = 0; j < sizes[i] && !err; j++) { in check_buffer_by_byte()
52 mte_free_memory((void *)ptr, sizes[i], mem_type, true); in check_buffer_by_byte()
72 item = ARRAY_SIZE(sizes); in check_buffer_underflow_by_byte()
74 ptr = (char *)mte_allocate_memory_tag_range(sizes[ in check_buffer_underflow_by_byte()
[all...]
H A Dcheck_mmap_options.c28 static int sizes[] = { variable
64 int item = ARRAY_SIZE(sizes); in check_anonymous_memory_mapping()
68 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_anonymous_memory_mapping()
74 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_anonymous_memory_mapping()
76 ptr = mte_insert_tags((void *)ptr, sizes[run]); in check_anonymous_memory_mapping()
82 result = check_mte_memory(ptr, sizes[run], mode, tag_check); in check_anonymous_memory_mapping()
83 mte_clear_tags((void *)ptr, sizes[run]); in check_anonymous_memory_mapping()
95 int total = ARRAY_SIZE(sizes); in check_file_memory_mapping()
104 map_size = sizes[run] + UNDERFLOW + OVERFLOW; in check_file_memory_mapping()
111 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_file_memory_mapping()
[all …]
H A Dcheck_child_memory.c24 static int sizes[] = { variable
88 int item = ARRAY_SIZE(sizes); in check_child_memory_mapping()
90 item = ARRAY_SIZE(sizes); in check_child_memory_mapping()
93 ptr = (char *)mte_allocate_memory_tag_range(sizes[run], mem_type, mapping, in check_child_memory_mapping()
95 if (check_allocated_memory_range(ptr, sizes[run], mem_type, in check_child_memory_mapping()
98 result = check_child_tag_inheritance(ptr, sizes[run], mode); in check_child_memory_mapping()
99 mte_free_memory_tag_range((void *)ptr, sizes[run], mem_type, UNDERFLOW, OVERFLOW); in check_child_memory_mapping()
110 int total = ARRAY_SIZE(sizes); in check_child_file_mapping()
118 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_child_file_mapping()
125 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_child_file_mapping()
[all …]
H A Dcheck_user_mem.c43 int sizes[] = {1, 2, 3, 8, 16, 32, 4096, page_sz}; in check_usermem_access_fault() local
82 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in check_usermem_access_fault()
83 size = sizes[i]; in check_usermem_access_fault()
/linux/drivers/android/
H A Dbinder_alloc_selftest.c82 static void pr_err_size_seq(size_t *sizes, int *seq) in pr_err_size_seq() argument
88 pr_cont("[%zu]", sizes[i]); in pr_err_size_seq()
121 size_t *sizes, int *seq) in binder_selftest_alloc_buf() argument
126 buffers[i] = binder_alloc_new_buf(alloc, sizes[i], 0, 0, 0); in binder_selftest_alloc_buf()
129 sizes[i])) { in binder_selftest_alloc_buf()
130 pr_err_size_seq(sizes, seq); in binder_selftest_alloc_buf()
138 size_t *sizes, int *seq, size_t end) in binder_selftest_free_buf() argument
152 pr_err_size_seq(sizes, seq); in binder_selftest_free_buf()
181 size_t *sizes, int *seq, size_t end) in binder_selftest_alloc_free() argument
185 binder_selftest_alloc_buf(alloc, buffers, sizes, seq); in binder_selftest_alloc_free()
[all …]
/linux/drivers/gpu/drm/xe/display/
H A Dintel_fbdev_fb.c18 struct drm_fb_helper_surface_size *sizes) in intel_fbdev_fb_alloc() argument
28 if (sizes->surface_bpp == 24) in intel_fbdev_fb_alloc()
29 sizes->surface_bpp = 32; in intel_fbdev_fb_alloc()
31 mode_cmd.width = sizes->surface_width; in intel_fbdev_fb_alloc()
32 mode_cmd.height = sizes->surface_height; in intel_fbdev_fb_alloc()
35 DIV_ROUND_UP(sizes->surface_bpp, 8), XE_PAGE_SIZE); in intel_fbdev_fb_alloc()
36 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intel_fbdev_fb_alloc()
37 sizes->surface_depth); in intel_fbdev_fb_alloc()
/linux/drivers/gpu/drm/
H A Ddrm_fbdev_dma.c132 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_dma_driver_fbdev_probe() argument
146 sizes->surface_width, sizes->surface_height, in drm_fbdev_dma_driver_fbdev_probe()
147 sizes->surface_bpp); in drm_fbdev_dma_driver_fbdev_probe()
149 format = drm_driver_legacy_fb_format(dev, sizes->surface_bpp, in drm_fbdev_dma_driver_fbdev_probe()
150 sizes->surface_depth); in drm_fbdev_dma_driver_fbdev_probe()
151 buffer = drm_client_framebuffer_create(client, sizes->surface_width, in drm_fbdev_dma_driver_fbdev_probe()
152 sizes->surface_height, format); in drm_fbdev_dma_driver_fbdev_probe()
186 drm_fb_helper_fill_info(info, fb_helper, sizes); in drm_fbdev_dma_driver_fbdev_probe()
197 info->screen_size = sizes->surface_height * fb->pitches[0]; in drm_fbdev_dma_driver_fbdev_probe()
H A Ddrm_fb_helper.c1472 struct drm_fb_helper_surface_size *sizes) in __drm_fb_helper_find_sizes() argument
1483 memset(sizes, 0, sizeof(*sizes)); in __drm_fb_helper_find_sizes()
1484 sizes->fb_width = (u32)-1; in __drm_fb_helper_find_sizes()
1485 sizes->fb_height = (u32)-1; in __drm_fb_helper_find_sizes()
1532 sizes->surface_bpp = drm_format_info_bpp(info, 0); in __drm_fb_helper_find_sizes()
1533 sizes->surface_depth = info->depth; in __drm_fb_helper_find_sizes()
1556 sizes->surface_width = in __drm_fb_helper_find_sizes()
1557 max_t(u32, desired_mode->hdisplay + x, sizes->surface_width); in __drm_fb_helper_find_sizes()
1558 sizes->surface_height = in __drm_fb_helper_find_sizes()
1559 max_t(u32, desired_mode->vdisplay + y, sizes->surface_height); in __drm_fb_helper_find_sizes()
[all …]
/linux/arch/parisc/boot/compressed/
H A DMakefile11 targets += $(OBJECTS) sizes.h
26 sed-sizes := -e 's/^\([0-9a-fA-F]*\) . \(__bss_start\|_end\|parisc_kernel_start\)$$/\#define SZ\2 0…
29 cmd_sizes = $(NM) $< | sed -n $(sed-sizes) > $@
31 $(obj)/sizes.h: vmlinux FORCE
32 $(call if_changed,sizes)
35 $(obj)/head.o: $(obj)/sizes.h
38 $(obj)/misc.o: $(obj)/sizes.h
43 $(obj)/vmlinux.lds: $(obj)/sizes.h
H A D.gitignore2 sizes.h
/linux/drivers/gpu/drm/radeon/
H A Dradeon_fbdev.c205 struct drm_fb_helper_surface_size *sizes) in radeon_fbdev_driver_fbdev_probe() argument
216 mode_cmd.width = sizes->surface_width; in radeon_fbdev_driver_fbdev_probe()
217 mode_cmd.height = sizes->surface_height; in radeon_fbdev_driver_fbdev_probe()
220 if ((sizes->surface_bpp == 24) && ASIC_IS_AVIVO(rdev)) in radeon_fbdev_driver_fbdev_probe()
221 sizes->surface_bpp = 32; in radeon_fbdev_driver_fbdev_probe()
223 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in radeon_fbdev_driver_fbdev_probe()
224 sizes->surface_depth); in radeon_fbdev_driver_fbdev_probe()
260 drm_fb_helper_fill_info(info, fb_helper, sizes); in radeon_fbdev_driver_fbdev_probe()
/linux/Documentation/userspace-api/media/v4l/
H A Dvidioc-subdev-enum-frame-size.rst13 VIDIOC_SUBDEV_ENUM_FRAME_SIZE - Enumerate media bus frame sizes
34 This ioctl allows applications to access the enumeration of frame sizes
47 Therefore, to enumerate frame sizes allowed on the specified pad
54 A successful call will return with minimum and maximum frame sizes filled in.
59 Sub-devices that only support discrete frame sizes (such as most
60 sensors) will return one or more frame sizes with identical minimum and
63 Not all possible sizes in given [minimum, maximum] ranges need to be
70 Available frame sizes may depend on the current 'try' formats at other
111 - Frame sizes to be enumerated, from enum
H A Dvidioc-enum-framesizes.rst13 VIDIOC_ENUM_FRAMESIZES - Enumerate frame sizes
36 This ioctl allows applications to enumerate all frame sizes (i. e. width
44 depend on the type of frame sizes the device supports. Here are the
70 it make sense to increase the index value to receive more frame sizes.
74 The order in which the frame sizes are returned has no special
76 format sizes.
145 - IN: Pixel format for which the frame sizes are enumerated.
H A Dvidioc-querystd.rst55 different buffer sizes as well, and you cannot change buffer sizes on
/linux/samples/seccomp/
H A Duser-trap.c295 struct seccomp_notif_sizes sizes; in main() local
297 if (seccomp(SECCOMP_GET_NOTIF_SIZES, 0, &sizes) < 0) { in main()
302 req = malloc(sizes.seccomp_notif); in main()
306 resp = malloc(sizes.seccomp_notif_resp); in main()
309 memset(resp, 0, sizes.seccomp_notif_resp); in main()
312 memset(req, 0, sizes.seccomp_notif); in main()
/linux/Documentation/devicetree/bindings/usb/
H A Dgr-udc.txt21 - epobufsizes : Array of buffer sizes for OUT endpoints when they differ
24 each OUT endpoint of the core. Fewer entries overrides the default sizes
27 - epibufsizes : Array of buffer sizes for IN endpoints when they differ
30 each IN endpoint of the core. Fewer entries overrides the default sizes
/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_migrate.c14 static const unsigned int sizes[] = { variable
496 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in live_migrate_copy()
499 err = migrate_copy(migrate, sizes[i], &prng); in live_migrate_copy()
501 err = global_copy(migrate, sizes[i], &prng); in live_migrate_copy()
518 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in live_migrate_clear()
521 err = migrate_clear(migrate, sizes[i], &prng); in live_migrate_clear()
523 err = global_clear(migrate, sizes[i], &prng); in live_migrate_clear()
887 static const unsigned long sizes[] = { in perf_clear_blt() local
895 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in perf_clear_blt()
899 dst = create_init_lmem_internal(gt, sizes[i], true); in perf_clear_blt()
[all …]
/linux/lib/
H A Dsg_split.c21 off_t skip, const size_t *sizes, in sg_calculate_split() argument
26 size_t size = sizes[0], len; in sg_calculate_split()
53 size = *(++sizes); in sg_calculate_split()
67 size = *(++sizes); in sg_calculate_split()
/linux/drivers/tty/
H A Dmips_ejtag_fdc.c217 unsigned int *sizes, in mips_ejtag_fdc_encode() argument
225 const u8 *end = ptr + *(sizes++); in mips_ejtag_fdc_encode()
421 unsigned int sizes[2] = { 0 }; in mips_ejtag_fdc_put_chan() local
429 sizes[0] = min_t(unsigned int, in mips_ejtag_fdc_put_chan()
433 sizes[1] = dport->xmit_cnt - sizes[0]; in mips_ejtag_fdc_put_chan()
434 word = mips_ejtag_fdc_encode(ptrs, sizes, 1 + !!sizes[1]); in mips_ejtag_fdc_put_chan()
438 min_t(int, word.bytes, sizes[0]), ptrs[0], in mips_ejtag_fdc_put_chan()
439 max_t(int, 0, word.bytes - sizes[0]), ptrs[1]); in mips_ejtag_fdc_put_chan()
465 if (sizes[0] && word.bytes) { in mips_ejtag_fdc_put_chan()
/linux/arch/sh/kernel/cpu/sh4/
H A Dprobe.c20 static unsigned long sizes[16] = { in cpu_probe() local
203 size = sizes[(cvr >> 20) & 0xf]; in cpu_probe()
211 size = sizes[(cvr >> 16) & 0xf]; in cpu_probe()
/linux/include/drm/
H A Ddrm_fb_helper.h87 struct drm_fb_helper_surface_size *sizes);
254 struct drm_fb_helper_surface_size *sizes);
350 struct drm_fb_helper_surface_size *sizes) in drm_fb_helper_fill_info() argument
/linux/Documentation/devicetree/bindings/mtd/partitions/
H A Dbrcm,bcm963xx-imagetag.txt5 partitions or non standard bootloader partition sizes. For these a mixed layout
9 sizes of the rootfs and kernel parts contained in the firmware.
/linux/arch/x86/boot/
H A Dgenimage.sh233 sizes=$(filesizes "$FBZIMAGE" "${FDINITRDS[@]}" "$efishell")
236 megs=$(((sizes + sizes/100 + 2*1024*1024 - 1)/(1024*1024)))
/linux/mm/
H A Dzsmalloc.c141 * determined). NOTE: all those class sizes must be set as multiple of
1049 size_t sizes[2]; in __zs_map_object()
1059 sizes[0] = PAGE_SIZE - off; in __zs_map_object()
1060 sizes[1] = size - sizes[0]; in __zs_map_object()
1063 memcpy_from_page(buf, pages[0], off, sizes[0]); in __zs_map_object()
1064 memcpy_from_page(buf + sizes[0], pages[1], 0, sizes[1]); in __zs_map_object()
1072 size_t sizes[2]; in __zs_unmap_object()
1084 sizes[ in __zs_unmap_object()
1047 int sizes[2]; __zs_map_object() local
1075 int sizes[2]; __zs_unmap_object() local
[all...]
/linux/sound/isa/gus/
H A Dinterwave.c316 static void snd_interwave_bank_sizes(struct snd_gus_card *gus, int *sizes) in snd_interwave_bank_sizes() argument
323 sizes[idx] = 0; in snd_interwave_bank_sizes()
342 sizes[idx]++; in snd_interwave_bank_sizes()
347 sizes[0], sizes[1], sizes[2], sizes[3]); in snd_interwave_bank_sizes()

1234567891011