| /kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/ |
| D | vivid-touch-cap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * vivid-touch-cap.c - touch support functions. 6 #include "vivid-core.h" 7 #include "vivid-kthread-touch.h" 8 #include "vivid-vid-common.h" 9 #include "vivid-touch-cap.h" 16 struct v4l2_pix_format *f = &dev->tch_format; in touch_cap_queue_setup() 17 unsigned int size = f->sizeimage; in touch_cap_queue_setup() 21 return -EINVAL; in touch_cap_queue_setup() 26 if (vq->num_buffers + *nbuffers < 2) in touch_cap_queue_setup() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/test-drivers/vivid/ |
| D | vivid-touch-cap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * vivid-touch-cap.c - touch support functions. 6 #include "vivid-core.h" 7 #include "vivid-kthread-touch.h" 8 #include "vivid-vid-common.h" 9 #include "vivid-touch-cap.h" 16 struct v4l2_pix_format *f = &dev->tch_format; in touch_cap_queue_setup() 17 unsigned int size = f->sizeimage; in touch_cap_queue_setup() 21 return -EINVAL; in touch_cap_queue_setup() 26 if (vq->num_buffers + *nbuffers < 2) in touch_cap_queue_setup() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/rmi4/ |
| D | rmi_2d_sensor.txt | 12 http://www.synaptics.com/sites/default/files/511-000136-01-Rev-E-RMI4-Interfacing-Guide.pdf 16 - touchscreen-inverted-x 17 - touchscreen-inverted-y 18 - touchscreen-swapped-x-y 19 - touchscreen-x-mm 20 - touchscreen-y-mm 23 - syna,clip-x-low: Sets a minimum value for X. 24 - syna,clip-y-low: Sets a minimum value for Y. 25 - syna,clip-x-high: Sets a maximum value for X. 26 - syna,clip-y-high: Sets a maximum value for Y. [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/ipu-v3/ |
| D | ipu-ic-csc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 #include "ipu-prv.h" 24 .offset = { 0, 0, 0, }, 29 * RGB full-range to RGB limited-range 41 .offset = { 64, 64, 64, }, 46 * RGB limited-range to RGB full-range 48 * R_full = 1.1644 * (R_lim - 16) 49 * G_full = 1.1644 * (G_lim - 16) 50 * B_full = 1.1644 * (B_lim - 16) 58 .offset = { -37, -37, -37, }, [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/ipu-v3/ |
| D | ipu-ic-csc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 #include "ipu-prv.h" 24 .offset = { 0, 0, 0, }, 29 * RGB full-range to RGB limited-range 41 .offset = { 64, 64, 64, }, 46 * RGB limited-range to RGB full-range 48 * R_full = 1.1644 * (R_lim - 16) 49 * G_full = 1.1644 * (G_lim - 16) 50 * B_full = 1.1644 * (B_lim - 16) 58 .offset = { -37, -37, -37, }, [all …]
|
| /kernel/linux/linux-6.6/drivers/media/common/v4l2-tpg/ |
| D | v4l2-tpg-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * v4l2-tpg-core.c - Test Pattern Generator 12 #include <media/tpg/v4l2-tpg.h> 54 * Sine table: sin[0] = 127 * sin(-180 degrees) 59 0, -4, -7, -11, -13, -18, -20, -22, -26, -29, -33, -35, -37, -41, -43, -48, 60 -50, -52, -56, -58, -62, -63, -65, -69, -71, -75, -76, -78, -82, -83, -87, -88, 61 -90, -93, -94, -97, -99, -101, -103, -104, -107, -108, -110, -111, -112, -114, -115, -117, 62 -118, -119, -120, -121, -122, -123, -123, -124, -125, -125, -126, -126, -127, -127, -127, -127, 63 -127, -127, -127, -127, -126, -126, -125, -125, -124, -124, -123, -122, -121, -120, -119, -118, 64 -117, -116, -114, -113, -111, -110, -109, -107, -105, -103, -101, -100, -97, -96, -93, -91, [all …]
|
| /kernel/linux/linux-5.10/drivers/media/common/v4l2-tpg/ |
| D | v4l2-tpg-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * v4l2-tpg-core.c - Test Pattern Generator 12 #include <media/tpg/v4l2-tpg.h> 54 * Sine table: sin[0] = 127 * sin(-180 degrees) 59 0, -4, -7, -11, -13, -18, -20, -22, -26, -29, -33, -35, -37, -41, -43, -48, 60 -50, -52, -56, -58, -62, -63, -65, -69, -71, -75, -76, -78, -82, -83, -87, -88, 61 -90, -93, -94, -97, -99, -101, -103, -104, -107, -108, -110, -111, -112, -114, -115, -117, 62 -118, -119, -120, -121, -122, -123, -123, -124, -125, -125, -126, -126, -127, -127, -127, -127, 63 -127, -127, -127, -127, -126, -126, -125, -125, -124, -124, -123, -122, -121, -120, -119, -118, 64 -117, -116, -114, -113, -111, -110, -109, -107, -105, -103, -101, -100, -97, -96, -93, -91, [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
| D | i915_vma.c | 42 if (vma->vm != rcu_access_pointer(ctx->vm)) { in assert_vma() 47 if (vma->size != obj->base.size) { in assert_vma() 49 vma->size, obj->base.size); in assert_vma() 53 if (vma->ggtt_view.type != I915_GGTT_VIEW_NORMAL) { in assert_vma() 55 vma->ggtt_view.type); in assert_vma() 75 if (vma->vm != vm) { in checked_vma_instance() 77 vma->vm, vm); in checked_vma_instance() 89 return ERR_PTR(-EINVAL); in checked_vma_instance() 92 if (i915_vma_compare(vma, vma->vm, in checked_vma_instance() 93 i915_vma_is_ggtt(vma) ? &vma->ggtt_view : NULL)) { in checked_vma_instance() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/ |
| D | i915_vma.c | 43 if (vma->vm != ctx->vm) { in assert_vma() 48 if (vma->size != obj->base.size) { in assert_vma() 50 vma->size, obj->base.size); in assert_vma() 54 if (vma->gtt_view.type != I915_GTT_VIEW_NORMAL) { in assert_vma() 56 vma->gtt_view.type); in assert_vma() 76 if (vma->vm != vm) { in checked_vma_instance() 78 vma->vm, vm); in checked_vma_instance() 90 return ERR_PTR(-EINVAL); in checked_vma_instance() 93 if (i915_vma_compare(vma, vma->vm, in checked_vma_instance() 94 i915_vma_is_ggtt(vma) ? &vma->gtt_view : NULL)) { in checked_vma_instance() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/touchscreen/ |
| D | edt-ft5x06.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: FocalTech EDT-FT5x06 Polytouch Bindings 18 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 21 - $ref: touchscreen.yaml# 22 - if: 27 - evervision,ev-ft5726 31 offset-x: true [all …]
|
| /kernel/linux/linux-6.6/arch/x86/entry/syscalls/ |
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 6 $(shell mkdir -p $(out) $(uapi)) 13 offset := macro 17 cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --abis $(abis) --emit-nr \ 18 $(if $(offset),--offset $(offset)) \ 19 $(if $(prefix),--prefix $(prefix)) \ 22 cmd_systbl = $(CONFIG_SHELL) $(systbl) --abis $(abis) $< $@ 25 cmd_hypercalls = $(CONFIG_SHELL) '$<' $@ $(filter-out $<, $(real-prereqs)) 37 $(uapi)/unistd_x32.h: offset := __X32_SYSCALL_BIT macro 60 $(out)/xen-hypercalls.h: $(srctree)/scripts/xen-hypercalls.sh FORCE [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/input/touchscreen/ |
| D | edt-ft5x06.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: FocalTech EDT-FT5x06 Polytouch 18 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 21 - $ref: touchscreen.yaml# 22 - if: 27 - evervision,ev-ft5726 31 offset-x: true [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
| D | vmw_surface_cache.h | 3 * SPDX-License-Identifier: GPL-2.0 OR MIT 37 return (tmp > (uint64_t) ((u32) -1)) ? (u32) -1 : tmp; in clamped_umul32() 41 * vmw_surface_get_desc - Look up the appropriate SVGA3dSurfaceDesc for the 54 * vmw_surface_get_mip_size - Given a base level size and the mip level, 74 block_size->width = __KERNEL_DIV_ROUND_UP(pixel_size->width, in vmw_surface_get_size_in_blocks() 75 desc->blockSize.width); in vmw_surface_get_size_in_blocks() 76 block_size->height = __KERNEL_DIV_ROUND_UP(pixel_size->height, in vmw_surface_get_size_in_blocks() 77 desc->blockSize.height); in vmw_surface_get_size_in_blocks() 78 block_size->depth = __KERNEL_DIV_ROUND_UP(pixel_size->depth, in vmw_surface_get_size_in_blocks() 79 desc->blockSize.depth); in vmw_surface_get_size_in_blocks() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/powerpc/stringloops/ |
| D | memcmp.c | 1 // SPDX-License-Identifier: GPL-2.0 32 vmx_count--; in exit_vmx_ops() 40 unsigned long offset, size; in test_one() local 42 for (offset = 0; offset < max_offset; offset++) { in test_one() 43 for (size = size_start; size < (max_size - offset); size++) { in test_one() 44 int x, y; in test_one() local 47 y = memcmp(s1+offset, s2+offset, size); in test_one() 48 x = test_memcmp(s1+offset, s2+offset, size); in test_one() 50 if (((x ^ y) < 0) && /* Trick to compare sign */ in test_one() 51 ((x | y) != 0)) { /* check for zero */ in test_one() [all …]
|
| D | strlen.c | 1 // SPDX-License-Identifier: GPL-2.0 17 unsigned long offset; in test_one() local 19 for (offset = 0; offset < SIZE; offset++) { in test_one() 20 int x, y; in test_one() local 23 y = strlen(s + offset); in test_one() 24 x = test_strlen(s + offset); in test_one() 26 if (x != y) { in test_one() 27 printf("strlen() returned %d, should have returned %d (%p offset %ld)\n", x, y, s, offset); in test_one() 29 for (i = offset; i < SIZE; i++) in test_one() 48 …len %3.3d : time = %.6f\n", test_strlen(s), ts_end.tv_sec - ts_start.tv_sec + (ts_end.tv_nsec - ts… in bench_test() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/powerpc/stringloops/ |
| D | memcmp.c | 1 // SPDX-License-Identifier: GPL-2.0 32 vmx_count--; in exit_vmx_ops() 40 unsigned long offset, size; in test_one() local 42 for (offset = 0; offset < max_offset; offset++) { in test_one() 43 for (size = size_start; size < (max_size - offset); size++) { in test_one() 44 int x, y; in test_one() local 47 y = memcmp(s1+offset, s2+offset, size); in test_one() 48 x = test_memcmp(s1+offset, s2+offset, size); in test_one() 50 if (((x ^ y) < 0) && /* Trick to compare sign */ in test_one() 51 ((x | y) != 0)) { /* check for zero */ in test_one() [all …]
|
| D | strlen.c | 1 // SPDX-License-Identifier: GPL-2.0 17 unsigned long offset; in test_one() local 19 for (offset = 0; offset < SIZE; offset++) { in test_one() 20 int x, y; in test_one() local 23 y = strlen(s + offset); in test_one() 24 x = test_strlen(s + offset); in test_one() 26 if (x != y) { in test_one() 27 printf("strlen() returned %d, should have returned %d (%p offset %ld)\n", x, y, s, offset); in test_one() 29 for (i = offset; i < SIZE; i++) in test_one() 48 …len %3.3d : time = %.6f\n", test_strlen(s), ts_end.tv_sec - ts_start.tv_sec + (ts_end.tv_nsec - ts… in bench_test() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/ |
| D | tcm-sita.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 50 *pos = num_bits - w; in r2l_b2t_1d() 55 if (bit - *pos >= w) { in r2l_b2t_1d() 62 search_count = num_bits - bit + w; in r2l_b2t_1d() 63 *pos = bit - w; in r2l_b2t_1d() 66 return (area_found) ? 0 : -ENOMEM; in r2l_b2t_1d() 72 * a = align in slots (mask, 2^n-1, 0 is unaligned) 73 * offset = offset in bytes from 4KiB 79 static int l2r_t2b(u16 w, u16 h, u16 a, s16 offset, in l2r_t2b() argument [all …]
|
| /kernel/linux/linux-5.10/kernel/time/ |
| D | timeconv.c | 1 // SPDX-License-Identifier: LGPL-2.0+ 19 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20 * Boston, MA 02111-1307, USA. 24 * Converts the calendar time to broken-down time representation 25 * Based on code from glibc-2.6 27 * 2009-7-14: 28 * Moved from glibc-2.6 to kernel by Zhaolei<zhaolei@cn.fujitsu.com> 46 return a / b - (a % b < 0); in math_div() 52 long leaps1 = math_div(y1 - 1, 4) - math_div(y1 - 1, 100) in leaps_between() 53 + math_div(y1 - 1, 400); in leaps_between() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
| D | skl_universal_plane.c | 1 // SPDX-License-Identifier: MIT 271 const struct drm_framebuffer *fb = plane_state->hw.fb; in glk_plane_ratio() 273 if (fb->format->cpp[0] == 8) { in glk_plane_ratio() 298 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_plane_ratio() 300 if (fb->format->cpp[0] == 8) { in skl_plane_ratio() 324 int cpp = fb->format->cpp[color_plane]; in skl_plane_max_width() 326 switch (fb->modifier) { in skl_plane_max_width() 332 * - Ytile (already limited to 4k) in skl_plane_max_width() 333 * - FP16 (already limited to 4k) in skl_plane_max_width() 334 * - render compression (already limited to 4k) in skl_plane_max_width() [all …]
|
| D | intel_fb.c | 1 // SPDX-License-Identifier: MIT 16 #define check_array_bounds(i915, a, i) drm_WARN_ON(&(i915)->drm, (i) >= ARRAY_SIZE(a)) 21 * the cache-line pairs. The compression state of the cache-line pair 22 * is specified by 2 bits in the CCS. Each CCS cache-line represents 23 * an area on the main surface of 16 x16 sets of 128 byte Y-tiled 24 * cache-line-pairs. CCS is always Y tiled." 44 * Gen-12 compression uses 4 bits of CCS data for each cache line pair in the 45 * main surface. And each 64B CCS cache line represents an area of 4x1 Y-tiles 46 * in the main surface. With 4 byte pixels and each Y-tile having dimensions of 132 #define DISPLAY_VER_ALL { 0, -1 } [all …]
|
| /kernel/linux/linux-5.10/arch/m68k/mac/ |
| D | misc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Miscellaneous Mac68K-specific stuff 30 * Offset between Unix time (1970-based) and Mac time (1904-based). Cuda and PMU 32 * need to be changed to interpret wrapped times as post-2040. 41 static unsigned char cuda_pram_read_byte(int offset) in cuda_pram_read_byte() argument 46 (offset >> 8) & 0xFF, offset & 0xFF) < 0) in cuda_pram_read_byte() 53 static void cuda_pram_write_byte(unsigned char data, int offset) in cuda_pram_write_byte() argument 58 (offset >> 8) & 0xFF, offset & 0xFF, data) < 0) in cuda_pram_write_byte() 66 static unsigned char pmu_pram_read_byte(int offset) in pmu_pram_read_byte() argument 71 offset & 0xFF, 1) < 0) in pmu_pram_read_byte() [all …]
|
| /kernel/linux/linux-6.6/arch/m68k/mac/ |
| D | misc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Miscellaneous Mac68K-specific stuff 29 * Offset between Unix time (1970-based) and Mac time (1904-based). Cuda and PMU 31 * need to be changed to interpret wrapped times as post-2040. 40 static unsigned char cuda_pram_read_byte(int offset) in cuda_pram_read_byte() argument 45 (offset >> 8) & 0xFF, offset & 0xFF) < 0) in cuda_pram_read_byte() 52 static void cuda_pram_write_byte(unsigned char data, int offset) in cuda_pram_write_byte() argument 57 (offset >> 8) & 0xFF, offset & 0xFF, data) < 0) in cuda_pram_write_byte() 65 static unsigned char pmu_pram_read_byte(int offset) in pmu_pram_read_byte() argument 70 offset & 0xFF, 1) < 0) in pmu_pram_read_byte() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/amphion/ |
| D | vpu_malone.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2020-2021 NXP 16 #include <media/videobuf2-v4l2.h> 17 #include <media/videobuf2-dma-contig.h> 49 //x means source data , y means destination data 50 #define STREAM_CONFIG_FORMAT_SET(x, y) CONFIG_SET(x, y, 0, 0x0000000F) argument 51 #define STREAM_CONFIG_STRBUFIDX_SET(x, y) CONFIG_SET(x, y, 8, 0x00000300) argument 52 #define STREAM_CONFIG_NOSEQ_SET(x, y) CONFIG_SET(x, y, 10, 0x00000400) argument 53 #define STREAM_CONFIG_DEBLOCK_SET(x, y) CONFIG_SET(x, y, 11, 0x00000800) argument 54 #define STREAM_CONFIG_DERING_SET(x, y) CONFIG_SET(x, y, 12, 0x00001000) argument [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
| D | tcm-sita.c | 8 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ 58 *pos = num_bits - w; in r2l_b2t_1d() 63 if (bit - *pos >= w) { in r2l_b2t_1d() 70 search_count = num_bits - bit + w; in r2l_b2t_1d() 71 *pos = bit - w; in r2l_b2t_1d() 74 return (area_found) ? 0 : -ENOMEM; in r2l_b2t_1d() 80 * a = align in slots (mask, 2^n-1, 0 is unaligned) 81 * offset = offset in bytes from 4KiB 87 static int l2r_t2b(u16 w, u16 h, u16 a, s16 offset, in l2r_t2b() argument 95 unsigned long bit_offset = (offset > 0) ? offset / slot_bytes : 0; in l2r_t2b() [all …]
|