Lines Matching refs:dce

313 	dirCacheEntry_t *dce;  in dir_write()  local
326 dce = cache->entries[entry->entry]; in dir_write()
327 if(dce) { in dir_write()
329 addFreeEntry(cache, dce->beginSlot, dce->endSlot); in dir_write()
331 dce->dir = entry->dir; in dir_write()
510 dirCacheEntry_t *dce; in vfat_lookup_loop_for_read() local
513 dce = cache->entries[initpos]; in vfat_lookup_loop_for_read()
514 if(dce) { in vfat_lookup_loop_for_read()
515 direntry->entry = dce->endSlot - 1; in vfat_lookup_loop_for_read()
516 return dce; in vfat_lookup_loop_for_read()
538 dirCacheEntry_t *dce, in checkNameForMatch() argument
543 switch(dce->type) { in checkNameForMatch()
553 dce->type); in checkNameForMatch()
558 direntry->dir = dce->dir; in checkNameForMatch()
567 (dce->longName && in checkNameForMatch()
568 match(dce->longName, filename, direntry->name, 0, length)) || in checkNameForMatch()
569 match(dce->shortName, filename, direntry->name, 1, length))) { in checkNameForMatch()
579 WCHAR_TO_NATIVE(dce->shortName,tmp,13); in checkNameForMatch()
590 WCHAR_TO_NATIVE(dce->shortName,tmp,13); in checkNameForMatch()
612 dirCacheEntry_t *dce; in vfat_lookup() local
638 dce = vfat_lookup_loop_for_read(cp, direntry, cache, &io_error); in vfat_lookup()
639 if(!dce) { in vfat_lookup()
645 result = checkNameForMatch(direntry, dce, in vfat_lookup()
652 if(dce->longName) in vfat_lookup()
653 wchar_to_native(dce->longName, longname, in vfat_lookup()
659 wchar_to_native(dce->shortName, shortname, in vfat_lookup()
661 direntry->beginSlot = dce->beginSlot; in vfat_lookup()
662 direntry->endSlot = dce->endSlot-1; in vfat_lookup()
675 dirCacheEntry_t *dce; in vfat_lookup_loop_for_insert() local
678 dce = cache->entries[initpos]; in vfat_lookup_loop_for_insert()
679 if(dce && dce->type != DCET_END) { in vfat_lookup_loop_for_insert()
680 return dce; in vfat_lookup_loop_for_insert()
683 dce = vfat_lookup_loop_common(cp, in vfat_lookup_loop_for_insert()
685 if(!dce) { in vfat_lookup_loop_for_insert()
697 static void accountFreeSlots(struct scan_state *ssp, dirCacheEntry_t *dce) in accountFreeSlots() argument
702 if(ssp->free_end != dce->beginSlot) { in accountFreeSlots()
703 ssp->free_start = dce->beginSlot; in accountFreeSlots()
705 ssp->free_end = dce->endSlot; in accountFreeSlots()
742 dirCacheEntry_t *dce; in lookupForInsert() local
784 dce = vfat_lookup_loop_for_insert(cp, &entry, pos, cache); in lookupForInsert()
785 switch(dce->type) { in lookupForInsert()
787 accountFreeSlots(ssp, dce); in lookupForInsert()
790 if(!(dce->dir.attr & 0x8) && in lookupForInsert()
791 (signed int)dce->endSlot-1 == source_entry) in lookupForInsert()
792 accountFreeSlots(ssp, dce); in lookupForInsert()
796 if( (dce->dir.attr & 0x8) || in lookupForInsert()
797 ((signed int)dce->endSlot-1==ignore_entry)) in lookupForInsert()
801 if((dce->longName && in lookupForInsert()
802 !wcscasecmp(dce->longName, wlongname)) || in lookupForInsert()
803 (dce->shortName && in lookupForInsert()
804 !wcscasecmp(dce->shortName, wlongname))) { in lookupForInsert()
805 ssp->longmatch = dce->endSlot - 1; in lookupForInsert()
808 direntry->beginSlot = dce->beginSlot; in lookupForInsert()
809 direntry->endSlot = dce->endSlot - 1; in lookupForInsert()
816 !wcscasecmp(shortName, dce->shortName)) in lookupForInsert()
817 ssp->shortmatch = dce->endSlot - 1; in lookupForInsert()
822 pos = dce->endSlot; in lookupForInsert()
823 } while(dce->type != DCET_END); in lookupForInsert()
826 ssp->max_entry = dce->beginSlot; in lookupForInsert()