Lines Matching refs:lbalen

397 	struct ctl_lba_len_flags *lbalen;
433 lbalen = ARGS(beio->io);
434 if (lbalen->flags & CTL_LLF_READ) {
436 } else if (lbalen->flags & CTL_LLF_COMPARE) {
788 struct ctl_lba_len_flags *lbalen = ARGS(io);
795 off = roff = ((off_t)lbalen->lba) * be_lun->cbe_lun.blocksize;
814 scsi_u64to8b(lbalen->lba, data->descr[0].addr);
816 lbalen->lba), data->descr[0].length);
961 struct ctl_lba_len_flags *lbalen = ARGS(io);
974 off = roff = ((off_t)lbalen->lba) * be_lun->cbe_lun.blocksize;
993 scsi_u64to8b(lbalen->lba, data->descr[0].addr);
995 lbalen->lba), data->descr[0].length);
1235 struct ctl_lba_len_flags *lbalen;
1239 lbalen = (struct ctl_lba_len_flags *)&io->io_hdr.ctl_private[CTL_PRIV_LBA_LEN];
1241 beio->io_len = lbalen->len * cbe_lun->blocksize;
1242 beio->io_offset = lbalen->lba * cbe_lun->blocksize;
1243 beio->io_arg = (lbalen->flags & SSC_IMMED) != 0;
1273 struct ctl_lba_len_flags *lbalen;
1282 lbalen = ARGS(beio->io);
1284 if (lbalen->flags & ~(SWS_LBDATA | SWS_UNMAP | SWS_ANCHOR | SWS_NDOB) ||
1285 (lbalen->flags & (SWS_UNMAP | SWS_ANCHOR) && be_lun->unmap == NULL)) {
1297 if (lbalen->flags & (SWS_UNMAP | SWS_ANCHOR)) {
1298 beio->io_offset = lbalen->lba * cbe_lun->blocksize;
1299 beio->io_len = (uint64_t)lbalen->len * cbe_lun->blocksize;
1311 (uintmax_t)lbalen->lba, lbalen->len);
1318 len_left = (uint64_t)lbalen->len * cbe_lun->blocksize;
1326 adj = ((lbalen->lba + lba) * cbe_lun->blocksize +
1346 if (lbalen->flags & SWS_NDOB) {
1352 if (lbalen->flags & SWS_LBDATA)
1353 scsi_ulto4b(lbalen->lba + lba, buf);
1358 beio->io_offset = lbalen->lba * cbe_lun->blocksize;
1363 lbalen->lba += lba;
1364 lbalen->len -= lba;
1541 struct ctl_lba_len_flags *lbalen;
1550 lbalen = ARGS(io);
1551 if (lbalen->flags & CTL_LLF_WRITE) {
1578 if (lbalen->flags & CTL_LLF_WRITE) {
1588 (uintmax_t)lbalen->lba, lbalen->len, bptrlen->len);
1589 if (lbalen->flags & CTL_LLF_COMPARE)
1593 lbas = MIN(lbalen->len - bptrlen->len, lbas / cbe_lun->blocksize);
1594 beio->io_offset = (lbalen->lba + bptrlen->len) * cbe_lun->blocksize;
1612 if (lbalen->flags & CTL_LLF_COMPARE) {
1622 if (bptrlen->len < lbalen->len)
1626 if (lbalen->flags & CTL_LLF_COMPARE)