Lines Matching refs:hw
234 HWDef *hw = &dev->usbDev.HwSetting;
252 if( (hw->motorModel == MODEL_Tokyo600) ||
253 !_IS_PLUSTEKMOTOR(hw->motorModel)) {
285 HWDef *hw = &dev->usbDev.HwSetting;
292 regs[0x26] = hw->bReg_0x26 & 0x7;
301 memcpy( ®s[0x0f], hw->bReg_0x0f_Color, 10 );
306 regs[0x26] = (hw->bReg_0x26 & 0x18) | 0x04;
307 memcpy( ®s[0x0f], hw->bReg_0x0f_Mono, 10 );
312 regs[0x26] = (hw->bReg_0x26 & 0x18) | 0x04;
313 memcpy( ®s[0x0f], hw->bReg_0x0f_Mono, 10 );
317 regs[0x27] = hw->bReg_0x27;
384 HWDef *hw = &dev->usbDev.HwSetting;
412 wDataPixelStart += hw->wActivePixelsStart;
442 if( hw->motorModel == MODEL_Tokyo600 ) {
494 sp->Origin.y=(u_short)((u_long)sp->Origin.y * hw->wMotorDpi/300UL);
497 if( hw->motorModel == MODEL_HuaLien && sCaps->OpticDpi.x == 600)
514 HWDef *hw = &dev->usbDev.HwSetting;
518 (double)m_bCM * hw->dMaxMotorSpeed * 4.0 * (double)hw->wMotorDpi));
539 HWDef *hw = &dev->usbDev.HwSetting;
545 if( _LM9831 == hw->chip )
591 HWDef *hw = &dev->usbDev.HwSetting;
600 min_int_time = ((regs[0x9]&7) > 2 ? hw->dMinIntegrationTimeLowres:
601 hw->dMinIntegrationTimeHighres);
663 HWDef *hw = &dev->usbDev.HwSetting;
693 if( hw->motorModel == MODEL_HuaLien &&
698 if(((hw->motorModel == MODEL_HP) && (sCaps->bCCD == kNECSLIM))/* ||
735 dMaxIntegrationTime = hw->dIntegrationTimeHighLamp;
743 regs[0x2a] = _HIBYTE( hw->wGreenPWMDutyCycleLow );
744 regs[0x2b] = _LOBYTE( hw->wGreenPWMDutyCycleLow );
749 regs[0x2a] = _HIBYTE( hw->wGreenPWMDutyCycleHigh );
750 regs[0x2b] = _LOBYTE( hw->wGreenPWMDutyCycleHigh );
762 HWDef *hw = &dev->usbDev.HwSetting;
769 (4 * hw->wMotorDpi * m_bIntTimeAdjust));
772 m_bLineRateColor) / (4 * hw->wMotorDpi));
812 HWDef *hw = &dev->usbDev.HwSetting;
813 ClkMotorDef *motor = usb_GetMotorSet( hw->motorModel );
856 le = hw->wLineEnd;
916 HWDef *hw = &dev->usbDev.HwSetting;
919 if (!_IS_PLUSTEKMOTOR(hw->motorModel)) {
921 clk = usb_GetMotorSet( hw->motorModel );
954 switch( hw->motorModel ) {
987 switch ( hw->motorModel ) {
1065 HWDef *hw = &dev->usbDev.HwSetting;
1069 if( hw->bReg_0x26 & _ONE_CH_COLOR ) {
1089 m_dwPauseLimit = (u_long)(hw->wDRAMSize - (u_long)(coeffsize));
1103 regs[0x4e] = (u_char)floor((m_dwPauseLimit*512.0)/(2.0*hw->wDRAMSize));
1156 HWDef *hw = &dev->usbDev.HwSetting;
1168 dSaveMoveSpeed = hw->dMaxMoveSpeed;
1170 hw->dMaxMoveSpeed = 1.0;
1198 regs[0x50] = hw->bStepsToReverse;
1199 regs[0x51] = hw->bReg_0x51;
1206 regs[0x50] = hw->bStepsToReverse;
1231 (m_dMCLKDivider * 8 * m_bCM * hw->dMaxMoveSpeed *
1232 4 * hw->wMotorDpi));
1234 if((hw->bReg_0x26 & _ONE_CH_COLOR) && (m_bCM == 1)) {
1304 hw->wMotorDpi / pParam->PhyDpi.y);
1306 hw->wMotorDpi, pParam->PhyDpi.y );
1332 HWDef *hw = &dev->usbDev.HwSetting;
1356 if( _LM9831 == hw->chip ) {
1368 u_long dwBytesToRead = m_bOldScanData * hw->wDRAMSize * 4;
1401 inches = (u_short)((m_pParam->Origin.y *300UL)/hw->wMotorDpi);
1580 HWDef *hw = &dev->usbDev.HwSetting;
1603 if( hw->bReg_0x26 & _ONE_CH_COLOR )