Lines Matching refs:offset
328 pmcd.offset = 0; in pm_32k_rc_offset_init()
351 pmcd.offset = 0; in pm_ble_32k_rc_cal_reset()
360 int offset = offset_tick * (256 * 31) / rc32_cnt; //256mS / sleep_period in pm_ble_cal_32k_rc_offset() local
367 if (offset > thres) in pm_ble_cal_32k_rc_offset()
369 offset = thres; in pm_ble_cal_32k_rc_offset()
371 else if (offset < -thres) in pm_ble_cal_32k_rc_offset()
373 offset = -thres; in pm_ble_cal_32k_rc_offset()
376 pmcd.offset += (offset - pmcd.offset) >> 4; in pm_ble_cal_32k_rc_offset()
382 int offset = offset_tick * (240 * 31) / pmcd.rc32; //240ms / sleep_period in pm_cal_32k_rc_offset() local
383 if (offset > 0x100) in pm_cal_32k_rc_offset()
385 offset = 0x100; in pm_cal_32k_rc_offset()
387 else if (offset < -0x100) in pm_cal_32k_rc_offset()
389 offset = -0x100; in pm_cal_32k_rc_offset()
392 pmcd.offset += (offset - pmcd.offset) >> 4; in pm_cal_32k_rc_offset()
416 int offset = (pmcd.offset * (pmcd.tc >> 4)) >> 18; //offset : tick per 256ms in pm_get_32k_rc_calib() local
417 offset = (pmcd.tc >> 4) + offset; in pm_get_32k_rc_calib()
418 return (unsigned int)offset; in pm_get_32k_rc_calib()