Lines Matching defs:resp
878 int paramp, void *resp, int mx_resp_len, int noisy)
903 io_hdr.dxferp = resp;
1047 static void show_buffer_under_overrun_page(unsigned char *resp, int len)
1056 ucp = &resp[0] + 4;
1115 static void show_error_counter_page(unsigned char *resp, int len)
1122 switch (resp[0]) {
1137 resp[0]);
1141 ucp = &resp[0] + 4;
1189 static void show_non_medium_error_page(unsigned char *resp, int len)
1198 ucp = &resp[0] + 4;
1251 static void show_self_test_page(unsigned char *resp, int len)
1263 for (k = 0, ucp = resp + 4; k < 20; ++k, ucp += 20) {
1302 static void show_Temperature_page(unsigned char *resp, int len, int hdr)
1308 ucp = &resp[0] + 4;
1349 static void show_IE_page(unsigned char *resp, int len, int full)
1355 ucp = &resp[0] + 4;
1394 static void show_ascii_page(unsigned char *resp, int len)
1403 switch (resp[0]) {
1407 show_page_name((int)resp[4 + k]);
1410 show_buffer_under_overrun_page(resp, len);
1416 show_error_counter_page(resp, len);
1419 show_non_medium_error_page(resp, len);
1422 show_Temperature_page(resp, len, 1);
1431 &resp[8], &resp[12]);
1433 &resp[18], &resp[22]);
1434 n = (resp[28] << 24) | (resp[29] << 16) | (resp[30] << 8) |
1435 resp[31];
1437 n = (resp[36] << 24) | (resp[37] << 16) | (resp[38] << 8) |
1438 resp[39];
1442 show_self_test_page(resp, len);
1445 show_IE_page(resp, len, 1);
1449 resp[0]);
1450 dStrHex((const char *)resp, len, 1);
1455 static int fetchTemperature(int sg_fd, int do_hex, unsigned char *resp,
1460 if (0 == do_logs(sg_fd, 0, 0, 1, 0xd, 0, resp, max_len, 0))
1461 show_Temperature_page(resp, (resp[2] << 8) + resp[3] + 4, 0);
1462 else if (0 == do_logs(sg_fd, 0, 0, 1, 0x2f, 0, resp, max_len, 0))
1463 show_IE_page(resp, (resp[2] << 8) + resp[3] + 4, 0);
1561 static int do_inquiry(int sg_fd, void *resp, int mx_resp_len)
1576 io_hdr.dxferp = resp;
2674 void *resp, int mx_resp_len, int noisy)
2694 io_hdr.dxferp = resp;
3366 static int do_simple_inq(int sg_fd, void *resp, int mx_resp_len, int noisy)
3381 io_hdr.dxferp = resp;
3406 void *resp, int mx_resp_len, int noisy, int mode6)
3436 io_hdr.dxferp = resp;
4318 static int do_rcvdiag(int sg_fd, int pcv, int pg_code, void *resp,
4338 io_hdr.dxferp = resp;
4365 static int do_modes_0a(int sg_fd, void *resp, int mx_resp_len, int noisy,
4397 io_hdr.dxferp = resp;