tag | line | file | source code |
sense_buffer | 314 | kernel/blk_drv/scsi/aha1542.c | memcpy(SCtmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], |
sense_buffer | 315 | kernel/blk_drv/scsi/aha1542.c | sizeof(SCtmp->sense_buffer)); |
sense_buffer | 205 | kernel/blk_drv/scsi/aha1740.c | memcpy(SCtmp->sense_buffer, ecbptr->sense, |
sense_buffer | 206 | kernel/blk_drv/scsi/aha1740.c | sizeof(SCtmp->sense_buffer)); |
sense_buffer | 208 | kernel/blk_drv/scsi/scsi.c | ((SCmd.sense_buffer[0] & 0x70) >> 4) == 7) { |
sense_buffer | 209 | kernel/blk_drv/scsi/scsi.c | if (SCmd.sense_buffer[2] &0xe0) |
sense_buffer | 211 | kernel/blk_drv/scsi/scsi.c | if(((SCmd.sense_buffer[2] & 0xf) != NOT_READY) && |
sense_buffer | 212 | kernel/blk_drv/scsi/scsi.c | ((SCmd.sense_buffer[2] & 0xf) != UNIT_ATTENTION)) |
sense_buffer | 603 | kernel/blk_drv/scsi/scsi.c | SCpnt->cmnd[4] = sizeof(SCpnt->sense_buffer); |
sense_buffer | 605 | kernel/blk_drv/scsi/scsi.c | SCpnt->request_buffer = &SCpnt->sense_buffer; |
sense_buffer | 606 | kernel/blk_drv/scsi/scsi.c | SCpnt->request_bufflen = sizeof(SCpnt->sense_buffer); |
sense_buffer | 732 | kernel/blk_drv/scsi/scsi.c | if (((SCpnt->sense_buffer[0] & 0x70) >> 4) == 7) { |
sense_buffer | 733 | kernel/blk_drv/scsi/scsi.c | if (SCpnt->sense_buffer[2] &0xe0) |
sense_buffer | 735 | kernel/blk_drv/scsi/scsi.c | switch (SCpnt->sense_buffer[2] & 0xf) |
sense_buffer | 371 | kernel/blk_drv/scsi/scsi.h | unsigned char sense_buffer[16]; /* Sense for this command, if needed*/ |
sense_buffer | 90 | kernel/blk_drv/scsi/scsi_debug.c | static char sense_buffer[128] = {0,}; |
sense_buffer | 169 | kernel/blk_drv/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
sense_buffer | 174 | kernel/blk_drv/scsi/scsi_debug.c | memcpy(buff, sense_buffer, bufflen); |
sense_buffer | 175 | kernel/blk_drv/scsi/scsi_debug.c | memset(sense_buffer, 0, sizeof(sense_buffer)); |
sense_buffer | 257 | kernel/blk_drv/scsi/scsi_debug.c | sense_buffer[0] = 0x70; |
sense_buffer | 258 | kernel/blk_drv/scsi/scsi_debug.c | sense_buffer[2] = UNIT_ATTENTION; |
sense_buffer | 266 | kernel/blk_drv/scsi/scsi_debug.c | for(i=0;i<12;i++) printk("%d ",sense_buffer[i]); |
sense_buffer | 108 | kernel/blk_drv/scsi/scsi_ioctl.c | switch(SCpnt->sense_buffer[2] & 0xf) { |
sense_buffer | 132 | kernel/blk_drv/scsi/scsi_ioctl.c | sense_class(SCpnt->sense_buffer[0]), |
sense_buffer | 133 | kernel/blk_drv/scsi/scsi_ioctl.c | sense_error(SCpnt->sense_buffer[0]), |
sense_buffer | 134 | kernel/blk_drv/scsi/scsi_ioctl.c | SCpnt->sense_buffer[2] & 0xf); |
sense_buffer | 249 | kernel/blk_drv/scsi/sd.c | for(i=0;i<10;i++) printk(" %d",SCpnt->sense_buffer[i]); |
sense_buffer | 266 | kernel/blk_drv/scsi/sd.c | if ((SCpnt->sense_buffer[0] & 0x7f) == 0x70) { |
sense_buffer | 267 | kernel/blk_drv/scsi/sd.c | if ((SCpnt->sense_buffer[2] & 0xf) == UNIT_ATTENTION) { |
sense_buffer | 286 | kernel/blk_drv/scsi/sd.c | if (SCpnt->sense_buffer[2] == ILLEGAL_REQUEST) { |
sense_buffer | 303 | kernel/blk_drv/scsi/sd.c | sense_class(SCpnt->sense_buffer[0]), |
sense_buffer | 304 | kernel/blk_drv/scsi/sd.c | sense_error(SCpnt->sense_buffer[0]), |
sense_buffer | 305 | kernel/blk_drv/scsi/sd.c | SCpnt->sense_buffer[2] & 0xf); |
sense_buffer | 690 | kernel/blk_drv/scsi/sd.c | SCpnt->sense_buffer[0] = 0; |
sense_buffer | 691 | kernel/blk_drv/scsi/sd.c | SCpnt->sense_buffer[2] = 0; |
sense_buffer | 744 | kernel/blk_drv/scsi/sd.c | printk("sd%d : extended sense code = %1x \n", i, SCpnt->sense_buffer[2] & 0xf); |
sense_buffer | 755 | kernel/blk_drv/scsi/sd.c | SCpnt->sense_buffer[2] == NOT_READY) |
sense_buffer | 202 | kernel/blk_drv/scsi/sr.c | if ((SCpnt->sense_buffer[0] & 0x7f) == 0x70) { |
sense_buffer | 203 | kernel/blk_drv/scsi/sr.c | if ((SCpnt->sense_buffer[2] & 0xf) == UNIT_ATTENTION) { |
sense_buffer | 214 | kernel/blk_drv/scsi/sr.c | if (SCpnt->sense_buffer[2] == ILLEGAL_REQUEST) { |
sense_buffer | 222 | kernel/blk_drv/scsi/sr.c | printk("CD-ROM error: Drive reports %d.\n", SCpnt->sense_buffer[2]); |
sense_buffer | 230 | kernel/blk_drv/scsi/sr.c | if (SCpnt->sense_buffer[2] == NOT_READY) { |
sense_buffer | 248 | kernel/blk_drv/scsi/sr.c | sense_class(SCpnt->sense_buffer[0]), |
sense_buffer | 249 | kernel/blk_drv/scsi/sr.c | sense_error(SCpnt->sense_buffer[0]), |
sense_buffer | 250 | kernel/blk_drv/scsi/sr.c | SCpnt->sense_buffer[2] & 0xf); |
sense_buffer | 61 | kernel/blk_drv/scsi/sr_ioctl.c | switch(SCpnt->sense_buffer[2] & 0xf) { |
sense_buffer | 79 | kernel/blk_drv/scsi/sr_ioctl.c | sense_class(SCpnt->sense_buffer[0]), |
sense_buffer | 80 | kernel/blk_drv/scsi/sr_ioctl.c | sense_error(SCpnt->sense_buffer[0]), |
sense_buffer | 81 | kernel/blk_drv/scsi/sr_ioctl.c | SCpnt->sense_buffer[2] & 0xf); |
sense_buffer | 98 | kernel/blk_drv/scsi/st.c | (SCpnt->sense_buffer[0] & 0x70) == 0x70 && |
sense_buffer | 99 | kernel/blk_drv/scsi/st.c | (SCpnt->sense_buffer[2] & 0x40)) |
sense_buffer | 120 | kernel/blk_drv/scsi/st.c | static void decode_sns(int dev, char *sense_buffer) |
sense_buffer | 128 | kernel/blk_drv/scsi/st.c | if (sense_buffer[0]!=0) { |
sense_buffer | 129 | kernel/blk_drv/scsi/st.c | if ((sense_buffer[0] & 0x70) == 0x70) { |
sense_buffer | 130 | kernel/blk_drv/scsi/st.c | if (sense_buffer[2] & 0x80) printk( "FMK "); |
sense_buffer | 131 | kernel/blk_drv/scsi/st.c | if (sense_buffer[2] & 0x40) printk( "EOM "); |
sense_buffer | 132 | kernel/blk_drv/scsi/st.c | if (sense_buffer[2] & 0x20) printk( "ILI "); |
sense_buffer | 133 | kernel/blk_drv/scsi/st.c | printk( "st%d: sense key %s\n", dev, snstext[sense_buffer[2] & 0x0f]); |
sense_buffer | 135 | kernel/blk_drv/scsi/st.c | if (sense_buffer[0] < 15) |
sense_buffer | 136 | kernel/blk_drv/scsi/st.c | printk("st%d: old sense key %s\n", dev, snstext[sense_buffer[0] & 0x0f]); |
sense_buffer | 138 | kernel/blk_drv/scsi/st.c | printk("st%d: sns = %2x %2x\n", dev, sense_buffer[0], sense_buffer[2]); |
sense_buffer | 220 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0] = 0; |
sense_buffer | 238 | kernel/blk_drv/scsi/st.c | st_chk_result(dev, SCpnt->result, SCpnt->sense_buffer); |
sense_buffer | 328 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0]=0; |
sense_buffer | 338 | kernel/blk_drv/scsi/st.c | if ((SCpnt->sense_buffer[0] & 0x70) == 0x70 && |
sense_buffer | 339 | kernel/blk_drv/scsi/st.c | (SCpnt->sense_buffer[2] & 0x0f) == UNIT_ATTENTION) { /* New media? */ |
sense_buffer | 341 | kernel/blk_drv/scsi/st.c | decode_sns(dev, SCpnt->sense_buffer); |
sense_buffer | 343 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0]=0; |
sense_buffer | 356 | kernel/blk_drv/scsi/st.c | decode_sns(dev, SCpnt->sense_buffer); |
sense_buffer | 358 | kernel/blk_drv/scsi/st.c | if ((SCpnt->sense_buffer[0] & 0x70) == 0x70 && |
sense_buffer | 359 | kernel/blk_drv/scsi/st.c | (SCpnt->sense_buffer[2] & 0x0f) == NO_TAPE) |
sense_buffer | 369 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0]=0; |
sense_buffer | 379 | kernel/blk_drv/scsi/st.c | if (!SCpnt->result && !SCpnt->sense_buffer[0]) { |
sense_buffer | 396 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0]=0; |
sense_buffer | 407 | kernel/blk_drv/scsi/st.c | i = st_chk_result(dev, SCpnt->result, SCpnt->sense_buffer); |
sense_buffer | 503 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0] = 0; |
sense_buffer | 517 | kernel/blk_drv/scsi/st.c | st_chk_result(dev, SCpnt->result, SCpnt->sense_buffer); |
sense_buffer | 611 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0] = 0; |
sense_buffer | 620 | kernel/blk_drv/scsi/st.c | if (SCpnt->result || SCpnt->sense_buffer[0] != 0) { |
sense_buffer | 623 | kernel/blk_drv/scsi/st.c | st_chk_result(dev, SCpnt->result, SCpnt->sense_buffer); |
sense_buffer | 625 | kernel/blk_drv/scsi/st.c | if ((SCpnt->sense_buffer[0] & 0x70) == 0x70 && |
sense_buffer | 626 | kernel/blk_drv/scsi/st.c | (SCpnt->sense_buffer[2] & 0x40)) |
sense_buffer | 651 | kernel/blk_drv/scsi/st.c | do_count = st_chk_result(dev, SCpnt->result, SCpnt->sense_buffer); |
sense_buffer | 669 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0] = 0; |
sense_buffer | 734 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0] = 0; |
sense_buffer | 746 | kernel/blk_drv/scsi/st.c | if (SCpnt->result != 0 || SCpnt->sense_buffer[0] != 0) { |
sense_buffer | 749 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0], SCpnt->sense_buffer[1], |
sense_buffer | 750 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[2], SCpnt->sense_buffer[3], |
sense_buffer | 751 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[4], SCpnt->sense_buffer[5], |
sense_buffer | 752 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[6], SCpnt->sense_buffer[7]); |
sense_buffer | 754 | kernel/blk_drv/scsi/st.c | if ((SCpnt->sense_buffer[0] & 0x70) == 0x70) { /* extended sense */ |
sense_buffer | 756 | kernel/blk_drv/scsi/st.c | if ((SCpnt->sense_buffer[2] & 0xe0) != 0) { /* EOF, EOM, or ILI */ |
sense_buffer | 757 | kernel/blk_drv/scsi/st.c | transfer = (SCpnt->sense_buffer[3] << 24) | |
sense_buffer | 758 | kernel/blk_drv/scsi/st.c | (SCpnt->sense_buffer[4] << 16) | |
sense_buffer | 759 | kernel/blk_drv/scsi/st.c | (SCpnt->sense_buffer[5] << 8) | SCpnt->sense_buffer[6]; |
sense_buffer | 761 | kernel/blk_drv/scsi/st.c | if (SCpnt->sense_buffer[2] & 0x20) { |
sense_buffer | 766 | kernel/blk_drv/scsi/st.c | else if (SCpnt->sense_buffer[2] & 0x40) { |
sense_buffer | 776 | kernel/blk_drv/scsi/st.c | else if (SCpnt->sense_buffer[2] & 0x80) { |
sense_buffer | 790 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[2] & 0x0f); |
sense_buffer | 791 | kernel/blk_drv/scsi/st.c | decode_sns(dev, SCpnt->sense_buffer); |
sense_buffer | 801 | kernel/blk_drv/scsi/st.c | transfer = st_chk_result(dev, SCpnt->result, SCpnt->sense_buffer); |
sense_buffer | 1046 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0] = 0; |
sense_buffer | 1056 | kernel/blk_drv/scsi/st.c | ioctl_result = st_chk_result(dev, SCpnt->result, SCpnt->sense_buffer); |
sense_buffer | 1155 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0]=0; |
sense_buffer | 1166 | kernel/blk_drv/scsi/st.c | SCpnt->sense_buffer[0] = 0; |
sense_buffer | 1173 | kernel/blk_drv/scsi/st.c | if (SCpnt->result || SCpnt->sense_buffer[0]) { |