Home
last modified time | relevance | path

Searched full:angle (Results 1 – 25 of 132) sorted by relevance

123456

/kernel/linux/linux-6.6/lib/math/
Dcordic.c41 * cordic_calc_iq() - calculates the i/q coordinate for given angle
43 * theta: angle in degrees for which i/q coordinate is to be calculated
49 s32 angle, valtmp; in cordic_calc_iq() local
56 angle = 0; in cordic_calc_iq()
72 if (theta > angle) { in cordic_calc_iq()
75 angle += arctan_table[iter]; in cordic_calc_iq()
79 angle -= arctan_table[iter]; in cordic_calc_iq()
/kernel/linux/linux-5.10/lib/math/
Dcordic.c41 * cordic_calc_iq() - calculates the i/q coordinate for given angle
43 * theta: angle in degrees for which i/q coordinate is to be calculated
49 s32 angle, valtmp; in cordic_calc_iq() local
56 angle = 0; in cordic_calc_iq()
72 if (theta > angle) { in cordic_calc_iq()
75 angle += arctan_table[iter]; in cordic_calc_iq()
79 angle -= arctan_table[iter]; in cordic_calc_iq()
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/magnetometer/
Dti,tmag5273.yaml17 magnetic axes and temperature measurements. An integrated angle calculation
19 on-axis and off-axis angle measurement topologies. The angle calculation is
32 ti,angle-measurement:
35 Enables angle measurement in the selected plane.
71 ti,angle-measurement = "x-z";
/kernel/linux/linux-5.10/include/linux/
Dfixp-arith.h42 * __fixp_sin32() returns the sin of an angle in degrees
44 * @degrees: angle, in degrees, from 0 to 360.
66 * fixp_sin32() returns the sin of an angle in degrees
68 * @degrees: angle, in degrees. The angle can be positive or negative
92 * fixp_sin32_rad() - calculates the sin of an angle in radians
94 * @radians: angle, in radians
Dcordic.h42 * cordic_calc_iq() - calculates the i/q coordinate for given angle.
44 * @theta: angle in degrees for which i/q coordinate is to be calculated.
47 * The function calculates the i/q coordinate for a given angle using the
50 * angle and the imaginary part is the sine of the angle. The returned
/kernel/linux/linux-6.6/include/linux/
Dcordic.h42 * cordic_calc_iq() - calculates the i/q coordinate for given angle.
44 * @theta: angle in degrees for which i/q coordinate is to be calculated.
47 * The function calculates the i/q coordinate for a given angle using the
50 * angle and the imaginary part is the sine of the angle. The returned
Dfixp-arith.h43 * __fixp_sin32() returns the sin of an angle in degrees
45 * @degrees: angle, in degrees, from 0 to 360.
67 * fixp_sin32() returns the sin of an angle in degrees
69 * @degrees: angle, in degrees. The angle can be positive or negative
93 * fixp_sin32_rad() - calculates the sin of an angle in radians
95 * @radians: angle, in radians
/kernel/linux/linux-5.10/drivers/iio/position/
Diqs624-pos.c30 u16 angle; member
57 u16 angle = event_data->ui_data; in iqs624_pos_notifier() local
68 angle = event_data->interval; in iqs624_pos_notifier()
81 } else if (iqs624_pos->angle_en && (angle != iqs624_pos->angle)) { in iqs624_pos_notifier()
88 iqs624_pos->angle = angle; in iqs624_pos_notifier()
201 iqs624_pos->angle = val; in iqs624_pos_write_event_config()
/kernel/linux/linux-6.6/drivers/iio/position/
Diqs624-pos.c30 u16 angle; member
57 u16 angle = event_data->ui_data; in iqs624_pos_notifier() local
68 angle = event_data->interval; in iqs624_pos_notifier()
81 } else if (iqs624_pos->angle_en && (angle != iqs624_pos->angle)) { in iqs624_pos_notifier()
88 iqs624_pos->angle = angle; in iqs624_pos_notifier()
201 iqs624_pos->angle = val; in iqs624_pos_write_event_config()
/kernel/linux/linux-6.6/drivers/iio/common/cros_ec_sensors/
Dcros_ec_lid_angle.c4 * cros_ec_lid_angle - Driver for CrOS EC lid angle sensor.
29 #define DRV_NAME "cros-ec-lid-angle"
32 * One channel for the lid angle, the other for timestamp.
60 dev_warn(&indio_dev->dev, "Unable to read lid angle\n"); in cros_ec_sensors_read_lid_angle()
137 MODULE_DESCRIPTION("ChromeOS EC driver for reporting convertible lid angle.");
DKconfig26 tristate "ChromeOS EC Sensor for lid angle"
29 Module to report the angle between lid and base for some
31 This module is loaded when the EC can calculate the angle between the base
/kernel/linux/linux-5.10/drivers/iio/common/cros_ec_sensors/
Dcros_ec_lid_angle.c4 * cros_ec_lid_angle - Driver for CrOS EC lid angle sensor.
28 #define DRV_NAME "cros-ec-lid-angle"
31 * One channel for the lid angle, the other for timestamp.
59 dev_warn(&indio_dev->dev, "Unable to read lid angle\n"); in cros_ec_sensors_read_lid_angle()
137 MODULE_DESCRIPTION("ChromeOS EC driver for reporting convertible lid angle.");
DKconfig26 tristate "ChromeOS EC Sensor for lid angle"
29 Module to report the angle between lid and base for some
31 This module is loaded when the EC can calculate the angle between the base
/kernel/linux/linux-6.6/drivers/iio/magnetometer/
Dtmag5273.c104 ANGLE, enumerator
159 s16 *y, s16 *z, u16 *angle, u16 *magnitude) in tmag5273_get_measure() argument
195 * angle has 9 bits integer value and 4 bits fractional part in tmag5273_get_measure()
199 *angle = be16_to_cpu(reg_data[0]); in tmag5273_get_measure()
288 u16 angle, magnitude; in tmag5273_read_raw() local
298 ret = tmag5273_get_measure(data, &t, &x, &y, &z, &angle, &magnitude); in tmag5273_read_raw()
319 case ANGLE: in tmag5273_read_raw()
320 *val = angle; in tmag5273_read_raw()
347 * Angle is in degrees and has four fractional bits, in tmag5273_read_raw()
445 .address = ANGLE,
[all …]
/kernel/linux/linux-5.10/drivers/iio/accel/
Dmma9551.c56 u8 quad_shift, angle, quadrant; in mma9551_read_incli_chan() local
82 reg_addr, &angle); in mma9551_read_incli_chan()
91 angle &= ~MMA9551_TILT_ANGFLG; in mma9551_read_incli_chan()
95 *val = 90 * (quadrant + 1) - angle; in mma9551_read_incli_chan()
97 *val = angle + 90 * quadrant; in mma9551_read_incli_chan()
190 /* Bit 7 of each angle register holds the angle flag. */ in mma9551_config_incli_event()
370 * Read the angle even though we don't use it, otherwise we in mma9551_event_handler()
/kernel/linux/linux-6.6/drivers/iio/accel/
Dmma9551.c56 u8 quad_shift, angle, quadrant; in mma9551_read_incli_chan() local
82 reg_addr, &angle); in mma9551_read_incli_chan()
91 angle &= ~MMA9551_TILT_ANGFLG; in mma9551_read_incli_chan()
95 *val = 90 * (quadrant + 1) - angle; in mma9551_read_incli_chan()
97 *val = angle + 90 * quadrant; in mma9551_read_incli_chan()
190 /* Bit 7 of each angle register holds the angle flag. */ in mma9551_config_incli_event()
370 * Read the angle even though we don't use it, otherwise we in mma9551_event_handler()
Dbmc150-accel-i2c.c26 * ACPI code about the angle between the 2 halves. This will make the ACPI
34 * define the angle between the gravity vector measured by the accelerometer in
37 * not matter and we can simply leave the second angle at 0.
94 * set the angle to 270° (tent/stand mode) and then change it to in bmc150_acpi_enable_keyboard()
100 /* The EC needs some time to notice the angle being changed */ in bmc150_acpi_enable_keyboard()
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-class-chromeos11 Control the keyboard wake lid angle. Values are between
13 angle by querying the hardware.
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-chromeos11 Control the keyboard wake lid angle. Values are between
13 angle by querying the hardware.
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
Dcolorspaces-defs.rst24 On :ref:`HSV formats <hsv-formats>` the *Hue* is defined as the angle on
25 the cylindrical color representation. Usually this angle is measured in
26 degrees, i.e. 0-360. When we map this angle value into 8 bits, there are
/kernel/linux/linux-6.6/Documentation/userspace-api/media/v4l/
Dcolorspaces-defs.rst24 On :ref:`HSV formats <hsv-formats>` the *Hue* is defined as the angle on
25 the cylindrical color representation. Usually this angle is measured in
26 degrees, i.e. 0-360. When we map this angle value into 8 bits, there are
/kernel/linux/linux-5.10/drivers/platform/chrome/
Dcros_ec_sysfs.c239 /* Keyboard wake angle control */
279 u16 angle; in kb_wake_angle_store() local
282 ret = kstrtou16(buf, 0, &angle); in kb_wake_angle_store()
294 param->kb_wake_angle.data = angle; in kb_wake_angle_store()
/kernel/linux/linux-6.6/drivers/platform/chrome/
Dcros_ec_sysfs.c232 /* Keyboard wake angle control */
272 u16 angle; in kb_wake_angle_store() local
275 ret = kstrtou16(buf, 0, &angle); in kb_wake_angle_store()
287 param->kb_wake_angle.data = angle; in kb_wake_angle_store()
/kernel/linux/linux-5.10/Documentation/userspace-api/media/rc/
Drc-tables.rst292 - Switch video camera angle (on videos with more than one angle
295 - ANGLE / SWAP
/kernel/linux/linux-6.6/Documentation/userspace-api/media/rc/
Drc-tables.rst292 - Switch video camera angle (on videos with more than one angle
295 - ANGLE / SWAP

123456