| /kernel/linux/linux-5.10/tools/testing/selftests/arm64/mte/ |
| D | check_mmap_options.c | 28 static int sizes[] = { variable 64 int item = sizeof(sizes)/sizeof(int); in check_anonymous_memory_mapping() 66 item = sizeof(sizes)/sizeof(int); in check_anonymous_memory_mapping() 69 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_anonymous_memory_mapping() 75 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_anonymous_memory_mapping() 77 ptr = mte_insert_tags((void *)ptr, sizes[run]); in check_anonymous_memory_mapping() 83 result = check_mte_memory(ptr, sizes[run], mode, tag_check); in check_anonymous_memory_mapping() 84 mte_clear_tags((void *)ptr, sizes[run]); in check_anonymous_memory_mapping() 96 int total = sizeof(sizes)/sizeof(int); in check_file_memory_mapping() 105 map_size = sizes[run] + UNDERFLOW + OVERFLOW; in check_file_memory_mapping() [all …]
|
| D | check_buffer_fill.c | 16 static int sizes[] = { variable 35 item = sizeof(sizes)/sizeof(int); 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 = sizeof(sizes)/sizeof(int); 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_child_memory.c | 24 static int sizes[] = { variable 88 int item = sizeof(sizes)/sizeof(int); in check_child_memory_mapping() 90 item = sizeof(sizes)/sizeof(int); 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 = sizeof(sizes)/sizeof(int); 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 …]
|
| /kernel/linux/linux-5.10/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 82 pr_err("alloc sizes: "); in pr_err_size_seq() 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 [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/msm/ |
| D | msm_fbdev.c | 71 struct drm_fb_helper_surface_size *sizes) in msm_fbdev_create() argument 83 format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in msm_fbdev_create() 85 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in msm_fbdev_create() 86 sizes->surface_height, sizes->surface_bpp, in msm_fbdev_create() 87 sizes->fb_width, sizes->fb_height); in msm_fbdev_create() 89 pitch = align_pitch(sizes->surface_width, sizes->surface_bpp); in msm_fbdev_create() 90 fb = msm_alloc_stolen_fb(dev, sizes->surface_width, in msm_fbdev_create() 91 sizes->surface_height, pitch, format); in msm_fbdev_create() 131 drm_fb_helper_fill_var(fbi, helper, sizes->fb_width, sizes->fb_height); in msm_fbdev_create()
|
| /kernel/linux/linux-4.19/drivers/android/ |
| D | binder_alloc_selftest.c | 87 static void pr_err_size_seq(size_t *sizes, int *seq) in pr_err_size_seq() argument 91 pr_err("alloc sizes: "); in pr_err_size_seq() 93 pr_cont("[%zu]", sizes[i]); in pr_err_size_seq() 125 size_t *sizes, int *seq) in binder_selftest_alloc_buf() argument 130 buffers[i] = binder_alloc_new_buf(alloc, sizes[i], 0, 0, 0); in binder_selftest_alloc_buf() 133 sizes[i])) { in binder_selftest_alloc_buf() 134 pr_err_size_seq(sizes, seq); in binder_selftest_alloc_buf() 142 size_t *sizes, int *seq, size_t end) in binder_selftest_free_buf() argument 156 pr_err_size_seq(sizes, seq); in binder_selftest_free_buf() 185 size_t *sizes, int *seq, size_t end) in binder_selftest_alloc_free() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/msm/ |
| D | msm_fbdev.c | 61 struct drm_fb_helper_surface_size *sizes) in msm_fbdev_create() argument 73 format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in msm_fbdev_create() 75 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in msm_fbdev_create() 76 sizes->surface_height, sizes->surface_bpp, in msm_fbdev_create() 77 sizes->fb_width, sizes->fb_height); in msm_fbdev_create() 79 pitch = align_pitch(sizes->surface_width, sizes->surface_bpp); in msm_fbdev_create() 80 fb = msm_alloc_stolen_fb(dev, sizes->surface_width, in msm_fbdev_create() 81 sizes->surface_height, pitch, format); in msm_fbdev_create() 117 drm_fb_helper_fill_info(fbi, helper, sizes); in msm_fbdev_create()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
| D | exynos_drm_fbdev.c | 73 struct drm_fb_helper_surface_size *sizes, in exynos_drm_fbdev_update() argument 90 drm_fb_helper_fill_info(fbi, helper, sizes); in exynos_drm_fbdev_update() 103 struct drm_fb_helper_surface_size *sizes) in exynos_drm_fbdev_create() argument 114 sizes->surface_width, sizes->surface_height, in exynos_drm_fbdev_create() 115 sizes->surface_bpp); in exynos_drm_fbdev_create() 117 mode_cmd.width = sizes->surface_width; in exynos_drm_fbdev_create() 118 mode_cmd.height = sizes->surface_height; in exynos_drm_fbdev_create() 119 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_create() 120 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in exynos_drm_fbdev_create() 121 sizes->surface_depth); in exynos_drm_fbdev_create() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/exynos/ |
| D | exynos_drm_fbdev.c | 76 struct drm_fb_helper_surface_size *sizes, in exynos_drm_fbdev_update() argument 96 drm_fb_helper_fill_var(fbi, helper, sizes->fb_width, sizes->fb_height); in exynos_drm_fbdev_update() 118 struct drm_fb_helper_surface_size *sizes) in exynos_drm_fbdev_create() argument 128 sizes->surface_width, sizes->surface_height, in exynos_drm_fbdev_create() 129 sizes->surface_bpp); in exynos_drm_fbdev_create() 131 mode_cmd.width = sizes->surface_width; in exynos_drm_fbdev_create() 132 mode_cmd.height = sizes->surface_height; in exynos_drm_fbdev_create() 133 mode_cmd.pitches[0] = sizes->surface_width * (sizes->surface_bpp >> 3); in exynos_drm_fbdev_create() 134 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in exynos_drm_fbdev_create() 135 sizes->surface_depth); in exynos_drm_fbdev_create() [all …]
|
| /kernel/linux/linux-5.10/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 enumerate all frame sizes supported by 40 To enumerate frame sizes applications initialize the ``pad``, ``which`` 44 structure. Drivers fill the minimum and maximum frame sizes or return an 47 Sub-devices that only support discrete frame sizes (such as most 48 sensors) will return one or more frame sizes with identical minimum and 51 Not all possible sizes in given [minimum, maximum] ranges need to be 58 Available frame sizes may depend on the current 'try' formats at other 97 - Frame sizes to be enumerated, from enum
|
| /kernel/linux/linux-4.19/Documentation/media/uapi/v4l/ |
| D | vidioc-subdev-enum-frame-size.rst | 12 VIDIOC_SUBDEV_ENUM_FRAME_SIZE - Enumerate media bus frame sizes 35 This ioctl allows applications to enumerate all frame sizes supported by 41 To enumerate frame sizes applications initialize the ``pad``, ``which`` 45 structure. Drivers fill the minimum and maximum frame sizes or return an 48 Sub-devices that only support discrete frame sizes (such as most 49 sensors) will return one or more frame sizes with identical minimum and 52 Not all possible sizes in given [minimum, maximum] ranges need to be 59 Available frame sizes may depend on the current 'try' formats at other 99 - Frame sizes to be enumerated, from enum
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/omapdrm/ |
| D | omap_fbdev.c | 101 struct drm_fb_helper_surface_size *sizes) in omap_fbdev_create() argument 113 sizes->surface_bpp = 32; in omap_fbdev_create() 114 sizes->surface_depth = 24; in omap_fbdev_create() 116 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in omap_fbdev_create() 117 sizes->surface_height, sizes->surface_bpp, in omap_fbdev_create() 118 sizes->fb_width, sizes->fb_height); in omap_fbdev_create() 120 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in omap_fbdev_create() 121 sizes->surface_depth); in omap_fbdev_create() 123 mode_cmd.width = sizes->surface_width; in omap_fbdev_create() 124 mode_cmd.height = sizes->surface_height; in omap_fbdev_create() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
| D | omap_fbdev.c | 91 struct drm_fb_helper_surface_size *sizes) in omap_fbdev_create() argument 103 sizes->surface_bpp = 32; in omap_fbdev_create() 104 sizes->surface_depth = 24; in omap_fbdev_create() 106 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in omap_fbdev_create() 107 sizes->surface_height, sizes->surface_bpp, in omap_fbdev_create() 108 sizes->fb_width, sizes->fb_height); in omap_fbdev_create() 110 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in omap_fbdev_create() 111 sizes->surface_depth); in omap_fbdev_create() 113 mode_cmd.width = sizes->surface_width; in omap_fbdev_create() 114 mode_cmd.height = sizes->surface_height; in omap_fbdev_create() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/armada/ |
| D | armada_fbdev.c | 28 struct drm_fb_helper_surface_size *sizes) in armada_fbdev_create() argument 39 mode.width = sizes->surface_width; in armada_fbdev_create() 40 mode.height = sizes->surface_height; in armada_fbdev_create() 41 mode.pitches[0] = armada_pitch(mode.width, sizes->surface_bpp); in armada_fbdev_create() 42 mode.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in armada_fbdev_create() 43 sizes->surface_depth); in armada_fbdev_create() 92 drm_fb_helper_fill_var(info, fbh, sizes->fb_width, sizes->fb_height); in armada_fbdev_create() 106 struct drm_fb_helper_surface_size *sizes) in armada_fb_probe() argument 111 ret = armada_fbdev_create(fbh, sizes); in armada_fb_probe()
|
| /kernel/linux/linux-4.19/arch/parisc/boot/compressed/ |
| D | Makefile | 13 targets += misc.o piggy.o sizes.h head.o real2.o firmware.o 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 36 $(call if_changed,sizes) 39 $(obj)/head.o: $(obj)/sizes.h 42 $(obj)/misc.o: $(obj)/sizes.h 53 $(obj)/misc.o: $(obj)/sizes.h 56 $(obj)/vmlinux.lds: $(obj)/sizes.h
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/armada/ |
| D | armada_fbdev.c | 28 struct drm_fb_helper_surface_size *sizes) in armada_fbdev_create() argument 39 mode.width = sizes->surface_width; in armada_fbdev_create() 40 mode.height = sizes->surface_height; in armada_fbdev_create() 41 mode.pitches[0] = armada_pitch(mode.width, sizes->surface_bpp); in armada_fbdev_create() 42 mode.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in armada_fbdev_create() 43 sizes->surface_depth); in armada_fbdev_create() 88 drm_fb_helper_fill_info(info, fbh, sizes); in armada_fbdev_create() 102 struct drm_fb_helper_surface_size *sizes) in armada_fb_probe() argument 107 ret = armada_fbdev_create(fbh, sizes); in armada_fb_probe()
|
| /kernel/linux/linux-5.10/arch/parisc/boot/compressed/ |
| D | Makefile | 14 targets += misc.o piggy.o sizes.h head.o real2.o firmware.o 32 sed-sizes := -e 's/^\([0-9a-fA-F]*\) . \(__bss_start\|_end\|parisc_kernel_start\)$$/\#define SZ\2 0… 35 cmd_sizes = $(NM) $< | sed -n $(sed-sizes) > $@ 37 $(obj)/sizes.h: vmlinux 38 $(call if_changed,sizes) 41 $(obj)/head.o: $(obj)/sizes.h 44 $(obj)/misc.o: $(obj)/sizes.h 55 $(obj)/misc.o: $(obj)/sizes.h 58 $(obj)/vmlinux.lds: $(obj)/sizes.h
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/rockchip/ |
| D | rockchip_drm_fbdev.c | 48 struct drm_fb_helper_surface_size *sizes) in rockchip_drm_fbdev_create() argument 61 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in rockchip_drm_fbdev_create() 63 mode_cmd.width = sizes->surface_width; in rockchip_drm_fbdev_create() 64 mode_cmd.height = sizes->surface_height; in rockchip_drm_fbdev_create() 65 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rockchip_drm_fbdev_create() 66 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in rockchip_drm_fbdev_create() 67 sizes->surface_depth); in rockchip_drm_fbdev_create() 99 drm_fb_helper_fill_var(fbi, helper, sizes->fb_width, sizes->fb_height); in rockchip_drm_fbdev_create()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/ |
| D | rockchip_drm_fbdev.c | 40 struct drm_fb_helper_surface_size *sizes) in rockchip_drm_fbdev_create() argument 53 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in rockchip_drm_fbdev_create() 55 mode_cmd.width = sizes->surface_width; in rockchip_drm_fbdev_create() 56 mode_cmd.height = sizes->surface_height; in rockchip_drm_fbdev_create() 57 mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel; in rockchip_drm_fbdev_create() 58 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in rockchip_drm_fbdev_create() 59 sizes->surface_depth); in rockchip_drm_fbdev_create() 88 drm_fb_helper_fill_info(fbi, helper, sizes); in rockchip_drm_fbdev_create()
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/hisilicon/hibmc/ |
| D | hibmc_drm_fbdev.c | 57 struct drm_fb_helper_surface_size *sizes) in hibmc_drm_fb_create() argument 72 sizes->surface_width, sizes->surface_height, in hibmc_drm_fb_create() 73 sizes->surface_bpp); in hibmc_drm_fb_create() 75 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in hibmc_drm_fb_create() 77 mode_cmd.width = sizes->surface_width; in hibmc_drm_fb_create() 78 mode_cmd.height = sizes->surface_height; in hibmc_drm_fb_create() 80 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in hibmc_drm_fb_create() 81 sizes->surface_depth); in hibmc_drm_fb_create() 138 drm_fb_helper_fill_var(info, &priv->fbdev->helper, sizes->fb_width, in hibmc_drm_fb_create() 139 sizes->fb_height); in hibmc_drm_fb_create()
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/bochs/ |
| D | bochs_fbdev.c | 51 struct drm_fb_helper_surface_size *sizes) in bochsfb_create() argument 62 if (sizes->surface_bpp != 32) in bochsfb_create() 65 mode_cmd.width = sizes->surface_width; in bochsfb_create() 66 mode_cmd.height = sizes->surface_height; in bochsfb_create() 67 mode_cmd.pitches[0] = mode_cmd.width * ((sizes->surface_bpp + 7) / 8); in bochsfb_create() 68 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in bochsfb_create() 69 sizes->surface_depth); in bochsfb_create() 124 drm_fb_helper_fill_var(info, &bochs->fb.helper, sizes->fb_width, in bochsfb_create() 125 sizes->fb_height); in bochsfb_create()
|
| /kernel/linux/linux-4.19/arch/s390/boot/compressed/ |
| D | Makefile | 16 targets += vmlinux.scr.lds $(obj-y) $(if $(CONFIG_KERNEL_UNCOMPRESSED),,sizes.h) 28 sed-sizes := -e 's/^\([0-9a-fA-F]*\) . \(__bss_start\|_end\)$$/\#define SZ\2 (0x\1 - 0x100000)/p' 31 cmd_sizes = $(NM) $< | sed -n $(sed-sizes) > $@ 33 $(obj)/sizes.h: vmlinux 34 $(call if_changed,sizes) 37 $(obj)/head.o: $(obj)/sizes.h 40 $(obj)/misc.o: $(obj)/sizes.h
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
| D | intel_fbdev.c | 114 struct drm_fb_helper_surface_size *sizes) in intelfb_alloc() argument 126 if (sizes->surface_bpp == 24) in intelfb_alloc() 127 sizes->surface_bpp = 32; in intelfb_alloc() 129 mode_cmd.width = sizes->surface_width; in intelfb_alloc() 130 mode_cmd.height = sizes->surface_height; in intelfb_alloc() 133 DIV_ROUND_UP(sizes->surface_bpp, 8), 64); in intelfb_alloc() 134 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in intelfb_alloc() 135 sizes->surface_depth); in intelfb_alloc() 163 struct drm_fb_helper_surface_size *sizes) in intelfb_create() argument 184 (sizes->fb_width > intel_fb->base.width || in intelfb_create() [all …]
|
| /kernel/linux/linux-5.10/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
|
| /kernel/linux/linux-4.19/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
|