/linux/tools/testing/selftests/arm64/mte/ |
A D | check_buffer_fill.c | 16 static int sizes[] = { variable 35 item = sizeof(sizes)/sizeof(int); in check_buffer_by_byte() 43 for (j = 0; j < sizes[i]; j++) in check_buffer_by_byte() 72 item = sizeof(sizes)/sizeof(int); in check_buffer_underflow_by_byte() 91 for (j = 0; j < sizes[i]; j++) { in check_buffer_underflow_by_byte() 168 item = sizeof(sizes)/sizeof(int); in check_buffer_overflow_by_byte() 189 for (j = 0; j < sizes[i]; j++) { in check_buffer_overflow_by_byte() 341 item = sizeof(sizes)/sizeof(int); in check_buffer_by_block() 409 sizes[item - 3] = page_size - 1; in main() 410 sizes[item - 2] = page_size; in main() [all …]
|
A 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() 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() 122 mte_clear_tags((void *)ptr, sizes[run]); in check_file_memory_mapping() 135 int total = sizeof(sizes)/sizeof(int); in check_clear_prot_mte_flag() 190 int item = sizeof(sizes)/sizeof(int); in main() 200 sizes[item - 3] = page_size - 1; in main() 201 sizes[item - 2] = page_size; in main() [all …]
|
A 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() 110 int total = sizeof(sizes)/sizeof(int); in check_child_file_mapping() 118 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_child_file_mapping() 127 ptr = mte_insert_tags((void *)ptr, sizes[run]); in check_child_file_mapping() 135 mte_clear_tags((void *)ptr, sizes[run]); in check_child_file_mapping() 147 int item = sizeof(sizes)/sizeof(int); in main() 154 sizes[item - 3] = page_size - 1; in main() 155 sizes[item - 2] = page_size; in main() [all …]
|
/linux/drivers/android/ |
A 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 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() 206 size_t *sizes, int *seq, in binder_selftest_free_seq() argument [all …]
|
/linux/drivers/gpu/drm/msm/ |
A D | msm_fbdev.c | 55 struct drm_fb_helper_surface_size *sizes) in msm_fbdev_create() argument 67 format = drm_mode_legacy_fb_format(sizes->surface_bpp, sizes->surface_depth); in msm_fbdev_create() 69 DBG("create fbdev: %dx%d@%d (%dx%d)", sizes->surface_width, in msm_fbdev_create() 70 sizes->surface_height, sizes->surface_bpp, in msm_fbdev_create() 71 sizes->fb_width, sizes->fb_height); in msm_fbdev_create() 73 pitch = align_pitch(sizes->surface_width, sizes->surface_bpp); in msm_fbdev_create() 74 fb = msm_alloc_stolen_fb(dev, sizes->surface_width, in msm_fbdev_create() 75 sizes->surface_height, pitch, format); in msm_fbdev_create() 111 drm_fb_helper_fill_info(fbi, helper, sizes); in msm_fbdev_create()
|
/linux/drivers/gpu/drm/exynos/ |
A 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 …]
|
/linux/drivers/gpu/drm/omapdrm/ |
A 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() 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() 117 DIV_ROUND_UP(mode_cmd.width * sizes->surface_bpp, 8); in omap_fbdev_create() [all …]
|
/linux/drivers/gpu/drm/armada/ |
A 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()
|
/linux/drivers/gpu/drm/rockchip/ |
A 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()
|
/linux/arch/parisc/boot/compressed/ |
A D | Makefile | 15 targets += $(OBJECTS) sizes.h 31 sed-sizes := -e 's/^\([0-9a-fA-F]*\) . \(__bss_start\|_end\|parisc_kernel_start\)$$/\#define SZ\2 0… 34 cmd_sizes = $(NM) $< | sed -n $(sed-sizes) > $@ 36 $(obj)/sizes.h: vmlinux FORCE 37 $(call if_changed,sizes) 40 $(obj)/head.o: $(obj)/sizes.h 43 $(obj)/misc.o: $(obj)/sizes.h 55 $(obj)/vmlinux.lds: $(obj)/sizes.h
|
/linux/drivers/gpu/drm/ |
A D | drm_fb_helper.c | 1520 sizes.surface_bpp = 32; in drm_fb_helper_single_fb_probe() 1529 sizes.surface_depth = sizes.surface_bpp = preferred_bpp; in drm_fb_helper_single_fb_probe() 1540 sizes.surface_depth = sizes.surface_bpp = 8; in drm_fb_helper_single_fb_probe() 1547 sizes.surface_depth = sizes.surface_bpp = 16; in drm_fb_helper_single_fb_probe() 1550 sizes.surface_depth = sizes.surface_bpp = 24; in drm_fb_helper_single_fb_probe() 1649 sizes.fb_width = min_t(u32, desired_mode->hdisplay + x, sizes.fb_width); in drm_fb_helper_single_fb_probe() 1651 sizes.fb_height = min_t(u32, desired_mode->vdisplay + y, sizes.fb_height); in drm_fb_helper_single_fb_probe() 1655 if (crtc_count == 0 || sizes.fb_width == -1 || sizes.fb_height == -1) { in drm_fb_helper_single_fb_probe() 1743 sizes->fb_width, sizes->fb_height); in drm_fb_helper_fill_info() 2329 sizes->surface_width, sizes->surface_height, in drm_fb_helper_generic_probe() [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
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 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
|
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/gpu/drm/i915/display/ |
A D | intel_fbdev.c | 118 struct drm_fb_helper_surface_size *sizes) in intelfb_alloc() argument 130 if (sizes->surface_bpp == 24) in intelfb_alloc() 131 sizes->surface_bpp = 32; in intelfb_alloc() 133 mode_cmd.width = sizes->surface_width; in intelfb_alloc() 134 mode_cmd.height = sizes->surface_height; in intelfb_alloc() 139 sizes->surface_depth); in intelfb_alloc() 175 struct drm_fb_helper_surface_size *sizes) in intelfb_create() argument 203 sizes->fb_width, sizes->fb_height); in intelfb_create() 210 ret = intelfb_alloc(helper, sizes); in intelfb_create() 217 sizes->fb_width = intel_fb->base.width; in intelfb_create() [all …]
|
/linux/drivers/gpu/drm/gma500/ |
A D | framebuffer.c | 261 struct drm_fb_helper_surface_size *sizes) in psbfb_create() argument 274 mode_cmd.width = sizes->surface_width; in psbfb_create() 275 mode_cmd.height = sizes->surface_height; in psbfb_create() 276 bpp = sizes->surface_bpp; in psbfb_create() 277 depth = sizes->surface_depth; in psbfb_create() 374 struct drm_fb_helper_surface_size *sizes) in psbfb_probe() argument 381 bytespp = sizes->surface_bpp / 8; in psbfb_probe() 389 sizes->surface_height; in psbfb_probe() 393 sizes->surface_bpp = 16; in psbfb_probe() 394 sizes->surface_depth = 16; in psbfb_probe() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | selftest_migrate.c | 10 static const unsigned int sizes[] = { variable 293 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in live_migrate_copy() 296 err = migrate_copy(migrate, sizes[i], &prng); in live_migrate_copy() 298 err = global_copy(migrate, sizes[i], &prng); in live_migrate_copy() 314 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in live_migrate_clear() 529 static const unsigned long sizes[] = { in perf_clear_blt() local 537 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in perf_clear_blt() 549 sizes[i]); in perf_clear_blt() 611 static const unsigned long sizes[] = { in perf_copy_blt() local 619 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in perf_copy_blt() [all …]
|
/linux/drivers/media/usb/em28xx/ |
A D | em28xx-vbi.c | 33 unsigned int sizes[], struct device *alloc_devs[]) in vbi_queue_setup() argument 43 if (sizes[0] < size) in vbi_queue_setup() 45 size = sizes[0]; in vbi_queue_setup() 49 sizes[0] = size; in vbi_queue_setup()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_fb.c | 198 struct drm_fb_helper_surface_size *sizes) in amdgpufb_create() argument 210 mode_cmd.width = sizes->surface_width; in amdgpufb_create() 211 mode_cmd.height = sizes->surface_height; in amdgpufb_create() 213 if (sizes->surface_bpp == 24) in amdgpufb_create() 214 sizes->surface_bpp = 32; in amdgpufb_create() 216 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in amdgpufb_create() 217 sizes->surface_depth); in amdgpufb_create() 253 drm_fb_helper_fill_info(info, &rfbdev->helper, sizes); in amdgpufb_create()
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_fb.c | 213 struct drm_fb_helper_surface_size *sizes) in radeonfb_create() argument 226 mode_cmd.width = sizes->surface_width; in radeonfb_create() 227 mode_cmd.height = sizes->surface_height; in radeonfb_create() 230 if ((sizes->surface_bpp == 24) && ASIC_IS_AVIVO(rdev)) in radeonfb_create() 231 sizes->surface_bpp = 32; in radeonfb_create() 233 mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in radeonfb_create() 234 sizes->surface_depth); in radeonfb_create() 275 drm_fb_helper_fill_info(info, &rfbdev->helper, sizes); in radeonfb_create()
|
/linux/drivers/gpu/drm/tegra/ |
A D | fb.c | 215 struct drm_fb_helper_surface_size *sizes) in tegra_fbdev_probe() argument 229 bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8); in tegra_fbdev_probe() 231 cmd.width = sizes->surface_width; in tegra_fbdev_probe() 232 cmd.height = sizes->surface_height; in tegra_fbdev_probe() 233 cmd.pitches[0] = round_up(sizes->surface_width * bytes_per_pixel, in tegra_fbdev_probe() 236 cmd.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, in tegra_fbdev_probe() 237 sizes->surface_depth); in tegra_fbdev_probe() 267 drm_fb_helper_fill_info(info, helper, sizes); in tegra_fbdev_probe()
|
/linux/samples/seccomp/ |
A 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/Documentation/devicetree/bindings/usb/ |
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/drivers/media/usb/au0828/ |
A D | au0828-vbi.c | 22 unsigned int sizes[], struct device *alloc_devs[]) in vbi_queue_setup() argument 28 return sizes[0] < size ? -EINVAL : 0; in vbi_queue_setup() 30 sizes[0] = size; in vbi_queue_setup()
|
/linux/Documentation/devicetree/bindings/dma/ |
A 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/lib/ |
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()
|