Lines Matching refs:pcdir

45 static int pc_makedirentry(struct pcnode *dp, struct pcdir *direntries,
53 struct pcdir *ep);
54 static struct pcdir *pc_name_to_pcdir(struct pcnode *dp, char *namep,
142 struct pcdir *ep; in pc_direnter()
184 struct pcdir *direntries; in pc_direnter()
219 kmem_free(direntries, ndirentries * sizeof (struct pcdir)); in pc_direnter()
223 offset += (ndirentries - 1) * sizeof (struct pcdir); in pc_direnter()
253 struct pcdir t_dot; /* dot entry */
254 struct pcdir t_dotdot; /* dotdot entry */
273 pc_makedirentry(struct pcnode *dp, struct pcdir *direntries, in pc_makedirentry()
279 struct pcdir *ep; in pc_makedirentry()
370 offset += sizeof (struct pcdir); in pc_makedirentry()
490 struct pcdir *ep; in pc_dirempty()
546 offset += sizeof (struct pcdir); in pc_dirempty()
694 struct pcdir *direntries; in pc_rename()
695 struct pcdir *ep; in pc_rename()
781 kmem_free(direntries, ndirentries * sizeof (struct pcdir)); in pc_rename()
786 offset += (ndirentries - 1) * sizeof (struct pcdir); in pc_rename()
856 struct pcdir *ep = NULL; in pc_dirfixdotdot()
857 struct pcdir *tep = NULL; in pc_dirfixdotdot()
905 struct pcdir *ep = NULL; in pc_findentry()
965 offset += sizeof (struct pcdir); in pc_findentry()
997 struct pcdir **epp) in pc_blkatoff()
1024 (struct pcdir *)(bp->b_un.b_addr + pc_blkoff(fsp, offset)); in pc_blkatoff()
1110 pc_match_long_fn(struct pcnode *pcp, char *namep, struct pcdir **epp, in pc_match_long_fn()
1113 struct pcdir *ep = (struct pcdir *)*epp; in pc_match_long_fn()
1136 *offset += sizeof (struct pcdir); in pc_match_long_fn()
1147 pc_match_short_fn(struct pcnode *pcp, char *namep, struct pcdir **epp, in pc_match_short_fn()
1152 struct pcdir *ep = *epp; in pc_match_short_fn()
1159 *offset += sizeof (struct pcdir); in pc_match_short_fn()
1167 *offset += sizeof (struct pcdir); in pc_match_short_fn()
1192 *offset += sizeof (struct pcdir); in pc_match_short_fn()
1210 struct pcdir *ep = NULL; in pc_remove_long_fn()
1239 lfn_offset += sizeof (struct pcdir); in pc_remove_long_fn()
1266 offset_t spaceneeded = ndirentries * sizeof (struct pcdir); in pc_find_free_space()
1273 struct pcdir *ep; in pc_find_free_space()
1312 offset += sizeof (struct pcdir); in pc_find_free_space()
1313 spaceavail += sizeof (struct pcdir); in pc_find_free_space()
1317 offset += sizeof (struct pcdir); in pc_find_free_space()
1336 struct pcdir ep; in direntries_needed()
1377 static struct pcdir *
1380 struct pcdir *bpcdir; in pc_name_to_pcdir()
1381 struct pcdir *ep; in pc_name_to_pcdir()
1392 bpcdir = kmem_zalloc(ndirentries * sizeof (struct pcdir), KM_SLEEP); in pc_name_to_pcdir()
1424 kmem_free(bpcdir, ndirentries * sizeof (struct pcdir)); in pc_name_to_pcdir()
1446 generate_short_name(struct pcnode *dp, char *namep, struct pcdir *inep) in generate_short_name()
1623 struct pcdir *ep; in shortname_exists()
1645 offset += sizeof (struct pcdir); in shortname_exists()
1660 offset += sizeof (struct pcdir); in shortname_exists()
1671 pc_getstartcluster(struct pcfs *fsp, struct pcdir *ep) in pc_getstartcluster()
1688 pc_setstartcluster(struct pcfs *fsp, struct pcdir *ep, pc_cluster32_t cln) in pc_setstartcluster()