Lines Matching defs:code

109  * since some FC HBAs may already support that, and there is some code in
111 * default would confuse that code, and besides things should work fine
147 * code is currently used to compile two separate driver modules: sd and ssd.
835 #define VPD_MODE_PAGE 1 /* offset into vpd pg for "page code" */
867 * code is currently used to compile two separate driver modules: sd and ssd.
1393 struct sd_xbuf *xp, int code);
1395 void *arg, int code);
1397 void *arg, int code);
1399 void *arg, int code);
1456 void *arg, int code);
5033 if (page3p->mode_page.code != SD_MODE_SENSE_PAGE3_CODE) {
5035 "sd_get_physical_geometry: mode sense pg3 code mismatch "
5036 "%d\n", page3p->mode_page.code);
5064 page3p->mode_page.code, nsect, sector_size);
5109 if (page4p->mode_page.code != SD_MODE_SENSE_PAGE4_CODE) {
5111 "sd_get_physical_geometry: mode sense pg4 code mismatch "
5112 "%d\n", page4p->mode_page.code);
5443 * of the function is to allow the code above to create the
5770 * a page code of 0x00 to the device. It is used to determine which
5907 * The following code is to tell cpr that this device
5971 * code path does not apply to old disks.
6938 * own code so it can be done in polled mode.
7754 * The following if/else code was relocated here from below as part
7818 * code may need to be updated when the ssd module is
8074 * succeeded, but code it in anyway.
8628 * code path, even though everything's closed.
8821 * Note, the following is not dead code. The call to
8825 * code is valid and necessary.
9388 * code returned by sd_send_scsi_MODE_SENSE and
9472 if (mode_caching_page->mode_page.code != MODEPAGE_CACHING) {
9474 "sd_cache_control: Mode Sense caching page code mismatch "
9475 "%d\n", mode_caching_page->mode_page.code);
9576 * code returned by sd_send_scsi_MODE_SENSE
9673 if (mode_caching_page->mode_page.code != MODEPAGE_CACHING) {
9677 "code mismatch %d\n", mode_caching_page->mode_page.code);
11308 * This code is based upon the following presumptions:
11801 * return code of scsi_uscsi_handle_command():
11890 * Return code: sd_ssc_t - pointer to allocated sd_ssc_t struct, it contains
11971 * return code of scsi_uscsi_handle_command():
12409 * following code will be bypassed.
12559 * Issues: This follows what the old code did, in terms of accessing
12944 * parts of the mapblocksize code that expect certain fields to be
13235 * up the residual and error code as required.
13261 /* Propagate the error code from the shadow buf to the original buf */
13596 * still significant so this code is still worthwhile.
13784 * SD_PKT_ALLOC_FAILURE is the only expected failure code
14578 int code)
14589 * - The error code from scsi_transport() is NOT a TRAN_FATAL_ERROR.
14590 * - If the error code IS a TRAN_FATAL_ERROR, then the message is
14604 (code != TRAN_FATAL_ERROR) ||
14606 switch (code) {
14617 "transport rejected (%d)\n", code);
14806 * The dump I/O itself uses a separate code path so this
14833 * and (2) the code in sd_retry_command checking the
15151 * Update kstats & return the buf with an error code.
15632 * failure_code - errno return code to set in the bp if the
15649 code), void *user_arg, int failure_code, clock_t retry_delay,
16516 * Circumvent the Adaptec bug, remove this code when
16615 * Typically used when we get a TRAN_BUSY return code
17064 * and its use of DMA resources. This code should be removed when
17166 * code for non-USCSI command.
17170 0, "stat-code");
17181 0, "stat-code");
17263 * code - SD_DELAYED_RETRY_ISSUED, SD_IMMEDIATE_RETRY_ISSUED,
17270 sd_print_incomplete_msg(struct sd_lun *un, struct buf *bp, void *arg, int code)
17283 switch (code) {
17305 * Description: Processing for a STATUS_GOOD code in pkt_status.
17574 * code - SD_IMMEDIATE_RETRY_ISSUED, SD_DELAYED_RETRY_ISSUED,
17582 int code)
17590 if ((code == SD_NO_RETRY_ISSUED) && (msgp != NULL)) {
17727 * make up the "response code" field. es_class will always be 7, so
17961 * code - SD_IMMEDIATE_RETRY_ISSUED, SD_DELAYED_RETRY_ISSUED,
17968 sd_print_sense_msg(struct sd_lun *un, struct buf *bp, void *arg, int code)
17991 if ((code == SD_DELAYED_RETRY_ISSUED) ||
17992 (code == SD_IMMEDIATE_RETRY_ISSUED)) {
18244 * Note: This code preserves the legacy behavior of
18294 * Vendor-unique code for T3/T4: it indicates a
18405 "Unit not Ready. Additional sense code 0x%x\n",
18950 * code - SD_IMMEDIATE_RETRY_ISSUED, SD_DELAYED_RETRY_ISSUED,
18958 int code)
18966 switch (code) {
18990 sd_print_retry_msg(un, bp, arg, code);
19202 void (*funcp)(struct sd_lun *un, struct buf *bp, void *arg, int code);
19487 * Note: The legacy return code for this failure is EIO, however EACCES
19500 * Note: The legacy return code for this failure is EIO, however EACCES
19841 * errno-type return code of either sd_send_scsi_DOORLOCK() or
19933 * errno return code from sd_ssc_send()
20036 * errno return code from sd_ssc_send()
20254 * errno return code from sd_ssc_send()
20469 * errno return code from sd_ssc_send()
20709 * errno return code from sd_ssc_send()
20791 * errno return code from sd_ssc_send()
20900 * errno return code from sd_ssc_send()
21007 * errno return code from sd_ssc_send()
21148 * errno-type error code
21425 * errno return code from sd_ssc_send()
21518 * errno return code from sd_ssc_send()
21611 * page_code - page code of data to be retrieved from the target.
21618 * errno return code from sd_ssc_send()
21680 * sr_check_wp() uses 0x3f page code and check the header of
21682 * But some USB devices return 0 bytes for 0x3f page code. For
21736 * errno return code from sd_ssc_send()
21843 * errno return code from sd_ssc_send()
21970 * errno return code from sd_ssc_send()
22047 * page implemented with page code 0x31
22104 * errno return code from sd_ssc_send()
23025 * to the error code returned.
23459 * put the assessment before processing code
24212 * and the parameter code is 0x00
24225 * length is 0x02 and the parameter code is 0x01
24624 * Return Code: code returned by sd_persistent_reservation_in_read_keys()
24708 * Return Code: code returned by sd_persistent_reservation_in_read_resv()
24787 * The clustering code uses two different, independent forms of SCSI
24799 * encounters the scsi error return code RESERVATION_CONFLICT from the device,
25007 * The additional sense code indicates a power
25554 * Return Code: 0 for success or error code
26076 "error code: 0x%x, retrying",
26085 "no resources for dumping; error code: "
26092 "error code: 0x%x, retries failed, "
26224 * NOTE: This code is only called off sddump().
26352 * NOTE: This code is almost identical to scsi_poll, however before 6668774 can
26353 * be fixed (removing this code), we need to determine how to handle the
26356 * NOTE: This code is only called off sddump().
26510 * This is not a performance critical code path.
26541 * errno return code from sd_send_scsi_cmd()
26702 * errno return code from sd_send_scsi_cmd()
26879 * Return Code: the code returned by sd_send_scsi_cmd()
27066 * Return Code: the code returned by sd_send_scsi_cmd()
27171 select_page->mode_page.code = CDROM_MODE_SPEED;
27234 * Return Code: the code returned by sd_send_scsi_cmd()
27301 /* Convert the speed code to KB/sec */
27381 * Return Code: the code returned by sd_send_scsi_cmd()
27443 * Return Code: the code returned by sd_send_scsi_cmd()
27514 * Return Code: the code returned by sd_send_scsi_cmd()
27567 * Return Code: the code returned by sd_send_scsi_cmd()
27695 * Return Code: the code returned by sd_send_scsi_cmd()
27814 * Return Code: the code returned by sd_send_scsi_cmd()
27989 * Return Code: the code returned by sd_send_scsi_cmd()
28081 * Return Code: the code returned by sd_send_scsi_cmd()
28160 * Return Code: the code returned by sd_send_scsi_cmd()
28269 * Return Code: the code returned by sd_send_scsi_cmd()
28425 * Return Code: the code returned by sd_send_scsi_cmd()
28508 * Return Code: the code returned by sd_send_scsi_cmd()
28677 * Return Code: the code returned by sd_send_scsi_cmd()
28819 * Return Code: the code returned by sd_send_scsi_cmd()
29006 * Return Code: the code returned by sd_send_scsi_cmd()
29180 * Return Code: the code returned by sd_send_scsi_cmd()
29637 * Return Code: 0 for success or errno-type return code
29909 * We want to return the bp with a failure error code, but
31316 "op-code", DATA_TYPE_UINT8, op_code,
31332 * SSC_FLAGS_INVALID_STATUS - invalid stat-code encountered.
31345 "op-code", DATA_TYPE_UINT8, op_code,
31352 "stat-code", DATA_TYPE_UINT8,
31375 "op-code", DATA_TYPE_UINT8, op_code,
31382 "stat-code", DATA_TYPE_UINT8,
31414 "op-code", DATA_TYPE_UINT8, op_code,
31462 "op-code",
31474 "stat-code",
31513 "op-code",
31525 "stat-code",
31552 * stat-code but with sense data unavailable.
31564 "op-code", DATA_TYPE_UINT8, op_code,
31574 "stat-code",