Lines Matching refs:ctz

421 static void lfs_ctz_fromle32(struct lfs_ctz *ctz) {  in lfs_ctz_fromle32()  argument
422 ctz->head = lfs_fromle32(ctz->head); in lfs_ctz_fromle32()
423 ctz->size = lfs_fromle32(ctz->size); in lfs_ctz_fromle32()
427 static void lfs_ctz_tole32(struct lfs_ctz *ctz) { in lfs_ctz_tole32() argument
428 ctz->head = lfs_tole32(ctz->head); in lfs_ctz_tole32()
429 ctz->size = lfs_tole32(ctz->size); in lfs_ctz_tole32()
1282 struct lfs_ctz ctz; in lfs_dir_getinfo() local
1284 LFS_MKTAG(LFS_TYPE_STRUCT, id, sizeof(ctz)), &ctz); in lfs_dir_getinfo()
1288 lfs_ctz_fromle32(&ctz); in lfs_dir_getinfo()
1291 info->size = ctz.size; in lfs_dir_getinfo()
2191 f->ctz.size > lfs->cfg->cache_size) { in lfs_dir_orphaningcommit()
2923 LFS_MKTAG(LFS_TYPE_STRUCT, file->id, 8), &file->ctz);
2928 lfs_ctz_fromle32(&file->ctz);
2975 file->ctz.head = LFS_BLOCK_INLINE;
2976 file->ctz.size = lfs_tag_size(tag);
2978 file->cache.block = file->ctz.head;
2983 if (file->ctz.size > 0) {
3133 .ctz.head = file->ctz.head,
3134 .ctz.size = file->ctz.size,
3141 while (file->pos < file->ctz.size) {
3182 file->pos = lfs_max(file->pos, file->ctz.size);
3186 file->ctz.head = file->block;
3187 file->ctz.size = file->pos;
3218 struct lfs_ctz ctz; local
3223 size = file->ctz.size;
3228 ctz = file->ctz;
3229 lfs_ctz_tole32(&ctz);
3230 buffer = &ctz;
3231 size = sizeof(ctz);
3256 if (file->pos >= file->ctz.size) {
3261 size = lfs_min(size, file->ctz.size - file->pos);
3270 file->ctz.head, file->ctz.size,
3337 lfs_max(file->pos+nsize, file->ctz.size) >
3358 file->ctz.head, file->ctz.size,
3431 if ((file->flags & LFS_O_APPEND) && file->pos < file->ctz.size) {
3432 file->pos = file->ctz.size;
3440 if (!(file->flags & LFS_F_WRITING) && file->pos > file->ctz.size) {
3443 file->pos = file->ctz.size;
3545 file->ctz.head, file->ctz.size,
3554 file->ctz.head = file->block;
3555 file->ctz.size = size;
3602 return lfs_max(file->pos, file->ctz.size);
3606 return file->ctz.size;
4292 struct lfs_ctz ctz; local
4294 LFS_MKTAG(LFS_TYPE_STRUCT, id, sizeof(ctz)), &ctz);
4301 lfs_ctz_fromle32(&ctz);
4305 ctz.head, ctz.size, cb, data);
4312 err = cb(data, (&ctz.head)[i]);
4330 f->ctz.head, f->ctz.size, cb, data);