Lines Matching refs:drv_data

102 	struct mpu9250_data *drv_data = dev->data;  in mpu9250_channel_get()  local
109 mpu9250_convert_accel(val, drv_data->accel_x, in mpu9250_channel_get()
110 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
111 mpu9250_convert_accel(val + 1, drv_data->accel_y, in mpu9250_channel_get()
112 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
113 mpu9250_convert_accel(val + 2, drv_data->accel_z, in mpu9250_channel_get()
114 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
117 mpu9250_convert_accel(val, drv_data->accel_x, in mpu9250_channel_get()
118 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
121 mpu9250_convert_accel(val, drv_data->accel_y, in mpu9250_channel_get()
122 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
125 mpu9250_convert_accel(val, drv_data->accel_z, in mpu9250_channel_get()
126 drv_data->accel_sensitivity_shift); in mpu9250_channel_get()
129 mpu9250_convert_gyro(val, drv_data->gyro_x, in mpu9250_channel_get()
130 drv_data->gyro_sensitivity_x10); in mpu9250_channel_get()
131 mpu9250_convert_gyro(val + 1, drv_data->gyro_y, in mpu9250_channel_get()
132 drv_data->gyro_sensitivity_x10); in mpu9250_channel_get()
133 mpu9250_convert_gyro(val + 2, drv_data->gyro_z, in mpu9250_channel_get()
134 drv_data->gyro_sensitivity_x10); in mpu9250_channel_get()
137 mpu9250_convert_gyro(val, drv_data->gyro_x, in mpu9250_channel_get()
138 drv_data->gyro_sensitivity_x10); in mpu9250_channel_get()
141 mpu9250_convert_gyro(val, drv_data->gyro_y, in mpu9250_channel_get()
142 drv_data->gyro_sensitivity_x10); in mpu9250_channel_get()
145 mpu9250_convert_gyro(val, drv_data->gyro_z, in mpu9250_channel_get()
146 drv_data->gyro_sensitivity_x10); in mpu9250_channel_get()
150 ret = ak8963_convert_magn(val, drv_data->magn_x, in mpu9250_channel_get()
151 drv_data->magn_scale_x, in mpu9250_channel_get()
152 drv_data->magn_st2); in mpu9250_channel_get()
156 ret = ak8963_convert_magn(val + 1, drv_data->magn_y, in mpu9250_channel_get()
157 drv_data->magn_scale_y, in mpu9250_channel_get()
158 drv_data->magn_st2); in mpu9250_channel_get()
162 ret = ak8963_convert_magn(val + 2, drv_data->magn_z, in mpu9250_channel_get()
163 drv_data->magn_scale_z, in mpu9250_channel_get()
164 drv_data->magn_st2); in mpu9250_channel_get()
167 return ak8963_convert_magn(val, drv_data->magn_x, in mpu9250_channel_get()
168 drv_data->magn_scale_x, in mpu9250_channel_get()
169 drv_data->magn_st2); in mpu9250_channel_get()
171 return ak8963_convert_magn(val, drv_data->magn_y, in mpu9250_channel_get()
172 drv_data->magn_scale_y, in mpu9250_channel_get()
173 drv_data->magn_st2); in mpu9250_channel_get()
175 return ak8963_convert_magn(val, drv_data->magn_z, in mpu9250_channel_get()
176 drv_data->magn_scale_z, in mpu9250_channel_get()
177 drv_data->magn_st2); in mpu9250_channel_get()
179 mpu9250_convert_temp(val, drv_data->temp); in mpu9250_channel_get()
192 struct mpu9250_data *drv_data = dev->data; in mpu9250_sample_fetch() local
205 drv_data->accel_x = sys_be16_to_cpu(buf[0]); in mpu9250_sample_fetch()
206 drv_data->accel_y = sys_be16_to_cpu(buf[1]); in mpu9250_sample_fetch()
207 drv_data->accel_z = sys_be16_to_cpu(buf[2]); in mpu9250_sample_fetch()
208 drv_data->temp = sys_be16_to_cpu(buf[3]); in mpu9250_sample_fetch()
209 drv_data->gyro_x = sys_be16_to_cpu(buf[4]); in mpu9250_sample_fetch()
210 drv_data->gyro_y = sys_be16_to_cpu(buf[5]); in mpu9250_sample_fetch()
211 drv_data->gyro_z = sys_be16_to_cpu(buf[6]); in mpu9250_sample_fetch()
213 drv_data->magn_x = sys_le16_to_cpu(buf[7]); in mpu9250_sample_fetch()
214 drv_data->magn_y = sys_le16_to_cpu(buf[8]); in mpu9250_sample_fetch()
215 drv_data->magn_z = sys_le16_to_cpu(buf[9]); in mpu9250_sample_fetch()
216 drv_data->magn_st2 = ((uint8_t *)buf)[20]; in mpu9250_sample_fetch()
217 LOG_DBG("magn_st2: %u", drv_data->magn_st2); in mpu9250_sample_fetch()
238 struct mpu9250_data *drv_data = dev->data; in mpu9250_init() local
280 drv_data->accel_sensitivity_shift = 14 - cfg->accel_fs; in mpu9250_init()
325 drv_data->gyro_sensitivity_x10 = in mpu9250_init()