Lines Matching full:axis

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
105 unsigned char ymmis; //y axis middle mismatch to write
106 unsigned char zmmis; //z axis middle mismatch to write
107 unsigned char xmoff; //x axis middle offset to write
108 unsigned char ymoff; //y axis middle offset to write
109 unsigned char zmoff; //z axis middle offset to write
111 signed int xpoutput; //x axis output of positive mismatch
112 signed int xnoutput; //x axis output of negtive mismatch
118 signed int xfoutput; //x axis the best or the temporary output
119 signed int yfoutput; //y axis the best or the temporary output
120 signed int zfoutput; //z axis the best or the temporary output
122 unsigned char xfinalf; //x axis final flag:if 1,calibration finished
123 unsigned char yfinalf; //y axis final flag:if 1,calibration finished
124 unsigned char zfinalf; //z axis final flag:if 1,calibration finished
125 unsigned char xtempf; //x axis temp flag:if 1,the step calibration finished
126 unsigned char ytempf; //y axis temp flag:if 1,the step calibration finished
127 unsigned char ztempf; //z axis temp flag:if 1,the step calibration finished
129 unsigned char xaddmis; //x axis mismtach register address
130 unsigned char yaddmis; //y axis mismtach register address
131 unsigned char zaddmis; //z axis mismtach register address
132 unsigned char xaddoff; //x axis offset register address
133 unsigned char yaddoff; //y axis offset register address
134 unsigned char zaddoff; //z axis offset register address
1037 static int gsensor_report_value(struct i2c_client *client, struct sensor_axis *axis) in gsensor_report_value() argument
1043 input_report_abs(sensor->input_dev, ABS_X, axis->x); in gsensor_report_value()
1044 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in gsensor_report_value()
1045 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in gsensor_report_value()
1047 //printk("Gsensor x==%d y==%d z==%d\n",axis->x,axis->y,axis->z); in gsensor_report_value()
1061 struct sensor_axis axis; in sensor_report_value() local
1115 axis.x = (pdata->orientation[0])*x + (pdata->orientation[1])*y + (pdata->orientation[2])*z; in sensor_report_value()
1116 axis.y = (pdata->orientation[3])*x + (pdata->orientation[4])*y + (pdata->orientation[5])*z; in sensor_report_value()
1117 axis.z = (pdata->orientation[6])*x + (pdata->orientation[7])*y + (pdata->orientation[8])*z; in sensor_report_value()
1120 axis_average.x_average += axis.x; in sensor_report_value()
1121 axis_average.y_average += axis.y; in sensor_report_value()
1122 axis_average.z_average += axis.z; in sensor_report_value()
1127 axis.x = axis_average.x_average / axis_average.count; in sensor_report_value()
1128 axis.y = axis_average.y_average / axis_average.count; in sensor_report_value()
1129 axis.z = axis_average.z_average / axis_average.count; in sensor_report_value()
1131 printk( "%s: axis = %d %d %d \n", __func__, axis.x, axis.y, axis.z); in sensor_report_value()
1136 …if((abs(sensor->axis.x - axis.x) > GSENSOR_MIN) || (abs(sensor->axis.y - axis.y) > GSENSOR_MIN) ||… in sensor_report_value()
1138 gsensor_report_value(client, &axis); in sensor_report_value()
1142 sensor->axis = axis; in sensor_report_value()
1147 gsensor_report_value(client, &axis); in sensor_report_value()
1151 sensor->axis = axis; in sensor_report_value()
1214 MODULE_DESCRIPTION("sc7a30 3-Axis accelerometer driver");