Lines Matching refs:ctz

465 static void lfs_ctz_fromle32(struct lfs_ctz *ctz) {  in lfs_ctz_fromle32()  argument
466 ctz->head = lfs_fromle32(ctz->head); in lfs_ctz_fromle32()
467 ctz->size = lfs_fromle32(ctz->size); in lfs_ctz_fromle32()
471 static void lfs_ctz_tole32(struct lfs_ctz *ctz) { in lfs_ctz_tole32() argument
472 ctz->head = lfs_tole32(ctz->head); in lfs_ctz_tole32()
473 ctz->size = lfs_tole32(ctz->size); in lfs_ctz_tole32()
1399 struct lfs_ctz ctz; in lfs_dir_getinfo() local
1401 LFS_MKTAG(LFS_TYPE_STRUCT, id, sizeof(ctz)), &ctz); in lfs_dir_getinfo()
1405 lfs_ctz_fromle32(&ctz); in lfs_dir_getinfo()
1408 info->size = ctz.size; in lfs_dir_getinfo()
2362 f->ctz.size > lfs->cfg->cache_size) { in lfs_dir_orphaningcommit()
3094 LFS_MKTAG(LFS_TYPE_STRUCT, file->id, 8), &file->ctz);
3099 lfs_ctz_fromle32(&file->ctz);
3146 file->ctz.head = LFS_BLOCK_INLINE;
3147 file->ctz.size = lfs_tag_size(tag);
3149 file->cache.block = file->ctz.head;
3154 if (file->ctz.size > 0) {
3306 .ctz.head = file->ctz.head,
3307 .ctz.size = file->ctz.size,
3314 while (file->pos < file->ctz.size) {
3355 file->pos = lfs_max(file->pos, file->ctz.size);
3359 file->ctz.head = file->block;
3360 file->ctz.size = file->pos;
3391 struct lfs_ctz ctz; local
3396 size = file->ctz.size;
3401 ctz = file->ctz;
3402 lfs_ctz_tole32(&ctz);
3403 buffer = &ctz;
3404 size = sizeof(ctz);
3429 if (file->pos >= file->ctz.size) {
3434 size = lfs_min(size, file->ctz.size - file->pos);
3443 file->ctz.head, file->ctz.size,
3510 lfs_max(file->pos+nsize, file->ctz.size) >
3531 file->ctz.head, file->ctz.size,
3604 if ((file->flags & LFS_O_APPEND) && file->pos < file->ctz.size) {
3605 file->pos = file->ctz.size;
3613 if (!(file->flags & LFS_F_WRITING) && file->pos > file->ctz.size) {
3616 file->pos = file->ctz.size;
3729 file->ctz.head = LFS_BLOCK_INLINE;
3730 file->ctz.size = size;
3732 file->cache.block = file->ctz.head;
3746 file->ctz.head, file->ctz.size,
3755 file->ctz.head = file->block;
3756 file->ctz.size = size;
3804 return lfs_max(file->pos, file->ctz.size);
3808 return file->ctz.size;
4592 struct lfs_ctz ctz; local
4594 LFS_MKTAG(LFS_TYPE_STRUCT, id, sizeof(ctz)), &ctz);
4601 lfs_ctz_fromle32(&ctz);
4605 ctz.head, ctz.size, cb, data);
4612 err = cb(data, (&ctz.head)[i]);
4630 f->ctz.head, f->ctz.size, cb, data);