Lines Matching refs:nameoff
25 unsigned int nameoff, unsigned int maxsize) in erofs_fill_dentries() argument
28 const struct erofs_dirent *end = dentry_blk + nameoff; in erofs_fill_dentries()
37 nameoff = le16_to_cpu(de->nameoff); in erofs_fill_dentries()
38 de_name = (char *)dentry_blk + nameoff; in erofs_fill_dentries()
42 de_namelen = strnlen(de_name, maxsize - nameoff); in erofs_fill_dentries()
44 de_namelen = le16_to_cpu(de[1].nameoff) - nameoff; in erofs_fill_dentries()
47 if (nameoff + de_namelen > maxsize || in erofs_fill_dentries()
80 unsigned int nameoff, maxsize; in erofs_readdir() local
96 nameoff = le16_to_cpu(de->nameoff); in erofs_readdir()
98 if (nameoff < sizeof(struct erofs_dirent) || in erofs_readdir()
99 nameoff >= PAGE_SIZE) { in erofs_readdir()
102 nameoff, EROFS_I(dir)->nid); in erofs_readdir()
115 if (ofs >= nameoff) in erofs_readdir()
120 nameoff, maxsize); in erofs_readdir()