• Home
  • Raw
  • Download

Lines Matching refs:nr_blocks

843 	u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq));  in sd_setup_unmap_cmnd()  local
863 put_unaligned_be32(nr_blocks, &buf[16]); in sd_setup_unmap_cmnd()
879 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same16_cmnd() local
895 put_unaligned_be32(nr_blocks, &cmd->cmnd[10]); in sd_setup_write_same16_cmnd()
911 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_same10_cmnd() local
927 put_unaligned_be16(nr_blocks, &cmd->cmnd[7]); in sd_setup_write_same10_cmnd()
942 u32 nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_write_zeroes_cmnd() local
958 if (sdkp->ws16 || lba > 0xffffffff || nr_blocks > 0xffff) in sd_setup_write_zeroes_cmnd()
1042 sector_t lba, unsigned int nr_blocks, in sd_setup_rw32_cmnd() argument
1052 put_unaligned_be32(nr_blocks, &cmd->cmnd[28]); in sd_setup_rw32_cmnd()
1058 sector_t lba, unsigned int nr_blocks, in sd_setup_rw16_cmnd() argument
1067 put_unaligned_be32(nr_blocks, &cmd->cmnd[10]); in sd_setup_rw16_cmnd()
1073 sector_t lba, unsigned int nr_blocks, in sd_setup_rw10_cmnd() argument
1082 put_unaligned_be16(nr_blocks, &cmd->cmnd[7]); in sd_setup_rw10_cmnd()
1088 sector_t lba, unsigned int nr_blocks, in sd_setup_rw6_cmnd() argument
1092 if (WARN_ON_ONCE(nr_blocks == 0)) in sd_setup_rw6_cmnd()
1110 cmd->cmnd[4] = nr_blocks; in sd_setup_rw6_cmnd()
1123 unsigned int nr_blocks = sectors_to_logical(sdp, blk_rq_sectors(rq)); in sd_setup_read_write_cmnd() local
1157 if (unlikely(sdp->last_sector_bug && lba + nr_blocks > threshold)) { in sd_setup_read_write_cmnd()
1160 nr_blocks = threshold - lba; in sd_setup_read_write_cmnd()
1163 nr_blocks = 1; in sd_setup_read_write_cmnd()
1168 ret = sd_zbc_prepare_zone_append(cmd, &lba, nr_blocks); in sd_setup_read_write_cmnd()
1183 ret = sd_setup_rw32_cmnd(cmd, write, lba, nr_blocks, in sd_setup_read_write_cmnd()
1185 } else if (sdp->use_16_for_rw || (nr_blocks > 0xffff)) { in sd_setup_read_write_cmnd()
1186 ret = sd_setup_rw16_cmnd(cmd, write, lba, nr_blocks, in sd_setup_read_write_cmnd()
1188 } else if ((nr_blocks > 0xff) || (lba > 0x1fffff) || in sd_setup_read_write_cmnd()
1190 ret = sd_setup_rw10_cmnd(cmd, write, lba, nr_blocks, in sd_setup_read_write_cmnd()
1193 ret = sd_setup_rw6_cmnd(cmd, write, lba, nr_blocks, in sd_setup_read_write_cmnd()
1206 cmd->underflow = nr_blocks << 9; in sd_setup_read_write_cmnd()
1208 cmd->sdb.length = nr_blocks * sdp->sector_size; in sd_setup_read_write_cmnd()
1218 write ? "writing" : "reading", nr_blocks, in sd_setup_read_write_cmnd()