Lines Matching refs:bhdr_T
69 static void mf_ins_hash(memfile_T *, bhdr_T *);
70 static void mf_rem_hash(memfile_T *, bhdr_T *);
71 static bhdr_T *mf_find_hash(memfile_T *, blocknr_T);
72 static void mf_ins_used(memfile_T *, bhdr_T *);
73 static void mf_rem_used(memfile_T *, bhdr_T *);
74 static bhdr_T *mf_release(memfile_T *, int);
75 static bhdr_T *mf_alloc_bhdr(memfile_T *, int);
76 static void mf_free_bhdr(bhdr_T *);
77 static void mf_ins_free(memfile_T *, bhdr_T *);
78 static bhdr_T *mf_rem_free(memfile_T *);
79 static int mf_read(memfile_T *, bhdr_T *);
80 static int mf_write(memfile_T *, bhdr_T *);
81 static int mf_write_block(memfile_T *mfp, bhdr_T *hp, off_T offset, unsigned size);
82 static int mf_trans_add(memfile_T *, bhdr_T *);
238 bhdr_T *hp, *nextp; in mf_close()
320 bhdr_T *
323 bhdr_T *hp; // new bhdr_T in mf_new()
324 bhdr_T *freep; // first block in free list in mf_new()
410 bhdr_T *
413 bhdr_T *hp; in mf_get()
471 bhdr_T *hp, in mf_put()
496 mf_free(memfile_T *mfp, bhdr_T *hp) in mf_free()
527 bhdr_T *hp; in mf_sync()
672 bhdr_T *hp; in mf_set_dirty()
684 mf_ins_hash(memfile_T *mfp, bhdr_T *hp) in mf_ins_hash()
693 mf_rem_hash(memfile_T *mfp, bhdr_T *hp) in mf_rem_hash()
701 static bhdr_T *
704 return (bhdr_T *)mf_hash_find(&mfp->mf_hash, nr); in mf_find_hash()
711 mf_ins_used(memfile_T *mfp, bhdr_T *hp) in mf_ins_used()
728 mf_rem_used(memfile_T *mfp, bhdr_T *hp) in mf_rem_used()
751 static bhdr_T *
754 bhdr_T *hp; in mf_release()
838 bhdr_T *hp; in mf_release_all()
877 static bhdr_T *
880 bhdr_T *hp; in mf_alloc_bhdr()
882 if ((hp = ALLOC_ONE(bhdr_T)) != NULL) in mf_alloc_bhdr()
898 mf_free_bhdr(bhdr_T *hp) in mf_free_bhdr()
908 mf_ins_free(memfile_T *mfp, bhdr_T *hp) in mf_ins_free()
918 static bhdr_T *
921 bhdr_T *hp; in mf_rem_free()
934 mf_read(memfile_T *mfp, bhdr_T *hp) in mf_read()
973 mf_write(memfile_T *mfp, bhdr_T *hp) in mf_write()
977 bhdr_T *hp2; in mf_write()
1075 bhdr_T *hp, in mf_write_block()
1109 mf_trans_add(memfile_T *mfp, bhdr_T *hp) in mf_trans_add()
1111 bhdr_T *freep; in mf_trans_add()