| /linux/drivers/gpu/ipu-v3/ |
| H A 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 …]
|
| /linux/arch/x86/entry/syscalls/ |
| H A 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 …]
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmw_surface_cache.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 4 * Copyright (c) 2021-2024 Broadcom. All Rights Reserved. The term 43 return (tmp > (uint64_t) ((u32) -1)) ? (u32) -1 : tmp; in clamped_umul32() 47 * vmw_surface_get_desc - Look up the appropriate SVGA3dSurfaceDesc for the 60 * vmw_surface_get_mip_size - Given a base level size and the mip level, 80 block_size->width = __KERNEL_DIV_ROUND_UP(pixel_size->width, in vmw_surface_get_size_in_blocks() 81 desc->blockSize.width); in vmw_surface_get_size_in_blocks() 82 block_size->height = __KERNEL_DIV_ROUND_UP(pixel_size->height, in vmw_surface_get_size_in_blocks() 83 desc->blockSize.height); in vmw_surface_get_size_in_blocks() 84 block_size->depth = __KERNEL_DIV_ROUND_UP(pixel_size->depth, in vmw_surface_get_size_in_blocks() [all …]
|
| /linux/arch/m68k/mac/ |
| H A D | misc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Miscellaneous Mac68K-specific stuff 31 * Offset between Unix time (1970-based) and Mac time (1904-based). Cuda and PMU 33 * need to be changed to interpret wrapped times as post-2040. 42 static unsigned char cuda_pram_read_byte(int offset) in cuda_pram_read_byte() argument 47 (offset >> 8) & 0xFF, offset & 0xFF) < 0) in cuda_pram_read_byte() 54 static void cuda_pram_write_byte(unsigned char data, int offset) in cuda_pram_write_byte() argument 59 (offset >> 8) & 0xFF, offset & 0xFF, data) < 0) in cuda_pram_write_byte() 67 static unsigned char pmu_pram_read_byte(int offset) in pmu_pram_read_byte() argument 72 offset & 0xFF, 1) < 0) in pmu_pram_read_byte() [all …]
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A 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 …]
|
| H A 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/tools/testing/selftests/powerpc/stringloops/ |
| H A 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 …]
|
| H A 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/drivers/hid/ |
| H A 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/drivers/staging/media/atomisp/pci/ |
| H A D | sh_css_param_dvs.c | 1 // SPDX-License-Identifier: GPL-2.0 29 err = -ENOMEM; in alloc_dvs_6axis_table() 33 dvs_config->width_y = width_y = dvs_config_src->width_y; in alloc_dvs_6axis_table() 34 dvs_config->height_y = height_y = dvs_config_src->height_y; in alloc_dvs_6axis_table() 35 dvs_config->width_uv = width_uv = dvs_config_src->width_u in alloc_dvs_6axis_table() 100 unsigned int x, y; init_dvs_6axis_table_from_default() local [all...] |
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | metafmt-vsp1-hgo.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _v4l2-meta-fmt-vsp1-hgo: 10 Renesas R-Car VSP1 1-D Histogram Data 16 This format describes histogram data generated by the Renesas R-Car VSP1 1-D 21 computes the minimum, maximum and sum of all pixels as well as per-channel 25 three channels (RGB data only) or on the Y channel only (YCbCr only). It can 29 - In *64 bins normal mode*, the HGO operates on the three channels independently 30 to compute three 64-bins histograms. RGB, YCbCr and HSV image formats are 32 - In *64 bins maximum mode*, the HGO operates on the maximum of the (R, G, B) 33 channels to compute a single 64-bins histogram. Only the RGB image format is [all …]
|
| /linux/drivers/staging/fbtft/ |
| H A 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/tools/testing/selftests/bpf/ |
| H A D | bpf_arena_alloc.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 7 #define __round_mask(x, y) ((__typeof__(x))((y)-1)) argument 10 #define round_up(x, y) (((( argument 26 int offset; bpf_alloc() local [all...] |
| /linux/drivers/media/pci/intel/ipu6/ |
| H A D | ipu6-fw-isys.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright (C) 2013--2024 Intel Corporation */ 30 /* Single device queue for high priority commands (bypass in-order queue) */ 172 IPU6_FW_ISYS_FRAME_FORMAT_NV11 = 0, /* 12 bit YUV 411, Y, UV plane */ 173 IPU6_FW_ISYS_FRAME_FORMAT_NV12, /* 12 bit YUV 420, Y, UV plane */ 174 IPU6_FW_ISYS_FRAME_FORMAT_NV12_16, /* 16 bit YUV 420, Y, UV plane */ 178 IPU6_FW_ISYS_FRAME_FORMAT_NV16, /* 16 bit YUV 422, Y, UV plane */ 179 IPU6_FW_ISYS_FRAME_FORMAT_NV21, /* 12 bit YUV 420, Y, VU plane */ 180 IPU6_FW_ISYS_FRAME_FORMAT_NV61, /* 16 bit YUV 422, Y, VU plane */ 181 IPU6_FW_ISYS_FRAME_FORMAT_YV12, /* 12 bit YUV 420, Y, V, U plane */ [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| H A 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/arch/csky/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 def_bool y 41 select ARCH_WANT_FRAME_POINTERS if !CPU_CK610 && $(cc-option,-mbacktrace) 114 def_bool y 117 def_bool y if !CPU_CK610 149 In kernel we parse the *regs->pc to determine whether to send SIGTRAP or not. 152 def_bool y 155 def_bool y 158 def_bool y 161 def_bool y [all …]
|
| /linux/samples/hid/ |
| H A D | hid_mouse.bpf.c | 1 // SPDX-License-Identifier: GPL-2.0 10 s16 y; in hid_y_event() local 11 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 9 /* size */); in hid_y_event() 16 bpf_printk("event: size: %d", hctx->size); in hid_y_event() 30 y = data[3] | (data[4] << 8); in hid_y_event() 32 y = -y; in hid_y_event() 34 data[3] = y & 0xFF; in hid_y_event() 35 data[4] = (y >> 8) & 0xFF; in hid_y_event() 56 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 9 /* size */); in hid_x_event() 63 x = -x; in hid_x_event() [all …]
|
| /linux/tools/perf/ui/ |
| H A D | browser.c | 1 // SPDX-License-Identifier: GPL-2.0 23 if (current && (!browser->use_navkeypressed || browser->navkeypressed)) in ui_browser__percent_color() 34 int ret = browser->current_color; in ui_browser__set_color() 35 browser->current_color = color; in ui_browser__set_color() 47 void ui_browser__gotorc_title(struct ui_browser *browser, int y, int x) in ui_browser__gotorc_title() argument 49 SLsmg_gotorc(browser->y in ui_browser__gotorc_title() 52 ui_browser__gotorc(struct ui_browser * browser,int y,int x) ui_browser__gotorc() argument 103 ui_browser__list_head_seek(struct ui_browser * browser,off_t offset,int whence) ui_browser__list_head_seek() argument 138 ui_browser__rb_tree_seek(struct ui_browser * browser,off_t offset,int whence) ui_browser__rb_tree_seek() argument 380 off_t offset = nr_entries - browser->nr_entries; ui_browser__update_nr_entries() local 401 off_t offset; ui_browser__run() local 620 ui_browser__argv_seek(struct ui_browser * browser,off_t offset,int whence) ui_browser__argv_seek() argument [all...] |
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_cursor.c | 2 * Copyright 2007-8 Advanced Micro Devices, Inc. 34 struct radeon_device *rdev = crtc->dev->dev_private; in radeon_lock_cursor() 39 cur_lock = RREG32(EVERGREEN_CUR_UPDATE + radeon_crtc->crtc_offset); in radeon_lock_cursor() 44 WREG32(EVERGREEN_CUR_UPDATE + radeon_crtc->crtc_offset, cur_lock); in radeon_lock_cursor() 46 cur_lock = RREG32(AVIVO_D1CUR_UPDATE + radeon_crtc->crtc_offset); in radeon_lock_cursor() 51 WREG32(AVIVO_D1CUR_UPDATE + radeon_crtc->crtc_offset, cur_lock); in radeon_lock_cursor() 53 cur_lock = RREG32(RADEON_CUR_OFFSET + radeon_crtc->crtc_offset); in radeon_lock_cursor() 58 WREG32(RADEON_CUR_OFFSET + radeon_crtc->crtc_offset, cur_lock); in radeon_lock_cursor() 65 struct radeon_device *rdev = crtc->dev->dev_private; in radeon_hide_cursor() 68 WREG32_IDX(EVERGREEN_CUR_CONTROL + radeon_crtc->crtc_offset, in radeon_hide_cursor() [all …]
|
| /linux/drivers/gpu/host1x/hw/ |
| H A 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 …]
|
| H A D | hw_host1x04_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 …]
|
| H A 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 …]
|
| H A D | hw_host1x05_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 …]
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | regs-fimc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* drivers/gpu/drm/exynos/regs-fimc.h 18 /* Window offset */ 22 /* Window offset 2 */ 24 /* Y 1st frame start address for output DMA */ 26 /* Y 2nd frame start address for output DMA */ 28 /* Y 3rd frame start address for output DMA */ 30 /* Y 4th frame start address for output DMA */ 52 /* Pre-scaler control 1 */ 54 /* Pre-scaler control 2 */ [all …]
|
| /linux/drivers/gpu/drm/i915/gem/selftests/ |
| H A D | i915_gem_client_blt.c | 1 // SPDX-License-Identifier: MIT 33 static int linear_x_y_to_ftiled_pos(int x, int y, u32 stride, int bpp) in linear_x_y_to_ftiled_pos() argument 58 * Where does the 4k tile start (in bytes)? This is the same for Y and in linear_x_y_to_ftiled_pos() 59 * F so we can use the Y-tile algorithm to get to that point. in linear_x_y_to_ftiled_pos() 62 y / F_TILE_HEIGHT * stride * F_TILE_HEIGHT + in linear_x_y_to_ftiled_pos() 67 tile_y = y % F_TILE_HEIGHT; in linear_x_y_to_ftiled_pos() 89 CLIENT_TILING_Y, /* Y-major, either Tile4 (Xe_HP and beyond) or legacy TileY */ 115 struct intel_display *display = i915->display; in fastblit_supports_x_tiling() 118 /* XY_FAST_COPY_BLT does not exist on pre-gen9 platforms */ in fastblit_supports_x_tiling() 119 drm_WARN_ON(&i915->drm, gen < 9); in fastblit_supports_x_tiling() [all …]
|