| /kernel/linux/linux-6.6/lib/ |
| D | bch.c | 98 #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 …]
|
| D | polynomial.c | 29 * 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()
|
| /kernel/linux/linux-5.10/lib/ |
| D | bch.c | 97 #define dbg(_fmt, args...) do {} while (0) 104 unsigned int deg; /* polynomial degree */ member 118 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 119 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, 120 0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8, 121 0x18, 0x98, 0x58, 0xd8, 0x38, 0xb8, 0x78, 0xf8, 122 0x04, 0x84, 0x44, 0xc4, 0x24, 0xa4, 0x64, 0xe4, 123 0x14, 0x94, 0x54, 0xd4, 0x34, 0xb4, 0x74, 0xf4, 124 0x0c, 0x8c, 0x4c, 0xcc, 0x2c, 0xac, 0x6c, 0xec, 125 0x1c, 0x9c, 0x5c, 0xdc, 0x3c, 0xbc, 0x7c, 0xfc, [all …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/verisilicon/ |
| D | rockchip_av1_entropymode.h | 126 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] */
|
| /kernel/linux/linux-5.10/include/linux/input/ |
| D | adxl34x.h | 22 * 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 …]
|
| /kernel/linux/linux-6.6/include/linux/input/ |
| D | adxl34x.h | 22 * 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 …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/regulator/ |
| D | mps,mpq7920.yaml | 14 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>;
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/regulator/ |
| D | mps,mpq7920.yaml | 14 pattern: "pmic@[0-9a-f]{1,2}" 33 enum: [0, 1, 2, 3] 55 enum: [0, 1, 2, 3] 62 enum: [0, 1, 2, 3] 65 corresponding values 0deg, 90deg, 180deg, 270deg 87 #size-cells = <0>; 91 reg = <0x69>;
|
| /kernel/linux/linux-6.6/drivers/thermal/ti-soc-thermal/ |
| D | omap4xxx-bandgap.h | 27 #define OMAP4430_FUSE_OPP_BGAP 0x0 30 #define OMAP4430_TEMP_SENSOR_CTRL_OFFSET 0xCC 46 #define OMAP4430_BGAP_TEMP_SENSOR_DTEMP_MASK (0xff << 0) 82 #define OMAP4460_FUSE_OPP_BGAP 0x0 85 #define OMAP4460_TEMP_SENSOR_CTRL_OFFSET 0xCC 88 #define OMAP4460_BGAP_CTRL_OFFSET 0x118 91 #define OMAP4460_BGAP_COUNTER_OFFSET 0x11C 94 #define OMAP4460_BGAP_THRESHOLD_OFFSET 0x120 97 #define OMAP4460_BGAP_TSHUT_OFFSET 0x124 100 #define OMAP4460_BGAP_STATUS_OFFSET 0x128 [all …]
|
| /kernel/linux/linux-5.10/drivers/thermal/ti-soc-thermal/ |
| D | omap4xxx-bandgap.h | 27 #define OMAP4430_FUSE_OPP_BGAP 0x0 30 #define OMAP4430_TEMP_SENSOR_CTRL_OFFSET 0xCC 46 #define OMAP4430_BGAP_TEMP_SENSOR_DTEMP_MASK (0xff << 0) 82 #define OMAP4460_FUSE_OPP_BGAP 0x0 85 #define OMAP4460_TEMP_SENSOR_CTRL_OFFSET 0xCC 88 #define OMAP4460_BGAP_CTRL_OFFSET 0x118 91 #define OMAP4460_BGAP_COUNTER_OFFSET 0x11C 94 #define OMAP4460_BGAP_THRESHOLD_OFFSET 0x120 97 #define OMAP4460_BGAP_TSHUT_OFFSET 0x124 100 #define OMAP4460_BGAP_STATUS_OFFSET 0x128 [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | polynomial.h | 11 * @deg: degree of the term. 17 unsigned int deg; member 26 * @terms: polynomial terms, last term must have degree of 0
|
| /kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/ |
| D | qos_mc_aware.sh | 22 # thus TC 0). 32 # | traffic | | | e-qos-map 0:1 | 49 # | | prio qdisc: {0..7} -> 7 | 66 lib_dir=$(dirname $0)/../../../net/forwarding 91 ip link set dev $h2.111 type vlan egress-qos-map 0:1 137 ip link add name br1 type bridge vlan_filtering 0 143 ip link add name br111 type bridge vlan_filtering 0 151 devlink_port_pool_th_save $swp1 0 152 devlink_port_pool_th_set $swp1 0 5 153 devlink_tc_bind_pool_th_save $swp1 0 ingress [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
| D | qos_mc_aware.sh | 22 # thus TC 0). 32 # | traffic | | | e-qos-map 0:1 | 49 # | | prio qdisc: {0..7} -> 7 | 66 lib_dir=$(dirname $0)/../../../net/forwarding 91 ip link set dev $h2.111 type vlan egress-qos-map 0:1 136 ip link add name br1 type bridge vlan_filtering 0 141 ip link add name br111 type bridge vlan_filtering 0 148 devlink_port_pool_th_save $swp1 0 149 devlink_port_pool_th_set $swp1 0 5 150 devlink_tc_bind_pool_th_save $swp1 0 ingress [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/imu/ |
| D | adis16400.c | 29 #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 …]
|
| /kernel/linux/linux-6.6/include/uapi/linux/ |
| D | input.h | 53 #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 …]
|
| /kernel/linux/linux-5.10/include/uapi/linux/ |
| D | input.h | 53 #define EV_VERSION 0x010001 56 * IOCTLs (0x00 - 0x7f) 74 * joydev interface and reported as 0 instead. 88 * (units/deg/s) for rotational axes (ABS_RX, ABS_RY, ABS_RZ). 115 #define INPUT_KEYMAP_BY_INDEX (1 << 0) 129 #define EVIOCGVERSION _IOR('E', 0x01, int) /* get driver version */ 130 #define EVIOCGID _IOR('E', 0x02, struct input_id) /* get device ID */ 131 #define EVIOCGREP _IOR('E', 0x03, unsigned int[2]) /* get repeat settings */ 132 #define EVIOCSREP _IOW('E', 0x03, unsigned int[2]) /* set repeat settings */ 134 #define EVIOCGKEYCODE _IOR('E', 0x04, unsigned int[2]) /* get keycode */ [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/imu/ |
| D | adis16400.c | 36 #define ADIS16400_FLASH_CNT 0x00 /* Flash memory write count */ 37 #define ADIS16400_SUPPLY_OUT 0x02 /* Power supply measurement */ 38 #define ADIS16400_XGYRO_OUT 0x04 /* X-axis gyroscope output */ 39 #define ADIS16400_YGYRO_OUT 0x06 /* Y-axis gyroscope output */ 40 #define ADIS16400_ZGYRO_OUT 0x08 /* Z-axis gyroscope output */ 41 #define ADIS16400_XACCL_OUT 0x0A /* X-axis accelerometer output */ 42 #define ADIS16400_YACCL_OUT 0x0C /* Y-axis accelerometer output */ 43 #define ADIS16400_ZACCL_OUT 0x0E /* Z-axis accelerometer output */ 44 #define ADIS16400_XMAGN_OUT 0x10 /* X-axis magnetometer measurement */ 45 #define ADIS16400_YMAGN_OUT 0x12 /* Y-axis magnetometer measurement */ [all …]
|
| /kernel/linux/linux-6.6/lib/reed_solomon/ |
| D | decode_rs.c | 24 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 …]
|
| /kernel/linux/linux-5.10/lib/reed_solomon/ |
| D | decode_rs.c | 24 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 …]
|
| /kernel/linux/linux-6.6/drivers/hwmon/ |
| D | lm92.c | 10 * 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 44 static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, 49 #define LM92_REG_CONFIG 0x01 /* 8-bit, RW */ 50 #define LM92_REG_TEMP 0x00 /* 16-bit, RO */ 51 #define LM92_REG_TEMP_HYST 0x02 /* 16-bit, RW */ 52 #define LM92_REG_TEMP_CRIT 0x03 /* 16-bit, RW */ 53 #define LM92_REG_TEMP_LOW 0x04 /* 16-bit, RW */ 54 #define LM92_REG_TEMP_HIGH 0x05 /* 16-bit, RW */ 55 #define LM92_REG_MAN_ID 0x07 /* 16-bit, RO, LM92 only */ [all …]
|
| D | bt1-pvt.h | 18 #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 …]
|
| /kernel/linux/linux-5.10/drivers/hwmon/ |
| D | lm92.c | 10 * 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 44 static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b, 49 #define LM92_REG_CONFIG 0x01 /* 8-bit, RW */ 50 #define LM92_REG_TEMP 0x00 /* 16-bit, RO */ 51 #define LM92_REG_TEMP_HYST 0x02 /* 16-bit, RW */ 52 #define LM92_REG_TEMP_CRIT 0x03 /* 16-bit, RW */ 53 #define LM92_REG_TEMP_LOW 0x04 /* 16-bit, RW */ 54 #define LM92_REG_TEMP_HIGH 0x05 /* 16-bit, RW */ 55 #define LM92_REG_MAN_ID 0x07 /* 16-bit, RO, LM92 only */ [all …]
|
| D | bt1-pvt.h | 18 #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 …]
|
| /kernel/linux/linux-6.6/drivers/clk/rockchip/ |
| D | clk-mmc-phase.c | 34 #define ROCKCHIP_MMC_DEGREE_MASK 0x3 36 #define ROCKCHIP_MMC_DELAYNUM_MASK (0xff << ROCKCHIP_MMC_DELAYNUM_OFFSET) 42 * simplify calculations. So 45degs could be anywhere between 33deg and 57.8deg. 52 u32 delay_num = 0; in rockchip_mmc_get_phase() 56 return 0; in rockchip_mmc_get_phase() 135 raw_value = delay_num ? ROCKCHIP_MMC_DELAY_SEL : 0; in rockchip_mmc_set_phase() 138 writel(HIWORD_UPDATE(raw_value, 0x07ff, mmc_clock->shift), in rockchip_mmc_set_phase() 141 pr_debug("%s->set_phase(%d) delay_nums=%u reg[0x%p]=0x%03x actual_degrees=%d\n", in rockchip_mmc_set_phase() 147 return 0; in rockchip_mmc_set_phase() 205 init.flags = 0; in rockchip_clk_register_mmc()
|
| /kernel/linux/linux-5.10/drivers/clk/rockchip/ |
| D | clk-mmc-phase.c | 34 #define ROCKCHIP_MMC_DEGREE_MASK 0x3 36 #define ROCKCHIP_MMC_DELAYNUM_MASK (0xff << ROCKCHIP_MMC_DELAYNUM_OFFSET) 42 * simplify calculations. So 45degs could be anywhere between 33deg and 57.8deg. 52 u32 delay_num = 0; in rockchip_mmc_get_phase() 56 return 0; in rockchip_mmc_get_phase() 135 raw_value = delay_num ? ROCKCHIP_MMC_DELAY_SEL : 0; in rockchip_mmc_set_phase() 138 writel(HIWORD_UPDATE(raw_value, 0x07ff, mmc_clock->shift), in rockchip_mmc_set_phase() 141 pr_debug("%s->set_phase(%d) delay_nums=%u reg[0x%p]=0x%03x actual_degrees=%d\n", in rockchip_mmc_set_phase() 147 return 0; in rockchip_mmc_set_phase() 205 init.flags = 0; in rockchip_clk_register_mmc()
|