Lines Matching defs:lbn
92 ncl_gbp_getblksz(struct vnode *vp, daddr_t lbn, long *sz)
105 if ((off_t)lbn * biosize >= nsize)
107 else if ((off_t)(lbn + 1) * biosize > nsize)
108 bcount = nsize - (off_t)lbn * biosize;
439 daddr_t lbn, rabn;
492 lbn = uio->uio_offset / biosize;
493 on = uio->uio_offset - (lbn * biosize);
503 (off_t)(lbn + 1 + nra) * biosize < nsize; nra++) {
504 rabn = lbn + 1 + nra;
533 if ((off_t)lbn * biosize >= nsize) {
535 } else if ((off_t)(lbn + 1) * biosize > nsize) {
536 bcount = nsize - (off_t)lbn * biosize;
538 bp = nfs_getcacheblk(vp, lbn, bcount, td);
606 lbn = (uoff_t)uio->uio_offset / NFS_DIRBLKSIZ;
608 bp = nfs_getcacheblk(vp, lbn, NFS_DIRBLKSIZ, td);
636 for (i = 0; i <= lbn && !error; i++) {
669 if (error || i < lbn)
691 (lbn + 1) * NFS_DIRBLKSIZ < np->n_direofoffset) &&
692 incore(&vp->v_bufobj, lbn + 1) == NULL) {
694 rabp = nfs_getcacheblk(vp, lbn + 1, NFS_DIRBLKSIZ, td);
840 daddr_t lbn;
1010 lbn = uio->uio_offset / biosize;
1011 on = uio->uio_offset - (lbn * biosize);
1026 lbn == (np->n_size / biosize) &&
1035 obcount = np->n_size - (lbn * biosize);
1036 bp = nfs_getcacheblk(vp, lbn, obcount, td);
1062 if ((off_t)lbn * biosize + bcount < np->n_size) {
1063 if ((off_t)(lbn + 1) * biosize < np->n_size)
1066 bcount = np->n_size - (off_t)lbn * biosize;
1069 bp = nfs_getcacheblk(vp, lbn, bcount, td);
1817 daddr_t lbn;
1826 lbn = nsize / biosize;
1827 bufsize = nsize - (lbn * biosize);
1828 bp = nfs_getcacheblk(vp, lbn, bufsize, td);