Lines Matching defs:lamp
372 static SANE_Int Lamp_PWM_Setup (struct st_device *dev, SANE_Int lamp);
375 SANE_Int resolution, SANE_Int lamp);
381 SANE_Int turn_on, SANE_Int lamp);
385 SANE_Int lamp, SANE_Int resolution);
1595 /* setting scanner lamp */
1599 /* turn on appropriate lamp */
2362 SANE_Byte lamp;
2372 lamp = FLB_LAMP;
2395 lamp = TMA_LAMP;
2408 lamp = (_B0 (var2) == 0) ? FLB_LAMP : TMA_LAMP;
2426 Lamp_PWM_Setup (dev, lamp);
2480 Lamp_PWM_Setup (struct st_device *dev, SANE_Int lamp)
2484 DBG (DBG_FNC, "+ Lamp_PWM_Setup(lamp=%s):\n",
2485 (lamp == FLB_LAMP) ? "FLB_LAMP" : "TMA_LAMP");
2494 (lamp == FLB_LAMP) ? ST_NORMAL : ST_TA);
2603 /* Check if lamp is at home */
3712 /* enable timer to switch off lamp */
3715 /* set time to switch off lamp */
3811 /* if returns TRUE, lamp is at home. Otherwise it returns FALSE */
4092 which lamp is switched on instead of one variable is that some chipset
7957 Lamp_Warmup (struct st_device *dev, SANE_Byte * Regs, SANE_Int lamp,
7962 DBG (DBG_FNC, "+ Lamp_Warmup(*Regs, lamp=%i, resolution=%i)\n", lamp,
7972 /* ensure that selected lamp is switched on */
7973 if (lamp == FLB_LAMP)
7993 /* tma lamp is turned off */
8005 Lamp_PWM_Setup (dev, lamp);
8009 /*Lamp_PWM_DutyCycle_Set(dev, (lamp == TMA_LAMP)? 0x0e : 0x00); */
8022 Lamp_PWM_CheckStable (dev, resolution, lamp);
8029 /*Lamp_PWM_Setup(dev, lamp);
8034 Lamp_PWM_CheckStable(dev, resolution, lamp);
8076 /* wait till lamp is at home (should use timeout
8102 /* perform lamp warmup */
10346 /* switch off lamp */
10504 /* switch on lamp */
10580 /* Enciende flb lamp */
10598 /* perform lamp warmup */
10739 SANE_Int lamp)
10744 DBG (DBG_FNC, "+ Lamp_Status_Set(*Regs, turn_on=%i->%s, lamp=%s)\n",
10746 ((((lamp - 1) | turn_on) & 1) == 1) ? "Yes" : "No",
10747 (lamp == FLB_LAMP) ? "FLB_LAMP" : "TMA_LAMP");
10765 /* register 0xe946 has 2 bits and each one refers one lamp
10768 data_bitset (&Regs[0x146], 0x20, ((lamp == TMA_LAMP) && (turn_on == TRUE)) ? 1 : 0); /* TMA */
10769 data_bitset (&Regs[0x146], 0x40, ((lamp == FLB_LAMP) && (turn_on == TRUE)) ? 1 : 0); /* FLB */
10771 data_bitset (&Regs[0x155], 0x10, (lamp != FLB_LAMP) ? 1 : 0);
10774 /* the other chipsets only use one bit to indicate when a lamp is
10775 switched on or not being bit 0x10 in 0xe955 who decides which lamp
10777 /* switch on lamp? yes if TMA_LAMP, else whatever turn_on says */
10778 data_bitset (&Regs[0x146], 0x40, ((lamp - 1) | turn_on));
10779 /* what lamp must be switched on? */
10781 data_bitset (&Regs[0x155], 0x10, (lamp != FLB_LAMP) ? 1 : 0);
10786 /* switch on/off lamp */
10790 /* Which lamp */
11139 SANE_Int lamp)
11144 DBG (DBG_FNC, "+ Lamp_PWM_CheckStable(resolution=%i, lamp=%i):\n",
11145 resolution, lamp);
11147 rst = cfg_checkstable_get (lamp, &check);
13280 /* Turn off lamp */
13302 /* Turn on lamp again */
14882 /* Turn off lamp */
14892 /* Turn on lamp again */