Lines Matching defs:lbalen
465 struct ctl_lba_len_flags *lbalen;
477 lbalen = ARGS(io);
478 if (lbalen->flags & CTL_LLF_READ) {
480 } else if (lbalen->flags & CTL_LLF_COMPARE) {
814 struct ctl_lba_len_flags *lbalen = ARGS(io);
823 off = roff = ((off_t)lbalen->lba) * be_lun->cbe_lun.blocksize;
842 scsi_u64to8b(lbalen->lba, data->descr[0].addr);
844 lbalen->lba), data->descr[0].length);
1066 struct ctl_lba_len_flags *lbalen = ARGS(io);
1081 off = roff = ((off_t)lbalen->lba) * be_lun->cbe_lun.blocksize;
1100 scsi_u64to8b(lbalen->lba, data->descr[0].addr);
1102 lbalen->lba), data->descr[0].length);
1368 struct ctl_lba_len_flags *lbalen;
1372 lbalen = (struct ctl_lba_len_flags *)&io->io_hdr.ctl_private[CTL_PRIV_LBA_LEN];
1374 beio->io_len = lbalen->len * cbe_lun->blocksize;
1375 beio->io_offset = lbalen->lba * cbe_lun->blocksize;
1376 beio->io_arg = (lbalen->flags & SSC_IMMED) != 0;
1407 struct ctl_lba_len_flags *lbalen;
1418 lbalen = ARGS(io);
1420 if (lbalen->flags & ~(SWS_LBDATA | SWS_UNMAP | SWS_ANCHOR | SWS_NDOB) ||
1421 (lbalen->flags & (SWS_UNMAP | SWS_ANCHOR) && be_lun->unmap == NULL)) {
1433 if (lbalen->flags & (SWS_UNMAP | SWS_ANCHOR)) {
1434 beio->io_offset = lbalen->lba * cbe_lun->blocksize;
1435 beio->io_len = (uint64_t)lbalen->len * cbe_lun->blocksize;
1447 (uintmax_t)lbalen->lba, lbalen->len);
1454 len_left = (uint64_t)lbalen->len * cbe_lun->blocksize;
1461 adj = ((lbalen->lba + lba) * cbe_lun->blocksize +
1480 if (lbalen->flags & SWS_NDOB) {
1486 if (lbalen->flags & SWS_LBDATA)
1487 scsi_ulto4b(lbalen->lba + lba, buf);
1492 beio->io_offset = lbalen->lba * cbe_lun->blocksize;
1497 lbalen->lba += lba;
1498 lbalen->len -= lba;
1563 struct ctl_lba_len_flags *lbalen;
1568 lbalen = ARGS(io);
1574 beio->io_offset = lbalen->lba * cbe_lun->blocksize;
1575 beio->io_len = (uint64_t)lbalen->len * cbe_lun->blocksize;
1589 struct ctl_lba_len_flags *lbalen;
1599 lbalen = ARGS(io);
1603 beio->io_offset = lbalen->lba * cbe_lun->blocksize;
1604 beio->io_len = (uint64_t)lbalen->len * cbe_lun->blocksize;
1616 (uintmax_t)lbalen->lba, lbalen->len);
1623 len_left = (uint64_t)lbalen->len * cbe_lun->blocksize;
1630 adj = ((lbalen->lba + lba) * cbe_lun->blocksize +
1650 beio->io_offset = lbalen->lba * cbe_lun->blocksize;
1655 lbalen->lba += lba;
1656 lbalen->len -= lba;
1946 struct ctl_lba_len_flags *lbalen;
1955 lbalen = ARGS(io);
1956 if (lbalen->flags & CTL_LLF_WRITE) {
1992 if (lbalen->flags & CTL_LLF_WRITE) {
2002 (uintmax_t)lbalen->lba, lbalen->len, bptrlen->len);
2004 if (lbalen->flags & CTL_LLF_COMPARE) {
2008 lbas = MIN(lbalen->len - bptrlen->len, lbas / cbe_lun->blocksize);
2009 beio->io_offset = (lbalen->lba + bptrlen->len) * cbe_lun->blocksize;
2036 if (bptrlen->len < lbalen->len)