| /kernel/linux/linux-5.10/sound/synth/emux/ |
| D | emux_nrpn.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de> 15 /* NRPN / CC -> Emu8000 parameter converter */ 24 #define FX_CUTOFF 0 44 for (i = 0; i < num_tables; i++) { in send_converted_effect() 52 return 0; in send_converted_effect() 96 #define fx_env1_delay fx_delay /* [0,5900] 4msec */ 97 #define fx_env1_attack fx_attack /* [0,5940] 1msec */ 98 #define fx_env1_hold fx_hold /* [0,8191] 1msec */ 99 #define fx_env1_decay fx_decay /* [0,5940] 4msec */ [all …]
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| D | hid-lg3ff.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 #include "hid-lg.h" 21 * 0 - seems to be command field 22 * 1 - 30 deal with the x axis 23 * 31 -60 deal with the y axis 31 * 0 0 127 127 makes the joystick autocenter hard 33 * 127 0 127 127 makes the joystick loose on the right, 36 * -127 0 -127 -127 makes the joystick loose on the left, 39 * 0 0 -127 -127 makes the joystick rattle very hard 52 struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list; in hid_lg3ff_play() [all …]
|
| 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 66 #define MAX_PRESSURE (255 - PRESSURE_OFFSET) 76 * The device's two-finger support is pretty unreliable, as 95 axis = (axis - accel_limits[offset].min) / in clamp_accel() [all …]
|
| /kernel/linux/linux-4.19/sound/synth/emux/ |
| D | emux_nrpn.c | 4 * Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de> 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 29 /* NRPN / CC -> Emu8000 parameter converter */ 38 #define FX_CUTOFF 0 58 for (i = 0; i < num_tables; i++) { in send_converted_effect() 66 return 0; in send_converted_effect() 110 #define fx_env1_delay fx_delay /* [0,5900] 4msec */ 111 #define fx_env1_attack fx_attack /* [0,5940] 1msec */ 112 #define fx_env1_hold fx_hold /* [0,8191] 1msec */ 113 #define fx_env1_decay fx_decay /* [0,5940] 4msec */ [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | test-kstrtox.c | 6 for (i = 0; i < ARRAY_SIZE(test); i++) 35 tmp = 0; \ 36 rv = fn(t->str, t->base, &tmp); \ 37 if (rv >= 0) { \ 38 WARN(1, "str '%s', base %u, expected -E, got %d/" fmt "\n", \ 39 t->str, t->base, rv, tmp); \ 50 const typeof(test[0]) *t = &test[i]; \ 54 rv = fn(t->str, t->base, &res); \ 55 if (rv != 0) { \ 56 WARN(1, "str '%s', base %u, expected 0/" fmt ", got %d\n", \ [all …]
|
| /kernel/linux/linux-4.19/lib/ |
| D | test-kstrtox.c | 6 for (i = 0; i < ARRAY_SIZE(test); i++) 35 tmp = 0; \ 36 rv = fn(t->str, t->base, &tmp); \ 37 if (rv >= 0) { \ 38 WARN(1, "str '%s', base %u, expected -E, got %d/" fmt "\n", \ 39 t->str, t->base, rv, tmp); \ 50 const typeof(test[0]) *t = &test[i]; \ 54 rv = fn(t->str, t->base, &res); \ 55 if (rv != 0) { \ 56 WARN(1, "str '%s', base %u, expected 0/" fmt ", got %d\n", \ [all …]
|
| /kernel/linux/linux-4.19/drivers/hid/ |
| D | hid-lg3ff.c | 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 27 #include "hid-lg.h" 33 * 0 - seems to be command field 34 * 1 - 30 deal with the x axis 35 * 31 -60 deal with the y axis 43 * 0 0 127 127 makes the joystick autocenter hard 45 * 127 0 127 127 makes the joystick loose on the right, 48 * -127 0 -127 -127 makes the joystick loose on the left, 51 * 0 0 -127 -127 makes the joystick rattle very hard 64 struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list; in hid_lg3ff_play() [all …]
|
| D | hid-udraw-ps3.c | 19 #include "hid-ids.h" 29 * https://vvvv.org/contribution/udraw-hid 34 * - the touch area which works as a touchpad 35 * - the tablet area which works as a touchpad/drawing tablet 36 * - a joypad with a d-pad, and 7 buttons 37 * - an accelerometer device 74 #define MAX_PRESSURE (255 - PRESSURE_OFFSET) 84 * The device's two-finger support is pretty unreliable, as 103 axis = (axis - accel_limits[offset].min) / in clamp_accel() 104 ((accel_limits[offset].max - in clamp_accel() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/ |
| D | fimc-is-param.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver 5 * Copyright (C) 2011 - 2013 Samsung Electronics Co., Ltd. 35 #define FIMC_IS_MAGIC_NUMBER 0x01020304 106 #define FIMC_IS_INT_GENERAL 0 111 #define CONTROL_COMMAND_STOP 0 114 #define CONTROL_BYPASS_DISABLE 0 117 #define CONTROL_ERROR_NONE 0 119 /* OTF (On-The-Fly) input interface commands */ 120 #define OTF_INPUT_COMMAND_DISABLE 0 [all …]
|
| /kernel/linux/linux-4.19/drivers/media/platform/exynos4-is/ |
| D | fimc-is-param.h | 2 * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver 4 * Copyright (C) 2011 - 2013 Samsung Electronics Co., Ltd. 38 #define FIMC_IS_MAGIC_NUMBER 0x01020304 109 #define FIMC_IS_INT_GENERAL 0 114 #define CONTROL_COMMAND_STOP 0 117 #define CONTROL_BYPASS_DISABLE 0 120 #define CONTROL_ERROR_NONE 0 122 /* OTF (On-The-Fly) input interface commands */ 123 #define OTF_INPUT_COMMAND_DISABLE 0 128 OTF_INPUT_FORMAT_BAYER = 0, /* 1 channel */ [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/rkvdec/ |
| D | rkvdec-h264.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Jeffy Chen <jeffy.chen@rock-chips.com> 12 #include <media/v4l2-h264.h> 13 #include <media/v4l2-mem2mem.h> 16 #include "rkvdec-regs.h" 43 #define SEQ_PARAMETER_SET_ID PS_FIELD(0, 4) 124 [0][(ctxidx)] = {idc0_m, idc0_n}, \ 135 /* Table 9-12 – Values of variables m and n for ctxIdx from 0 to 10 */ 136 CABAC_ENTRY(0, 20, -15, 20, -15, 20, -15, 20, -15), 139 CABAC_ENTRY(3, 20, -15, 20, -15, 20, -15, 20, -15), [all …]
|
| /kernel/linux/linux-5.10/drivers/input/mouse/ |
| D | amimouse.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2000-2002 Vojtech Pavlik 42 nx = joy0dat & 0xff; in amimouse_interrupt() 45 dx = nx - amimouse_lastx; in amimouse_interrupt() 46 dy = ny - amimouse_lasty; in amimouse_interrupt() 48 if (dx < -127) dx = (256 + nx) - amimouse_lastx; in amimouse_interrupt() 49 if (dx > 127) dx = (nx - 256) - amimouse_lastx; in amimouse_interrupt() 50 if (dy < -127) dy = (256 + ny) - amimouse_lasty; in amimouse_interrupt() 51 if (dy > 127) dy = (ny - 256) - amimouse_lasty; in amimouse_interrupt() 61 input_report_key(dev, BTN_LEFT, ciaa.pra & 0x40); in amimouse_interrupt() [all …]
|
| /kernel/linux/linux-4.19/drivers/input/mouse/ |
| D | amimouse.c | 4 * Copyright (c) 2000-2002 Vojtech Pavlik 46 nx = joy0dat & 0xff; in amimouse_interrupt() 49 dx = nx - amimouse_lastx; in amimouse_interrupt() 50 dy = ny - amimouse_lasty; in amimouse_interrupt() 52 if (dx < -127) dx = (256 + nx) - amimouse_lastx; in amimouse_interrupt() 53 if (dx > 127) dx = (nx - 256) - amimouse_lastx; in amimouse_interrupt() 54 if (dy < -127) dy = (256 + ny) - amimouse_lasty; in amimouse_interrupt() 55 if (dy > 127) dy = (ny - 256) - amimouse_lasty; in amimouse_interrupt() 65 input_report_key(dev, BTN_LEFT, ciaa.pra & 0x40); in amimouse_interrupt() 66 input_report_key(dev, BTN_MIDDLE, potgor & 0x0100); in amimouse_interrupt() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc_1.0/ |
| D | ia_css_ctc_table.host.c | 1 // SPDX-License-Identifier: GPL-2.0 29 0, 384, 837, 957, 1011, 1062, 1083, 1080, 49 129, 127, 127, 127, 127, 125, 125, 125, 60 25, 23, 24, 20, 13, 9, 12, 0, 61 0
|
| /kernel/linux/linux-5.10/sound/isa/gus/ |
| D | gus_mixer.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 int shift = kcontrol->private_value & 0xff; in snd_gf1_get_single() 29 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_get_single() 31 ucontrol->value.integer.value[0] = (gus->mix_cntrl_reg >> shift) & 1; in snd_gf1_get_single() 33 ucontrol->value.integer.value[0] ^= 1; in snd_gf1_get_single() 34 return 0; in snd_gf1_get_single() 41 int shift = kcontrol->private_value & 0xff; in snd_gf1_put_single() 42 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single() 46 nval = ucontrol->value.integer.value[0] & 1; in snd_gf1_put_single() 50 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gf1_put_single() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/ |
| D | rtw8822c_table.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2018-2019 Realtek Corporation 16 0x80000015, 0x00000000, 0x40000000, 0x00000000, 17 0x1D90, 0x300001FF, 18 0x1D90, 0x300101FE, 19 0x1D90, 0x300201FD, 20 0x1D90, 0x300301FC, 21 0x1D90, 0x300401FB, 22 0x1D90, 0x300501FA, 23 0x1D90, 0x300601F9, [all …]
|
| /kernel/linux/linux-4.19/drivers/infiniband/hw/i40iw/ |
| D | i40iw_register.h | 3 * Copyright (c) 2015-2016 Intel Corporation. All rights reserved. 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 38 #define I40E_GLGEN_STAT 0x000B612C /* Reset: POR */ 40 #define I40E_PFHMC_PDINV 0x000C0300 /* Reset: PFR */ 41 #define I40E_PFHMC_PDINV_PMSDIDX_SHIFT 0 42 #define I40E_PFHMC_PDINV_PMSDIDX_MASK (0xFFF << I40E_PFHMC_PDINV_PMSDIDX_SHIFT) 44 #define I40E_PFHMC_PDINV_PMPDIDX_MASK (0x1FF << I40E_PFHMC_PDINV_PMPDIDX_SHIFT) 46 #define I40E_PFHMC_SDCMD_PMSDWR_MASK (0x1 << I40E_PFHMC_SDCMD_PMSDWR_SHIFT) 47 #define I40E_PFHMC_SDDATALOW_PMSDVALID_SHIFT 0 [all …]
|
| /kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
| D | i40iw_register.h | 3 * Copyright (c) 2015-2016 Intel Corporation. All rights reserved. 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 38 #define I40E_GLGEN_STAT 0x000B612C /* Reset: POR */ 40 #define I40E_PFHMC_PDINV 0x000C0300 /* Reset: PFR */ 41 #define I40E_PFHMC_PDINV_PMSDIDX_SHIFT 0 42 #define I40E_PFHMC_PDINV_PMSDIDX_MASK (0xFFF << I40E_PFHMC_PDINV_PMSDIDX_SHIFT) 44 #define I40E_PFHMC_PDINV_PMPDIDX_MASK (0x1FF << I40E_PFHMC_PDINV_PMPDIDX_SHIFT) 46 #define I40E_PFHMC_SDCMD_PMSDWR_MASK (0x1 << I40E_PFHMC_SDCMD_PMSDWR_SHIFT) 47 #define I40E_PFHMC_SDDATALOW_PMSDVALID_SHIFT 0 [all …]
|
| /kernel/linux/linux-4.19/sound/isa/gus/ |
| D | gus_mixer.c | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 43 int shift = kcontrol->private_value & 0xff; in snd_gf1_get_single() 44 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_get_single() 46 ucontrol->value.integer.value[0] = (gus->mix_cntrl_reg >> shift) & 1; in snd_gf1_get_single() 48 ucontrol->value.integer.value[0] ^= 1; in snd_gf1_get_single() 49 return 0; in snd_gf1_get_single() 56 int shift = kcontrol->private_value & 0xff; in snd_gf1_put_single() 57 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single() 61 nval = ucontrol->value.integer.value[0] & 1; in snd_gf1_put_single() 65 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gf1_put_single() [all …]
|
| /kernel/linux/linux-5.10/arch/csky/abiv1/inc/abi/ |
| D | vdso.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 int err = 0; in setup_vdso_page() 9 /* movi r1, 127 */ in setup_vdso_page() 10 err |= __put_user(0x67f1, ptr + 0); in setup_vdso_page() 11 /* addi r1, (139 - 127) */ in setup_vdso_page() 12 err |= __put_user(0x20b1, ptr + 1); in setup_vdso_page() 13 /* trap 0 */ in setup_vdso_page() 14 err |= __put_user(0x0008, ptr + 2); in setup_vdso_page()
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/intel/i40e/ |
| D | i40e_register.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 7 #define I40E_GL_ARQBAH 0x000801C0 /* Reset: EMPR */ 8 #define I40E_GL_ARQBAH_ARQBAH_SHIFT 0 9 #define I40E_GL_ARQBAH_ARQBAH_MASK I40E_MASK(0xFFFFFFFF, I40E_GL_ARQBAH_ARQBAH_SHIFT) 10 #define I40E_GL_ARQBAL 0x000800C0 /* Reset: EMPR */ 11 #define I40E_GL_ARQBAL_ARQBAL_SHIFT 0 12 #define I40E_GL_ARQBAL_ARQBAL_MASK I40E_MASK(0xFFFFFFFF, I40E_GL_ARQBAL_ARQBAL_SHIFT) 13 #define I40E_GL_ARQH 0x000803C0 /* Reset: EMPR */ 14 #define I40E_GL_ARQH_ARQH_SHIFT 0 [all …]
|
| /kernel/linux/linux-5.10/include/linux/mfd/ |
| D | adp5520.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 20 #define ADP5520_MODE_STATUS 0x00 21 #define ADP5520_INTERRUPT_ENABLE 0x01 22 #define ADP5520_BL_CONTROL 0x02 23 #define ADP5520_BL_TIME 0x03 24 #define ADP5520_BL_FADE 0x04 25 #define ADP5520_DAYLIGHT_MAX 0x05 26 #define ADP5520_DAYLIGHT_DIM 0x06 27 #define ADP5520_OFFICE_MAX 0x07 28 #define ADP5520_OFFICE_DIM 0x08 [all …]
|
| /kernel/linux/linux-4.19/include/linux/mfd/ |
| D | adp5520.h | 7 * Licensed under the GPL-2 or later. 21 #define ADP5520_MODE_STATUS 0x00 22 #define ADP5520_INTERRUPT_ENABLE 0x01 23 #define ADP5520_BL_CONTROL 0x02 24 #define ADP5520_BL_TIME 0x03 25 #define ADP5520_BL_FADE 0x04 26 #define ADP5520_DAYLIGHT_MAX 0x05 27 #define ADP5520_DAYLIGHT_DIM 0x06 28 #define ADP5520_OFFICE_MAX 0x07 29 #define ADP5520_OFFICE_DIM 0x08 [all …]
|
| /kernel/linux/linux-5.10/lib/xz/ |
| D | xz_lzma2.h | 5 * Igor Pavlov <https://7-zip.org/> 34 * - Literal: One 8-bit byte 35 * - Match: Repeat a chunk of data at some distance 36 * - Long repeat: Multi-byte match at a recently seen distance 37 * - Short repeat: One-byte repeat at a recently seen distance 40 * either short or long repeated match, and NONLIT means any non-literal. 69 *state -= 3; in lzma_state_literal() 71 *state -= 6; in lzma_state_literal() 99 * - 0x001-0x0FF: Without match byte 100 * - 0x101-0x1FF: With match byte; match bit is 0 [all …]
|
| /kernel/linux/linux-4.19/lib/xz/ |
| D | xz_lzma2.h | 5 * Igor Pavlov <http://7-zip.org/> 34 * - Literal: One 8-bit byte 35 * - Match: Repeat a chunk of data at some distance 36 * - Long repeat: Multi-byte match at a recently seen distance 37 * - Short repeat: One-byte repeat at a recently seen distance 40 * either short or long repeated match, and NONLIT means any non-literal. 69 *state -= 3; in lzma_state_literal() 71 *state -= 6; in lzma_state_literal() 99 * - 0x001-0x0FF: Without match byte 100 * - 0x101-0x1FF: With match byte; match bit is 0 [all …]
|