Lines Matching refs:ctx
48 static int hfs_readdir(struct file *file, struct dir_context *ctx)
59 if (ctx->pos >= inode->i_size)
70 if (ctx->pos == 0) {
72 if (!dir_emit_dot(file, ctx))
74 ctx->pos = 1;
76 if (ctx->pos == 1) {
93 if (!dir_emit(ctx, "..", 2,
96 ctx->pos = 2;
98 if (ctx->pos >= inode->i_size)
100 err = hfs_brec_goto(&fd, ctx->pos - 1);
125 if (!dir_emit(ctx, strbuf, len,
134 if (!dir_emit(ctx, strbuf, len,
142 ctx->pos++;
143 if (ctx->pos >= inode->i_size)