Lines Matching defs:context
96 struct xfs_attr_list_context *context,
105 if (context->count < 0 || context->seen_enough)
108 if (!context->buffer)
111 arraytop = context->count + prefix_len + namelen + 1;
112 if (arraytop > context->firstu) {
113 context->count = -1; /* insufficient space */
114 context->seen_enough = 1;
117 offset = context->buffer + context->count;
125 context->count += prefix_len + namelen + 1;
131 struct xfs_attr_list_context *context,
140 ASSERT(context->count >= 0);
148 context, XATTR_SYSTEM_PREFIX,
156 context, XATTR_SYSTEM_PREFIX,
180 __xfs_xattr_put_listent(context, prefix, prefix_len, name,
191 struct xfs_attr_list_context context;
198 memset(&context, 0, sizeof(context));
199 context.dp = XFS_I(inode);
200 context.resynch = 1;
201 context.buffer = size ? data : NULL;
202 context.bufsize = size;
203 context.firstu = context.bufsize;
204 context.put_listent = xfs_xattr_put_listent;
206 error = xfs_attr_list(&context);
209 if (context.count < 0)
212 return context.count;