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