de                146 usr/server/fs/fatfs/fatfs.h #define IS_DIR(de)	(((de)->attr) & FA_SUBDIR)
de                147 usr/server/fs/fatfs/fatfs.h #define IS_VOL(de)	(((de)->attr) & FA_VOLID)
de                148 usr/server/fs/fatfs/fatfs.h #define IS_FILE(de)	(!IS_DIR(de) && !IS_VOL(de))
de                150 usr/server/fs/fatfs/fatfs.h #define IS_DELETED(de)  ((de)->name[0] == 0xe5)
de                151 usr/server/fs/fatfs/fatfs.h #define IS_EMPTY(de)    ((de)->name[0] == 0)
de                 83 usr/server/fs/fatfs/fatfs_node.c 	struct fat_dirent *de;
de                 90 usr/server/fs/fatfs/fatfs_node.c 	de = (struct fat_dirent *)fmp->dir_buf;
de                 94 usr/server/fs/fatfs/fatfs_node.c 		if (IS_EMPTY(de))
de                 96 usr/server/fs/fatfs/fatfs_node.c 		if (!IS_VOL(de) &&
de                 97 usr/server/fs/fatfs/fatfs_node.c 		    !fat_compare_name((char *)de->name, name)) {
de                 99 usr/server/fs/fatfs/fatfs_node.c 			*(&np->dirent) = *de;
de                105 usr/server/fs/fatfs/fatfs_node.c 		if (!IS_DELETED(de))
de                106 usr/server/fs/fatfs/fatfs_node.c 			DPRINTF(("fat_lookup_dirent: %s\n", de->name));
de                107 usr/server/fs/fatfs/fatfs_node.c 		de++;
de                178 usr/server/fs/fatfs/fatfs_node.c 	struct fat_dirent *de;
de                185 usr/server/fs/fatfs/fatfs_node.c 	de = (struct fat_dirent *)fmp->dir_buf;
de                187 usr/server/fs/fatfs/fatfs_node.c 		if (IS_EMPTY(de))
de                189 usr/server/fs/fatfs/fatfs_node.c 		if (!IS_DELETED(de) && !IS_VOL(de)) {
de                192 usr/server/fs/fatfs/fatfs_node.c 				*(&np->dirent) = *de;
de                200 usr/server/fs/fatfs/fatfs_node.c 		DPRINTF(("fat_get_dirent: %s\n", de->name));
de                201 usr/server/fs/fatfs/fatfs_node.c 		de++;
de                262 usr/server/fs/fatfs/fatfs_node.c 	struct fat_dirent *de;
de                269 usr/server/fs/fatfs/fatfs_node.c 	de = (struct fat_dirent *)fmp->dir_buf;
de                271 usr/server/fs/fatfs/fatfs_node.c 		if (IS_DELETED(de) || IS_EMPTY(de))
de                273 usr/server/fs/fatfs/fatfs_node.c 		DPRINTF(("fat_add_dirent: scan %s\n", de->name));
de                274 usr/server/fs/fatfs/fatfs_node.c 		de++;
de                280 usr/server/fs/fatfs/fatfs_node.c 	memcpy(de, &np->dirent, sizeof(struct fat_dirent));
de                133 usr/server/fs/fatfs/fatfs_vnops.c 	struct fat_dirent *de;
de                152 usr/server/fs/fatfs/fatfs_vnops.c 	de = &np->dirent;
de                153 usr/server/fs/fatfs/fatfs_vnops.c 	vp->v_type = IS_DIR(de) ? VDIR : VREG;
de                154 usr/server/fs/fatfs/fatfs_vnops.c 	fat_attr_to_mode(de->attr, &vp->v_mode);
de                156 usr/server/fs/fatfs/fatfs_vnops.c 	vp->v_size = de->size;
de                157 usr/server/fs/fatfs/fatfs_vnops.c 	vp->v_blkno = de->cluster;
de                159 usr/server/fs/fatfs/fatfs_vnops.c 	DPRINTF(("fatfs_lookup: cl=%d\n", de->cluster));
de                240 usr/server/fs/fatfs/fatfs_vnops.c 	struct fat_dirent *de;
de                271 usr/server/fs/fatfs/fatfs_vnops.c 		de = &np->dirent;
de                272 usr/server/fs/fatfs/fatfs_vnops.c 		de->size = end_pos;
de                343 usr/server/fs/fatfs/fatfs_vnops.c 	struct fat_dirent *de;
de                352 usr/server/fs/fatfs/fatfs_vnops.c 	de = &np.dirent;
de                353 usr/server/fs/fatfs/fatfs_vnops.c 	fat_restore_name((char *)&de->name, dir->d_name);
de                355 usr/server/fs/fatfs/fatfs_vnops.c 	if (de->attr & FA_SUBDIR)
de                357 usr/server/fs/fatfs/fatfs_vnops.c 	else if (de->attr & FA_DEVICE)
de                380 usr/server/fs/fatfs/fatfs_vnops.c 	struct fat_dirent *de;
de                400 usr/server/fs/fatfs/fatfs_vnops.c 	de = &np.dirent;
de                401 usr/server/fs/fatfs/fatfs_vnops.c 	memset(de, 0, sizeof(struct fat_dirent));
de                402 usr/server/fs/fatfs/fatfs_vnops.c 	fat_convert_name(name, (char *)de->name);
de                403 usr/server/fs/fatfs/fatfs_vnops.c 	de->cluster = cl;
de                404 usr/server/fs/fatfs/fatfs_vnops.c 	de->time = TEMP_TIME;
de                405 usr/server/fs/fatfs/fatfs_vnops.c 	de->date = TEMP_DATE;
de                406 usr/server/fs/fatfs/fatfs_vnops.c 	fat_mode_to_attr(mode, &de->attr);
de                421 usr/server/fs/fatfs/fatfs_vnops.c 	struct fat_dirent *de;
de                433 usr/server/fs/fatfs/fatfs_vnops.c 	de = &np.dirent;
de                434 usr/server/fs/fatfs/fatfs_vnops.c 	if (IS_DIR(de)) {
de                438 usr/server/fs/fatfs/fatfs_vnops.c 	if (!IS_FILE(de)) {
de                444 usr/server/fs/fatfs/fatfs_vnops.c 	error = fat_free_clusters(fmp, de->cluster);
de                449 usr/server/fs/fatfs/fatfs_vnops.c 	de->name[0] = 0xe5;
de                557 usr/server/fs/fatfs/fatfs_vnops.c 	struct fat_dirent *de;
de                576 usr/server/fs/fatfs/fatfs_vnops.c 	de = &np.dirent;
de                577 usr/server/fs/fatfs/fatfs_vnops.c 	fat_convert_name(name, (char *)&de->name);
de                578 usr/server/fs/fatfs/fatfs_vnops.c 	de->cluster = cl;
de                579 usr/server/fs/fatfs/fatfs_vnops.c 	de->time = TEMP_TIME;
de                580 usr/server/fs/fatfs/fatfs_vnops.c 	de->date = TEMP_DATE;
de                581 usr/server/fs/fatfs/fatfs_vnops.c 	fat_mode_to_attr(mode, &de->attr);
de                589 usr/server/fs/fatfs/fatfs_vnops.c 	de = (struct fat_dirent *)fmp->io_buf;
de                590 usr/server/fs/fatfs/fatfs_vnops.c 	memcpy(de->name, ".          ", 11);
de                591 usr/server/fs/fatfs/fatfs_vnops.c 	de->attr = FA_SUBDIR;
de                592 usr/server/fs/fatfs/fatfs_vnops.c 	de->cluster = cl;
de                593 usr/server/fs/fatfs/fatfs_vnops.c 	de->time = TEMP_TIME;
de                594 usr/server/fs/fatfs/fatfs_vnops.c 	de->date = TEMP_DATE;
de                595 usr/server/fs/fatfs/fatfs_vnops.c 	de++;
de                596 usr/server/fs/fatfs/fatfs_vnops.c 	memcpy(de->name, "..         ", 11);
de                597 usr/server/fs/fatfs/fatfs_vnops.c 	de->attr = FA_SUBDIR;
de                598 usr/server/fs/fatfs/fatfs_vnops.c 	de->cluster = dvp->v_blkno;
de                599 usr/server/fs/fatfs/fatfs_vnops.c 	de->time = TEMP_TIME;
de                600 usr/server/fs/fatfs/fatfs_vnops.c 	de->date = TEMP_DATE;
de                621 usr/server/fs/fatfs/fatfs_vnops.c 	struct fat_dirent *de;
de                634 usr/server/fs/fatfs/fatfs_vnops.c 	de = &np.dirent;
de                635 usr/server/fs/fatfs/fatfs_vnops.c 	if (!IS_DIR(de)) {
de                641 usr/server/fs/fatfs/fatfs_vnops.c 	error = fat_free_clusters(fmp, de->cluster);
de                646 usr/server/fs/fatfs/fatfs_vnops.c 	de->name[0] = 0xe5;
de                682 usr/server/fs/fatfs/fatfs_vnops.c 	struct fat_dirent *de;
de                689 usr/server/fs/fatfs/fatfs_vnops.c 	de = &np->dirent;
de                693 usr/server/fs/fatfs/fatfs_vnops.c 		error = fat_free_clusters(fmp, de->cluster);
de                705 usr/server/fs/fatfs/fatfs_vnops.c 	de->size = length;