Home
last modified time | relevance | path

Searched +full:x +full:- +full:axis (Results 1 – 25 of 457) sorted by relevance

12345678910>>...19

/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/
H A Dda223_cust.c3 * mir3da.c - Linux kernel modules for 3-Axis Accelerometer
5 * Copyright (C) 2011-2013 MiraMEMS Sensing Technology Co., Ltd.
33 #include <linux/sensor-dev.h>
43 #define DA311_BOUNDARY (0x1 << (MIR3DA_PRECISION - 1))
100 ret = -1;
104 filep->f_op->write(filep, pWorkInfo->buffer, pWorkInfo->len, &filep->f_pos);
109 pWorkInfo->rst = ret;
110 complete( &pWorkInfo->completion );
133 ret = -1;
136 filep->f_op->read(filep, pWorkInfo->buffer, sizeof(pWorkInfo->buffer), &filep->f_pos);
[all …]
H A Dsc7a20.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
31 #include <linux/sensor-dev.h>
63 #define SC7A20_BOUNDARY (0x1 << (SC7A20_PRECISION - 1))
69 /*noCreateAttr:the initial is 1-->no create attr. if created, change noCreateAttr to 0.*/
78 int x; member
96 unsigned char xpmis; //x axis positive mismatch to write
97 unsigned char xnmis; //x axis negtive mismatch to write
103 unsigned char xpoff; //x axis positive offset to write
104 unsigned char xnoff; //x axis negtive offset to write
[all …]
H A Dsc7660.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
31 #include <linux/sensor-dev.h>
63 #define SC7660_BOUNDARY (0x1 << (SC7660_PRECISION - 1))
69 /*noCreateAttr:the initial is 1-->no create attr. if created, change noCreateAttr to 0.*/
78 int x; member
96 unsigned char xpmis; //x axis positive mismatch to write
97 unsigned char xnmis; //x axis negtive mismatch to write
103 unsigned char xpoff; //x axis positive offset to write
104 unsigned char xnoff; //x axis negtive offset to write
[all …]
H A Dmma7660.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
57 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
61 sensor->ops->ctrl_data |= status; in sensor_active()
64 sensor->ops->ctrl_data &= status; in sensor_active()
67 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
69 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
80 result = sensor->ops->active(client, 0, 0); in sensor_init()
82 dev_err(&client->dev, "%s:line=%d,error\n", __func__, __LINE__); in sensor_init()
[all …]
H A Dsc7a30.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
64 #define SC7A30_BOUNDARY (0x1 << (SC7A30_PRECISION - 1))
72 int x; member
90 unsigned char xpmis; //x axis positive mismatch to write
91 unsigned char xnmis; //x axis negtive mismatch to write
97 unsigned char xpoff; //x axis positive offset to write
98 unsigned char xnoff; //x axis negtive offset to write
104 unsigned char xmmis; //x axis middle mismatch to write
[all …]
H A Dmxc6655xa.c1 // SPDX-License-Identifier: GPL-2.0
6 * Author: Wang Jie <dave.wang@rock-chips.com>
25 #include <linux/sensor-dev.h>
50 #define MXC6655_BOUNDARY (0x1 << (MXC6655_PRECISION - 1))
59 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
61 sensor->ops->ctrl_data &= ~MXC6655_POWER_DOWN; in sensor_active()
63 sensor->ops->ctrl_data |= MXC6655_POWER_DOWN; in sensor_active()
65 result = sensor_write_reg(client, sensor->ops->ctrl_reg, in sensor_active()
66 sensor->ops->ctrl_data); in sensor_active()
68 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
[all …]
H A Dkxtj9.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
90 /* CTRL_REG1: set resolution, g-range, data ready enable */
91 /* Output resolution: 8-bit valid or 12-bit valid */
94 /* Output g-range: +/-2g, 4g, or 8g */
110 #define KXTJ9_BOUNDARY (0x1 << (KXTJ9_PRECISION - 1))
123 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
129 sensor->ops->ctrl_data |= status; in sensor_active()
134 sensor->ops->ctrl_data &= status; in sensor_active()
[all …]
H A Dlsm330_acc.c4 * Copyright (C) 2012-2016 Rockchip Co.,Ltd.
5 * Author: Bin Yang <yangbin@rock-chips.com>
34 #include <linux/sensor-dev.h>
93 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
96 sensor->ops->ctrl_reg, in sensor_active()
97 sensor->ops->ctrl_data | 0x07); in sensor_active()
99 result = sensor_write_reg(client, sensor->ops->ctrl_reg, 0x00); in sensor_active()
102 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
104 DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n", in sensor_active()
106 sensor->ops->ctrl_reg, in sensor_active()
[all …]
H A Dmxc622x.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
33 #include <linux/sensor-dev.h>
53 #define MXC6225_BOUNDARY (0x1 << (MXC6225_PRECISION - 1))
76 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
82 sensor->ops->ctrl_data |= status; in sensor_active()
87 sensor->ops->ctrl_data &= status; in sensor_active()
90 …DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n",__func__,sensor->ops->ctrl_reg, sensor->ops->ctrl_data… in sensor_active()
91 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
105 result = sensor->ops->active(client,0,0); in sensor_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/angle/
H A Dangle_lis3dh.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
38 /* full scale setting - register & mask */
68 #define LIS3DH_BOUNDARY (0x1 << (LIS3DH_PRECISION - 1))
96 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
98 sensor->ops->ctrl_data |= ODR100; //100HZ,if 0 then power down in sensor_active()
104 sensor->ops->ctrl_data |= status; in sensor_active()
109 sensor->ops->ctrl_data &= status; in sensor_active()
112 …DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n",__func__,sensor->ops->ctrl_reg, sensor->ops->ctrl_data… in sensor_active()
[all …]
H A Dangle_kxtik.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
32 #include <linux/sensor-dev.h>
93 /* CTRL_REG1: set resolution, g-range, data ready enable */
94 /* Output resolution: 8-bit valid or 12-bit valid */
97 /* Output g-range: +/-2g, 4g, or 8g */
113 #define KXTIK_BOUNDARY (0x1 << (KXTIK_PRECISION - 1))
126 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
132 sensor->ops->ctrl_data |= status; in sensor_active()
137 sensor->ops->ctrl_data &= status; in sensor_active()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dof_touchscreen.c1 // SPDX-License-Identifier: GPL-2.0-only
33 unsigned long axis, in touchscreen_set_params() argument
38 if (!test_bit(axis, dev->absbit)) { in touchscreen_set_params()
39 dev_warn(&dev->dev, in touchscreen_set_params()
40 "DT specifies parameters but the axis %lu is not set up\n", in touchscreen_set_params()
41 axis); in touchscreen_set_params()
45 absinfo = &dev->absinfo[axis]; in touchscreen_set_params()
46 absinfo->minimum = min; in touchscreen_set_params()
47 absinfo->maximum = max; in touchscreen_set_params()
48 absinfo->fuzz = fuzz; in touchscreen_set_params()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da215s/
H A Dda215s.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: Kay Guo <kay.guo@rock-chips.com>
20 #include <linux/sensor-dev.h>
65 #define DA215S_BOUNDARY (0x1 << (DA215S_PRECISION - 1))
75 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
77 sensor->ops->ctrl_data &= DA215S_CTRL_NORMAL; in sensor_active()
79 sensor->ops->ctrl_data |= DA215S_CTRL_SUSPEND; in sensor_active()
81 result = sensor_write_reg(client, sensor->ops->ctrl_reg, in sensor_active()
82 sensor->ops->ctrl_data); in sensor_active()
84 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da228e/
H A Dda228e.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: Kay Guo <kay.guo@rock-chips.com>
21 #include <linux/sensor-dev.h>
65 #define DA228E_BOUNDARY (0x1 << (DA228E_PRECISION - 1))
76 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
78 sensor->ops->ctrl_data &= DA228E_CTRL_NORMAL; in sensor_active()
80 sensor->ops->ctrl_data |= DA228E_CTRL_SUSPEND; in sensor_active()
82 result = sensor_write_reg(client, sensor->ops->ctrl_reg, in sensor_active()
83 sensor->ops->ctrl_data); in sensor_active()
85 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/gyro/
H A Dl3g20d.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
33 #include <linux/sensor-dev.h>
47 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
53 sensor->ops->ctrl_data |= status; in sensor_active()
58 sensor->ops->ctrl_data &= status; in sensor_active()
61 …DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n",__func__,sensor->ops->ctrl_reg, sensor->ops->ctrl_data… in sensor_active()
62 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
79 result = sensor->ops->active(client,0,0); in sensor_init()
86 sensor->status_cur = SENSOR_OFF; in sensor_init()
[all …]
H A Dl3g4200d.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
33 #include <linux/sensor-dev.h>
47 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
53 sensor->ops->ctrl_data |= status; in sensor_active()
58 sensor->ops->ctrl_data &= status; in sensor_active()
61 …DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n",__func__,sensor->ops->ctrl_reg, sensor->ops->ctrl_data… in sensor_active()
62 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
79 result = sensor->ops->active(client,0,0); in sensor_init()
86 sensor->status_cur = SENSOR_OFF; in sensor_init()
[all …]
H A Dlsm330_gyro.c4 * Copyright (C) 2012-2016 Rockchip Co.,Ltd.
5 * Author: Bin Yang <yangbin@rock-chips.com>
34 #include <linux/sensor-dev.h>
72 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
75 sensor->ops->ctrl_reg, in sensor_active()
76 sensor->ops->ctrl_data | 0x0F); in sensor_active()
79 sensor->ops->ctrl_reg, in sensor_active()
83 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
85 DBG("%s:reg=0x%x,reg_ctrl=0x%x,enable=%d\n", in sensor_active()
87 sensor->ops->ctrl_reg, in sensor_active()
[all …]
H A Dewtsa.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: zhangaihui <zah@rock-chips.com>
32 #include <linux/sensor-dev.h>
37 #define GYRO_MOUNT_SWAP_XY 0 /* swap X, Y */
38 #define GYRO_MOUNT_REVERSE_X 0 /* reverse X */
55 #define DELAY_THRES_2 9 /* msec x 90% */
154 printk("EWTSA send cAddress=0x%x error!\n", regAddr); in i2c_read_byte()
160 printk("EWTSAread *pReadData=0x%x error!\n", *pReadData); in i2c_read_byte()
180 printk("EWTSA send regAddr=0x%x error!\n", regAddr); in i2c_write_byte()
204 smpl = ( unsigned char)(EWTSA_delay - ( unsigned char)1); in ewtsa_system_restart()
[all …]
H A Diam20680_gyro.c1 // SPDX-License-Identifier: GPL-2.0
7 * Author: sxj <sxj@rock-chips.com>
26 #include <linux/sensor-dev.h>
37 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
42 sensor->ops->ctrl_data |= status; in sensor_active()
43 if ((sensor->ops->ctrl_data & BIT_ACCEL_STBY) == BIT_ACCEL_STBY) in sensor_active()
47 sensor->ops->ctrl_data &= status; in sensor_active()
51 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
53 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
54 return -1; in sensor_active()
[all …]
H A Dicm2060x_gyro.c1 // SPDX-License-Identifier: GPL-2.0
6 * Author: Wang Jie <dave.wang@rock-chips.com>
25 #include <linux/sensor-dev.h>
36 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
41 sensor->ops->ctrl_data |= status; in sensor_active()
42 if ((sensor->ops->ctrl_data & BIT_ACCEL_STBY) == BIT_ACCEL_STBY) in sensor_active()
46 sensor->ops->ctrl_data &= status; in sensor_active()
50 result = sensor_write_reg(client, sensor->ops->ctrl_reg, in sensor_active()
51 sensor->ops->ctrl_data); in sensor_active()
53 dev_err(&client->dev, in sensor_active()
[all …]
H A Dmpu6500_gyro.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: ouenhui <oeh@rock-chips.com>
32 #include <linux/sensor-dev.h>
43 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
48 sensor->ops->ctrl_data |= status; in sensor_active()
49 if ((sensor->ops->ctrl_data & BIT_ACCEL_STBY) == BIT_ACCEL_STBY) { in sensor_active()
54 sensor->ops->ctrl_data &= status; in sensor_active()
58 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
60 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
61 return -1; in sensor_active()
[all …]
H A Dmpu6880_gyro.c3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: ouenhui <oeh@rock-chips.com>
32 #include <linux/sensor-dev.h>
43 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active()
48 sensor->ops->ctrl_data |= status; in sensor_active()
49 if ((sensor->ops->ctrl_data & BIT_ACCEL_STBY) == BIT_ACCEL_STBY) { in sensor_active()
54 sensor->ops->ctrl_data &= status; in sensor_active()
58 result = sensor_write_reg(client, sensor->ops->ctrl_reg, sensor->ops->ctrl_data); in sensor_active()
60 dev_err(&client->dev, "%s:fail to active sensor\n", __func__); in sensor_active()
61 return -1; in sensor_active()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/accel/
H A Dlis302.txt8 - compatible: should be set to "st,lis3lv02d-spi"
9 - reg: the chipselect index
10 - spi-max-frequency: maximal bus speed, should be set to 1000000 unless
12 - interrupts: the interrupt generated by the device
15 - compatible: should be set to "st,lis3lv02d"
16 - reg: i2c slave address
17 - Vdd-supply: The input supply for Vdd
18 - Vdd_IO-supply: The input supply for Vdd_IO
23 - st,click-single-{x,y,z}: if present, tells the device to issue an
25 x/y/z axis.
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/kdbush/0.1.1-1/include/
H A Dkdbush.hpp63 sortKD(0, size - 1, 0); in fill()
72 range(minX, minY, maxX, maxY, visitor, 0, static_cast<TIndex>(ids.size() - 1), 0); in range()
77 within(qx, qy, r, visitor, 0, static_cast<TIndex>(ids.size() - 1), 0); in within()
93 const std::uint8_t axis) { in range() argument
95 if (right - left <= nodeSize) { in range()
97 const TNumber x = std::get<0>(points[i]); in range() local
99 if (x >= minX && x <= maxX && y >= minY && y <= maxY) visitor(ids[i]); in range()
105 const TNumber x = std::get<0>(points[m]); in range() local
108 if (x >= minX && x <= maxX && y >= minY && y <= maxY) visitor(ids[m]); in range()
110 if (axis == 0 ? minX <= x : minY <= y) in range()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/
H A Dmount-matrix.txt2 * is the definition of +/- values practical or counterintuitive?
13 that produce three-dimensional data in relation to the world where it is
21 of the (x,y,z) triplets, such as different registers to read these coordinates,
28 reference to (x,y,z) orientation, with (x,y) corresponding to these axes on the
29 screen and (z) being depth, the axis perpendicular to the screen.
31 For a screen you probably want (x) coordinates to go from negative on the left
37 reference. This means that the sensor may be flipped upside-down, left-right,
47 Device-to-world examples for some three-dimensional sensor types:
49 - Accelerometers have their world frame of reference toward the center of
50 gravity, usually to the core of the planet. A reading of the (x,y,z) values
[all …]

12345678910>>...19