Lines Matching refs:value
53 static struct posix_acl *jffs2_acl_from_medium(void *value, size_t size) in jffs2_acl_from_medium() argument
55 void *end = value + size; in jffs2_acl_from_medium()
56 struct jffs2_acl_header *header = value; in jffs2_acl_from_medium()
62 if (!value) in jffs2_acl_from_medium()
72 value += sizeof(struct jffs2_acl_header); in jffs2_acl_from_medium()
84 entry = value; in jffs2_acl_from_medium()
85 if (value + sizeof(struct jffs2_acl_entry_short) > end) in jffs2_acl_from_medium()
94 value += sizeof(struct jffs2_acl_entry_short); in jffs2_acl_from_medium()
100 value += sizeof(struct jffs2_acl_entry); in jffs2_acl_from_medium()
101 if (value > end) in jffs2_acl_from_medium()
110 if (value != end) in jffs2_acl_from_medium()
183 char *value = NULL; in jffs2_get_acl() local
204 value = kmalloc(rc, GFP_KERNEL); in jffs2_get_acl()
205 if (!value) in jffs2_get_acl()
207 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc); in jffs2_get_acl()
210 acl = jffs2_acl_from_medium(value, rc); in jffs2_get_acl()
216 if (value) in jffs2_get_acl()
217 kfree(value); in jffs2_get_acl()
233 char *value = NULL; in __jffs2_set_acl() local
238 value = jffs2_acl_to_medium(acl, &size); in __jffs2_set_acl()
239 if (IS_ERR(value)) in __jffs2_set_acl()
240 return PTR_ERR(value); in __jffs2_set_acl()
242 rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0); in __jffs2_set_acl()
243 if (!value && rc == -ENODATA) in __jffs2_set_acl()
245 kfree(value); in __jffs2_set_acl()
463 static int jffs2_acl_setxattr(struct inode *inode, int type, const void *value, size_t size) in jffs2_acl_setxattr() argument
471 if (value) { in jffs2_acl_setxattr()
472 acl = posix_acl_from_xattr(value, size); in jffs2_acl_setxattr()