Lines Matching refs:resp
881 int paramp, void *resp, int mx_resp_len, int noisy)
906 io_hdr.dxferp = resp;
1050 static void show_buffer_under_overrun_page(unsigned char *resp, int len)
1059 ucp = &resp[0] + 4;
1118 static void show_error_counter_page(unsigned char *resp, int len)
1125 switch (resp[0]) {
1140 resp[0]);
1144 ucp = &resp[0] + 4;
1192 static void show_non_medium_error_page(unsigned char *resp, int len)
1201 ucp = &resp[0] + 4;
1254 static void show_self_test_page(unsigned char *resp, int len)
1266 for (k = 0, ucp = resp + 4; k < 20; ++k, ucp += 20) {
1305 static void show_Temperature_page(unsigned char *resp, int len, int hdr)
1311 ucp = &resp[0] + 4;
1352 static void show_IE_page(unsigned char *resp, int len, int full)
1358 ucp = &resp[0] + 4;
1397 static void show_ascii_page(unsigned char *resp, int len)
1406 switch (resp[0]) {
1410 show_page_name((int)resp[4 + k]);
1413 show_buffer_under_overrun_page(resp, len);
1419 show_error_counter_page(resp, len);
1422 show_non_medium_error_page(resp, len);
1425 show_Temperature_page(resp, len, 1);
1434 &resp[8], &resp[12]);
1436 &resp[18], &resp[22]);
1437 n = (resp[28] << 24) | (resp[29] << 16) | (resp[30] << 8) |
1438 resp[31];
1440 n = (resp[36] << 24) | (resp[37] << 16) | (resp[38] << 8) |
1441 resp[39];
1445 show_self_test_page(resp, len);
1448 show_IE_page(resp, len, 1);
1452 resp[0]);
1453 dStrHex((const char *)resp, len, 1);
1458 static int fetchTemperature(int sg_fd, int do_hex, unsigned char *resp,
1463 if (0 == do_logs(sg_fd, 0, 0, 1, 0xd, 0, resp, max_len, 0))
1464 show_Temperature_page(resp, (resp[2] << 8) + resp[3] + 4, 0);
1465 else if (0 == do_logs(sg_fd, 0, 0, 1, 0x2f, 0, resp, max_len, 0))
1466 show_IE_page(resp, (resp[2] << 8) + resp[3] + 4, 0);
1564 static int do_inquiry(int sg_fd, void *resp, int mx_resp_len)
1579 io_hdr.dxferp = resp;
2677 void *resp, int mx_resp_len, int noisy)
2697 io_hdr.dxferp = resp;
2811 "Resp data format=%d, SCCS=%d\n",
3369 static int do_simple_inq(int sg_fd, void *resp, int mx_resp_len, int noisy)
3384 io_hdr.dxferp = resp;
3409 void *resp, int mx_resp_len, int noisy, int mode6)
3439 io_hdr.dxferp = resp;
4321 static int do_rcvdiag(int sg_fd, int pcv, int pg_code, void *resp,
4341 io_hdr.dxferp = resp;
4368 static int do_modes_0a(int sg_fd, void *resp, int mx_resp_len, int noisy,
4400 io_hdr.dxferp = resp;