• Home
  • Raw
  • Download

Lines Matching full:sense

53  * Medium sense for 34xx tapes. There is no 'real' medium sense call.
54 * So we just do a normal sense.
59 unsigned char *sense; in __tape_34xx_medium_sense() local
62 sense = request->cpdata; in __tape_34xx_medium_sense()
70 if (sense[0] & SENSE_INTERVENTION_REQUIRED) in __tape_34xx_medium_sense()
75 if (sense[1] & SENSE_WRITE_PROTECT) in __tape_34xx_medium_sense()
80 DBF_EVENT(4, "tape_34xx: medium sense failed with rc=%d\n", in __tape_34xx_medium_sense()
97 tape_ccw_end(request->cpaddr, SENSE, 32, request->cpdata); in tape_34xx_medium_sense()
114 tape_ccw_end(request->cpaddr, SENSE, 32, request->cpdata); in tape_34xx_medium_sense_async()
312 * This function analyses the tape's sense-data in case of a unit-check.
321 __u8* sense; in tape_34xx_unit_check() local
324 sense = irb->ecw; in tape_34xx_unit_check()
327 sense[0] & SENSE_COMMAND_REJECT && in tape_34xx_unit_check()
328 sense[1] & SENSE_WRITE_PROTECT in tape_34xx_unit_check()
347 * sense[0] == SENSE_EQUIPMENT_CHECK && in tape_34xx_unit_check()
348 * sense[1] == SENSE_DRIVE_ONLINE && in tape_34xx_unit_check()
349 * sense[3] == 0x47 (Volume Fenced) in tape_34xx_unit_check()
355 sense[0] == SENSE_DATA_CHECK || in tape_34xx_unit_check()
356 sense[0] == SENSE_EQUIPMENT_CHECK || in tape_34xx_unit_check()
357 sense[0] == SENSE_EQUIPMENT_CHECK + SENSE_DEFERRED_UNIT_CHECK in tape_34xx_unit_check()
359 sense[1] == SENSE_DRIVE_ONLINE || in tape_34xx_unit_check()
360 sense[1] == SENSE_BEGINNING_OF_TAPE + SENSE_WRITE_MODE in tape_34xx_unit_check()
364 * sense[0] == SENSE_DATA_CHECK && in tape_34xx_unit_check()
365 * sense[1] == SENSE_DRIVE_ONLINE in tape_34xx_unit_check()
366 * sense[3] == 0x36 (End Of Data) in tape_34xx_unit_check()
378 * sense[0] == SENSE_DATA_CHECK && in tape_34xx_unit_check()
379 * sense[1] == SENSE_DRIVE_ONLINE && in tape_34xx_unit_check()
380 * sense[3] == 0x36 (End Of Data) in tape_34xx_unit_check()
392 * sense[0] == SENSE_EQUIPMENT_CHECK && in tape_34xx_unit_check()
393 * sense[1] == SENSE_DRIVE_ONLINE && in tape_34xx_unit_check()
394 * sense[3] == 0x38 (Physical End Of Volume) in tape_34xx_unit_check()
405 if (sense[0] & SENSE_BUS_OUT_CHECK) in tape_34xx_unit_check()
408 if (sense[0] & SENSE_DATA_CHECK) { in tape_34xx_unit_check()
413 switch (sense[3]) { in tape_34xx_unit_check()
416 if ((sense[2] & SENSE_TAPE_SYNC_MODE) || in tape_34xx_unit_check()
430 if ((sense[2] & SENSE_TAPE_SYNC_MODE) || in tape_34xx_unit_check()
470 if (sense[0] & SENSE_OVERRUN) in tape_34xx_unit_check()
473 if (sense[1] & SENSE_RECORD_SEQUENCE_ERR) in tape_34xx_unit_check()
477 switch (sense[3]) { in tape_34xx_unit_check()
535 return tape_34xx_erp_bug(device, request, irb, sense[3]); in tape_34xx_unit_check()
547 return tape_34xx_erp_bug(device, request, irb, sense[3]); in tape_34xx_unit_check()
585 return tape_34xx_erp_bug(device, request, irb, sense[3]); in tape_34xx_unit_check()
602 return tape_34xx_erp_bug(device, request, irb, sense[3]); in tape_34xx_unit_check()
647 if (sense[1] & SENSE_DRIVE_ONLINE) { in tape_34xx_unit_check()
665 irb, sense[3]); in tape_34xx_unit_check()
687 /* Log sense data and retry request. */ in tape_34xx_unit_check()
722 return tape_34xx_erp_bug(device, request, irb, sense[3]); in tape_34xx_unit_check()
735 return tape_34xx_erp_bug(device, request, irb, sense[3]); in tape_34xx_unit_check()
759 return tape_34xx_erp_bug(device, request, irb, sense[3]); in tape_34xx_unit_check()
792 if (sense[1] & SENSE_BEGINNING_OF_TAPE) in tape_34xx_unit_check()
824 return tape_34xx_erp_bug(device, request, irb, sense[3]); in tape_34xx_unit_check()
1038 DBF_LH(3, "34xx medium sense returned %d\n", rc); in tape_34xx_setup_device()