Lines Matching full:de

53 	struct erofs_dirent *const de = (struct erofs_dirent *)data;  in find_target_dirent()  local
62 const int nameoff = nameoff_from_disk(de[mid].nameoff, in find_target_dirent()
69 data + nameoff_from_disk(de[mid + 1].nameoff, in find_target_dirent()
77 return de + mid; in find_target_dirent()
106 struct erofs_dirent *de; in find_target_block_classic() local
108 de = erofs_bread(&buf, dir, mid, EROFS_KMAP); in find_target_block_classic()
109 if (!IS_ERR(de)) { in find_target_block_classic()
110 const int nameoff = nameoff_from_disk(de->nameoff, in find_target_block_classic()
112 const int ndirents = nameoff / sizeof(*de); in find_target_block_classic()
123 de = ERR_PTR(-EFSCORRUPTED); in find_target_block_classic()
129 dname.name = (u8 *)de + nameoff; in find_target_block_classic()
131 dname.end = (u8 *)de + EROFS_BLKSIZ; in find_target_block_classic()
133 dname.end = (u8 *)de + in find_target_block_classic()
134 nameoff_from_disk(de[1].nameoff, in find_target_block_classic()
150 candidate = de; in find_target_block_classic()
163 return de; in find_target_block_classic()
173 struct erofs_dirent *de; in erofs_namei() local
184 de = find_target_block_classic(&buf, dir, &qn, &ndirents); in erofs_namei()
185 if (IS_ERR(de)) in erofs_namei()
186 return PTR_ERR(de); in erofs_namei()
189 de = find_target_dirent(&qn, (u8 *)de, EROFS_BLKSIZ, ndirents); in erofs_namei()
191 if (!IS_ERR(de)) { in erofs_namei()
192 *nid = le64_to_cpu(de->nid); in erofs_namei()
193 *d_type = de->file_type; in erofs_namei()
196 return PTR_ERR_OR_ZERO(de); in erofs_namei()