Lines Matching refs:curSetting
294 struct aiptek_settings curSetting; /* tablet's current programmable */ member
454 if (aiptek->curSetting.coordinateMode == in aiptek_irq()
471 left = (data[1] & aiptek->curSetting.mouseButtonLeft >> 2) != 0 ? 1 : 0; in aiptek_irq()
472 right = (data[1] & aiptek->curSetting.mouseButtonRight >> 2) != 0 ? 1 : 0; in aiptek_irq()
473 middle = (data[1] & aiptek->curSetting.mouseButtonMiddle >> 2) != 0 ? 1 : 0; in aiptek_irq()
487 if (aiptek->curSetting.wheel != AIPTEK_WHEEL_DISABLE) { in aiptek_irq()
489 aiptek->curSetting.wheel); in aiptek_irq()
490 aiptek->curSetting.wheel = AIPTEK_WHEEL_DISABLE; in aiptek_irq()
504 if (aiptek->curSetting.coordinateMode == AIPTEK_COORDINATE_RELATIVE_MODE) { in aiptek_irq()
507 (aiptek->curSetting.pointerMode)) { in aiptek_irq()
522 bs = (data[5] & aiptek->curSetting.stylusButtonLower) != 0 ? 1 : 0; in aiptek_irq()
523 pck = (data[5] & aiptek->curSetting.stylusButtonUpper) != 0 ? 1 : 0; in aiptek_irq()
534 aiptek->curSetting.toolMode) { in aiptek_irq()
538 aiptek->curSetting.toolMode, in aiptek_irq()
541 aiptek->curSetting.toolMode; in aiptek_irq()
553 if (aiptek->curSetting.xTilt != in aiptek_irq()
557 aiptek->curSetting.xTilt); in aiptek_irq()
559 if (aiptek->curSetting.yTilt != AIPTEK_TILT_DISABLE) { in aiptek_irq()
562 aiptek->curSetting.yTilt); in aiptek_irq()
568 if (aiptek->curSetting.wheel != in aiptek_irq()
572 aiptek->curSetting.wheel); in aiptek_irq()
573 aiptek->curSetting.wheel = AIPTEK_WHEEL_DISABLE; in aiptek_irq()
589 if (aiptek->curSetting.coordinateMode == AIPTEK_COORDINATE_RELATIVE_MODE) { in aiptek_irq()
592 (aiptek->curSetting.pointerMode)) { in aiptek_irq()
602 left = (data[5] & aiptek->curSetting.mouseButtonLeft) != 0 ? 1 : 0; in aiptek_irq()
603 right = (data[5] & aiptek->curSetting.mouseButtonRight) != 0 ? 1 : 0; in aiptek_irq()
604 middle = (data[5] & aiptek->curSetting.mouseButtonMiddle) != 0 ? 1 : 0; in aiptek_irq()
611 aiptek->curSetting.toolMode) { in aiptek_irq()
615 aiptek->curSetting.toolMode, in aiptek_irq()
618 aiptek->curSetting.toolMode; in aiptek_irq()
632 if (aiptek->curSetting.wheel != AIPTEK_WHEEL_DISABLE) { in aiptek_irq()
635 aiptek->curSetting.wheel); in aiptek_irq()
636 aiptek->curSetting.wheel = AIPTEK_WHEEL_DISABLE; in aiptek_irq()
657 bs = (data[1] & aiptek->curSetting.stylusButtonLower) != 0 ? 1 : 0; in aiptek_irq()
658 pck = (data[1] & aiptek->curSetting.stylusButtonUpper) != 0 ? 1 : 0; in aiptek_irq()
668 aiptek->curSetting.toolMode) { in aiptek_irq()
672 aiptek->curSetting.toolMode, in aiptek_irq()
675 aiptek->curSetting.toolMode; in aiptek_irq()
699 left = (data[1]& aiptek->curSetting.mouseButtonLeft) != 0 ? 1 : 0; in aiptek_irq()
700 right = (data[1] & aiptek->curSetting.mouseButtonRight) != 0 ? 1 : 0; in aiptek_irq()
701 middle = (data[1] & aiptek->curSetting.mouseButtonMiddle) != 0 ? 1 : 0; in aiptek_irq()
709 aiptek->curSetting.toolMode) { in aiptek_irq()
713 aiptek->curSetting.toolMode, 1); in aiptek_irq()
714 aiptek->previousToolMode = aiptek->curSetting.toolMode; in aiptek_irq()
753 aiptek->curSetting.toolMode) { in aiptek_irq()
757 aiptek->curSetting.toolMode, in aiptek_irq()
760 aiptek->curSetting.toolMode; in aiptek_irq()
784 aiptek->curSetting.jitterDelay != 0 && aiptek->inDelay != 1) { in aiptek_irq()
786 ((aiptek->curSetting.jitterDelay * HZ) / 1000); in aiptek_irq()
932 msleep(aiptek->curSetting.programmableDelay); in aiptek_query()
990 if (aiptek->curSetting.coordinateMode == in aiptek_program_tablet()
1067 aiptek->curSetting.pointerMode)); in show_tabletPointerMode()
1103 aiptek->curSetting.coordinateMode)); in show_tabletCoordinateMode()
1144 aiptek->curSetting.toolMode)); in show_tabletToolMode()
1172 if (aiptek->curSetting.xTilt == AIPTEK_TILT_DISABLE) { in show_tabletXtilt()
1175 return sysfs_emit(buf, "%d\n", aiptek->curSetting.xTilt); in show_tabletXtilt()
1213 if (aiptek->curSetting.yTilt == AIPTEK_TILT_DISABLE) { in show_tabletYtilt()
1216 return sysfs_emit(buf, "%d\n", aiptek->curSetting.yTilt); in show_tabletYtilt()
1254 return sysfs_emit(buf, "%d\n", aiptek->curSetting.jitterDelay); in show_tabletJitterDelay()
1283 return sysfs_emit(buf, "%d\n", aiptek->curSetting.programmableDelay); in show_tabletProgrammableDelay()
1340 if (aiptek->curSetting.pointerMode == in show_tabletDiagnosticMessage()
1372 aiptek->curSetting.stylusButtonUpper)); in show_tabletStylusUpper()
1402 aiptek->curSetting.stylusButtonLower)); in show_tabletStylusLower()
1439 aiptek->curSetting.mouseButtonLeft)); in show_tabletMouseLeft()
1468 aiptek->curSetting.mouseButtonMiddle)); in show_tabletMouseMiddle()
1497 aiptek->curSetting.mouseButtonRight)); in show_tabletMouseRight()
1525 if (aiptek->curSetting.wheel == AIPTEK_WHEEL_DISABLE) { in show_tabletWheel()
1528 return sysfs_emit(buf, "%d\n", aiptek->curSetting.wheel); in show_tabletWheel()
1569 memcpy(&aiptek->curSetting, &aiptek->newSetting, in store_tabletExecute()
1711 aiptek->curSetting.pointerMode = AIPTEK_POINTER_EITHER_MODE; in aiptek_probe()
1712 aiptek->curSetting.coordinateMode = AIPTEK_COORDINATE_ABSOLUTE_MODE; in aiptek_probe()
1713 aiptek->curSetting.toolMode = AIPTEK_TOOL_BUTTON_PEN_MODE; in aiptek_probe()
1714 aiptek->curSetting.xTilt = AIPTEK_TILT_DISABLE; in aiptek_probe()
1715 aiptek->curSetting.yTilt = AIPTEK_TILT_DISABLE; in aiptek_probe()
1716 aiptek->curSetting.mouseButtonLeft = AIPTEK_MOUSE_LEFT_BUTTON; in aiptek_probe()
1717 aiptek->curSetting.mouseButtonMiddle = AIPTEK_MOUSE_MIDDLE_BUTTON; in aiptek_probe()
1718 aiptek->curSetting.mouseButtonRight = AIPTEK_MOUSE_RIGHT_BUTTON; in aiptek_probe()
1719 aiptek->curSetting.stylusButtonUpper = AIPTEK_STYLUS_UPPER_BUTTON; in aiptek_probe()
1720 aiptek->curSetting.stylusButtonLower = AIPTEK_STYLUS_LOWER_BUTTON; in aiptek_probe()
1721 aiptek->curSetting.jitterDelay = jitterDelay; in aiptek_probe()
1722 aiptek->curSetting.programmableDelay = programmableDelay; in aiptek_probe()
1726 aiptek->newSetting = aiptek->curSetting; in aiptek_probe()
1820 aiptek->curSetting.programmableDelay = speeds[i]; in aiptek_probe()
1825 aiptek->curSetting.programmableDelay); in aiptek_probe()