Lines Matching defs:myreg
93 static SANE_Int bq5550_gainoffset(SANE_Int usb, struct st_gain_offset *myreg);
94 static SANE_Int ua4900_gainoffset(SANE_Int usb, struct st_gain_offset *myreg);
95 static SANE_Int hp3800_gainoffset(SANE_Int usb, struct st_gain_offset *myreg);
96 static SANE_Int hp3970_gainoffset(SANE_Int usb, SANE_Int sensor, struct st_gain_offset *myreg);
97 static SANE_Int hp4370_gainoffset(SANE_Int usb, struct st_gain_offset *myreg);
367 struct st_myreg myreg[] =
383 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
387 if ((vendor == myreg[a].vendor)&&(product == myreg[a].product))
389 rst = myreg[a].device;
406 struct st_myreg myreg[] =
422 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
426 if (device == myreg[a].device)
428 rst = myreg[a].chipset;
490 struct st_myreg myreg[] =
505 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
509 if (RTS_Debug->dev_model == myreg[a].device)
511 memcpy(reg, &myreg[a].value, sizeof(struct st_buttons));
536 struct st_myreg myreg[] =
551 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
560 if (RTS_Debug->dev_model == myreg[a].device)
562 *enable = myreg[a].value[0];
563 *mode = myreg[a].value[1];
564 *clock = myreg[a].value[2];
588 struct st_myreg myreg[] =
603 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
611 if (RTS_Debug->dev_model == myreg[a].device)
613 memcpy(reg, &myreg[a].motor, sizeof(struct st_motorcfg));
638 struct st_myreg myreg[] =
653 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
661 if (RTS_Debug->dev_model == myreg[a].device)
663 memcpy(reg, &myreg[a].sensor, sizeof(struct st_sensorcfg));
686 struct st_reg myreg[] =
696 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
702 if ((myreg[a].usb == usb)&&(myreg[a].sensor == sensor))
704 *vrts = myreg[a].values[0];
705 *vrms = myreg[a].values[1];
706 *vrbs = myreg[a].values[2];
722 struct st_reg myreg[] =
734 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
740 if ((myreg[a].usb == usb)&&(myreg[a].sensor == sensor))
742 *vrts = myreg[a].values[0];
743 *vrms = myreg[a].values[1];
744 *vrbs = myreg[a].values[2];
786 struct st_reg myreg[] =
799 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
803 if (myreg[a].resolution == resolution)
807 *left = myreg[a].values[scantype].left;
808 *width = myreg[a].values[scantype].width;
833 struct st_reg myreg[] =
855 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
859 if ((myreg[a].sensor == sensor)&&(myreg[a].resolution == resolution))
863 *left = myreg[a].values[scantype].left;
864 *width = myreg[a].values[scantype].width;
888 struct st_reg myreg[] =
902 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
906 if (myreg[a].resolution == resolution)
910 *left = myreg[a].values[scantype].left;
911 *width = myreg[a].values[scantype].width;
935 struct st_reg myreg[] =
949 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
953 if (myreg[a].resolution == resolution)
957 *left = myreg[a].values[scantype].left;
958 *width = myreg[a].values[scantype].width;
1089 struct st_reg myreg[] =
1105 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
1109 if (myreg[a].device == RTS_Debug->dev_model)
1111 memcpy(reg, &myreg[a].value, sizeof(struct st_autoref));
1289 static SANE_Int bq5550_gainoffset(SANE_Int usb, struct st_gain_offset *myreg)
1306 if (myreg != NULL)
1315 memcpy(myreg, ®[a].values, sizeof(struct st_gain_offset));
1325 static SANE_Int hp3800_gainoffset(SANE_Int usb, struct st_gain_offset *myreg)
1342 if (myreg != NULL)
1351 memcpy(myreg, ®[a].values, sizeof(struct st_gain_offset));
1361 static SANE_Int hp3970_gainoffset(SANE_Int usb, SANE_Int sensor, struct st_gain_offset *myreg)
1382 if (myreg != NULL)
1391 memcpy(myreg, ®[a].values, sizeof(struct st_gain_offset));
1401 static SANE_Int hp4370_gainoffset(SANE_Int usb, struct st_gain_offset *myreg)
1418 if (myreg != NULL)
1427 memcpy(myreg, ®[a].values, sizeof(struct st_gain_offset));
1437 static SANE_Int ua4900_gainoffset(SANE_Int usb, struct st_gain_offset *myreg)
1454 if (myreg != NULL)
1463 memcpy(myreg, ®[a].values, sizeof(struct st_gain_offset));