Lines Matching refs:tpu
233 DBG (3, ">> get tpu stat\n");
246 dev->tpu.Status = (tbuf[2 + 4 + 5] >> 7) ?
248 if (dev->tpu.Status != TPU_STAT_NONE) /* TPU available */
250 dev->tpu.Status = (tbuf[2 + 4 + 5] & 0x04) ?
253 dev->tpu.ControlMode = tbuf[3 + 4 + 5] & 0x03;
254 dev->tpu.Transparency = tbuf[4 + 4 + 5] * 256 + tbuf[5 + 4 + 5];
255 dev->tpu.PosNeg = tbuf[6 + 4 + 5] & 0x01;
256 dev->tpu.FilmType = tbuf[7 + 4 + 5];
257 if(dev->tpu.FilmType > 3)
258 dev->tpu.FilmType = 0;
260 DBG (11, "TPU Status: %d\n", dev->tpu.Status);
261 DBG (11, "TPU ControlMode: %d\n", dev->tpu.ControlMode);
262 DBG (11, "TPU Transparency: %d\n", dev->tpu.Transparency);
263 DBG (11, "TPU PosNeg: %d\n", dev->tpu.PosNeg);
264 DBG (11, "TPU FilmType: %d\n", dev->tpu.FilmType);
266 DBG (3, "<< get tpu stat\n");
846 dev->tpu.Status = TPU_STAT_NONE;
862 dev->tpu.Status = TPU_STAT_NONE;
878 dev->tpu.Status = TPU_STAT_NONE;
894 dev->tpu.Status = TPU_STAT_INACTIVE;
909 dev->tpu.Status = TPU_STAT_INACTIVE;
924 dev->tpu.Status = TPU_STAT_INACTIVE;
954 if (dev->tpu.Status != TPU_STAT_NONE)
1733 (s->hw->tpu.Status != TPU_STAT_NONE) ? 0 : SANE_CAP_INACTIVE;
1743 (s->hw->tpu.Status == TPU_STAT_ACTIVE) ? SANE_TRUE : SANE_FALSE;
1745 (s->hw->tpu.Status != TPU_STAT_NONE) ? 0 : SANE_CAP_INACTIVE;
1752 s->val[OPT_TPU_PN].w = s->hw->tpu.PosNeg;
1754 (s->hw->tpu.Status == TPU_STAT_ACTIVE) ? 0 : SANE_CAP_INACTIVE;
1764 s->val[OPT_TPU_DCM].s = strdup (tpu_dc_mode_list[s->hw->tpu.ControlMode]);
1766 (s->hw->tpu.Status == TPU_STAT_ACTIVE) ? 0 : SANE_CAP_INACTIVE;
1777 s->val[OPT_TPU_TRANSPARENCY].w = s->hw->tpu.Transparency;
1779 (s->hw->tpu.Status == TPU_STAT_ACTIVE &&
1780 s->hw->tpu.ControlMode == 3) ? 0 : SANE_CAP_INACTIVE;
1791 strdup (tpu_filmtype_list[s->hw->tpu.FilmType]);
1793 (s->hw->tpu.Status == TPU_STAT_ACTIVE && s->hw->tpu.ControlMode == 1) ?