Lines Matching refs:jbuf
966 struct inquiry_jis_data jbuf;
1065 memset (&jbuf, 0, sizeof (jbuf));
1066 buf_size = sizeof (jbuf);
1067 status = inquiry (fd, &jbuf, &buf_size, 1, HS2P_INQUIRY_JIS_PAGE_CODE);
1075 print_jis_info (&jbuf);
1289 dev->info.resBasicX = _2btol (&jbuf.BasicRes.x[0]); /* set to 400 */
1290 dev->info.resBasicY = _2btol (&jbuf.BasicRes.y[0]); /* set to 400 */
1292 dev->info.resXstep = (jbuf.resolutionstep >> 4) & 0x0F; /* set to 1 */
1293 dev->info.resYstep = jbuf.resolutionstep & 0x0F; /* set to 1 */
1294 dev->info.resMaxX = _2btol (&jbuf.MaxRes.x[0]); /* set to 800 */
1295 dev->info.resMaxY = _2btol (&jbuf.MaxRes.y[0]); /* set to 800 */
1296 dev->info.resMinX = _2btol (&jbuf.MinRes.x[0]); /* set to 100 for IS450 and 60 for IS420 */
1297 dev->info.resMinY = _2btol (&jbuf.MinRes.y[0]); /* set to 100 for IS450 and 60 for IS420 */
1299 dev->info.xres_range.min = _2btol (&jbuf.MinRes.x[0]); /* set to 100 for IS450 and 60 for IS420 */
1300 dev->info.xres_range.max = _2btol (&jbuf.MaxRes.x[0]); /* set to 800 */
1301 dev->info.resXstep = (jbuf.resolutionstep >> 4) & 0x0F; /* set to 1 */
1304 dev->info.yres_range.min = _2btol (&jbuf.MinRes.y[0]); /* set to 100 for IS450 and 60 for IS420 */
1305 dev->info.yres_range.max = _2btol (&jbuf.MaxRes.y[0]); /* set to 800 */
1306 dev->info.resYstep = jbuf.resolutionstep & 0x0F; /* set to 1 */
1311 if ((jbuf.standardres[0] & 0x80) == 0x80)
1313 if ((jbuf.standardres[0] & 0x40) == 0x40)
1315 if ((jbuf.standardres[0] & 0x20) == 0x20)
1317 if ((jbuf.standardres[0] & 0x10) == 0x10)
1319 if ((jbuf.standardres[0] & 0x08) == 0x08)
1321 if ((jbuf.standardres[0] & 0x04) == 0x04)
1323 if ((jbuf.standardres[0] & 0x02) == 0x02)
1325 if ((jbuf.standardres[0] & 0x01) == 0x01)
1327 if ((jbuf.standardres[1] & 0x80) == 0x80)
1329 if ((jbuf.standardres[1] & 0x40) == 0x40)
1331 if ((jbuf.standardres[1] & 0x20) == 0x20)
1333 if ((jbuf.standardres[1] & 0x10) == 0x10)
1335 if ((jbuf.standardres[1] & 0x08) == 0x08)
1337 if ((jbuf.standardres[1] & 0x04) == 0x04)
1339 if ((jbuf.standardres[1] & 0x02) == 0x02)
1341 if ((jbuf.standardres[1] & 0x01) == 0x01)
1353 _4btol (&jbuf.Window.width[0]), _4btol (&jbuf.Window.length[0]));
1354 dev->info.winWidth = _4btol (&jbuf.Window.width[0]);
1355 dev->info.winHeight = _4btol (&jbuf.Window.length[0]);
1402 /* jbuf.functions */
1404 ((jbuf.functions & 0x01) == 0x01) ? SANE_TRUE : SANE_FALSE;
1406 ((jbuf.functions & 0x02) == 0x02) ? SANE_TRUE : SANE_FALSE;
1408 ((jbuf.functions & 0x04) == 0x04) ? SANE_TRUE : SANE_FALSE;
1410 ((jbuf.functions & 0x08) == 0x08) ? SANE_TRUE : SANE_FALSE;