Lines Matching refs:ucp
1053 unsigned char *ucp; in show_buffer_under_overrun_page() local
1059 ucp = &resp[0] + 4; in show_buffer_under_overrun_page()
1061 pl = ucp[3] + 4; in show_buffer_under_overrun_page()
1062 count_basis = (ucp[1] >> 5) & 0x7; in show_buffer_under_overrun_page()
1081 cause = (ucp[1] >> 1) & 0xf; in show_buffer_under_overrun_page()
1095 if (ucp[1] & 1) in show_buffer_under_overrun_page()
1101 xp = ucp + 4; in show_buffer_under_overrun_page()
1114 ucp += pl; in show_buffer_under_overrun_page()
1121 unsigned char *ucp; in show_error_counter_page() local
1144 ucp = &resp[0] + 4; in show_error_counter_page()
1146 pc = (ucp[0] << 8) | ucp[1]; in show_error_counter_page()
1147 pl = ucp[3] + 4; in show_error_counter_page()
1175 xp = ucp + 4; in show_error_counter_page()
1188 ucp += pl; in show_error_counter_page()
1195 unsigned char *ucp; in show_non_medium_error_page() local
1201 ucp = &resp[0] + 4; in show_non_medium_error_page()
1203 pc = (ucp[0] << 8) | ucp[1]; in show_non_medium_error_page()
1204 pl = ucp[3] + 4; in show_non_medium_error_page()
1217 xp = ucp + 4; in show_non_medium_error_page()
1230 ucp += pl; in show_non_medium_error_page()
1257 unsigned char *ucp; in show_self_test_page() local
1266 for (k = 0, ucp = resp + 4; k < 20; ++k, ucp += 20) { in show_self_test_page()
1267 n = (ucp[6] << 8) | ucp[7]; in show_self_test_page()
1268 if ((0 == n) && (0 == ucp[4])) in show_self_test_page()
1271 (ucp[0] << 8) | ucp[1], n); in show_self_test_page()
1273 self_test_code[(ucp[4] >> 5) & 0x7], in show_self_test_page()
1274 (ucp[4] >> 5) & 0x7); in show_self_test_page()
1275 res = ucp[4] & 0xf; in show_self_test_page()
1278 if (ucp[5]) in show_self_test_page()
1279 printf(" self-test number=%d\n", (int)ucp[5]); in show_self_test_page()
1280 ull = ucp[8]; in show_self_test_page()
1282 ull |= ucp[9]; in show_self_test_page()
1284 ull |= ucp[10]; in show_self_test_page()
1286 ull |= ucp[11]; in show_self_test_page()
1288 ull |= ucp[12]; in show_self_test_page()
1290 ull |= ucp[13]; in show_self_test_page()
1292 ull |= ucp[14]; in show_self_test_page()
1294 ull |= ucp[14]; in show_self_test_page()
1296 ull |= ucp[15]; in show_self_test_page()
1299 if (ucp[16] & 0xf) in show_self_test_page()
1301 ucp[16] & 0xf, ucp[17], ucp[18]); in show_self_test_page()
1308 unsigned char *ucp; in show_Temperature_page() local
1311 ucp = &resp[0] + 4; in show_Temperature_page()
1318 for (k = num; k > 0; k -= extra, ucp += extra) { in show_Temperature_page()
1323 extra = ucp[3] + 4; in show_Temperature_page()
1324 pc = ((ucp[0] << 8) & 0xff) + ucp[1]; in show_Temperature_page()
1327 if (ucp[5] < 0xff) in show_Temperature_page()
1329 ucp[5]); in show_Temperature_page()
1336 if (ucp[5] < 0xff) in show_Temperature_page()
1339 ucp[5]); in show_Temperature_page()
1347 dStrHex((const char *)ucp, extra, 1); in show_Temperature_page()
1355 unsigned char *ucp; in show_IE_page() local
1358 ucp = &resp[0] + 4; in show_IE_page()
1365 for (k = num; k > 0; k -= extra, ucp += extra) { in show_IE_page()
1370 extra = ucp[3] + 4; in show_IE_page()
1371 pc = ((ucp[0] << 8) & 0xff) + ucp[1]; in show_IE_page()
1376 ucp[4], ucp[5]); in show_IE_page()
1380 if (ucp[6] < 0xff) in show_IE_page()
1383 ucp[6]); in show_IE_page()
1392 dStrHex((const char *)ucp, extra, 1); in show_IE_page()
3677 unsigned char *ucp; in show_scsi_modes() local
3774 ucp = rsp_buff + headerlen; in show_scsi_modes()
3777 *(ucp + density_code_off)); in show_scsi_modes()
3778 dStrHex((const char *)ucp, len, 1); in show_scsi_modes()
3779 ucp += len; in show_scsi_modes()
3784 ucp = rsp_buff + bd_len + headerlen; /* start of mode page(s) */ in show_scsi_modes()
3787 uc = *ucp; in show_scsi_modes()
3788 page_num = ucp[0] & 0x3f; in show_scsi_modes()
3799 len = (ucp[2] << 8) + ucp[3] + 4; in show_scsi_modes()
3804 ucp[1], pc); in show_scsi_modes()
3809 (descp ? descp : ebuff), ucp[1], in show_scsi_modes()
3812 len = ucp[1] + 2; in show_scsi_modes()
3823 dStrHex((const char *)ucp, len, 1); in show_scsi_modes()
3824 ucp += len; in show_scsi_modes()