Lines Matching refs:n_block
1541 u32 n_block; in ata_scsi_verify_xlat() local
1549 scsi_10_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat()
1553 scsi_16_lba_len(cdb, &block, &n_block); in ata_scsi_verify_xlat()
1557 if (!n_block) in ata_scsi_verify_xlat()
1561 if ((block + n_block) > dev_sectors) in ata_scsi_verify_xlat()
1567 if (lba_28_ok(block, n_block)) { in ata_scsi_verify_xlat()
1571 } else if (lba_48_ok(block, n_block)) { in ata_scsi_verify_xlat()
1579 tf->hob_nsect = (n_block >> 8) & 0xff; in ata_scsi_verify_xlat()
1588 tf->nsect = n_block & 0xff; in ata_scsi_verify_xlat()
1599 if (!lba_28_ok(block, n_block)) in ata_scsi_verify_xlat()
1619 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */ in ata_scsi_verify_xlat()
1667 u32 n_block; in ata_scsi_rw_xlat() local
1679 scsi_10_lba_len(cdb, &block, &n_block); in ata_scsi_rw_xlat()
1687 scsi_6_lba_len(cdb, &block, &n_block); in ata_scsi_rw_xlat()
1692 if (!n_block) in ata_scsi_rw_xlat()
1693 n_block = 256; in ata_scsi_rw_xlat()
1699 scsi_16_lba_len(cdb, &block, &n_block); in ata_scsi_rw_xlat()
1709 if (!n_block) in ata_scsi_rw_xlat()
1720 qc->nbytes = n_block * scmd->device->sector_size; in ata_scsi_rw_xlat()
1722 rc = ata_build_rw_tf(&qc->tf, qc->dev, block, n_block, tf_flags, in ata_scsi_rw_xlat()
3096 u32 n_block; in ata_scsi_write_same_xlat() local
3106 scsi_16_lba_len(cdb, &block, &n_block); in ata_scsi_write_same_xlat()
3120 size = ata_set_lba_range_entries(buf, 512, block, n_block); in ata_scsi_write_same_xlat()