Lines Matching defs:ctx
45 affs_readdir(struct file *file, struct dir_context *ctx)
59 pr_debug("%s(ino=%lu,f_pos=%llx)\n", __func__, inode->i_ino, ctx->pos);
61 if (ctx->pos < 2) {
63 if (!dir_emit_dots(file, ctx))
68 chain_pos = (ctx->pos - 2) & 0xffff;
69 hash_pos = (ctx->pos - 2) >> 16;
74 ctx->pos = ((hash_pos << 16) | chain_pos) + 2;
109 ctx->pos = (hash_pos << 16) + 2;
123 namelen, name, ino, hash_pos, ctx->pos);
125 if (!dir_emit(ctx, name, namelen, ino, DT_UNKNOWN))
127 ctx->pos++;