| /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[i], mem_type, 0, 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[run]); 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[run]); in check_file_memory_mapping() [all …]
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_fbdev.c | 58 struct drm_fb_helper_surface_size *sizes, in exynos_drm_fbdev_update() argument 68 drm_fb_helper_fill_info(fbi, helper, sizes); in exynos_drm_fbdev_update() 85 struct drm_fb_helper_surface_size *sizes) in exynos_drm_fbdev_driver_fbdev_probe() argument 95 sizes->surface_width, sizes->surface_height, in exynos_drm_fbdev_driver_fbdev_probe() 96 sizes->surface_bpp); in exynos_drm_fbdev_driver_fbdev_probe() 98 mode_cmd.width = sizes->surface_width; in exynos_drm_fbdev_driver_fbdev_probe() 99 mode_cmd.height = sizes->surface_height; in exynos_drm_fbdev_driver_fbdev_probe() 100 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_driver_fbdev_probe() 101 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in exynos_drm_fbdev_driver_fbdev_probe() 102 sizes->surface_depth); in exynos_drm_fbdev_driver_fbdev_probe() [all …]
|
| /linux/drivers/gpu/drm/gma500/ |
| H A D | fbdev.c | 106 struct drm_fb_helper_surface_size *sizes) in psb_fbdev_driver_fbdev_probe() argument 121 if (sizes->surface_bpp == 24) { in psb_fbdev_driver_fbdev_probe() 122 sizes->surface_bpp = 32; in psb_fbdev_driver_fbdev_probe() 123 sizes->surface_depth = 24; in psb_fbdev_driver_fbdev_probe() 125 bpp = sizes->surface_bpp; in psb_fbdev_driver_fbdev_probe() 126 depth = sizes->surface_depth; in psb_fbdev_driver_fbdev_probe() 133 size = ALIGN(sizes->surface_width * DIV_ROUND_UP(bpp, 8), 64) * in psb_fbdev_driver_fbdev_probe() 134 sizes->surface_height; in psb_fbdev_driver_fbdev_probe() 138 sizes->surface_bpp = 16; in psb_fbdev_driver_fbdev_probe() 139 sizes->surface_depth = 16; in psb_fbdev_driver_fbdev_probe() [all …]
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_fbdev.c | 90 struct drm_fb_helper_surface_size *sizes) in msm_fbdev_driver_fbdev_probe() argument 101 format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in msm_fbdev_driver_fbdev_probe() 103 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in msm_fbdev_driver_fbdev_probe() 104 sizes->surface_height, sizes->surface_bpp, in msm_fbdev_driver_fbdev_probe() 105 sizes->fb_width, sizes->fb_height); in msm_fbdev_driver_fbdev_probe() 107 pitch = align_pitch(sizes->surface_width, sizes->surface_bpp); in msm_fbdev_driver_fbdev_probe() 108 fb = msm_alloc_stolen_fb(dev, sizes->surface_width, in msm_fbdev_driver_fbdev_probe() 109 sizes->surface_height, pitch, format); in msm_fbdev_driver_fbdev_probe() 136 drm_fb_helper_fill_info(fbi, helper, sizes); in msm_fbdev_driver_fbdev_probe()
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | omap_fbdev.c | 152 struct drm_fb_helper_surface_size *sizes) in omap_fbdev_driver_fbdev_probe() argument 165 sizes->surface_bpp = 32; in omap_fbdev_driver_fbdev_probe() 166 sizes->surface_depth = 24; in omap_fbdev_driver_fbdev_probe() 168 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in omap_fbdev_driver_fbdev_probe() 169 sizes->surface_height, sizes->surface_bpp, in omap_fbdev_driver_fbdev_probe() 170 sizes->fb_width, sizes->fb_height); in omap_fbdev_driver_fbdev_probe() 172 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in omap_fbdev_driver_fbdev_probe() 173 sizes->surface_depth); in omap_fbdev_driver_fbdev_probe() 175 mode_cmd.width = sizes->surface_width; in omap_fbdev_driver_fbdev_probe() 176 mode_cmd.height = sizes->surface_height; in omap_fbdev_driver_fbdev_probe() [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_fbdev_dma.c | 200 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_dma_driver_fbdev_probe_tail() argument 215 info->screen_size = sizes->surface_height * fb->pitches[0]; in drm_fbdev_dma_driver_fbdev_probe_tail() 227 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_dma_driver_fbdev_probe_tail_shadowed() argument 268 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_dma_driver_fbdev_probe() argument 280 sizes->surface_width, sizes->surface_height, in drm_fbdev_dma_driver_fbdev_probe() 281 sizes->surface_bpp); in drm_fbdev_dma_driver_fbdev_probe() 283 format = drm_driver_legacy_fb_format(dev, sizes->surface_bpp, in drm_fbdev_dma_driver_fbdev_probe() 284 sizes->surface_depth); in drm_fbdev_dma_driver_fbdev_probe() 285 buffer = drm_client_buffer_create_dumb(client, sizes->surface_width, in drm_fbdev_dma_driver_fbdev_probe() 286 sizes->surface_height, format); in drm_fbdev_dma_driver_fbdev_probe() [all …]
|
| H A D | drm_fbdev_shmem.c | 134 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_shmem_driver_fbdev_probe() argument 147 sizes->surface_width, sizes->surface_height, in drm_fbdev_shmem_driver_fbdev_probe() 148 sizes->surface_bpp); in drm_fbdev_shmem_driver_fbdev_probe() 150 format = drm_driver_legacy_fb_format(dev, sizes->surface_bpp, sizes->surface_depth); in drm_fbdev_shmem_driver_fbdev_probe() 151 buffer = drm_client_buffer_create_dumb(client, sizes->surface_width, in drm_fbdev_shmem_driver_fbdev_probe() 152 sizes->surface_height, format); in drm_fbdev_shmem_driver_fbdev_probe() 171 drm_fb_helper_fill_info(info, fb_helper, sizes); in drm_fbdev_shmem_driver_fbdev_probe() 179 info->screen_size = sizes->surface_height * fb->pitches[0]; in drm_fbdev_shmem_driver_fbdev_probe()
|
| H A D | drm_fbdev_ttm.c | 173 struct drm_fb_helper_surface_size *sizes) in drm_fbdev_ttm_driver_fbdev_probe() argument 185 sizes->surface_width, sizes->surface_height, in drm_fbdev_ttm_driver_fbdev_probe() 186 sizes->surface_bpp); in drm_fbdev_ttm_driver_fbdev_probe() 188 format = drm_driver_legacy_fb_format(dev, sizes->surface_bpp, in drm_fbdev_ttm_driver_fbdev_probe() 189 sizes->surface_depth); in drm_fbdev_ttm_driver_fbdev_probe() 190 buffer = drm_client_buffer_create_dumb(client, sizes->surface_width, in drm_fbdev_ttm_driver_fbdev_probe() 191 sizes->surface_height, format); in drm_fbdev_ttm_driver_fbdev_probe() 206 drm_fb_helper_fill_info(info, fb_helper, sizes); in drm_fbdev_ttm_driver_fbdev_probe()
|
| H A D | drm_fb_helper.c | 1396 struct drm_fb_helper_surface_size *sizes) in __drm_fb_helper_find_sizes() argument 1407 memset(sizes, 0, sizeof(*sizes)); in __drm_fb_helper_find_sizes() 1408 sizes->fb_width = (u32)-1; in __drm_fb_helper_find_sizes() 1409 sizes->fb_height = (u32)-1; in __drm_fb_helper_find_sizes() 1456 sizes->surface_bpp = drm_format_info_bpp(info, 0); in __drm_fb_helper_find_sizes() 1457 sizes->surface_depth = info->depth; in __drm_fb_helper_find_sizes() 1480 sizes->surface_width = in __drm_fb_helper_find_sizes() 1481 max_t(u32, desired_mode->hdisplay + x, sizes->surface_width); in __drm_fb_helper_find_sizes() 1482 sizes->surface_height = in __drm_fb_helper_find_sizes() 1483 max_t(u32, desired_mode->vdisplay + y, sizes->surface_height); in __drm_fb_helper_find_sizes() [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | uffd-wp-mremap.c | 22 static int detect_thp_sizes(size_t sizes[], int max) in detect_thp_sizes() argument 40 sizes[count++] = kb * 1024; in detect_thp_sizes() 248 size_t *sizes; member 258 .sizes = &pagesize, 265 .sizes = &pagesize, 272 .sizes = &pagesize, 279 .sizes = &pagesize, 288 .sizes = thpsizes, 295 .sizes = thpsizes, 302 .sizes = thpsizes, [all …]
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_fbdev.c | 208 static void intel_fbdev_fill_mode_cmd(struct drm_fb_helper_surface_size *sizes, in intel_fbdev_fill_mode_cmd() argument 212 if (sizes->surface_bpp == 24) in intel_fbdev_fill_mode_cmd() 213 sizes->surface_bpp = 32; in intel_fbdev_fill_mode_cmd() 216 mode_cmd->width = sizes->surface_width; in intel_fbdev_fill_mode_cmd() 217 mode_cmd->height = sizes->surface_height; in intel_fbdev_fill_mode_cmd() 219 …mode_cmd->pitches[0] = intel_fbdev_fb_pitch_align(mode_cmd->width * DIV_ROUND_UP(sizes->surface_bp… in intel_fbdev_fill_mode_cmd() 220 mode_cmd->pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intel_fbdev_fill_mode_cmd() 221 sizes->surface_depth); in intel_fbdev_fill_mode_cmd() 227 struct drm_fb_helper_surface_size *sizes) in __intel_fbdev_fb_alloc() argument 234 intel_fbdev_fill_mode_cmd(sizes, &mode_cmd); in __intel_fbdev_fb_alloc() [all …]
|
| /linux/drivers/gpu/drm/armada/ |
| H A D | armada_fbdev.c | 44 struct drm_fb_helper_surface_size *sizes) in armada_fbdev_driver_fbdev_probe() argument 55 mode.width = sizes->surface_width; in armada_fbdev_driver_fbdev_probe() 56 mode.height = sizes->surface_height; in armada_fbdev_driver_fbdev_probe() 57 mode.pitches[0] = armada_pitch(mode.width, sizes->surface_bpp); in armada_fbdev_driver_fbdev_probe() 58 mode.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in armada_fbdev_driver_fbdev_probe() 59 sizes->surface_depth); in armada_fbdev_driver_fbdev_probe() 102 drm_fb_helper_fill_info(info, fbh, sizes); in armada_fbdev_driver_fbdev_probe()
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | fbdev.c | 71 struct drm_fb_helper_surface_size *sizes) in tegra_fbdev_driver_fbdev_probe() argument 84 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in tegra_fbdev_driver_fbdev_probe() 86 cmd.width = sizes->surface_width; in tegra_fbdev_driver_fbdev_probe() 87 cmd.height = sizes->surface_height; in tegra_fbdev_driver_fbdev_probe() 88 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_driver_fbdev_probe() 91 cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in tegra_fbdev_driver_fbdev_probe() 92 sizes->surface_depth); in tegra_fbdev_driver_fbdev_probe() 117 drm_fb_helper_fill_info(info, helper, sizes); in tegra_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 0… 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/radeon/ |
| H A D | radeon_fbdev.c | 200 struct drm_fb_helper_surface_size *sizes) in radeon_fbdev_driver_fbdev_probe() argument 212 mode_cmd.width = sizes->surface_width; in radeon_fbdev_driver_fbdev_probe() 213 mode_cmd.height = sizes->surface_height; in radeon_fbdev_driver_fbdev_probe() 216 if ((sizes->surface_bpp == 24) && ASIC_IS_AVIVO(rdev)) in radeon_fbdev_driver_fbdev_probe() 217 sizes->surface_bpp = 32; in radeon_fbdev_driver_fbdev_probe() 219 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in radeon_fbdev_driver_fbdev_probe() 220 sizes->surface_depth); in radeon_fbdev_driver_fbdev_probe() 251 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/samples/seccomp/ |
| H A D | user-trap.c | 295 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 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/tty/ |
| H A D | mips_ejtag_fdc.c | 217 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 D | probe.c | 20 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/Documentation/devicetree/bindings/mtd/partitions/ |
| H A D | brcm,bcm963xx-imagetag.txt | 5 partitions or non standard bootloader partition sizes. For these a mixed layout 9 sizes of the rootfs and kernel parts contained in the firmware.
|