Lines Matching defs:cph
458 struct st_cph *cph);
5028 Timing_SetLinearImageSensorClock (SANE_Byte * Regs, struct st_cph *cph)
5033 "+ Timing_SetLinearImageSensorClock(SANE_Byte *Regs, struct st_cph *cph)\n");
5035 dbg_sensorclock (cph);
5037 if ((Regs != NULL) && (cph != NULL))
5039 Regs[0x00] = get_byte (cph->p1);
5040 Regs[0x01] = get_byte (get_shrd (cph->p1, 0x08));
5041 Regs[0x02] = get_byte (get_shrd (cph->p1, 0x10));
5042 Regs[0x03] = get_byte (get_shrd (cph->p1, 0x18));
5045 Regs[0x04] |= ((get_byte (get_shrd (cph->p1, 0x20))) & 0x0f);
5046 Regs[0x04] |= ((cph->ps & 1) << 6);
5047 Regs[0x04] |= ((cph->ge & 1) << 5);
5048 Regs[0x04] |= ((cph->go & 1) << 4);
5050 Regs[0x05] = get_byte (cph->p2);
5051 Regs[0x06] = get_byte (get_shrd (cph->p2, 0x08));
5052 Regs[0x07] = get_byte (get_shrd (cph->p2, 0x10));
5053 Regs[0x08] = get_byte (get_shrd (cph->p2, 0x18));
5055 Regs[0x09] |= ((get_byte (get_shrd (cph->p2, 0x20))) & 0x0f);
5126 Timing_SetLinearImageSensorClock (&Regs[0x48], &mt->cph[0]);
5127 Timing_SetLinearImageSensorClock (&Regs[0x52], &mt->cph[1]);
5128 Timing_SetLinearImageSensorClock (&Regs[0x5c], &mt->cph[2]);
5129 Timing_SetLinearImageSensorClock (&Regs[0x66], &mt->cph[3]);
5130 Timing_SetLinearImageSensorClock (&Regs[0x70], &mt->cph[4]);
5131 Timing_SetLinearImageSensorClock (&Regs[0x7a], &mt->cph[5]);