Lines Matching refs:this_count
333 int this_count = scsi_bufflen(SCpnt); in sr_done() local
334 int good_bytes = (result == 0 ? this_count : 0); in sr_done()
368 if (good_bytes < 0 || good_bytes >= this_count) in sr_done()
384 good_bytes = this_count; in sr_done()
397 int block = 0, this_count, s_size; in sr_init_command() local
472 this_count = (scsi_bufflen(SCpnt) >> 9) / (s_size >> 9); in sr_init_command()
479 this_count, blk_rq_sectors(rq))); in sr_init_command()
484 if (this_count > 0xffff) { in sr_init_command()
485 this_count = 0xffff; in sr_init_command()
486 SCpnt->sdb.length = this_count * s_size; in sr_init_command()
491 put_unaligned_be16(this_count, &SCpnt->cmnd[7]); in sr_init_command()
499 SCpnt->underflow = this_count << 9; in sr_init_command()