Lines Matching refs:result

1375  *	or from within the kernel (e.g. as a result of a mount(1) ).
1766 static int sd_scsi_to_pr_err(struct scsi_sense_hdr *sshdr, int result)
1768 switch (host_byte(result)) {
1779 switch (status_byte(result)) {
1806 int result;
1810 result = scsi_execute_cmd(sdev, cmd, REQ_OP_DRV_IN, data, data_len,
1812 if (scsi_status_is_check_condition(result) &&
1814 sdev_printk(KERN_INFO, sdev, "PR command failed: %d\n", result);
1818 if (result <= 0)
1819 return result;
1821 return sd_scsi_to_pr_err(&sshdr, result);
1826 int result, i, data_offset, num_copy_keys;
1835 result = sd_pr_in_command(bdev, READ_KEYS, data, data_len);
1836 if (result)
1852 return result;
1861 int result, len;
1863 result = sd_pr_in_command(bdev, READ_RESERVATION, data, sizeof(data));
1864 if (result)
1865 return result;
1894 int result;
1907 result = scsi_execute_cmd(sdev, cmd, REQ_OP_DRV_OUT, &data,
1911 if (scsi_status_is_check_condition(result) &&
1913 sdev_printk(KERN_INFO, sdev, "PR command failed: %d\n", result);
1917 if (result <= 0)
1918 return result;
1920 return sd_scsi_to_pr_err(&sshdr, result);
2018 * error test command (currently TEST UNIT READY). The result of sending
2031 host_byte(scmd->result) != DID_TIME_OUT ||
2117 int result = SCpnt->result;
2118 unsigned int good_bytes = result ? 0 : scsi_bufflen(SCpnt);
2135 if (!result) {
2161 if (result) {
2168 if (!scsi_status_is_check_condition(result) &&
2185 SCpnt->result = 0;
4117 void sd_print_result(const struct scsi_disk *sdkp, const char *msg, int result)
4119 const char *hb_string = scsi_hostbyte_string(result);
4129 msg, host_byte(result), "DRIVER_OK");