Lines Matching defs:context
198 struct xfs_attr_list_context *context,
207 if (context->count < 0 || context->seen_enough)
210 if (!context->buffer)
213 arraytop = context->count + prefix_len + namelen + 1;
214 if (arraytop > context->firstu) {
215 context->count = -1; /* insufficient space */
216 context->seen_enough = 1;
219 offset = context->buffer + context->count;
227 context->count += prefix_len + namelen + 1;
233 struct xfs_attr_list_context *context,
242 ASSERT(context->count >= 0);
250 context, XATTR_SYSTEM_PREFIX,
258 context, XATTR_SYSTEM_PREFIX,
282 __xfs_xattr_put_listent(context, prefix, prefix_len, name,
293 struct xfs_attr_list_context context;
300 memset(&context, 0, sizeof(context));
301 context.dp = XFS_I(inode);
302 context.resynch = 1;
303 context.buffer = size ? data : NULL;
304 context.bufsize = size;
305 context.firstu = context.bufsize;
306 context.put_listent = xfs_xattr_put_listent;
308 error = xfs_attr_list(&context);
311 if (context.count < 0)
314 return context.count;