Lines Matching refs:ctx
43 * The position pointer (ctx->pos) encodes the part and offset on which
190 struct dir_context *ctx)
197 i = ctx->pos & ~PART_MASK;
226 if (!dir_emit(ctx, s, *len,
233 ctx->pos = (ctx->pos & PART_MASK) | i;
243 struct dir_context *ctx)
248 count = ((ctx->pos & PART_MASK) >> PART_SHIFT) - 1;
263 r = fill_from_part(part, ctx);
274 ctx->pos = (ctx->pos & PART_MASK) +
305 struct dir_context *ctx)
319 if (ctx->pos == 0) {
320 if (!dir_emit_dot(file, ctx))
322 ctx->pos++;
324 if (ctx->pos == 1) {
325 if (!dir_emit_dotdot(file, ctx))
327 ctx->pos = 1 << PART_SHIFT;
334 if ((ctx->pos & PART_MASK) == 0)
344 ctx->pos > od->end) {
349 if (od->token == ORANGEFS_ITERATE_END && ctx->pos > od->end)
353 if (ctx->pos < od->end) {
354 r = orangefs_dir_fill(oi, od, dentry, ctx);
364 r = orangefs_dir_fill(oi, od, dentry, ctx);