Home
last modified time | relevance | path

Searched +full:0 +full:- +full:127 (Results 1 – 25 of 1133) sorted by relevance

12345678910>>...46

/linux/drivers/net/wireless/realtek/rtw89/
H A Drtw8851b_table.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2022-2023 Realtek Corporation
10 {0x704, 0x601E0500},
11 {0x4000, 0x00000000},
12 {0x4004, 0xCA014000},
13 {0x4008, 0xC751D4F0},
14 {0x400C, 0x44511475},
15 {0x4010, 0x00000000},
16 {0x4014, 0x00000000},
17 {0x47BC, 0x00000380},
[all …]
H A Drtw8852c_table.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2019-2022 Realtek Corporation
10 {0xF0FF0000, 0x00000000},
11 {0xF03300FF, 0x00000001},
12 {0xF03400FF, 0x00000002},
13 {0xF03500FF, 0x00000003},
14 {0xF03600FF, 0x00000004},
15 {0x70C, 0x00000020},
16 {0x704, 0x601E0100},
17 {0x4000, 0x00000000},
[all …]
H A Drtw8852b_table.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2019-2020 Realtek Corporation
10 {0x704, 0x601E0100},
11 {0x4000, 0x00000000},
12 {0x4004, 0xCA014000},
13 {0x4008, 0xC751D4F0},
14 {0x400C, 0x44511475},
15 {0x4010, 0x00000000},
16 {0x4014, 0x00000000},
17 {0x4018, 0x4F4C084B},
[all …]
/linux/net/mac80211/tests/
H A Dtpe.c1 // SPDX-License-Identifier: GPL-2.0-only
39 .expect = 0,
47 .expect = 0,
57 .expect = 0,
65 .expect = 0,
73 .expect = 0,
99 .expect = 0,
127 const struct subchan_test_case *params = test->param_value; in subchan_offset()
130 KUNIT_ASSERT_EQ(test, cfg80211_chandef_valid(&params->c), true); in subchan_offset()
132 offset = ieee80211_calc_chandef_subchan_offset(&params->c, params->n); in subchan_offset()
[all …]
/linux/sound/synth/emux/
H A Demux_nrpn.c1 // 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 …]
/linux/drivers/hid/
H A Dhid-lg3ff.c1 // 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
48 struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list; in hid_lg3ff_play()
[all …]
H A Dhid-udraw-ps3.c1 // 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 …]
H A Dhid-xiaomi.c1 // SPDX-License-Identifier: GPL-2.0
12 #include "hid-ids.h"
18 0x05, 0x01, /* Usage Page (Desktop), */
19 0x09, 0x02, /* Usage (Mouse), */
20 0xA1, 0x01, /* Collection (Application), */
21 0x85, 0x03, /* Report ID (3), */
22 0x09, 0x01, /* Usage (Pointer), */
23 0xA1, 0x00, /* Collection (Physical), */
24 0x05, 0x09, /* Usage Page (Button), */
25 0x19, 0x01, /* Usage Minimum (01h), */
[all …]
/linux/lib/
H A Dtest-kstrtox.c6 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 …]
/linux/drivers/iio/amplifiers/
H A Dada4250.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #define ADA4250_REG_GAIN_MUX 0x00
21 #define ADA4250_REG_REFBUF_EN 0x01
22 #define ADA4250_REG_RESET 0x02
23 #define ADA4250_REG_SNSR_CAL_VAL 0x04
24 #define ADA4250_REG_SNSR_CAL_CNFG 0x05
25 #define ADA4250_REG_DIE_REV 0x18
26 #define ADA4250_REG_CHIP_ID 0x19
29 #define ADA4250_GAIN_MUX_MSK GENMASK(2, 0)
32 #define ADA4250_REFBUF_MSK BIT(0)
[all …]
/linux/lib/tests/
H A Dtest_bits.c1 // SPDX-License-Identifier: GPL-2.0+
10 #define assert_type(t, x) _Generic(x, t: x, default: 0)
12 static_assert(assert_type(u8, BIT_U8(0)) == 1u);
13 static_assert(assert_type(u16, BIT_U16(0)) == 1u);
14 static_assert(assert_type(u32, BIT_U32(0)) == 1u);
15 static_assert(assert_type(u64, BIT_U64(0)) == 1ull);
17 static_assert(assert_type(u8, BIT_U8(7)) == 0x80u);
18 static_assert(assert_type(u16, BIT_U16(15)) == 0x8000u);
19 static_assert(assert_type(u32, BIT_U32(31)) == 0x80000000u);
20 static_assert(assert_type(u64, BIT_U64(63)) == 0x8000000000000000ull);
[all …]
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-is-param.h1 /* 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 …]
/linux/Documentation/driver-api/tty/
H A Dn_gsm.rst10 https://www.3gpp.org/ftp/Specs/archive/07_series/07.10/0710-720.zip
19 ----------------
32 #. Configure DLCs using ``GSMIOC_GETCONF_DLCI``/``GSMIOC_SETCONF_DLCI`` ioctl for non-defaults.
37 (a good starting point is util-linux-ng/sys-utils/ldattach.c)::
61 write(fd, "AT+CMUX=0\r", 10);
73 /* use keep-alive once every 5s for modem connection supervision */
79 /* we are initiator and need encoding 0 (basic) */
81 c.encapsulation = 0;
82 /* our modem defaults to a maximum size of 127 bytes */
83 c.mru = 127;
[all …]
/linux/drivers/media/platform/rockchip/rkvdec/
H A Drkvdec-h264.c1 // 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)
122 [0][(ctxidx)] = {idc0_m, idc0_n}, \
133 /* Table 9-12 – Values of variables m and n for ctxIdx from 0 to 10 */
134 CABAC_ENTRY(0, 20, -15, 20, -15, 20, -15, 20, -15),
137 CABAC_ENTRY(3, 20, -15, 20, -15, 20, -15, 20, -15),
[all …]
/linux/drivers/hid/bpf/progs/
H A DXPPen__ArtistPro16Gen2.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #define VID_UGEE 0x28BD /* VID is shared with SinoWealth and Glorious and prob others */
11 #define PID_ARTIST_PRO14_GEN2 0x095A
12 #define PID_ARTIST_PRO16_GEN2 0x095B
13 #define PID_ARTIST_PRO19_GEN2 0x096A
23 * - the device reports Eraser instead of using Secondary Barrel Switch
24 * - when the eraser button is pressed and the stylus is touching the tablet,
30 0x05, 0x0d, // Usage Page (Digitizers) 0
31 0x09, 0x02, // Usage (Pen) 2
32 0xa1, 0x01, // Collection (Application) 4
[all …]
/linux/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc_1.0/
H A Dia_css_ctc_table.host.c1 // SPDX-License-Identifier: GPL-2.0
20 0, 384, 837, 957, 1011, 1062, 1083, 1080,
40 129, 127, 127, 127, 127, 125, 125, 125,
51 25, 23, 24, 20, 13, 9, 12, 0,
52 0
/linux/arch/x86/crypto/
H A Dghash-clmulni-intel_glue.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Accelerated GHASH implementation with Intel PCLMULQDQ-NI
35 memset(dctx, 0, sizeof(*dctx)); in ghash_init()
37 return 0; in ghash_init()
47 return -EINVAL; in ghash_setkey()
57 * bitreflect(D) * bitreflect(K) * x^(-127) in ghash_setkey()
58 * (mod x^128 + x^127 + x^126 + x^121 + 1) in ghash_setkey()
62 * bitreflect(K) * x^(-127) (mod x^128 + x^127 + x^126 + x^121 + 1) in ghash_setkey()
67 * bitreflect(K) * x (mod x^128 + x^127 + x^126 + x^121 + 1) in ghash_setkey()
69 * The within-a-byte part of bitreflect() cancels out GHASH's built-in in ghash_setkey()
[all …]
/linux/drivers/input/mouse/
H A Damimouse.c1 // 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 …]
/linux/sound/isa/gus/
H A Dgus_mixer.c1 // 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 …]
/linux/tools/testing/selftests/hid/tests/
H A Dtest_mouse.py2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
18 # workaround https://gitlab.freedesktop.org/libevdev/python-libevdev/issues/6
68 wheel, acpan = 0, 0
71 wheel = wheels[0]
107 0x05, 0x01, # .Usage Page (Generic Desktop) 0
108 0x09, 0x02, # .Usage (Mouse) 2
109 0xa1, 0x01, # .Collection (Application) 4
110 0x09, 0x02, # ..Usage (Mouse) 6
111 0xa1, 0x02, # ..Collection (Logical) 8
[all …]
H A Dtest_gamepad.py2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
51 expected_event = libevdev.InputEvent(key, 0)
55 assert evdev.value[key] == 0
71 b1 = uhdev.buttons[0]
90 expected_event = libevdev.InputEvent(key1, 0)
94 assert evdev.value[key1] == 0
99 expected_event = libevdev.InputEvent(key2, 0)
103 assert evdev.value[key1] == 0
104 assert evdev.value[key2] == 0
[all …]
/linux/lib/crc/riscv/
H A Dcrc-clmul-consts.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 …* ./scripts/gen-crc-consts.py riscv_clmul crc16_msb_0x8bb7,crc32_msb_0x04c11db7,crc32_lsb_0xedb883…
18 * Constants generated for most-significant-bit-first CRC-16 using
19 * G(x) = x^16 + x^15 + x^11 + x^9 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0
23 .fold_across_2_longs_const_hi = 0x0000000000001faa, /* x^192 mod G */
24 .fold_across_2_longs_const_lo = 0x000000000000a010, /* x^128 mod G */
25 .barrett_reduction_const_1 = 0xfb2d2bfc0e99d245, /* floor(x^79 / G) */
26 .barrett_reduction_const_2 = 0x0000000000008bb7, /* G - x^16 */
28 .fold_across_2_longs_const_hi = 0x00005890, /* x^96 mod G */
29 .fold_across_2_longs_const_lo = 0x0000f249, /* x^64 mod G */
[all …]
/linux/include/linux/mfd/
H A Dadp5520.h1 /* 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 …]
/linux/lib/xz/
H A Dxz_lzma2.h1 /* SPDX-License-Identifier: 0BSD */
7 * Igor Pavlov <https://7-zip.org/>
33 * - Literal: One 8-bit byte
34 * - Match: Repeat a chunk of data at some distance
35 * - Long repeat: Multi-byte match at a recently seen distance
36 * - Short repeat: One-byte repeat at a recently seen distance
39 * either short or long repeated match, and NONLIT means any non-literal.
68 *state -= 3; in lzma_state_literal()
70 *state -= 6; in lzma_state_literal()
98 * - 0x001-0x0FF: Without match byte
[all …]
/linux/drivers/net/wireless/ath/wcn36xx/
H A Dfirmware.c1 // SPDX-License-Identifier: GPL-2.0-only
86 if (cap < 0 || cap > 127) { in wcn36xx_firmware_set_feat_caps()
101 if (cap < 0 || cap > 127) { in wcn36xx_firmware_get_feat_caps()
103 return -EINVAL; in wcn36xx_firmware_get_feat_caps()
109 return (bitmap[arr_idx] & (1 << bit_idx)) ? 1 : 0; in wcn36xx_firmware_get_feat_caps()
117 if (cap < 0 || cap > 127) { in wcn36xx_firmware_clear_feat_caps()

12345678910>>...46