Lines Matching defs:buffer
72 SANE_Int res_y, SANE_Byte * buffer, SANE_Int size);
77 static void dbg_buffer (SANE_Int level, char *title, SANE_Byte * buffer,
79 static void dbg_registers (SANE_Byte * buffer);
546 SANE_Byte * buffer, SANE_Int size)
549 if (buffer != NULL)
590 TIFFWriteRawStrip (image, 0, buffer, size);
610 (void) buffer;
735 dbg_buffer (SANE_Int level, char *title, SANE_Byte * buffer, SANE_Int size,
741 if ((size > 0) && (buffer != NULL))
765 data = _B0 (buffer[cont]);
801 DBG (level, " BF: Empty buffer\n");
806 dbg_registers (SANE_Byte * buffer)
808 /* buffer size must be RT_BUFFER_LEN bytes */
814 iValue = data_lsb_get(&buffer[0x000], 1);
822 iValue = data_lsb_get(&buffer[0x001], 1);
830 dbg_buffer(DBG_FNC, "\n0x0002", &buffer[0x002], 0x0e, 0x02);
832 iValue = data_lsb_get(&buffer[0x010], 1);
838 iValue = data_lsb_get(&buffer[0x011], 1);
842 iValue = data_lsb_get(&buffer[0x012], 1);
846 iValue = data_lsb_get(&buffer[0x013], 1);
854 iValue = data_lsb_get(&buffer[0x014], 1);
859 iValue = data_lsb_get(&buffer[0x015], 1);
864 iValue = data_lsb_get(&buffer[0x016], 1);
869 iValue = data_lsb_get(&buffer[0x017], 1);
874 iValue = data_lsb_get(&buffer[0x018], 1);
879 iValue = data_lsb_get(&buffer[0x019], 1);
884 iValue = data_lsb_get(&buffer[0x01a], 1);
885 iValue2 = data_lsb_get(&buffer[0x01b], 1);
890 iValue = data_lsb_get(&buffer[0x01c], 1);
891 iValue2 = data_lsb_get(&buffer[0x01d], 1);
896 iValue = data_lsb_get(&buffer[0x01e], 1);
897 iValue2 = data_lsb_get(&buffer[0x01f], 1);
902 iValue = data_lsb_get(&buffer[0x020], 1);
903 iValue2 = data_lsb_get(&buffer[0x021], 1);
908 iValue = data_lsb_get(&buffer[0x022], 1);
909 iValue2 = data_lsb_get(&buffer[0x023], 1);
914 iValue = data_lsb_get(&buffer[0x024], 1);
915 iValue2 = data_lsb_get(&buffer[0x025], 1);
920 dbg_buffer(DBG_FNC, "\n0x0026", &buffer[0x026], 0x03, 0x26);
922 iValue = data_lsb_get(&buffer[0x029], 1);
926 dbg_buffer(DBG_FNC, "\n0x002a", &buffer[0x02a], 0x06, 0x2a);
929 iValue = data_lsb_get(&buffer[0x030], 3);
932 iValue = data_lsb_get(&buffer[0x033], 3);
935 iValue = data_lsb_get(&buffer[0x036], 3);
938 iValue = data_lsb_get(&buffer[0x039], 3);
941 iValue = data_lsb_get(&buffer[0x03c], 3);
944 iValue = data_lsb_get(&buffer[0x03f], 3);
947 iValue = data_lsb_get(&buffer[0x042], 3);
950 iValue = data_lsb_get(&buffer[0x045], 1);
956 iValue = data_lsb_get(&buffer[0x046], 1);
961 iValue = data_lsb_get(&buffer[0x047], 1);
965 iValue = data_lsb_get(&buffer[0x04c], 0x01) & 0x0f;
967 iValue = data_lsb_get(&buffer[0x04a], 0x02);
968 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x048], 0x02);
971 iValue = data_lsb_get(&buffer[0x04c], 0x01);
977 iValue = data_lsb_get(&buffer[0x051], 0x01) & 0x0f;
979 iValue = data_lsb_get(&buffer[0x04f], 0x02);
980 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x04d], 0x02);
984 iValue = data_lsb_get(&buffer[0x056], 1) & 0x0f;
986 iValue = data_lsb_get(&buffer[0x054], 2);
987 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x052], 2);
990 iValue = data_lsb_get(&buffer[0x056], 1);
997 iValue = data_lsb_get(&buffer[0x05b], 0x01) & 0x0f;
999 iValue = data_lsb_get(&buffer[0x059], 0x02);
1000 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x057], 0x02);
1003 iValue = data_lsb_get(&buffer[0x05b], 0x01);
1010 iValue = data_lsb_get(&buffer[0x060], 0x01) & 0x0f;
1012 iValue = data_lsb_get(&buffer[0x05e], 0x02);
1013 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x05c], 0x02);
1016 iValue = data_lsb_get(&buffer[0x060], 0x01);
1022 iValue = data_lsb_get(&buffer[0x065], 0x01) & 0x0f;
1024 iValue = data_lsb_get(&buffer[0x063], 0x02);
1025 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x061], 0x02);
1028 iValue = data_lsb_get(&buffer[0x065], 0x01);
1035 iValue = data_lsb_get(&buffer[0x06a], 0x01) & 0x0f;
1037 iValue = data_lsb_get(&buffer[0x068], 0x02);
1038 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x066], 0x02);
1041 iValue = data_lsb_get(&buffer[0x06a], 0x01);
1047 iValue = data_lsb_get(&buffer[0x06f], 0x01) & 0x0f;
1049 iValue = data_lsb_get(&buffer[0x06d], 0x02);
1050 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x06b], 0x02);
1053 iValue = data_lsb_get(&buffer[0x06f], 0x01);
1060 iValue = data_lsb_get(&buffer[0x074], 0x01) & 0x0f;
1062 iValue = data_lsb_get(&buffer[0x072], 0x02);
1063 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x070], 0x02);
1066 iValue = data_lsb_get(&buffer[0x074], 0x01);
1072 iValue = data_lsb_get(&buffer[0x079], 0x01) & 0x0f;
1074 iValue = data_lsb_get(&buffer[0x077], 0x02);
1075 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x075], 0x02);
1078 iValue = data_lsb_get(&buffer[0x079], 0x01);
1085 iValue = data_lsb_get(&buffer[0x07e], 0x01) & 0x0f;
1087 iValue = data_lsb_get(&buffer[0x07c], 0x02);
1088 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x07a], 0x02);
1091 iValue = data_lsb_get(&buffer[0x07e], 0x01);
1097 iValue = data_lsb_get(&buffer[0x083], 0x01) & 0x0f;
1099 iValue = data_lsb_get(&buffer[0x081], 0x02);
1100 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x07f], 0x02);
1103 iValue = data_lsb_get(&buffer[0x083], 0x01);
1110 iValue = data_lsb_get(&buffer[0x084], 3);
1114 iValue = data_lsb_get(&buffer[0x087], 3);
1118 iValue = data_lsb_get(&buffer[0x08a], 3);
1122 iValue = data_lsb_get(&buffer[0x08d], 3);
1126 iValue = data_lsb_get(&buffer[0x092], 0x01);
1131 iValue = data_lsb_get(&buffer[0x093], 0x01);
1136 iValue = data_lsb_get(&buffer[0x094], 0x01);
1141 iValue = data_lsb_get(&buffer[0x095], 0x01);
1146 iValue = data_lsb_get(&buffer[0x096], 0x01);
1151 iValue = data_lsb_get(&buffer[0x09b], 0x01) & 0x0f;
1153 iValue = data_lsb_get(&buffer[0x099], 0x02);
1154 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x097], 0x02);
1157 iValue = data_lsb_get(&buffer[0x09b], 0x01);
1164 dbg_buffer(DBG_FNC, "\n0x009c CIS sensor 1", &buffer[0x09c], 0x06, 0x9c);
1165 dbg_buffer(DBG_FNC, "0x00a2 CIS sensor 2", &buffer[0x0a2], 0x06, 0xa2);
1166 dbg_buffer(DBG_FNC, "0x00a8 CIS sensor 3", &buffer[0x0a8], 0x06, 0xa8);
1168 iValue = data_lsb_get(&buffer[0x0ae], 0x01);
1173 iValue = data_lsb_get(&buffer[0x0af], 0x01);
1178 iValue = data_lsb_get(&buffer[0x0b0], 2);
1182 iValue = data_lsb_get(&buffer[0x0b2], 2);
1186 dbg_buffer(DBG_FNC, "\n0x00b4", &buffer[0x0b4], 12, 0xb4);
1188 iValue = data_lsb_get(&buffer[0x0c0], 0x01);
1193 iValue = data_lsb_get(&buffer[0x0c5], 0x01) & 0x0f;
1195 iValue = data_lsb_get(&buffer[0x0c3], 0x02);
1196 dValue = dValue + (iValue * pow(2, 16)) + data_lsb_get(&buffer[0x0c1], 2);
1199 iValue = data_lsb_get(&buffer[0x0c5], 0x01);
1206 dbg_buffer(DBG_FNC, "\n0x00c6", &buffer[0x0c6], 0x0a, 0xc6);
1208 iValue = ((buffer[0x0d4] & 0x0f) << 0x10) + data_lsb_get(&buffer[0x0d0], 0x02);
1212 iValue = ((buffer[0x0d4] & 0xf0) << 0x06)+ data_lsb_get(&buffer[0x0d2], 0x02);
1216 iValue = _B0(buffer[0x0d5]);
1220 iValue = data_lsb_get(&buffer[0x0d6], 1);
1225 iValue = data_lsb_get(&buffer[0x0d7], 0x01);
1234 iValue = data_lsb_get(&buffer[0x0d8], 0x01);
1240 iValue = data_lsb_get(&buffer[0x0d9], 0x01);
1258 iValue = data_lsb_get(&buffer[0x0dd], 0x01);
1260 DBG(DBG_FNC, " msi = 0x%03x\n", ((iValue & 3) << 8) + data_lsb_get(&buffer[0x0da], 1));
1263 DBG(DBG_FNC, " motorbackstep1 = 0x%03x\n", ((iValue & 0x0c) << 6) + data_lsb_get(&buffer[0x0db], 1));
1266 DBG(DBG_FNC, " motorbackstep2 = 0x%03x\n", ((iValue & 0x30) << 4) + data_lsb_get(&buffer[0x0dc], 1));
1268 iValue = data_lsb_get(&buffer[0x0dd], 0x01);
1275 iValue = data_lsb_get(&buffer[0x0de], 0x02);
1280 iValue = data_lsb_get(&buffer[0x0df], 0x01);
1286 iValue = data_lsb_get(&buffer[0x0e0], 1);
1289 iValue = data_lsb_get(&buffer[0x0e1], 3);
1292 iValue = data_lsb_get(&buffer[0x0e4], 3);
1295 iValue = data_lsb_get(&buffer[0x0e7], 3);
1298 iValue = data_lsb_get(&buffer[0x0ea], 3);
1301 iValue = data_lsb_get(&buffer[0x0ed], 3);
1304 iValue = data_lsb_get(&buffer[0x0f0], 3);
1307 iValue = data_lsb_get(&buffer[0x0f3], 3);
1310 iValue = data_lsb_get(&buffer[0x0f6], 2);
1314 iValue = data_lsb_get(&buffer[0x0f8], 2);
1319 iValue = data_lsb_get(&buffer[0x0fa], 2);
1324 iValue = data_lsb_get(&buffer[0x0fc], 2);
1329 iValue = data_lsb_get(&buffer[0x0fe], 2);
1334 iValue = data_lsb_get(&buffer[0x100], 2);
1339 iValue = data_lsb_get(&buffer[0x102], 2);
1344 dbg_buffer(DBG_FNC, "\n0x0104 Motor resource", &buffer[0x104], 0x20, 0x104);
1346 dbg_buffer(DBG_FNC, "\n0x0124", &buffer[0x124], 0x22, 0x124);
1348 iValue = data_lsb_get(&buffer[0x146], 1);
1359 iValue = data_lsb_get(&buffer[0x147], 1);
1363 iValue = data_lsb_get(&buffer[0x148], 1);
1368 iValue = data_lsb_get(&buffer[0x149], 1);
1373 iValue = data_lsb_get(&buffer[0x14a], 1);
1378 iValue = data_lsb_get(&buffer[0x14b], 1);
1383 iValue = data_lsb_get(&buffer[0x14c], 1);
1388 iValue = data_lsb_get(&buffer[0x14d], 1);
1393 iValue = data_lsb_get(&buffer[0x14e], 1);
1399 dbg_buffer(DBG_FNC, "\n0x014f", &buffer[0x14f], 0x05, 0x14f);
1401 iValue = data_lsb_get(&buffer[0x154], 1);
1407 iValue = data_lsb_get(&buffer[0x155], 1);
1416 dbg_buffer(DBG_FNC, "\n0x0156", &buffer[0x156], 0x02, 0x156);
1418 iValue = data_lsb_get(&buffer[0x158], 1);
1426 dbg_buffer(DBG_FNC, "\n0x0159", &buffer[0x159], 11, 0x159);
1428 iValue = data_lsb_get(&buffer[0x164], 1);
1433 dbg_buffer(DBG_FNC, "\n0x0165", &buffer[0x165], 3, 0x165);
1435 iValue = data_lsb_get(&buffer[0x168], 1);
1446 iValue = data_lsb_get(&buffer[0x169], 1);
1452 iValue = data_lsb_get(&buffer[0x16a], 1);
1463 dbg_buffer(DBG_FNC, "\n0x016b", &buffer[0x16b], 4, 0x16b);
1465 iValue = data_lsb_get(&buffer[0x16f], 1);
1471 dbg_buffer(DBG_FNC, "\n0x0170", &buffer[0x170], 0x17, 0x170);
1473 iValue = data_lsb_get(&buffer[0x187], 1);
1478 dbg_buffer(DBG_FNC, "\n0x0188", &buffer[0x188], 0x16, 0x188);
1480 iValue = data_lsb_get(&buffer[0x19e], 2);
1484 iValue = data_lsb_get(&buffer[0x1a0], 2);
1488 dbg_buffer(DBG_FNC, "\n0x01a2", &buffer[0x1a2], 0x12, 0x1a2);
1490 iValue = data_lsb_get(&buffer[0x1b4], 2);
1495 iValue = data_lsb_get(&buffer[0x1b6], 2);
1500 iValue = data_lsb_get(&buffer[0x1b8], 2);
1505 iValue = data_lsb_get(&buffer[0x1ba], 1);
1509 iValue = data_lsb_get(&buffer[0x1bb], 2);
1511 DBG(DBG_FNC, " ? : 0x%04x\n", iValue + ((data_lsb_get(&buffer[0x1bf], 1) & 1) << 16));
1513 iValue = data_lsb_get(&buffer[0x1bd], 2);
1515 DBG(DBG_FNC, " ? : 0x%04x\n", iValue + (((data_lsb_get(&buffer[0x1bf], 1) >> 1) & 3) << 16));
1517 iValue = data_lsb_get(&buffer[0x1c0], 3);
1521 iValue = data_lsb_get(&buffer[0x1bf], 2);
1526 iValue = data_lsb_get(&buffer[0x1c2], 3);
1530 iValue = data_lsb_get(&buffer[0x1c5], 3);
1535 dbg_buffer(DBG_FNC, "\n0x01c8", &buffer[0x1c8], 7, 0x1c8);
1537 iValue = data_lsb_get(&buffer[0x1cf], 3);
1558 iValue = data_lsb_get(&buffer[0x1d0], 1);
1574 dbg_buffer(DBG_FNC, "\n0x01d1", &buffer[0x1d1], 0x430, 0x1d1);