Home
last modified time | relevance | path

Searched +full:0 +full:deg (Results 1 – 25 of 53) sorted by relevance

123

/linux/lib/
H A Dbch.c98 #define dbg(_fmt, args...) do {} while (0)
105 unsigned int deg; /* polynomial degree */ member
140 p = bch->mod8_tab + (l+1)*(((ecc[0] >> 24)^(tmp)) & 0xff); in bch_encode_unaligned()
142 for (i = 0; i < l; i++) in bch_encode_unaligned()
155 uint8_t pad[4] = {0, 0, 0, 0}; in load_ecc8()
158 for (i = 0; i < nwords; i++, src += 4) in load_ecc8()
159 dst[i] = ((u32)swap_bits(bch, src[0]) << 24) | in load_ecc8()
165 dst[nwords] = ((u32)swap_bits(bch, pad[0]) << 24) | in load_ecc8()
180 for (i = 0; i < nwords; i++) { in store_ecc8()
186 pad[0] = swap_bits(bch, src[nwords] >> 24); in store_ecc8()
[all …]
H A Dpolynomial.c29 * where T = [-48.380, 147.438]C and N = [0, 1023].
42 * where T = [-48380, 147438] mC and N = [0, 1023].
51 * {0, 1720400, 1, 1}
62 * {0, -48380, 1, 1}
83 long tmp, ret = 0; in polynomial_calc()
84 int deg; in polynomial_calc() local
98 for (deg = 0; deg < term->deg; ++deg) in polynomial_calc()
101 } while ((term++)->deg); in polynomial_calc()
/linux/drivers/media/platform/verisilicon/
H A Drockchip_av1_entropymode.h126 KEY_FRAME = 0,
132 TX_4X4 = 0,
145 D45_PRED, /* Directional 45 deg prediction [anti-clockwise from 0 deg hor] */
146 D135_PRED, /* Directional 135 deg prediction [anti-clockwise from 0 deg hor] */
147 D117_PRED, /* Directional 112 deg prediction [anti-clockwise from 0 deg hor] */
148 D153_PRED, /* Directional 157 deg prediction [anti-clockwise from 0 deg hor] */
149 D27_PRED, /* Directional 22 deg prediction [anti-clockwise from 0 deg hor] */
150 D63_PRED, /* Directional 67 deg prediction [anti-clockwise from 0 deg hor] */
/linux/include/linux/input/
H A Dadxl34x.h22 * form with a scale factor of 15.6 mg/LSB (i.e. 0x7F = +2 g)
31 * Y, or Z participation in Tap detection. A '0' excludes the
42 #define ADXL_TAP_Z_EN (1 << 0)
50 * (i.e. 0xFF = +16 g). A zero value may result in undesirable
90 * or inactivity detection. A '0' excludes the selected axis from
93 * AC/DC: A '0' = DC coupled operation and a '1' = AC coupled
119 #define ADXL_INACT_Z_EN (1 << 0)
168 * enabled. Values between 300 and 600 mg (0x05 to 0x09) are
181 * Values between 100 to 350 ms (0x14 to 0x46) are recommended.
189 * RATE = 3200 Hz / (2^(15 - x)). Default value is 0x0A, or 100 Hz
[all …]
/linux/Documentation/devicetree/bindings/regulator/
H A Dmps,mpq7920.yaml14 pattern: "pmic@[0-9a-f]{1,2}"
32 enum: [0, 1, 2, 3]
56 enum: [0, 1, 2, 3]
63 enum: [0, 1, 2, 3]
66 corresponding values 0deg, 90deg, 180deg, 270deg
88 #size-cells = <0>;
92 reg = <0x69>;
/linux/include/linux/
H A Dpolynomial.h11 * @deg: degree of the term.
17 unsigned int deg; member
26 * @terms: polynomial terms, last term must have degree of 0
/linux/drivers/iio/imu/
H A Dadis16400.c29 #define ADIS16400_FLASH_CNT 0x00 /* Flash memory write count */
30 #define ADIS16400_SUPPLY_OUT 0x02 /* Power supply measurement */
31 #define ADIS16400_XGYRO_OUT 0x04 /* X-axis gyroscope output */
32 #define ADIS16400_YGYRO_OUT 0x06 /* Y-axis gyroscope output */
33 #define ADIS16400_ZGYRO_OUT 0x08 /* Z-axis gyroscope output */
34 #define ADIS16400_XACCL_OUT 0x0A /* X-axis accelerometer output */
35 #define ADIS16400_YACCL_OUT 0x0C /* Y-axis accelerometer output */
36 #define ADIS16400_ZACCL_OUT 0x0E /* Z-axis accelerometer output */
37 #define ADIS16400_XMAGN_OUT 0x10 /* X-axis magnetometer measurement */
38 #define ADIS16400_YMAGN_OUT 0x12 /* Y-axis magnetometer measurement */
[all …]
/linux/include/uapi/linux/
H A Dinput.h53 #define EV_VERSION 0x010001
56 * IOCTLs (0x00 - 0x7f)
74 * joydev interface and reported as 0 instead.
91 * (units/deg/s) for rotational axes (ABS_RX, ABS_RY, ABS_RZ).
118 #define INPUT_KEYMAP_BY_INDEX (1 << 0)
132 #define EVIOCGVERSION _IOR('E', 0x01, int) /* get driver version */
133 #define EVIOCGID _IOR('E', 0x02, struct input_id) /* get device ID */
134 #define EVIOCGREP _IOR('E', 0x03, unsigned int[2]) /* get repeat settings */
135 #define EVIOCSREP _IOW('E', 0x03, unsigned int[2]) /* set repeat settings */
137 #define EVIOCGKEYCODE _IOR('E', 0x04, unsigned int[2]) /* get keycode */
[all …]
/linux/lib/reed_solomon/
H A Ddecode_rs.c24 int count = 0;
43 BUG_ON(pad < 0 || pad >= nn - nroots);
47 for (i = 0; i < nroots; i++) {
56 return 0;
61 for (i = 0; i < nroots; i++)
62 syn[i] = (((uint16_t) data[0]) ^ invmsk) & msk;
65 for (i = 0; i < nroots; i++) {
66 if (syn[i] == 0) {
78 for (j = 0; j < nroots; j++) {
79 for (i = 0; i < nroots; i++) {
[all …]
/linux/drivers/iio/resolver/
H A Dad2s1210.c12 * DOS Overrange Threshold | 0x89 | events/in_altvoltage0_thresh_rising_value
13 * DOS Mismatch Threshold | 0x8A | events/in_altvoltage0_mag_rising_value
14 * DOS Reset Maximum Threshold | 0x8B | events/in_altvoltage0_mag_rising_reset_max
15 * DOS Reset Minimum Threshold | 0x8C | events/in_altvoltage0_mag_rising_reset_min
16 * LOT High Threshold | 0x8D | events/in_angl1_thresh_rising_value
17 * LOT Low Threshold [1] | 0x8E | events/in_angl1_thresh_rising_hysteresis
18 * Excitation Frequency | 0x91 | out_altvoltage0_frequency
19 * Control | 0x92 | *as bit fields*
23 * Resolution | D1:0 | *device tree: assigned-resolution-bits*
24 * Soft Reset | 0xF
574 int deg; ad2s1210_set_phase_lock_range() local
[all...]
/linux/drivers/hwmon/
H A Dlm92.c10 * its own temperature with a 0.0625 deg resolution and a 0.33 deg
17 * (1.0 deg). Complete datasheet can be obtained from Maxim's website
43 static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b,
46 #define LM92_REG_CONFIG 0x01 /* 8-bit, RW */
47 #define LM92_REG_TEMP 0x00 /* 16-bit, RO */
48 #define LM92_REG_TEMP_HYST 0x02 /* 16-bit, RW */
49 #define LM92_REG_TEMP_CRIT 0x03 /* 16-bit, RW */
50 #define LM92_REG_TEMP_LOW 0x04 /* 16-bit, RW */
51 #define LM92_REG_TEMP_HIGH 0x05 /* 16-bit, RW */
52 #define LM92_REG_MAN_ID 0x07 /* 16-bit, RO, LM92 only */
[all …]
H A Dbt1-pvt.h18 #define PVT_CTRL 0x00
19 #define PVT_CTRL_EN BIT(0)
22 #define PVT_CTRL_MODE_TEMP 0x0
23 #define PVT_CTRL_MODE_VOLT 0x1
24 #define PVT_CTRL_MODE_LVT 0x2
25 #define PVT_CTRL_MODE_HVT 0x4
26 #define PVT_CTRL_MODE_SVT 0x6
29 #define PVT_DATA 0x04
31 #define PVT_DATA_DATA_FLD 0
33 #define PVT_TTHRES 0x08
[all …]
H A Dw83l785ts.c8 * by Winbond. It reports a single external temperature with a 1 deg
9 * resolution and a 3 deg accuracy. Datasheet can be obtained from
39 static const unsigned short normal_i2c[] = { 0x2e, I2C_CLIENT_END };
43 * Manufacturer ID is 0x5CA3 for Winbond.
46 #define W83L785TS_REG_MAN_ID1 0x4D
47 #define W83L785TS_REG_MAN_ID2 0x4C
48 #define W83L785TS_REG_CHIP_ID 0x4E
49 #define W83L785TS_REG_CONFIG 0x40
50 #define W83L785TS_REG_TYPE 0x52
51 #define W83L785TS_REG_TEMP 0x27
[all …]
H A Dlm83.c9 * temperatures (its own plus up to three external ones) with a 1 deg
10 * resolution and a 3-4 deg accuracy. Complete datasheet can be obtained
14 * here: 0x03 (at register 0xff).
37 0x18, 0x19, 0x1a, 0x29, 0x2a, 0x2b, 0x4c, 0x4d, 0x4e, I2C_CLIENT_END };
43 * Manufacturer ID is 0x01 for National Semiconductor.
46 #define LM83_REG_R_MAN_ID 0xFE
47 #define LM83_REG_R_CHIP_ID 0xFF
48 #define LM83_REG_R_CONFIG 0x03
49 #define LM83_REG_W_CONFIG 0x09
50 #define LM83_REG_R_STATUS1 0x02
[all …]
H A Dadm1025.c14 * reported with a 1 deg resolution and a 3 deg accuracy. Complete
48 * ADM1025 and ADM1025A have three possible addresses: 0x2c, 0x2d and 0x2e.
49 * NE1619 has two possible addresses: 0x2c and 0x2d.
52 static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END };
60 #define ADM1025_REG_MAN_ID 0x3E
61 #define ADM1025_REG_CHIP_ID 0x3F
62 #define ADM1025_REG_CONFIG 0x40
63 #define ADM1025_REG_STATUS1 0x41
64 #define ADM1025_REG_STATUS2 0x42
65 #define ADM1025_REG_IN(nr) (0x20 + (nr))
[all …]
/linux/drivers/clk/rockchip/
H A Dclk-mmc-phase.c33 #define ROCKCHIP_MMC_DEGREE_MASK 0x3
35 #define ROCKCHIP_MMC_DELAYNUM_MASK (0xff << ROCKCHIP_MMC_DELAYNUM_OFFSET)
41 * simplify calculations. So 45degs could be anywhere between 33deg and 57.8deg.
51 u32 delay_num = 0; in rockchip_mmc_get_phase()
55 return 0; in rockchip_mmc_get_phase()
134 raw_value = delay_num ? ROCKCHIP_MMC_DELAY_SEL : 0; in rockchip_mmc_set_phase()
137 writel(HIWORD_UPDATE(raw_value, 0x07ff, mmc_clock->shift), in rockchip_mmc_set_phase()
140 pr_debug("%s->set_phase(%d) delay_nums=%u reg[0x%p]=0x%03x actual_degrees=%d\n", in rockchip_mmc_set_phase()
146 return 0; in rockchip_mmc_set_phase()
204 init.flags = 0; in rockchip_clk_register_mmc()
/linux/drivers/accel/habanalabs/include/gaudi/
H A Dgaudi_fw_if.h18 #define UBOOT_FW_OFFSET 0x100000 /* 1MB in SRAM */
19 #define LINUX_FW_OFFSET 0x800000 /* 8MB in HBM */
21 /* HBM thermal delta in [Deg] added to composite (CTemp) */
37 * @id: can be either 0 or 1, to further describe unit with interrupt cause
/linux/drivers/iio/gyro/
H A Dmpu3050.h9 * enum mpu3050_fullscale - indicates the full range of the sensor in deg/sec
12 FS_250_DPS = 0,
23 LPF_256_HZ_NOLPF = 0,
35 AXIS_X = 0,
/linux/drivers/clk/sunxi-ng/
H A Dccu_phase.c96 * formula to get the outphasing in degrees is deg = in ccu_phase_set_phase()
107 delay = 0; in ccu_phase_set_phase()
117 return 0; in ccu_phase_set_phase()
/linux/drivers/power/supply/
H A Dsmb347-charger.c36 #define CFG_CHARGE_CURRENT 0x00
37 #define CFG_CHARGE_CURRENT_FCC_MASK 0xe0
39 #define CFG_CHARGE_CURRENT_PCC_MASK 0x18
41 #define CFG_CHARGE_CURRENT_TC_MASK 0x07
42 #define CFG_CURRENT_LIMIT 0x01
43 #define CFG_CURRENT_LIMIT_DC_MASK 0xf0
45 #define CFG_CURRENT_LIMIT_USB_MASK 0x0f
46 #define CFG_FLOAT_VOLTAGE 0x03
47 #define CFG_FLOAT_VOLTAGE_FLOAT_MASK 0x3f
48 #define CFG_FLOAT_VOLTAGE_THRESHOLD_MASK 0xc0
[all …]
/linux/Documentation/devicetree/bindings/mmc/
H A Drockchip-dw-mshc.yaml82 minimum: 0
84 default: 0
88 If not specified 0 deg will be used.
92 minimum: 0
116 reg = <0xff0c0000 0x4000>;
123 fifo-depth = <0x100>;
/linux/arch/arm/boot/dts/qcom/
H A Dqcom-apq8026-samsung-milletwifi.dts37 reg = <0x03200000 0x800000>;
90 pinctrl-0 = <&backlight_i2c_default_state>;
96 #size-cells = <0>;
100 reg = <0x2c>;
103 dev-ctrl = /bits/ 8 <0x80>;
104 init-brt = /bits/ 8 <0x3f>;
112 rom-addr = /bits/ 8 <0xa3>;
113 rom-val = /bits/ 8 <0x5e>;
118 * (0, 120deg, 240deg, -, -, -),
122 rom-addr = /bits/ 8 <0xa5>;
[all …]
/linux/drivers/thermal/
H A Dmax77620_thermal.c42 * else 120degC or 140deG based on the PMIC die temp threshold status.
44 * Return 0 on success otherwise error number to show reason of failure.
54 if (ret < 0) in max77620_thermal_read_temp()
64 return 0; in max77620_thermal_read_temp()
95 mtherm->irq_tjalarm1 = platform_get_irq(pdev, 0); in max77620_thermal_probe()
97 if ((mtherm->irq_tjalarm1 < 0) || (mtherm->irq_tjalarm2 < 0)) { in max77620_thermal_probe()
115 mtherm->tz_device = devm_thermal_of_zone_register(&pdev->dev, 0, in max77620_thermal_probe()
124 if (ret < 0) { in max77620_thermal_probe()
133 if (ret < 0) { in max77620_thermal_probe()
138 return 0; in max77620_thermal_probe()
/linux/drivers/staging/media/meson/vdec/
H A Dcodec_vp9.c19 #define VP9_HEAD_PARSER_DONE 0xf0
36 #define DECODE_MODE_SINGLE 0
46 #define MV_MEM_UNIT 0x240
47 #define ADAPT_PROB_SIZE 0xf80
50 KEY_FRAME = 0,
56 #define MPRED_MV_BUF_SIZE 0x120000
58 #define IPP_SIZE 0x4000
59 #define SAO_ABV_SIZE 0x30000
60 #define SAO_VB_SIZE 0x30000
61 #define SH_TM_RPS_SIZE 0x800
[all …]
/linux/drivers/mmc/host/
H A Ddw_mmc-rockchip.c19 #define SDMMC_TIMING_CON0 0x130
20 #define SDMMC_TIMING_CON1 0x134
22 #define ROCKCHIP_MMC_DEGREE_MASK 0x3
25 #define ROCKCHIP_MMC_DELAYNUM_MASK (0xff << ROCKCHIP_MMC_DELAYNUM_OFFSET)
42 * simplify calculations. So 45degs could be anywhere between 33deg and 57.8deg.
49 u32 delay_num = 0; in rockchip_mmc_get_internal_phase()
53 return 0; in rockchip_mmc_get_internal_phase()
146 raw_value = delay_num ? ROCKCHIP_MMC_DELAY_SEL : 0; in rockchip_mmc_set_internal_phase()
151 mci_writel(host, TIMING_CON1, HIWORD_UPDATE(raw_value, 0x07ff, 1)); in rockchip_mmc_set_internal_phase()
153 mci_writel(host, TIMING_CON0, HIWORD_UPDATE(raw_value, 0x07ff, 1)); in rockchip_mmc_set_internal_phase()
[all …]

123