Lines Matching refs:entry
322 // operations on 32-bit entry tags
1200 // crc the entry first, hopefully leaving it in the cache
1504 // grab the entry data
1514 // find entry matching name
2694 // setup entry
2770 // skip superblock entry
3030 // allocate entry for file if it doesn't exist
3059 // get next slot and create entry to remember name
3382 // update dir entry
3866 // delete the entry
3905 // find old entry
3912 // find new entry
4829 // fetch and delete the moved entry
5234 static inline lfs_size_t lfs1_entry_size(const lfs1_entry_t *entry) {
5235 return 4 + entry->d.elen + entry->d.alen + entry->d.nlen;
5300 static int lfs1_dir_next(lfs_t *lfs, lfs1_dir_t *dir, lfs1_entry_t *entry) {
5301 while (dir->off + sizeof(entry->d) > (0x7fffffff & dir->d.size)-4) {
5303 entry->off = dir->off;
5317 &entry->d, sizeof(entry->d));
5318 lfs1_entry_fromle32(&entry->d);
5323 entry->off = dir->off;
5324 dir->off += lfs1_entry_size(entry);
5325 dir->pos += lfs1_entry_size(entry);
5337 lfs1_entry_t entry;
5354 while (dir.off + sizeof(entry.d) <= (0x7fffffff & dir.d.size)-4) {
5356 &entry.d, sizeof(entry.d));
5357 lfs1_entry_fromle32(&entry.d);
5362 dir.off += lfs1_entry_size(&entry);
5363 if ((0x70 & entry.d.type) == (0x70 & LFS1_TYPE_REG)) {
5365 entry.d.u.file.head, entry.d.u.file.size, cb, data);
5412 lfs1_entry_t entry;
5420 err = lfs1_dir_next(lfs, &cwd, &entry);
5429 if (!(0x80 & entry.d.type) &&
5430 memcmp(&entry.d.u, e, sizeof(entry.d.u)) == 0) {
5561 // check that entry has not been moved
5588 // create entry in new dir