Lines Matching refs:nr
411 mf_get(memfile_T *mfp, blocknr_T nr, int page_count) in mf_get() argument
415 if (nr >= mfp->mf_blocknr_max || nr <= mfp->mf_blocknr_min) in mf_get()
421 hp = mf_find_hash(mfp, nr); in mf_get()
424 if (nr < 0 || nr >= mfp->mf_infile_count) // can't be in the file in mf_get()
438 hp->bh_bnum = nr; in mf_get()
702 mf_find_hash(memfile_T *mfp, blocknr_T nr) in mf_find_hash() argument
704 return (bhdr_T *)mf_hash_find(&mfp->mf_hash, nr); in mf_find_hash()
976 blocknr_T nr; // block nr which is being written in mf_write() local
1002 nr = hp->bh_bnum; in mf_write()
1003 if (nr > mfp->mf_infile_count) // beyond end of file in mf_write()
1005 nr = mfp->mf_infile_count; in mf_write()
1006 hp2 = mf_find_hash(mfp, nr); // NULL caught below in mf_write()
1011 offset = (off_T)page_size * nr; in mf_write()
1059 if (nr + (blocknr_T)page_count > mfp->mf_infile_count) in mf_write()
1060 mfp->mf_infile_count = nr + page_count; in mf_write()
1061 if (nr == hp->bh_bnum) // written the desired block in mf_write()