Lines Matching refs:dce
312 dirCacheEntry_t *dce;
325 dce = cache->entries[entry->entry];
326 if(dce) {
328 addFreeEntry(cache, dce->beginSlot, dce->endSlot);
330 dce->dir = entry->dir;
497 dirCacheEntry_t *dce;
500 dce = cache->entries[initpos];
501 if(dce) {
502 direntry->entry = dce->endSlot - 1;
503 return dce;
525 dirCacheEntry_t *dce,
530 switch(dce->type) {
539 dce->type);
543 direntry->dir = dce->dir;
552 (dce->longName &&
553 match(dce->longName, filename, direntry->name, 0, length)) ||
554 match(dce->shortName, filename, direntry->name, 1, length))) {
564 wchar_to_native(dce->shortName,tmp,13);
575 wchar_to_native(dce->shortName,tmp,13);
596 dirCacheEntry_t *dce;
625 dce = vfat_lookup_loop_for_read(cp, direntry, cache, &io_error);
626 if(!dce) {
632 result = checkNameForMatch(direntry, dce,
639 if(dce->longName)
640 wchar_to_native(dce->longName,
646 wchar_to_native(dce->shortName, shortname, 12);
647 direntry->beginSlot = dce->beginSlot;
648 direntry->endSlot = dce->endSlot-1;
661 dirCacheEntry_t *dce;
664 dce = cache->entries[initpos];
665 if(dce && dce->type != DCET_END) {
666 return dce;
669 dce = vfat_lookup_loop_common(cp,
671 if(!dce) {
683 static void accountFreeSlots(struct scan_state *ssp, dirCacheEntry_t *dce)
688 if(ssp->free_end != dce->beginSlot) {
689 ssp->free_start = dce->beginSlot;
691 ssp->free_end = dce->endSlot;
728 dirCacheEntry_t *dce;
770 dce = vfat_lookup_loop_for_insert(cp, &entry, pos, cache);
771 switch(dce->type) {
773 accountFreeSlots(ssp, dce);
776 if(!(dce->dir.attr & 0x8) &&
777 (signed int)dce->endSlot-1 == source_entry)
778 accountFreeSlots(ssp, dce);
782 if( (dce->dir.attr & 0x8) ||
783 ((signed int)dce->endSlot-1==ignore_entry))
787 if((dce->longName &&
788 !wcscasecmp(dce->longName, wlongname)) ||
789 (dce->shortName &&
790 !wcscasecmp(dce->shortName, wlongname))) {
791 ssp->longmatch = dce->endSlot - 1;
794 direntry->beginSlot = dce->beginSlot;
795 direntry->endSlot = dce->endSlot-1;
802 !wcscasecmp(shortName, dce->shortName))
803 ssp->shortmatch = dce->endSlot - 1;
808 pos = dce->endSlot;
809 } while(dce->type != DCET_END);
812 ssp->max_entry = dce->beginSlot;