/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
D | ipu-cpmem.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright 2005-2012 Freescale Semiconductor, Inc. All Rights Reserved. 11 #include "ipu-prv.h" 95 struct ipu_cpmem *cpmem = ch->ipu->cpmem_priv; in ipu_get_cpmem() 97 return cpmem->base + ch->num; in ipu_get_cpmem() 108 u32 mask = (1 << size) - 1; in ipu_ch_param_write_field() 113 val = readl(&base->word[word].data[i]); in ipu_ch_param_write_field() 116 writel(val, &base->word[word].data[i]); in ipu_ch_param_write_field() 118 if ((bit + size - 1) / 32 > i) { in ipu_ch_param_write_field() 119 val = readl(&base->word[word].data[i + 1]); in ipu_ch_param_write_field() [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
D | tcm.h | 45 u16 y; member 60 unsigned int y_offset; /* offset to use for y coordinates */ 68 s16 offset, u16 slot_bytes, 99 * @return 0 on success, non-0 error value on error. The call 101 * even on failure. Some error codes: -ENODEV: invalid 107 tcm->deinit(tcm); in tcm_deinit() 116 * @param align Alignment requirement for top-left corner of area. Not 120 * @param offset Offset requirement, in bytes. This is the offset 125 * @return 0 on success. Non-0 error code on failure. Also, 127 * failure. Some error codes: -ENODEV: invalid manager, [all …]
|
/Linux-v5.10/drivers/hid/ |
D | hid-udraw-ps3.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include "hid-ids.h" 21 * https://vvvv.org/contribution/udraw-hid 26 * - the touch area which works as a touchpad 27 * - the tablet area which works as a touchpad/drawing tablet 28 * - a joypad with a d-pad, and 7 buttons 29 * - an accelerometer device 47 * in order, X, Y and Z 66 #define MAX_PRESSURE (255 - PRESSURE_OFFSET) 76 * The device's two-finger support is pretty unreliable, as [all …]
|
/Linux-v5.10/drivers/gpu/drm/vc4/ |
D | vc4_render_cl.c | 2 * Copyright © 2014-2015 Broadcom 28 * tiles of a framebuffer and optionally call out to binner-generated 33 * user-submitted command list is hard to get right and has high CPU overhead, 58 *(u8 *)(setup->rcl->vaddr + setup->next_offset) = val; in rcl_u8() 59 setup->next_offset += 1; in rcl_u8() 64 *(u16 *)(setup->rcl->vaddr + setup->next_offset) = val; in rcl_u16() 65 setup->next_offset += 2; in rcl_u16() 70 *(u32 *)(setup->rcl->vaddr + setup->next_offset) = val; in rcl_u32() 71 setup->next_offset += 4; in rcl_u32() 75 * Emits a no-op STORE_TILE_BUFFER_GENERAL. [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_cm_common.c | 37 ctx //dpp->base.ctx 41 reg->shifts.field_name, reg->masks.field_name 51 REG_SET_2(reg->start_cntl_b, 0, in cm_helper_program_gamcor_xfer_func() 52 exp_region_start, params->corner_points[0].blue.custom_float_x, in cm_helper_program_gamcor_xfer_func() 54 REG_SET_2(reg->start_cntl_g, 0, in cm_helper_program_gamcor_xfer_func() 55 exp_region_start, params->corner_points[0].green.custom_float_x, in cm_helper_program_gamcor_xfer_func() 57 REG_SET_2(reg->start_cntl_r, 0, in cm_helper_program_gamcor_xfer_func() 58 exp_region_start, params->corner_points[0].red.custom_float_x, in cm_helper_program_gamcor_xfer_func() 61 REG_SET(reg->start_slope_cntl_b, 0, //linear slope at start of curve in cm_helper_program_gamcor_xfer_func() 62 field_region_linear_slope, params->corner_points[0].blue.custom_float_slope); in cm_helper_program_gamcor_xfer_func() [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_cm_common.c | 39 reg->shifts.field_name, reg->masks.field_name 49 for (cur_csc_reg = reg->csc_c11_c12; in cm_helper_program_color_matrices() 50 cur_csc_reg <= reg->csc_c33_c34; in cm_helper_program_color_matrices() 73 REG_SET_2(reg->start_cntl_b, 0, in cm_helper_program_xfer_func() 74 exp_region_start, params->corner_points[0].blue.custom_float_x, in cm_helper_program_xfer_func() 76 REG_SET_2(reg->start_cntl_g, 0, in cm_helper_program_xfer_func() 77 exp_region_start, params->corner_points[0].green.custom_float_x, in cm_helper_program_xfer_func() 79 REG_SET_2(reg->start_cntl_r, 0, in cm_helper_program_xfer_func() 80 exp_region_start, params->corner_points[0].red.custom_float_x, in cm_helper_program_xfer_func() 83 REG_SET(reg->start_slope_cntl_b, 0, in cm_helper_program_xfer_func() [all …]
|
/Linux-v5.10/Documentation/userspace-api/media/v4l/ |
D | pixfmt-meta-vsp1-hgo.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _v4l2-meta-fmt-vsp1-hgo: 9 Renesas R-Car VSP1 1-D Histogram Data 15 This format describes histogram data generated by the Renesas R-Car VSP1 1-D 20 computes the minimum, maximum and sum of all pixels as well as per-channel 24 three channels (RGB data only) or on the Y channel only (YCbCr only). It can 28 - In *64 bins normal mode*, the HGO operates on the three channels independently 29 to compute three 64-bins histograms. RGB, YCbCr and HSV image formats are 31 - In *64 bins maximum mode*, the HGO operates on the maximum of the (R, G, B) 32 channels to compute a single 64-bins histogram. Only the RGB image format is [all …]
|
/Linux-v5.10/drivers/staging/media/atomisp/pci/ |
D | sh_css_param_dvs.c | 1 // SPDX-License-Identifier: GPL-2.0 38 err = -ENOMEM; in alloc_dvs_6axis_table() 42 dvs_config->width_y = width_y = dvs_config_src->width_y; in alloc_dvs_6axis_table() 43 dvs_config->height_y = height_y = dvs_config_src->height_y; in alloc_dvs_6axis_table() 44 dvs_config->width_uv = width_uv = dvs_config_src->width_uv; in alloc_dvs_6axis_table() 45 dvs_config->height_uv = height_uv = dvs_config_src->height_uv; in alloc_dvs_6axis_table() 46 IA_CSS_LOG("alloc_dvs_6axis_table Y: W %d H %d", width_y, height_y); in alloc_dvs_6axis_table() 48 dvs_config->width_y = width_y = DVS_TABLE_IN_BLOCKDIM_X_LUMA(frame_res->width); in alloc_dvs_6axis_table() 49 dvs_config->height_y = height_y = DVS_TABLE_IN_BLOCKDIM_Y_LUMA( in alloc_dvs_6axis_table() 50 frame_res->height); in alloc_dvs_6axis_table() [all …]
|
/Linux-v5.10/drivers/staging/fbtft/ |
D | fb_uc1611.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * The display is 4-bit grayscale (16 shades) 240x160. 29 * V_LCD = (C_V0 + C_PM × pot) * (1 + (T - 25) * temp) 34 /* BR -> actual ratio: 0-3 -> 5, 10, 11, 13 */ 37 MODULE_PARM_DESC(ratio, "BR[1:0] Bias voltage ratio: 0-3 (default: 2)"); 41 MODULE_PARM_DESC(gain, "GN[1:0] Bias voltage gain: 0-3 (default: 3)"); 45 MODULE_PARM_DESC(pot, "PM[6:0] Bias voltage pot.: 0-63 (default: 16)"); 47 /* TC -> % compensation per deg C: 0-3 -> -.05, -.10, -.015, -.20 */ 50 MODULE_PARM_DESC(temp, "TC[1:0] Temperature compensation: 0-3 (default: 0)"); 52 /* PC[1:0] -> LCD capacitance: 0-3 -> <20nF, 20-28 nF, 29-40 nF, 40-56 nF */ [all …]
|
/Linux-v5.10/drivers/media/dvb-frontends/ |
D | stb0899_priv.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 22 #define dprintk(x, y, z, format, arg...) do { \ argument 24 if ((*x > FE_ERROR) && (*x > y)) \ 26 else if ((*x > FE_NOTICE) && (*x > y)) \ 28 else if ((*x > FE_INFO) && (*x > y)) \ 30 else if ((*x > FE_DEBUG) && (*x > y)) \ 33 if (*x > y) \ 38 #define INRANGE(val, x, y) (((x <= val) && (val <= y)) || \ argument 39 ((y <= val) && (val <= x)) ? 1 : 0) 46 #define GETBYTE(x, y) (((x) >> (y)) & 0xff) argument [all …]
|
/Linux-v5.10/drivers/input/rmi4/ |
D | rmi_2d_sensor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2011-2016 Synaptics Incorporated 16 #define RMI_2D_REL_POS_MIN -128 26 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_process() 29 if (obj->type == RMI_2D_OBJECT_NONE) in rmi_2d_sensor_abs_process() 32 if (axis_align->flip_x) in rmi_2d_sensor_abs_process() 33 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process() 35 if (axis_align->flip_y) in rmi_2d_sensor_abs_process() 36 obj->y = sensor->max_y - obj->y; in rmi_2d_sensor_abs_process() 38 if (axis_align->swap_axes) in rmi_2d_sensor_abs_process() [all …]
|
/Linux-v5.10/drivers/video/fbdev/omap2/omapfb/ |
D | omapfb-main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/video/omap2/omapfb-main.c 16 #include <linux/dma-mapping.h> 54 static void draw_pixel(struct fb_info *fbi, int x, int y, unsigned color) in draw_pixel() argument 56 struct fb_var_screeninfo *var = &fbi->var; in draw_pixel() 57 struct fb_fix_screeninfo *fix = &fbi->fix; in draw_pixel() 58 void __iomem *addr = fbi->screen_base; in draw_pixel() 59 const unsigned bytespp = var->bits_per_pixel >> 3; in draw_pixel() 60 const unsigned line_len = fix->line_length / bytespp; in draw_pixel() 66 if (var->bits_per_pixel == 16) { in draw_pixel() [all …]
|
/Linux-v5.10/drivers/gpu/host1x/hw/ |
D | hw_host1x01_channel.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2012-2013, NVIDIA Corporation. 9 * <x>_r(void) : Returns the offset for register <x>. 11 * <x>_w(void) : Returns the word offset for word (4 byte) element <x>. 13 * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits. 15 * <x>_<y>_f(u32 v) : Returns a value based on 'v' which has been shifted 16 * and masked to place it at field <y> of register <x>. This value 20 * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This 21 * value can be ~'d and then &'d to clear the value of field <y> for 24 * <x>_<y>_<z>_f(void) : Returns the constant value <z> after being shifted [all …]
|
D | hw_host1x02_channel.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 9 * <x>_r(void) : Returns the offset for register <x>. 11 * <x>_w(void) : Returns the word offset for word (4 byte) element <x>. 13 * <x>_<y>_s(void) : Returns size of field <y> of register <x> in bits. 15 * <x>_<y>_f(u32 v) : Returns a value based on 'v' which has been shifted 16 * and masked to place it at field <y> of register <x>. This value 20 * <x>_<y>_m(void) : Returns a mask for field <y> of register <x>. This 21 * value can be ~'d and then &'d to clear the value of field <y> for 24 * <x>_<y>_<z>_f(void) : Returns the constant value <z> after being shifted 25 * to place it at field <y> of register <x>. This value can be |'d [all …]
|