Lines Matching refs:init_resp
163 struct init_resp
476 struct init_resp init_resp;
477 char id_buf[sizeof (init_resp.id) + 1];
478 char ver_buf[sizeof (init_resp.version) + 1];
490 hp5590_cmds_assert (sizeof (init_resp) == 50);
497 (unsigned char *) &init_resp,
498 sizeof (init_resp), CORE_NONE);
503 memcpy (id_buf, init_resp.id, sizeof (id_buf) - 1);
531 DBG (DBG_cmds, "HP%s flags (0x%02x)\n", scanner_model->model, init_resp.flags);
535 init_resp.flags & INIT_FLAG_ADF ? "yes" : "no",
536 init_resp.flags & INIT_FLAG_TMA ? "yes" : "no",
537 init_resp.flags & INIT_FLAG_LCD ? "yes" : "no");
541 memcpy (ver_buf, init_resp.version, sizeof (ver_buf) - 1);
545 scanner_model->model, ntohs (init_resp.max_dpi_x));
547 scanner_model->model, ntohs (init_resp.max_dpi_y));
549 scanner_model->model, ntohs (init_resp.max_pixels_x));
551 scanner_model->model, ntohs (init_resp.max_pixels_y));
554 ntohs (init_resp.max_pixels_x) * 1.0 /
555 ntohs (init_resp.max_dpi_x));
557 ntohs (init_resp.max_pixels_y) * 1.0 /
558 ntohs (init_resp.max_dpi_y));
560 scanner_model->model, ntohs (init_resp.motor_param_normal),
561 ntohs (init_resp.motor_param_max));
574 (*info)->max_dpi_x = ntohs (init_resp.max_dpi_x);
575 (*info)->max_dpi_y = ntohs (init_resp.max_dpi_y);
576 (*info)->max_pixels_x = ntohs (init_resp.max_pixels_x) - 1;
577 (*info)->max_pixels_y = ntohs (init_resp.max_pixels_y) + 1;
581 if (init_resp.flags & INIT_FLAG_LCD)
583 if (init_resp.flags & INIT_FLAG_ADF)
585 if (init_resp.flags & INIT_FLAG_TMA)