Lines Matching refs:dep

98 msdosfs_times(struct denode *dep, const struct stat *st)  in msdosfs_times()  argument
104 unix2fattime(&st->st_birthtim, &dep->de_CDate, &dep->de_CTime); in msdosfs_times()
106 unix2fattime(&st->st_ctim, &dep->de_CDate, &dep->de_CTime); in msdosfs_times()
108 unix2fattime(&st->st_atim, &dep->de_ADate, NULL); in msdosfs_times()
109 unix2fattime(&st->st_mtim, &dep->de_MDate, &dep->de_MTime); in msdosfs_times()
163 struct direntry *dep; in msdosfs_findslot() local
224 dep = (struct direntry *)(bp->b_data + blkoff); in msdosfs_findslot()
234 if (dep->deName[0] == SLOT_EMPTY || in msdosfs_findslot()
235 dep->deName[0] == SLOT_DELETED) { in msdosfs_findslot()
245 if (dep->deName[0] == SLOT_EMPTY) { in msdosfs_findslot()
260 if (dep->deAttributes == ATTR_WIN95) { in msdosfs_findslot()
267 (struct winentry *)dep, chksum); in msdosfs_findslot()
275 if (dep->deAttributes & ATTR_VOLUME) { in msdosfs_findslot()
283 chksum_ok = (chksum == winChksum(dep->deName)); in msdosfs_findslot()
285 && (!olddos || memcmp(dosfilename, dep->deName, 11))) { in msdosfs_findslot()
364 struct denode *dep; in msdosfs_mkfile() local
405 if ((error = createde(&ndirent, pdep, &dep, &cn)) != 0) in msdosfs_mkfile()
407 if ((error = msdosfs_wfile(path, dep, node)) != 0) in msdosfs_mkfile()
409 return dep; in msdosfs_mkfile()
416 msdosfs_updatede(struct denode *dep) in msdosfs_updatede() argument
422 dep->de_flag &= ~DE_MODIFIED; in msdosfs_updatede()
423 error = m_readde(dep, &bp, &dirp); in msdosfs_updatede()
426 DE_EXTERNALIZE(dirp, dep); in msdosfs_updatede()
435 msdosfs_wfile(const char *path, struct denode *dep, fsnode *node) in msdosfs_wfile() argument
438 size_t osize = dep->de_FileSize; in msdosfs_wfile()
441 struct msdosfsmount *pmp = dep->de_pmp; in msdosfs_wfile()
448 __func__, dep->de_diroffset, dep->de_dirclust, in msdosfs_wfile()
449 dep->de_StartCluster)); in msdosfs_wfile()
460 if ((error = deextend(dep, nsize)) != 0) in msdosfs_wfile()
462 if ((error = msdosfs_updatede(dep)) != 0) in msdosfs_wfile()
487 if ((error = pcbmap(dep, cn++, &bn, NULL, &blsize)) != 0) { in msdosfs_wfile()
543 struct denode *dep; in msdosfs_mkdire() local
633 if ((error = createde(&ndirent, pdep, &dep, &cn)) != 0) in msdosfs_mkdire()
635 if ((error = msdosfs_updatede(dep)) != 0) in msdosfs_mkdire()
637 return dep; in msdosfs_mkdire()