Searched refs:tregs (Results 1 – 4 of 4) sorted by relevance
241 static int32_t bmc150_magn_compensate_xy(struct bmc150_magn_trim_regs *tregs, in bmc150_magn_compensate_xy() argument252 rhall = tregs->xyz1; in bmc150_magn_compensate_xy()256 txy1 = tregs->x1; in bmc150_magn_compensate_xy()257 txy2 = tregs->x2; in bmc150_magn_compensate_xy()259 txy1 = tregs->y1; in bmc150_magn_compensate_xy()260 txy2 = tregs->y2; in bmc150_magn_compensate_xy()263 val = ((int16_t)(((uint16_t)((((int32_t)tregs->xyz1) << 14) / rhall)) - in bmc150_magn_compensate_xy()265 val = ((int16_t)((((int32_t)xy) * ((((((((int32_t)tregs->xy2) * in bmc150_magn_compensate_xy()267 ((int32_t)(((int16_t)tregs->xy1) << 7)))) >> 9) + in bmc150_magn_compensate_xy()274 static int32_t bmc150_magn_compensate_z(struct bmc150_magn_trim_regs *tregs, in bmc150_magn_compensate_z() argument[all …]
133 struct bmc150_magn_trim_regs tregs; member
227 static int32_t bmm150_compensate_xy(struct bmm150_trim_regs *tregs, in bmm150_compensate_xy() argument240 rhall = tregs->xyz1; in bmm150_compensate_xy()244 txy1 = tregs->x1; in bmm150_compensate_xy()245 txy2 = tregs->x2; in bmm150_compensate_xy()247 txy1 = tregs->y1; in bmm150_compensate_xy()248 txy2 = tregs->y2; in bmm150_compensate_xy()251 prevalue = (uint16_t)((((int32_t)tregs->xyz1) << 14) / rhall); in bmm150_compensate_xy()255 temp1 = (((int32_t)tregs->xy2) * ((((int32_t)val) * ((int32_t)val)) >> 7)); in bmm150_compensate_xy()257 temp2 = ((int32_t)val) * ((int32_t)(((int16_t)tregs->xy1) << 7)); in bmm150_compensate_xy()268 static int32_t bmm150_compensate_z(struct bmm150_trim_regs *tregs, in bmm150_compensate_z() argument[all …]
123 struct bmm150_trim_regs tregs; member