Lines Matching refs:cpu_to_le32
68 buf[0] = cpu_to_le32(MAPSIZE); in ebitmap_write()
69 buf[1] = cpu_to_le32(e->highbit); in ebitmap_write()
74 buf[2] = cpu_to_le32(count); in ebitmap_write()
81 bit = cpu_to_le32(n->startbit); in ebitmap_write()
129 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
131 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
133 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
169 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
194 cpu_to_le32(node->datum.data); in avtab_write_item()
200 buf32[items++] = cpu_to_le32(cur->datum.data); in avtab_write_item()
210 buf32[0] = cpu_to_le32(items - 1); in avtab_write_item()
255 buf32[i] = cpu_to_le32(cur->datum.xperms->perms[i]); in avtab_write_item()
260 buf32[0] = cpu_to_le32(cur->datum.data); in avtab_write_item()
306 nel = cpu_to_le32(a->nel); in avtab_write()
326 nel = cpu_to_le32(nel); in avtab_write()
364 buf[0] = cpu_to_le32(l->sens); in mls_write_semantic_level_helper()
365 buf[1] = cpu_to_le32(ncat); in mls_write_semantic_level_helper()
371 buf[0] = cpu_to_le32(cat->low); in mls_write_semantic_level_helper()
372 buf[1] = cpu_to_le32(cat->high); in mls_write_semantic_level_helper()
408 sens = cpu_to_le32(l->sens); in mls_write_level()
432 buf[items++] = cpu_to_le32(r->level[0].sens); in mls_write_range_helper()
434 buf[items++] = cpu_to_le32(r->level[1].sens); in mls_write_range_helper()
435 buf[0] = cpu_to_le32(items - 1); in mls_write_range_helper()
462 buf[items++] = cpu_to_le32(len); in sens_write()
463 buf[items++] = cpu_to_le32(levdatum->isalias); in sens_write()
490 buf[items++] = cpu_to_le32(len); in cat_write()
491 buf[items++] = cpu_to_le32(catdatum->s.value); in cat_write()
492 buf[items++] = cpu_to_le32(catdatum->isalias); in cat_write()
519 buf[0] = cpu_to_le32(nel); in role_trans_write()
532 buf[0] = cpu_to_le32(tr->role); in role_trans_write()
533 buf[1] = cpu_to_le32(tr->type); in role_trans_write()
534 buf[2] = cpu_to_le32(tr->new_role); in role_trans_write()
539 buf[0] = cpu_to_le32(tr->tclass); in role_trans_write()
558 buf[0] = cpu_to_le32(nel); in role_allow_write()
563 buf[0] = cpu_to_le32(ra->role); in role_allow_write()
564 buf[1] = cpu_to_le32(ra->new_role); in role_allow_write()
584 buf[0] = cpu_to_le32(len); in filename_write_one_compat()
593 buf[0] = cpu_to_le32(bit + 1); in filename_write_one_compat()
594 buf[1] = cpu_to_le32(ft->ttype); in filename_write_one_compat()
595 buf[2] = cpu_to_le32(ft->tclass); in filename_write_one_compat()
596 buf[3] = cpu_to_le32(datum->otype); in filename_write_one_compat()
617 buf[0] = cpu_to_le32(len); in filename_write_one()
633 buf[0] = cpu_to_le32(ft->ttype); in filename_write_one()
634 buf[1] = cpu_to_le32(ft->tclass); in filename_write_one()
635 buf[2] = cpu_to_le32(ndatum); in filename_write_one()
645 buf[0] = cpu_to_le32(datum->otype); in filename_write_one()
666 buf[0] = cpu_to_le32(p->filename_trans_count); in filename_trans_write()
674 buf[0] = cpu_to_le32(p->filename_trans->nel); in filename_trans_write()
692 buf[0] = cpu_to_le32(x->flags); in role_set_write()
710 buf[0] = cpu_to_le32(x->flags); in type_set_write()
731 buf[items++] = cpu_to_le32(booldatum->s.value); in cond_write_bool()
732 buf[items++] = cpu_to_le32(booldatum->state); in cond_write_bool()
733 buf[items++] = cpu_to_le32(len); in cond_write_bool()
743 buf[0] = cpu_to_le32(booldatum->flags); in cond_write_bool()
786 buf[0] = cpu_to_le32(len); in cond_write_av_list()
819 buf[0] = cpu_to_le32(node->cur_state); in cond_write_node()
829 buf[0] = cpu_to_le32(len); in cond_write_node()
836 buf[items++] = cpu_to_le32(cur_expr->expr_type); in cond_write_node()
837 buf[items++] = cpu_to_le32(cur_expr->bool); in cond_write_node()
857 buf[0] = cpu_to_le32(node->flags); in cond_write_node()
876 buf[0] = cpu_to_le32(len); in cond_write_list()
899 buf[items++] = cpu_to_le32(c->user); in context_write()
900 buf[items++] = cpu_to_le32(c->role); in context_write()
901 buf[items++] = cpu_to_le32(c->type); in context_write()
933 buf[items++] = cpu_to_le32(len); in perm_write()
934 buf[items++] = cpu_to_le32(perdatum->s.value); in perm_write()
958 buf[items++] = cpu_to_le32(len); in common_write()
959 buf[items++] = cpu_to_le32(comdatum->s.value); in common_write()
960 buf[items++] = cpu_to_le32(comdatum->permissions.nprim); in common_write()
961 buf[items++] = cpu_to_le32(comdatum->permissions.table->nel); in common_write()
990 buf[0] = cpu_to_le32(c->permissions); in write_cons_helper()
991 buf[1] = cpu_to_le32(nexpr); in write_cons_helper()
996 buf[0] = cpu_to_le32(e->expr_type); in write_cons_helper()
997 buf[1] = cpu_to_le32(e->attr); in write_cons_helper()
998 buf[2] = cpu_to_le32(e->op); in write_cons_helper()
1051 buf[items++] = cpu_to_le32(len); in class_write()
1052 buf[items++] = cpu_to_le32(len2); in class_write()
1053 buf[items++] = cpu_to_le32(cladatum->s.value); in class_write()
1054 buf[items++] = cpu_to_le32(cladatum->permissions.nprim); in class_write()
1056 buf[items++] = cpu_to_le32(cladatum->permissions.table->nel); in class_write()
1059 buf[items++] = cpu_to_le32(ncons); in class_write()
1088 buf[0] = cpu_to_le32(ncons); in class_write()
1102 buf[0] = cpu_to_le32(cladatum->default_user); in class_write()
1103 buf[1] = cpu_to_le32(cladatum->default_role); in class_write()
1111 buf[2] = cpu_to_le32(default_range); in class_write()
1121 buf[0] = cpu_to_le32(cladatum->default_type); in class_write()
1156 buf[items++] = cpu_to_le32(len); in role_write()
1157 buf[items++] = cpu_to_le32(role->s.value); in role_write()
1159 buf[items++] = cpu_to_le32(role->bounds); in role_write()
1197 buf[0] = cpu_to_le32(role->flavor); in role_write()
1231 buf[items++] = cpu_to_le32(len); in type_write()
1232 buf[items++] = cpu_to_le32(typdatum->s.value); in type_write()
1238 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()
1254 buf[items++] = cpu_to_le32(properties); in type_write()
1255 buf[items++] = cpu_to_le32(typdatum->bounds); in type_write()
1257 buf[items++] = cpu_to_le32(typdatum->primary); in type_write()
1260 buf[items++] = cpu_to_le32(typdatum->flavor); in type_write()
1263 buf[items++] = cpu_to_le32(typdatum->flags); in type_write()
1300 buf[items++] = cpu_to_le32(len); in user_write()
1301 buf[items++] = cpu_to_le32(usrdatum->s.value); in user_write()
1303 buf[items++] = cpu_to_le32(usrdatum->bounds); in user_write()
1368 buf[0] = cpu_to_le32(nel); in ocontext_write_xen()
1377 buf[0] = cpu_to_le32(c->sid[0]); in ocontext_write_xen()
1385 buf[0] = cpu_to_le32(c->u.pirq); in ocontext_write_xen()
1396 buf[j] = cpu_to_le32(buf[j]); in ocontext_write_xen()
1424 buf[j] = cpu_to_le32(buf[j]); in ocontext_write_xen()
1433 buf[0] = cpu_to_le32(c->u.device); in ocontext_write_xen()
1442 buf[0] = cpu_to_le32(len); in ocontext_write_xen()
1476 buf[0] = cpu_to_le32(nel); in ocontext_write_selinux()
1485 buf[0] = cpu_to_le32(c->sid[0]); in ocontext_write_selinux()
1495 buf[0] = cpu_to_le32(len); in ocontext_write_selinux()
1512 buf[2] = cpu_to_le32(c->u.ibpkey.low_pkey); in ocontext_write_selinux()
1513 buf[3] = cpu_to_le32(c->u.ibpkey.high_pkey); in ocontext_write_selinux()
1524 buf[0] = cpu_to_le32(len); in ocontext_write_selinux()
1525 buf[1] = cpu_to_le32(c->u.ibendport.port); in ocontext_write_selinux()
1541 buf[j] = cpu_to_le32(buf[j]); in ocontext_write_selinux()
1559 buf[0] = cpu_to_le32(c->v.behavior); in ocontext_write_selinux()
1561 buf[1] = cpu_to_le32(len); in ocontext_write_selinux()
1612 buf[0] = cpu_to_le32(nel); in genfs_write()
1618 buf[0] = cpu_to_le32(len); in genfs_write()
1628 buf[0] = cpu_to_le32(nel); in genfs_write()
1634 buf[0] = cpu_to_le32(len); in genfs_write()
1641 buf[0] = cpu_to_le32(c->v.sclass); in genfs_write()
1698 buf[0] = cpu_to_le32(rt->source_type); in range_write_helper()
1699 buf[1] = cpu_to_le32(rt->target_type); in range_write_helper()
1704 buf[0] = cpu_to_le32(rt->target_class); in range_write_helper()
1733 buf[0] = cpu_to_le32(args.nel); in range_write()
1759 buf[items++] = cpu_to_le32(avrule->specified); in avrule_write()
1760 buf[items++] = cpu_to_le32(avrule->flags); in avrule_write()
1778 buf[items++] = cpu_to_le32(len); in avrule_write()
1785 buf[items++] = cpu_to_le32(cur->tclass); in avrule_write()
1786 buf[items++] = cpu_to_le32(cur->data); in avrule_write()
1825 buf32[i] = cpu_to_le32(avrule->xperms->perms[i]); in avrule_write()
1847 buf[0] = cpu_to_le32(len); in avrule_write_list()
1892 buf[0] = cpu_to_le32(nel); in role_trans_rule_write()
1912 buf[0] = cpu_to_le32(tr->new_role); in role_trans_rule_write()
1929 buf[0] = cpu_to_le32(nel); in role_allow_rule_write()
1953 buf[0] = cpu_to_le32(nel); in filename_trans_rule_write()
1960 buf[0] = cpu_to_le32(len); in filename_trans_rule_write()
1974 buf[0] = cpu_to_le32(ftr->tclass); in filename_trans_rule_write()
1975 buf[1] = cpu_to_le32(ftr->otype); in filename_trans_rule_write()
1976 buf[2] = cpu_to_le32(ftr->flags); in filename_trans_rule_write()
2005 buf[0] = cpu_to_le32(nel); in range_trans_rule_write()
2033 buf[0] = cpu_to_le32(scope_index->class_perms_len); in scope_index_write()
2051 buf[0] = cpu_to_le32(decl->decl_id); in avrule_decl_write()
2052 buf[1] = cpu_to_le32(decl->enabled); in avrule_decl_write()
2078 buf[0] = cpu_to_le32(decl->symtab[i].nprim); in avrule_decl_write()
2079 buf[1] = cpu_to_le32(decl->symtab[i].table->nel); in avrule_decl_write()
2099 buf[0] = cpu_to_le32(num_blocks); in avrule_block_write()
2112 buf[0] = cpu_to_le32(num_decls); in avrule_block_write()
2147 buf[0] = cpu_to_le32(key_len); in scope_write()
2153 buf[0] = cpu_to_le32(scope->scope); in scope_write()
2154 buf[1] = cpu_to_le32(scope->decl_ids_len); in scope_write()
2157 buf[2 + i] = cpu_to_le32(scope->decl_ids[i]); in scope_write()
2234 buf[items++] = cpu_to_le32(POLICYDB_MAGIC); in policydb_write()
2238 buf[items++] = cpu_to_le32(POLICYDB_MOD_MAGIC); in policydb_write()
2242 buf[items++] = cpu_to_le32(len); in policydb_write()
2261 buf[items++] = cpu_to_le32(p->policy_type); in policydb_write()
2263 buf[items++] = cpu_to_le32(p->policyvers); in policydb_write()
2264 buf[items++] = cpu_to_le32(config); in policydb_write()
2265 buf[items++] = cpu_to_le32(info->sym_num); in policydb_write()
2266 buf[items++] = cpu_to_le32(info->ocon_num); in policydb_write()
2275 buf[0] = cpu_to_le32(len); in policydb_write()
2283 buf[0] = cpu_to_le32(len); in policydb_write()
2322 buf[0] = cpu_to_le32(p->symtab[i].nprim); in policydb_write()
2349 buf[1] = cpu_to_le32(buf[1]); in policydb_write()
2385 buf[0] = cpu_to_le32(p->scope[i].table->nel); in policydb_write()