Lines Matching refs:xperms
73 struct avtab_extended_perms *xperms; in avtab_insert_node() local
80 xperms = kmem_cache_zalloc(avtab_xperms_cachep, GFP_KERNEL); in avtab_insert_node()
81 if (xperms == NULL) { in avtab_insert_node()
85 *xperms = *(datum->u.xperms); in avtab_insert_node()
86 newnode->datum.u.xperms = xperms; in avtab_insert_node()
234 temp->datum.u.xperms); in avtab_destroy()
349 struct avtab_extended_perms xperms; in avtab_read_item() local
350 __le32 buf32[ARRAY_SIZE(xperms.perms.p)]; in avtab_read_item()
461 memset(&xperms, 0, sizeof(struct avtab_extended_perms)); in avtab_read_item()
462 rc = next_entry(&xperms.specified, fp, sizeof(u8)); in avtab_read_item()
467 rc = next_entry(&xperms.driver, fp, sizeof(u8)); in avtab_read_item()
473 sizeof(u32) * ARRAY_SIZE(xperms.perms.p)); in avtab_read_item()
478 for (i = 0; i < ARRAY_SIZE(xperms.perms.p); i++) in avtab_read_item()
479 xperms.perms.p[i] = le32_to_cpu(buf32[i]); in avtab_read_item()
480 datum.u.xperms = &xperms; in avtab_read_item()
549 __le32 buf32[ARRAY_SIZE(cur->datum.u.xperms->perms.p)]; in avtab_write_item()
562 rc = put_entry(&cur->datum.u.xperms->specified, sizeof(u8), 1, in avtab_write_item()
566 rc = put_entry(&cur->datum.u.xperms->driver, sizeof(u8), 1, fp); in avtab_write_item()
569 for (i = 0; i < ARRAY_SIZE(cur->datum.u.xperms->perms.p); i++) in avtab_write_item()
570 buf32[i] = cpu_to_le32(cur->datum.u.xperms->perms.p[i]); in avtab_write_item()
572 ARRAY_SIZE(cur->datum.u.xperms->perms.p), fp); in avtab_write_item()