Lines Matching defs:n_block
1502 u32 n_block;
1510 scsi_10_lba_len(cdb, &block, &n_block);
1514 scsi_16_lba_len(cdb, &block, &n_block);
1518 if (!n_block)
1522 if ((block + n_block) > dev_sectors)
1528 if (lba_28_ok(block, n_block)) {
1532 } else if (lba_48_ok(block, n_block)) {
1540 tf->hob_nsect = (n_block >> 8) & 0xff;
1549 tf->nsect = n_block & 0xff;
1560 if (!lba_28_ok(block, n_block))
1580 tf->nsect = n_block & 0xff; /* Sector count 0 means 256 sectors */
1628 u32 n_block;
1640 scsi_10_lba_len(cdb, &block, &n_block);
1648 scsi_6_lba_len(cdb, &block, &n_block);
1653 if (!n_block)
1654 n_block = 256;
1660 scsi_16_lba_len(cdb, &block, &n_block);
1670 if (!n_block)
1681 qc->nbytes = n_block * ATA_SECT_SIZE;
1683 rc = ata_build_rw_tf(&qc->tf, qc->dev, block, n_block, tf_flags,
2953 u32 n_block;
2963 scsi_16_lba_len(cdb, &block, &n_block);
2977 size = ata_set_lba_range_entries(buf, 512, block, n_block);