Lines Matching refs:bl
1819 … } else if ( uwp->u.bl.dev == WPAD_DEV_BALANCE_CHECKER && uwp->fmt == WPAD_FMT_BALANCE_CHECKER ) { in read_kpad_ext()
1827 if ( WBCGetBatteryLevel( uwp->u.bl.battery ) == 0 ) { in read_kpad_ext()
1829 ep->bl.weight_err = KPAD_WBC_ERR_NO_BATTERY ; in read_kpad_ext()
1832 ep->bl.weight_err = KPAD_WBC_ERR_SETUP ; in read_kpad_ext()
1833 } else if ( uwp->u.bl.temp == 127 || uwp->u.bl.temp == -128 ) { in read_kpad_ext()
1835 ep->bl.weight_err = KPAD_WBC_ERR_WRONG_TEMP ; in read_kpad_ext()
1837 ep->bl.weight_err = WBCRead( &( uwp->u.bl ), ep->bl.weight, WPAD_PRESS_UNITS ) ; in read_kpad_ext()
1838 if ( ep->bl.weight_err >= 0 ) { in read_kpad_ext()
1840 …wbcWeightAve [ idx ] = ( kp->wbcWeightAve[ idx ] * kp_wbc_ave_sample + ep->bl.weight[ idx ] ) / ( … in read_kpad_ext()
1841 ep->bl.weight_ave[ idx ] = kp->wbcWeightAve[ idx ] ; in read_kpad_ext()
1843 err = WBCGetTGCWeight( ep->bl.weight_ave[ 0 ] \ in read_kpad_ext()
1844 + ep->bl.weight_ave[ 1 ] \ in read_kpad_ext()
1845 + ep->bl.weight_ave[ 2 ] \ in read_kpad_ext()
1846 + ep->bl.weight_ave[ 3 ], in read_kpad_ext()
1848 &( uwp->u.bl ) ) ; in read_kpad_ext()
1851 ep->bl.weight_err = err ; in read_kpad_ext()
1854 ep->bl.weight_err = KPAD_WBC_ERR_WRONG_ZERO ; in read_kpad_ext()
1855 ep->bl.tgc_weight = tgc_weight ; in read_kpad_ext()
1857 ep->bl.tgc_weight = tgc_weight ; in read_kpad_ext()
2714 if ( uwp->u.bl.temp == 127 || uwp->u.bl.temp == -128 ) { in KPADiSamplingCallback()
2721 if ( uwp->u.bl.err == WPAD_ERR_NONE ) { in KPADiSamplingCallback()
2723 …] = ( kp->wbcZeroPoint[ 0 ] * ( kp->wbcZeroPointSampleCount - 1 ) + uwp->u.bl.press[ 0 ] ) / kp->w… in KPADiSamplingCallback()
2724 …] = ( kp->wbcZeroPoint[ 1 ] * ( kp->wbcZeroPointSampleCount - 1 ) + uwp->u.bl.press[ 1 ] ) / kp->w… in KPADiSamplingCallback()
2725 …] = ( kp->wbcZeroPoint[ 2 ] * ( kp->wbcZeroPointSampleCount - 1 ) + uwp->u.bl.press[ 2 ] ) / kp->w… in KPADiSamplingCallback()
2726 …] = ( kp->wbcZeroPoint[ 3 ] * ( kp->wbcZeroPointSampleCount - 1 ) + uwp->u.bl.press[ 3 ] ) / kp->w… in KPADiSamplingCallback()
2735 if ( uwp->u.bl.err == WPAD_ERR_NONE ) { in KPADiSamplingCallback()
2737 if ( WBCRead( &( uwp->u.bl ), weight, WPAD_PRESS_UNITS ) >= 0 ) { in KPADiSamplingCallback()