/linux/tools/testing/selftests/arm64/mte/ |
H A 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[ in check_buffer_underflow_by_byte() [all...] |
H A 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[ru in check_child_file_mapping() [all...] |
H A D | check_mmap_options.c | 58 static int sizes[] = { variable 118 int item = ARRAY_SIZE(sizes); in check_anonymous_memory_mapping() 125 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_anonymous_memory_mapping() 131 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_anonymous_memory_mapping() 133 ptr = mte_insert_tags((void *)ptr, sizes[run]); in check_anonymous_memory_mapping() 139 result = check_mte_memory(ptr, sizes[run], mode, tag_check, atag_check, tag_op); in check_anonymous_memory_mapping() 140 mte_clear_tags((void *)ptr, sizes[run]); in check_anonymous_memory_mapping() 153 int total = ARRAY_SIZE(sizes); in check_file_memory_mapping() 165 map_size = sizes[run] + UNDERFLOW + OVERFLOW; in check_file_memory_mapping() 172 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[ru in check_file_memory_mapping() [all...] |
/linux/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_fbdev.c | 59 struct drm_fb_helper_surface_size *sizes, in exynos_drm_fbdev_update() argument 76 drm_fb_helper_fill_info(fbi, helper, sizes); in exynos_drm_fbdev_update() 93 struct drm_fb_helper_surface_size *sizes) in exynos_drm_fbdev_driver_fbdev_probe() argument 103 sizes->surface_width, sizes->surface_height, in exynos_drm_fbdev_driver_fbdev_probe() 104 sizes->surface_bpp); in exynos_drm_fbdev_driver_fbdev_probe() 106 mode_cmd.width = sizes->surface_width; in exynos_drm_fbdev_driver_fbdev_probe() 107 mode_cmd.height = sizes->surface_height; in exynos_drm_fbdev_driver_fbdev_probe() 108 mode_cmd.pitches[0] = sizes->surface_width * (sizes in exynos_drm_fbdev_driver_fbdev_probe() [all...] |
/linux/drivers/gpu/drm/msm/ |
H A D | msm_fbdev.c | 92 struct drm_fb_helper_surface_size *sizes) in msm_fbdev_driver_fbdev_probe() argument 103 format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in msm_fbdev_driver_fbdev_probe() 105 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in msm_fbdev_driver_fbdev_probe() 106 sizes->surface_height, sizes->surface_bpp, in msm_fbdev_driver_fbdev_probe() 107 sizes->fb_width, sizes->fb_height); in msm_fbdev_driver_fbdev_probe() 109 pitch = align_pitch(sizes->surface_width, sizes in msm_fbdev_driver_fbdev_probe() [all...] |
/linux/drivers/gpu/drm/gma500/ |
H A D | fbdev.c | 153 struct drm_fb_helper_surface_size *sizes) in psb_fbdev_driver_fbdev_probe() argument 168 if (sizes->surface_bpp == 24) { in psb_fbdev_driver_fbdev_probe() 169 sizes->surface_bpp = 32; in psb_fbdev_driver_fbdev_probe() 170 sizes->surface_depth = 24; in psb_fbdev_driver_fbdev_probe() 172 bpp = sizes->surface_bpp; in psb_fbdev_driver_fbdev_probe() 173 depth = sizes->surface_depth; in psb_fbdev_driver_fbdev_probe() 180 size = ALIGN(sizes->surface_width * DIV_ROUND_UP(bpp, 8), 64) * in psb_fbdev_driver_fbdev_probe() 181 sizes->surface_height; in psb_fbdev_driver_fbdev_probe() 185 sizes->surface_bpp = 16; in psb_fbdev_driver_fbdev_probe() 186 sizes in psb_fbdev_driver_fbdev_probe() [all...] |
/linux/drivers/gpu/drm/i915/gt/uc/ |
H A 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[ in _guc_log_init_sizes() [all...] |
/linux/drivers/gpu/drm/omapdrm/ |
H A D | omap_fbdev.c | 153 struct drm_fb_helper_surface_size *sizes) in omap_fbdev_driver_fbdev_probe() argument 166 sizes->surface_bpp = 32; in omap_fbdev_driver_fbdev_probe() 167 sizes->surface_depth = 24; in omap_fbdev_driver_fbdev_probe() 169 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in omap_fbdev_driver_fbdev_probe() 170 sizes->surface_height, sizes->surface_bpp, in omap_fbdev_driver_fbdev_probe() 171 sizes->fb_width, sizes->fb_height); in omap_fbdev_driver_fbdev_probe() 173 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in omap_fbdev_driver_fbdev_probe() 174 sizes->surface_depth); in omap_fbdev_driver_fbdev_probe() 176 mode_cmd.width = sizes->surface_width; in omap_fbdev_driver_fbdev_probe() 177 mode_cmd.height = sizes->surface_height; in omap_fbdev_driver_fbdev_probe() [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | uffd-wp-mremap.c | 27 static int detect_thp_sizes(size_t sizes[], int max) in detect_thp_sizes() argument 45 sizes[count++] = kb * 1024; in detect_thp_sizes() 252 size_t *sizes; member 262 .sizes = &pagesize, 269 .sizes = &pagesize, 276 .sizes = &pagesize, 283 .sizes = &pagesize, 292 .sizes = thpsizes, 299 .sizes = thpsizes, 306 .sizes [all...] |
/linux/drivers/gpu/drm/xe/display/ |
H A D | intel_fbdev_fb.c | 19 struct drm_fb_helper_surface_size *sizes) in intel_fbdev_fb_alloc() argument 29 if (sizes->surface_bpp == 24) in intel_fbdev_fb_alloc() 30 sizes->surface_bpp = 32; in intel_fbdev_fb_alloc() 32 mode_cmd.width = sizes->surface_width; in intel_fbdev_fb_alloc() 33 mode_cmd.height = sizes->surface_height; in intel_fbdev_fb_alloc() 36 DIV_ROUND_UP(sizes->surface_bpp, 8), XE_PAGE_SIZE); in intel_fbdev_fb_alloc() 37 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intel_fbdev_fb_alloc() 38 sizes->surface_depth); in intel_fbdev_fb_alloc()
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_fbdev_fb.c | 17 struct drm_fb_helper_surface_size *sizes) in intel_fbdev_fb_alloc() argument 27 if (sizes->surface_bpp == 24) in intel_fbdev_fb_alloc() 28 sizes->surface_bpp = 32; in intel_fbdev_fb_alloc() 30 mode_cmd.width = sizes->surface_width; in intel_fbdev_fb_alloc() 31 mode_cmd.height = sizes->surface_height; in intel_fbdev_fb_alloc() 34 DIV_ROUND_UP(sizes->surface_bpp, 8), 64); in intel_fbdev_fb_alloc() 35 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intel_fbdev_fb_alloc() 36 sizes->surface_depth); in intel_fbdev_fb_alloc()
|
H A D | intel_fbdev.c | 211 struct drm_fb_helper_surface_size *sizes) in intel_fbdev_driver_fbdev_probe() argument 227 (sizes->fb_width > fb->base.width || in intel_fbdev_driver_fbdev_probe() 228 sizes->fb_height > fb->base.height)) { in intel_fbdev_driver_fbdev_probe() 233 sizes->fb_width, sizes->fb_height); in intel_fbdev_driver_fbdev_probe() 240 fb = intel_fbdev_fb_alloc(helper, sizes); in intel_fbdev_driver_fbdev_probe() 246 sizes->fb_width = fb->base.width; in intel_fbdev_driver_fbdev_probe() 247 sizes->fb_height = fb->base.height; in intel_fbdev_driver_fbdev_probe() 284 drm_fb_helper_fill_info(info, display->drm->fb_helper, sizes); in intel_fbdev_driver_fbdev_probe()
|
/linux/drivers/gpu/drm/ |
H A D | drm_fbdev_shmem.c | 135 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_shmem_driver_fbdev_probe() argument 148 sizes->surface_width, sizes->surface_height, in drm_fbdev_shmem_driver_fbdev_probe() 149 sizes->surface_bpp); in drm_fbdev_shmem_driver_fbdev_probe() 151 format = drm_driver_legacy_fb_format(dev, sizes->surface_bpp, sizes->surface_depth); in drm_fbdev_shmem_driver_fbdev_probe() 152 buffer = drm_client_framebuffer_create(client, sizes->surface_width, in drm_fbdev_shmem_driver_fbdev_probe() 153 sizes->surface_height, format); in drm_fbdev_shmem_driver_fbdev_probe() 178 drm_fb_helper_fill_info(info, fb_helper, sizes); in drm_fbdev_shmem_driver_fbdev_probe() 186 info->screen_size = sizes in drm_fbdev_shmem_driver_fbdev_probe() [all...] |
H A D | drm_fbdev_ttm.c | 175 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_ttm_driver_fbdev_probe() argument 187 sizes->surface_width, sizes->surface_height, in drm_fbdev_ttm_driver_fbdev_probe() 188 sizes->surface_bpp); in drm_fbdev_ttm_driver_fbdev_probe() 190 format = drm_driver_legacy_fb_format(dev, sizes->surface_bpp, in drm_fbdev_ttm_driver_fbdev_probe() 191 sizes->surface_depth); in drm_fbdev_ttm_driver_fbdev_probe() 192 buffer = drm_client_framebuffer_create(client, sizes->surface_width, in drm_fbdev_ttm_driver_fbdev_probe() 193 sizes->surface_height, format); in drm_fbdev_ttm_driver_fbdev_probe() 214 drm_fb_helper_fill_info(info, fb_helper, sizes); in drm_fbdev_ttm_driver_fbdev_probe()
|
/linux/drivers/gpu/drm/armada/ |
H A D | armada_fbdev.c | 45 struct drm_fb_helper_surface_size *sizes) in armada_fbdev_driver_fbdev_probe() argument 56 mode.width = sizes->surface_width; in armada_fbdev_driver_fbdev_probe() 57 mode.height = sizes->surface_height; in armada_fbdev_driver_fbdev_probe() 58 mode.pitches[0] = armada_pitch(mode.width, sizes->surface_bpp); in armada_fbdev_driver_fbdev_probe() 59 mode.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in armada_fbdev_driver_fbdev_probe() 60 sizes->surface_depth); in armada_fbdev_driver_fbdev_probe() 109 drm_fb_helper_fill_info(info, fbh, sizes); in armada_fbdev_driver_fbdev_probe()
|
/linux/arch/parisc/boot/compressed/ |
H A D | Makefile | 11 targets += $(OBJECTS) sizes.h 27 sed-sizes := -e 's/^\([0-9a-fA-F]*\) . \(__bss_start\|_end\|parisc_kernel_start\)$$/\#define SZ\2 0x\1/p' 30 cmd_sizes = $(NM) $< | sed -n $(sed-sizes) > $@ 32 $(obj)/sizes.h: vmlinux FORCE 33 $(call if_changed,sizes) 36 $(obj)/head.o: $(obj)/sizes.h 39 $(obj)/misc.o: $(obj)/sizes.h 44 $(obj)/vmlinux.lds: $(obj)/sizes.h
|
/linux/drivers/gpu/drm/tegra/ |
H A D | fbdev.c | 73 struct drm_fb_helper_surface_size *sizes) in tegra_fbdev_driver_fbdev_probe() argument 86 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in tegra_fbdev_driver_fbdev_probe() 88 cmd.width = sizes->surface_width; in tegra_fbdev_driver_fbdev_probe() 89 cmd.height = sizes->surface_height; in tegra_fbdev_driver_fbdev_probe() 90 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_driver_fbdev_probe() 93 cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in tegra_fbdev_driver_fbdev_probe() 94 sizes->surface_depth); in tegra_fbdev_driver_fbdev_probe() 126 drm_fb_helper_fill_info(info, helper, sizes); in tegra_fbdev_driver_fbdev_probe()
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_fbdev.c | 204 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() 262 drm_fb_helper_fill_info(info, fb_helper, sizes); in radeon_fbdev_driver_fbdev_probe()
|
/linux/Documentation/userspace-api/media/v4l/ |
H A 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
|
H A 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/drivers/media/usb/em28xx/ |
H A 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/drivers/media/usb/au0828/ |
H A 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/Documentation/devicetree/bindings/usb/ |
H A 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/lib/ |
H A 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()
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | selftest_migrate.c | 14 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[ in perf_clear_blt() 970 static const unsigned long sizes[] = { perf_copy_blt() local [all...] |