Lines Matching refs:this_count
891 unsigned int this_count = blk_rq_sectors(rq); in sd_setup_read_write_cmnd() local
909 __func__, (unsigned long long)block, this_count)); in sd_setup_read_write_cmnd()
937 if (unlikely(sdp->last_sector_bug && block + this_count > threshold)) { in sd_setup_read_write_cmnd()
940 this_count = threshold - block; in sd_setup_read_write_cmnd()
943 this_count = sdp->sector_size / 512; in sd_setup_read_write_cmnd()
968 this_count = this_count >> 1; in sd_setup_read_write_cmnd()
978 this_count = this_count >> 2; in sd_setup_read_write_cmnd()
988 this_count = this_count >> 3; in sd_setup_read_write_cmnd()
1007 "writing" : "reading", this_count, in sd_setup_read_write_cmnd()
1050 SCpnt->cmnd[28] = (unsigned char) (this_count >> 24) & 0xff; in sd_setup_read_write_cmnd()
1051 SCpnt->cmnd[29] = (unsigned char) (this_count >> 16) & 0xff; in sd_setup_read_write_cmnd()
1052 SCpnt->cmnd[30] = (unsigned char) (this_count >> 8) & 0xff; in sd_setup_read_write_cmnd()
1053 SCpnt->cmnd[31] = (unsigned char) this_count & 0xff; in sd_setup_read_write_cmnd()
1054 } else if (sdp->use_16_for_rw || (this_count > 0xffff)) { in sd_setup_read_write_cmnd()
1065 SCpnt->cmnd[10] = (unsigned char) (this_count >> 24) & 0xff; in sd_setup_read_write_cmnd()
1066 SCpnt->cmnd[11] = (unsigned char) (this_count >> 16) & 0xff; in sd_setup_read_write_cmnd()
1067 SCpnt->cmnd[12] = (unsigned char) (this_count >> 8) & 0xff; in sd_setup_read_write_cmnd()
1068 SCpnt->cmnd[13] = (unsigned char) this_count & 0xff; in sd_setup_read_write_cmnd()
1070 } else if ((this_count > 0xff) || (block > 0x1fffff) || in sd_setup_read_write_cmnd()
1080 SCpnt->cmnd[7] = (unsigned char) (this_count >> 8) & 0xff; in sd_setup_read_write_cmnd()
1081 SCpnt->cmnd[8] = (unsigned char) this_count & 0xff; in sd_setup_read_write_cmnd()
1098 SCpnt->cmnd[4] = (unsigned char) this_count; in sd_setup_read_write_cmnd()
1101 SCpnt->sdb.length = this_count * sdp->sector_size; in sd_setup_read_write_cmnd()
1109 SCpnt->underflow = this_count << 9; in sd_setup_read_write_cmnd()