Lines Matching refs:this_count
906 unsigned int this_count = blk_rq_sectors(rq); in sd_setup_read_write_cmnd() local
924 __func__, (unsigned long long)block, this_count)); in sd_setup_read_write_cmnd()
952 if (unlikely(sdp->last_sector_bug && block + this_count > threshold)) { in sd_setup_read_write_cmnd()
955 this_count = threshold - block; in sd_setup_read_write_cmnd()
958 this_count = sdp->sector_size / 512; in sd_setup_read_write_cmnd()
983 this_count = this_count >> 1; in sd_setup_read_write_cmnd()
993 this_count = this_count >> 2; in sd_setup_read_write_cmnd()
1003 this_count = this_count >> 3; in sd_setup_read_write_cmnd()
1022 "writing" : "reading", this_count, in sd_setup_read_write_cmnd()
1065 SCpnt->cmnd[28] = (unsigned char) (this_count >> 24) & 0xff; in sd_setup_read_write_cmnd()
1066 SCpnt->cmnd[29] = (unsigned char) (this_count >> 16) & 0xff; in sd_setup_read_write_cmnd()
1067 SCpnt->cmnd[30] = (unsigned char) (this_count >> 8) & 0xff; in sd_setup_read_write_cmnd()
1068 SCpnt->cmnd[31] = (unsigned char) this_count & 0xff; in sd_setup_read_write_cmnd()
1069 } else if (sdp->use_16_for_rw || (this_count > 0xffff)) { in sd_setup_read_write_cmnd()
1080 SCpnt->cmnd[10] = (unsigned char) (this_count >> 24) & 0xff; in sd_setup_read_write_cmnd()
1081 SCpnt->cmnd[11] = (unsigned char) (this_count >> 16) & 0xff; in sd_setup_read_write_cmnd()
1082 SCpnt->cmnd[12] = (unsigned char) (this_count >> 8) & 0xff; in sd_setup_read_write_cmnd()
1083 SCpnt->cmnd[13] = (unsigned char) this_count & 0xff; in sd_setup_read_write_cmnd()
1085 } else if ((this_count > 0xff) || (block > 0x1fffff) || in sd_setup_read_write_cmnd()
1095 SCpnt->cmnd[7] = (unsigned char) (this_count >> 8) & 0xff; in sd_setup_read_write_cmnd()
1096 SCpnt->cmnd[8] = (unsigned char) this_count & 0xff; in sd_setup_read_write_cmnd()
1113 SCpnt->cmnd[4] = (unsigned char) this_count; in sd_setup_read_write_cmnd()
1116 SCpnt->sdb.length = this_count * sdp->sector_size; in sd_setup_read_write_cmnd()
1124 SCpnt->underflow = this_count << 9; in sd_setup_read_write_cmnd()