/linux-6.6.21/tools/testing/selftests/arm64/mte/ |
D | check_buffer_fill.c | 16 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[i], mem_type, 0, in check_buffer_underflow_by_byte() [all …]
|
D | check_mmap_options.c | 28 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 …]
|
D | check_child_memory.c | 24 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 …]
|
/linux-6.6.21/drivers/android/ |
D | binder_alloc_selftest.c | 78 static void pr_err_size_seq(size_t *sizes, int *seq) in pr_err_size_seq() argument 84 pr_cont("[%zu]", sizes[i]); in pr_err_size_seq() 117 size_t *sizes, int *seq) in binder_selftest_alloc_buf() argument 122 buffers[i] = binder_alloc_new_buf(alloc, sizes[i], 0, 0, 0, 0); in binder_selftest_alloc_buf() 125 sizes[i])) { in binder_selftest_alloc_buf() 126 pr_err_size_seq(sizes, seq); in binder_selftest_alloc_buf() 134 size_t *sizes, int *seq, size_t end) in binder_selftest_free_buf() argument 148 pr_err_size_seq(sizes, seq); in binder_selftest_free_buf() 177 size_t *sizes, int *seq, size_t end) in binder_selftest_alloc_free() argument 181 binder_selftest_alloc_buf(alloc, buffers, sizes, seq); in binder_selftest_alloc_free() [all …]
|
/linux-6.6.21/drivers/gpu/drm/exynos/ |
D | exynos_drm_fbdev.c | 60 struct drm_fb_helper_surface_size *sizes, in exynos_drm_fbdev_update() argument 77 drm_fb_helper_fill_info(fbi, helper, sizes); in exynos_drm_fbdev_update() 91 struct drm_fb_helper_surface_size *sizes) in exynos_drm_fbdev_create() argument 101 sizes->surface_width, sizes->surface_height, in exynos_drm_fbdev_create() 102 sizes->surface_bpp); in exynos_drm_fbdev_create() 104 mode_cmd.width = sizes->surface_width; in exynos_drm_fbdev_create() 105 mode_cmd.height = sizes->surface_height; in exynos_drm_fbdev_create() 106 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_create() 107 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in exynos_drm_fbdev_create() 108 sizes->surface_depth); in exynos_drm_fbdev_create() [all …]
|
/linux-6.6.21/drivers/gpu/drm/msm/ |
D | msm_fbdev.c | 69 struct drm_fb_helper_surface_size *sizes) in msm_fbdev_create() argument 80 format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in msm_fbdev_create() 82 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in msm_fbdev_create() 83 sizes->surface_height, sizes->surface_bpp, in msm_fbdev_create() 84 sizes->fb_width, sizes->fb_height); in msm_fbdev_create() 86 pitch = align_pitch(sizes->surface_width, sizes->surface_bpp); in msm_fbdev_create() 87 fb = msm_alloc_stolen_fb(dev, sizes->surface_width, in msm_fbdev_create() 88 sizes->surface_height, pitch, format); in msm_fbdev_create() 121 drm_fb_helper_fill_info(fbi, helper, sizes); in msm_fbdev_create()
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_log.c | 66 log->sizes[i].bytes = sections[i].default_val; in _guc_log_init_sizes() 69 if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M && in _guc_log_init_sizes() 71 log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M; in _guc_log_init_sizes() 76 if ((log->sizes[i].bytes % SZ_1M) == 0) { in _guc_log_init_sizes() 77 log->sizes[i].units = SZ_1M; in _guc_log_init_sizes() 78 log->sizes[i].flag = sections[i].flag; in _guc_log_init_sizes() 80 log->sizes[i].units = SZ_4K; in _guc_log_init_sizes() 81 log->sizes[i].flag = 0; in _guc_log_init_sizes() 84 if (!IS_ALIGNED(log->sizes[i].bytes, log->sizes[i].units)) in _guc_log_init_sizes() 86 sections[i].name, log->sizes[i].bytes, log->sizes[i].units); in _guc_log_init_sizes() [all …]
|
/linux-6.6.21/drivers/gpu/drm/gma500/ |
D | fbdev.c | 151 struct drm_fb_helper_surface_size *sizes) in psb_fbdev_fb_probe() argument 166 if (sizes->surface_bpp == 24) { in psb_fbdev_fb_probe() 167 sizes->surface_bpp = 32; in psb_fbdev_fb_probe() 168 sizes->surface_depth = 24; in psb_fbdev_fb_probe() 170 bpp = sizes->surface_bpp; in psb_fbdev_fb_probe() 171 depth = sizes->surface_depth; in psb_fbdev_fb_probe() 178 size = ALIGN(sizes->surface_width * DIV_ROUND_UP(bpp, 8), 64) * in psb_fbdev_fb_probe() 179 sizes->surface_height; in psb_fbdev_fb_probe() 183 sizes->surface_bpp = 16; in psb_fbdev_fb_probe() 184 sizes->surface_depth = 16; in psb_fbdev_fb_probe() [all …]
|
/linux-6.6.21/drivers/gpu/drm/omapdrm/ |
D | omap_fbdev.c | 122 struct drm_fb_helper_surface_size *sizes) in omap_fbdev_create() argument 135 sizes->surface_bpp = 32; in omap_fbdev_create() 136 sizes->surface_depth = 24; in omap_fbdev_create() 138 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in omap_fbdev_create() 139 sizes->surface_height, sizes->surface_bpp, in omap_fbdev_create() 140 sizes->fb_width, sizes->fb_height); in omap_fbdev_create() 142 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in omap_fbdev_create() 143 sizes->surface_depth); in omap_fbdev_create() 145 mode_cmd.width = sizes->surface_width; in omap_fbdev_create() 146 mode_cmd.height = sizes->surface_height; in omap_fbdev_create() [all …]
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_fbdev_dma.c | 77 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_dma_helper_fb_probe() argument 90 sizes->surface_width, sizes->surface_height, in drm_fbdev_dma_helper_fb_probe() 91 sizes->surface_bpp); in drm_fbdev_dma_helper_fb_probe() 93 format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in drm_fbdev_dma_helper_fb_probe() 94 buffer = drm_client_framebuffer_create(client, sizes->surface_width, in drm_fbdev_dma_helper_fb_probe() 95 sizes->surface_height, format); in drm_fbdev_dma_helper_fb_probe() 123 drm_fb_helper_fill_info(info, fb_helper, sizes); in drm_fbdev_dma_helper_fb_probe() 131 info->screen_size = sizes->surface_height * fb->pitches[0]; in drm_fbdev_dma_helper_fb_probe()
|
D | drm_fbdev_generic.c | 72 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_generic_helper_fb_probe() argument 84 sizes->surface_width, sizes->surface_height, in drm_fbdev_generic_helper_fb_probe() 85 sizes->surface_bpp); in drm_fbdev_generic_helper_fb_probe() 87 format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in drm_fbdev_generic_helper_fb_probe() 88 buffer = drm_client_framebuffer_create(client, sizes->surface_width, in drm_fbdev_generic_helper_fb_probe() 89 sizes->surface_height, format); in drm_fbdev_generic_helper_fb_probe() 109 drm_fb_helper_fill_info(info, fb_helper, sizes); in drm_fbdev_generic_helper_fb_probe()
|
D | drm_fb_helper.c | 1505 struct drm_fb_helper_surface_size *sizes) in __drm_fb_helper_find_sizes() argument 1516 memset(sizes, 0, sizeof(*sizes)); in __drm_fb_helper_find_sizes() 1517 sizes->fb_width = (u32)-1; in __drm_fb_helper_find_sizes() 1518 sizes->fb_height = (u32)-1; in __drm_fb_helper_find_sizes() 1565 sizes->surface_bpp = drm_format_info_bpp(info, 0); in __drm_fb_helper_find_sizes() 1566 sizes->surface_depth = info->depth; in __drm_fb_helper_find_sizes() 1589 sizes->surface_width = in __drm_fb_helper_find_sizes() 1590 max_t(u32, desired_mode->hdisplay + x, sizes->surface_width); in __drm_fb_helper_find_sizes() 1591 sizes->surface_height = in __drm_fb_helper_find_sizes() 1592 max_t(u32, desired_mode->vdisplay + y, sizes->surface_height); in __drm_fb_helper_find_sizes() [all …]
|
/linux-6.6.21/drivers/gpu/drm/armada/ |
D | armada_fbdev.c | 43 struct drm_fb_helper_surface_size *sizes) in armada_fbdev_create() argument 54 mode.width = sizes->surface_width; in armada_fbdev_create() 55 mode.height = sizes->surface_height; in armada_fbdev_create() 56 mode.pitches[0] = armada_pitch(mode.width, sizes->surface_bpp); in armada_fbdev_create() 57 mode.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in armada_fbdev_create() 58 sizes->surface_depth); in armada_fbdev_create() 103 drm_fb_helper_fill_info(info, fbh, sizes); in armada_fbdev_create() 117 struct drm_fb_helper_surface_size *sizes) in armada_fb_probe() argument 122 ret = armada_fbdev_create(fbh, sizes); in armada_fb_probe()
|
/linux-6.6.21/arch/parisc/boot/compressed/ |
D | Makefile | 15 targets += $(OBJECTS) sizes.h 30 sed-sizes := -e 's/^\([0-9a-fA-F]*\) . \(__bss_start\|_end\|parisc_kernel_start\)$$/\#define SZ\2 0… 33 cmd_sizes = $(NM) $< | sed -n $(sed-sizes) > $@ 35 $(obj)/sizes.h: vmlinux FORCE 36 $(call if_changed,sizes) 39 $(obj)/head.o: $(obj)/sizes.h 42 $(obj)/misc.o: $(obj)/sizes.h 47 $(obj)/vmlinux.lds: $(obj)/sizes.h
|
/linux-6.6.21/drivers/gpu/drm/tegra/ |
D | fbdev.c | 70 struct drm_fb_helper_surface_size *sizes) in tegra_fbdev_probe() argument 83 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in tegra_fbdev_probe() 85 cmd.width = sizes->surface_width; in tegra_fbdev_probe() 86 cmd.height = sizes->surface_height; in tegra_fbdev_probe() 87 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_probe() 90 cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in tegra_fbdev_probe() 91 sizes->surface_depth); in tegra_fbdev_probe() 120 drm_fb_helper_fill_info(info, helper, sizes); in tegra_fbdev_probe()
|
/linux-6.6.21/drivers/gpu/drm/i915/display/ |
D | intel_fbdev.c | 150 struct drm_fb_helper_surface_size *sizes) in intelfb_alloc() argument 161 if (sizes->surface_bpp == 24) in intelfb_alloc() 162 sizes->surface_bpp = 32; in intelfb_alloc() 164 mode_cmd.width = sizes->surface_width; in intelfb_alloc() 165 mode_cmd.height = sizes->surface_height; in intelfb_alloc() 168 DIV_ROUND_UP(sizes->surface_bpp, 8), 64); in intelfb_alloc() 169 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intelfb_alloc() 170 sizes->surface_depth); in intelfb_alloc() 209 struct drm_fb_helper_surface_size *sizes) in intelfb_create() argument 237 (sizes->fb_width > intel_fb->base.width || in intelfb_create() [all …]
|
/linux-6.6.21/Documentation/userspace-api/media/v4l/ |
D | vidioc-subdev-enum-frame-size.rst | 13 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
|
D | vidioc-enum-framesizes.rst | 13 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.
|
/linux-6.6.21/drivers/media/usb/em28xx/ |
D | em28xx-vbi.c | 23 unsigned int sizes[], struct device *alloc_devs[]) in vbi_queue_setup() argument 33 if (sizes[0] < size) in vbi_queue_setup() 35 size = sizes[0]; in vbi_queue_setup() 39 sizes[0] = size; in vbi_queue_setup()
|
/linux-6.6.21/drivers/gpu/drm/radeon/ |
D | radeon_fbdev.c | 206 struct drm_fb_helper_surface_size *sizes) in radeon_fbdev_fb_helper_fb_probe() argument 217 mode_cmd.width = sizes->surface_width; in radeon_fbdev_fb_helper_fb_probe() 218 mode_cmd.height = sizes->surface_height; in radeon_fbdev_fb_helper_fb_probe() 221 if ((sizes->surface_bpp == 24) && ASIC_IS_AVIVO(rdev)) in radeon_fbdev_fb_helper_fb_probe() 222 sizes->surface_bpp = 32; in radeon_fbdev_fb_helper_fb_probe() 224 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in radeon_fbdev_fb_helper_fb_probe() 225 sizes->surface_depth); in radeon_fbdev_fb_helper_fb_probe() 260 drm_fb_helper_fill_info(info, fb_helper, sizes); in radeon_fbdev_fb_helper_fb_probe()
|
/linux-6.6.21/samples/seccomp/ |
D | user-trap.c | 291 struct seccomp_notif_sizes sizes; in main() local 293 if (seccomp(SECCOMP_GET_NOTIF_SIZES, 0, &sizes) < 0) { in main() 298 req = malloc(sizes.seccomp_notif); in main() 302 resp = malloc(sizes.seccomp_notif_resp); in main() 305 memset(resp, 0, sizes.seccomp_notif_resp); in main() 308 memset(req, 0, sizes.seccomp_notif); in main()
|
/linux-6.6.21/drivers/media/usb/au0828/ |
D | au0828-vbi.c | 23 unsigned int sizes[], struct device *alloc_devs[]) in vbi_queue_setup() argument 29 return sizes[0] < size ? -EINVAL : 0; in vbi_queue_setup() 31 sizes[0] = size; in vbi_queue_setup()
|
/linux-6.6.21/Documentation/devicetree/bindings/usb/ |
D | gr-udc.txt | 21 - 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-6.6.21/Documentation/devicetree/bindings/dma/ |
D | fsl-qdma.txt | 26 - status-sizes: status queue size of per virtual block 27 - queue-sizes: command queue size of per virtual block, the size number 53 status-sizes = <64>; 54 queue-sizes = <64 64>;
|
/linux-6.6.21/lib/ |
D | sg_split.c | 21 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()
|