• Home
  • Raw
  • Download

Lines Matching refs:de

27 				    struct msdos_dir_entry *de)  in fat_make_i_pos()  argument
30 | (de - (struct msdos_dir_entry *)bh->b_data); in fat_make_i_pos()
67 struct buffer_head **bh, struct msdos_dir_entry **de) in fat__get_entry() argument
97 *de = (struct msdos_dir_entry *)((*bh)->b_data + offset); in fat__get_entry()
104 struct msdos_dir_entry **de) in fat_get_entry() argument
107 if (*bh && *de && in fat_get_entry()
108 (*de - (struct msdos_dir_entry *)(*bh)->b_data) < MSDOS_SB(dir->i_sb)->dir_per_block - 1) { in fat_get_entry()
110 (*de)++; in fat_get_entry()
113 return fat__get_entry(dir, pos, bh, de); in fat_get_entry()
266 struct buffer_head **bh, struct msdos_dir_entry **de, in fat_parse_long() argument
281 ds = (struct msdos_dir_slot *)*de; in fat_parse_long()
303 if (fat_get_entry(dir, pos, bh, de) < 0) in fat_parse_long()
307 ds = (struct msdos_dir_slot *)*de; in fat_parse_long()
315 if ((*de)->name[0] == DELETED_FLAG) in fat_parse_long()
317 if ((*de)->attr == ATTR_EXT) in fat_parse_long()
319 if (IS_FREE((*de)->name) || ((*de)->attr & ATTR_VOLUME)) in fat_parse_long()
321 if (fat_checksum((*de)->name) != alias_checksum) in fat_parse_long()
350 struct msdos_dir_entry *de; in fat_search_long() local
363 if (fat_get_entry(inode, &cpos, &bh, &de) == -1) in fat_search_long()
367 if (de->name[0] == DELETED_FLAG) in fat_search_long()
369 if (de->attr != ATTR_EXT && (de->attr & ATTR_VOLUME)) in fat_search_long()
371 if (de->attr != ATTR_EXT && IS_FREE(de->name)) in fat_search_long()
373 if (de->attr == ATTR_EXT) { in fat_search_long()
374 int status = fat_parse_long(inode, &cpos, &bh, &de, in fat_search_long()
387 memcpy(work, de->name, sizeof(de->name)); in fat_search_long()
396 de->lcase & CASE_LOWER_BASE); in fat_search_long()
413 de->lcase & CASE_LOWER_EXT); in fat_search_long()
444 sinfo->slot_off = cpos - nr_slots * sizeof(*de); in fat_search_long()
446 sinfo->de = de; in fat_search_long()
448 sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de); in fat_search_long()
475 struct msdos_dir_entry *de; in __fat_readdir() local
516 if (fat_get_entry(inode, &cpos, &bh, &de) == -1) in __fat_readdir()
525 if (de->name[0] == DELETED_FLAG) in __fat_readdir()
527 if (de->attr != ATTR_EXT && (de->attr & ATTR_VOLUME)) in __fat_readdir()
529 if (de->attr != ATTR_EXT && IS_FREE(de->name)) in __fat_readdir()
532 if ((de->attr & ATTR_VOLUME) || IS_FREE(de->name)) in __fat_readdir()
536 if (isvfat && de->attr == ATTR_EXT) { in __fat_readdir()
537 int status = fat_parse_long(inode, &cpos, &bh, &de, in __fat_readdir()
566 if (de->attr & ATTR_HIDDEN) { in __fat_readdir()
572 memcpy(work, de->name, sizeof(de->name)); in __fat_readdir()
581 de->lcase & CASE_LOWER_BASE); in __fat_readdir()
605 de->lcase & CASE_LOWER_EXT); in __fat_readdir()
648 if (!memcmp(de->name, MSDOS_DOT, MSDOS_NAME)) in __fat_readdir()
650 else if (!memcmp(de->name, MSDOS_DOTDOT, MSDOS_NAME)) { in __fat_readdir()
653 loff_t i_pos = fat_make_i_pos(sb, bh, de); in __fat_readdir()
663 (de->attr & ATTR_DIR) ? DT_DIR : DT_REG) < 0) in __fat_readdir()
857 struct msdos_dir_entry **de) in fat_get_short_entry() argument
859 while (fat_get_entry(dir, pos, bh, de) >= 0) { in fat_get_short_entry()
861 if (!IS_FREE((*de)->name) && !((*de)->attr & ATTR_VOLUME)) in fat_get_short_entry()
872 struct msdos_dir_entry **de, loff_t *i_pos) in fat_get_dotdot_entry() argument
878 while (fat_get_short_entry(dir, &offset, bh, de) >= 0) { in fat_get_dotdot_entry()
879 if (!strncmp((*de)->name, MSDOS_DOTDOT, MSDOS_NAME)) { in fat_get_dotdot_entry()
880 *i_pos = fat_make_i_pos(dir->i_sb, *bh, *de); in fat_get_dotdot_entry()
893 struct msdos_dir_entry *de; in fat_dir_empty() local
899 while (fat_get_short_entry(dir, &cpos, &bh, &de) >= 0) { in fat_dir_empty()
900 if (strncmp(de->name, MSDOS_DOT , MSDOS_NAME) && in fat_dir_empty()
901 strncmp(de->name, MSDOS_DOTDOT, MSDOS_NAME)) { in fat_dir_empty()
919 struct msdos_dir_entry *de; in fat_subdirs() local
925 while (fat_get_short_entry(dir, &cpos, &bh, &de) >= 0) { in fat_subdirs()
926 if (de->attr & ATTR_DIR) in fat_subdirs()
945 &sinfo->de) >= 0) { in fat_scan()
946 if (!strncmp(sinfo->de->name, name, MSDOS_NAME)) { in fat_scan()
947 sinfo->slot_off -= sizeof(*sinfo->de); in fat_scan()
949 sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de); in fat_scan()
962 struct msdos_dir_entry *de, *endp; in __fat_remove_entries() local
967 if (fat_get_entry(dir, &pos, &bh, &de) < 0) { in __fat_remove_entries()
974 while (nr_slots && de < endp) { in __fat_remove_entries()
975 de->name[0] = DELETED_FLAG; in __fat_remove_entries()
976 de++; in __fat_remove_entries()
987 pos += ((orig_slots - nr_slots) * sizeof(*de)) - sizeof(*de); in __fat_remove_entries()
995 struct msdos_dir_entry *de; in fat_remove_entries() local
1004 de = sinfo->de; in fat_remove_entries()
1005 sinfo->de = NULL; in fat_remove_entries()
1008 while (nr_slots && de >= (struct msdos_dir_entry *)bh->b_data) { in fat_remove_entries()
1009 de->name[0] = DELETED_FLAG; in fat_remove_entries()
1010 de--; in fat_remove_entries()
1099 struct msdos_dir_entry *de; in fat_alloc_new_dir() local
1118 de = (struct msdos_dir_entry *)bhs[0]->b_data; in fat_alloc_new_dir()
1120 memcpy(de[0].name, MSDOS_DOT, MSDOS_NAME); in fat_alloc_new_dir()
1121 memcpy(de[1].name, MSDOS_DOTDOT, MSDOS_NAME); in fat_alloc_new_dir()
1122 de->attr = de[1].attr = ATTR_DIR; in fat_alloc_new_dir()
1123 de[0].lcase = de[1].lcase = 0; in fat_alloc_new_dir()
1124 de[0].time = de[1].time = time; in fat_alloc_new_dir()
1125 de[0].date = de[1].date = date; in fat_alloc_new_dir()
1128 de[0].ctime = de[1].ctime = time; in fat_alloc_new_dir()
1129 de[0].ctime_cs = de[1].ctime_cs = time_cs; in fat_alloc_new_dir()
1130 de[0].adate = de[0].cdate = de[1].adate = de[1].cdate = date; in fat_alloc_new_dir()
1132 de[0].ctime = de[1].ctime = 0; in fat_alloc_new_dir()
1133 de[0].ctime_cs = de[1].ctime_cs = 0; in fat_alloc_new_dir()
1134 de[0].adate = de[0].cdate = de[1].adate = de[1].cdate = 0; in fat_alloc_new_dir()
1136 de[0].start = cpu_to_le16(cluster); in fat_alloc_new_dir()
1137 de[0].starthi = cpu_to_le16(cluster >> 16); in fat_alloc_new_dir()
1138 de[1].start = cpu_to_le16(MSDOS_I(dir)->i_logstart); in fat_alloc_new_dir()
1139 de[1].starthi = cpu_to_le16(MSDOS_I(dir)->i_logstart >> 16); in fat_alloc_new_dir()
1140 de[0].size = de[1].size = 0; in fat_alloc_new_dir()
1141 memset(de + 2, 0, sb->s_blocksize - 2 * sizeof(*de)); in fat_alloc_new_dir()
1160 int *nr_cluster, struct msdos_dir_entry **de, in fat_add_new_entries() argument
1217 *de = (struct msdos_dir_entry *)((*bh)->b_data + offset); in fat_add_new_entries()
1218 *i_pos = fat_make_i_pos(sb, *bh, *de); in fat_add_new_entries()
1245 struct msdos_dir_entry *de; in fat_add_entries() local
1256 while (fat_get_entry(dir, &pos, &bh, &de) > -1) { in fat_add_entries()
1261 if (IS_FREE(de->name)) { in fat_add_entries()
1289 pos -= free_slots * sizeof(*de); in fat_add_entries()
1297 int size = free_slots * sizeof(*de); in fat_add_entries()
1335 &de, &bh, &i_pos); in fat_add_entries()
1354 sinfo->de = de; in fat_add_entries()
1356 sinfo->i_pos = fat_make_i_pos(sb, sinfo->bh, sinfo->de); in fat_add_entries()