Home
last modified time | relevance | path

Searched refs:good_bytes (Results 1 – 5 of 5) sorted by relevance

/drivers/scsi/
Dsr.c260 int good_bytes = (result == 0 ? this_count : 0); in sr_done() local
295 good_bytes = (error_sector - SCpnt->request->sector) << 9; in sr_done()
296 if (good_bytes < 0 || good_bytes >= this_count) in sr_done()
297 good_bytes = 0; in sr_done()
321 good_bytes = this_count; in sr_done()
329 return good_bytes; in sr_done()
Dscsi.c806 unsigned int good_bytes; in scsi_finish_command() local
833 good_bytes = scsi_bufflen(cmd); in scsi_finish_command()
835 int old_good_bytes = good_bytes; in scsi_finish_command()
838 good_bytes = drv->done(cmd); in scsi_finish_command()
845 if (good_bytes == old_good_bytes) in scsi_finish_command()
846 good_bytes -= scsi_get_resid(cmd); in scsi_finish_command()
848 scsi_io_completion(cmd, good_bytes); in scsi_finish_command()
Dsd_dif.c493 void sd_dif_complete(struct scsi_cmnd *scmd, unsigned int good_bytes) in sd_dif_complete() argument
504 if (sdkp->protection_type == SD_DIF_TYPE3_PROTECTION || good_bytes == 0) in sd_dif_complete()
508 sectors = good_bytes / sector_sz; in sd_dif_complete()
Dsd.c1023 unsigned int good_bytes = result ? 0 : scsi_bufflen(SCpnt); in sd_done() local
1051 good_bytes = sd_completed_bytes(SCpnt); in sd_done()
1060 good_bytes = scsi_bufflen(SCpnt); in sd_done()
1075 good_bytes = sd_completed_bytes(SCpnt); in sd_done()
1082 good_bytes = sd_completed_bytes(SCpnt); in sd_done()
1090 sd_dif_complete(SCpnt, good_bytes); in sd_done()
1092 return good_bytes; in sd_done()
Dscsi_lib.c929 void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes) in scsi_io_completion() argument
982 req->nr_sectors, good_bytes)); in scsi_io_completion()
988 if (scsi_end_request(cmd, error, good_bytes, result == 0) == NULL) in scsi_io_completion()