Lines Matching defs:buf

1815 	uint32_t buf[1];
1820 rc = next_entry(buf, fp, sizeof(uint32_t));
1823 r->flags = le32_to_cpu(buf[0]);
1830 uint32_t buf[1];
1838 rc = next_entry(buf, fp, sizeof(uint32_t));
1841 t->flags = le32_to_cpu(buf[0]);
1852 uint32_t buf[2], items;
1855 rc = next_entry(buf, fp, sizeof(uint32_t));
1859 items = le32_to_cpu(buf[0]);
1860 if (items > ARRAY_SIZE(buf)) {
1865 rc = next_entry(buf, fp, sizeof(uint32_t) * items);
1870 r->level[0].sens = le32_to_cpu(buf[0]);
1872 r->level[1].sens = le32_to_cpu(buf[1]);
1910 uint32_t buf[2], ncat;
1917 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
1922 l->sens = le32_to_cpu(buf[0]);
1924 ncat = le32_to_cpu(buf[1]);
1936 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
1941 cat->low = le32_to_cpu(buf[0]);
1942 cat->high = le32_to_cpu(buf[1]);
2021 uint32_t buf[3];
2024 rc = next_entry(buf, fp, sizeof(uint32_t) * 3);
2029 c->user = le32_to_cpu(buf[0]);
2030 c->role = le32_to_cpu(buf[1]);
2031 c->type = le32_to_cpu(buf[2]);
2063 uint32_t buf[2];
2071 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
2075 len = le32_to_cpu(buf[0]);
2079 perdatum->s.value = le32_to_cpu(buf[1]);
2097 uint32_t buf[4];
2106 rc = next_entry(buf, fp, sizeof(uint32_t) * 4);
2110 len = le32_to_cpu(buf[0]);
2114 comdatum->s.value = le32_to_cpu(buf[1]);
2118 comdatum->permissions.nprim = le32_to_cpu(buf[2]);
2121 nel = le32_to_cpu(buf[3]);
2152 uint32_t buf[3];
2168 rc = next_entry(buf, fp, (sizeof(uint32_t) * 2));
2171 c->permissions = le32_to_cpu(buf[0]);
2172 nexpr = le32_to_cpu(buf[1]);
2189 rc = next_entry(buf, fp, (sizeof(uint32_t) * 3));
2192 e->expr_type = le32_to_cpu(buf[0]);
2193 e->attr = le32_to_cpu(buf[1]);
2194 e->op = le32_to_cpu(buf[2]);
2245 uint32_t buf[6];
2254 rc = next_entry(buf, fp, sizeof(uint32_t) * 6);
2258 len = le32_to_cpu(buf[0]);
2261 len2 = le32_to_cpu(buf[1]);
2264 cladatum->s.value = le32_to_cpu(buf[2]);
2268 cladatum->permissions.nprim = le32_to_cpu(buf[3]);
2271 nel = le32_to_cpu(buf[4]);
2273 ncons = le32_to_cpu(buf[5]);
2312 rc = next_entry(buf, fp, sizeof(uint32_t));
2315 ncons = le32_to_cpu(buf[0]);
2324 rc = next_entry(buf, fp, sizeof(uint32_t) * 3);
2327 cladatum->default_user = le32_to_cpu(buf[0]);
2328 cladatum->default_role = le32_to_cpu(buf[1]);
2329 cladatum->default_range = le32_to_cpu(buf[2]);
2336 rc = next_entry(buf, fp, sizeof(uint32_t));
2339 cladatum->default_type = le32_to_cpu(buf[0]);
2356 uint32_t buf[3];
2367 rc = next_entry(buf, fp, sizeof(uint32_t) * to_read);
2371 len = le32_to_cpu(buf[0]);
2375 role->s.value = le32_to_cpu(buf[1]);
2377 role->bounds = le32_to_cpu(buf[2]);
2400 rc = next_entry(buf, fp, sizeof(uint32_t));
2404 role->flavor = le32_to_cpu(buf[0]);
2435 uint32_t buf[5];
2458 rc = next_entry(buf, fp, sizeof(uint32_t) * to_read);
2462 len = le32_to_cpu(buf[pos]);
2466 typdatum->s.value = le32_to_cpu(buf[++pos]);
2472 typdatum->primary = le32_to_cpu(buf[++pos]);
2473 properties = le32_to_cpu(buf[++pos]);
2476 properties = le32_to_cpu(buf[++pos]);
2491 typdatum->bounds = le32_to_cpu(buf[++pos]);
2493 typdatum->primary = le32_to_cpu(buf[++pos]);
2495 typdatum->flavor = le32_to_cpu(buf[++pos]);
2497 typdatum->flags = le32_to_cpu(buf[++pos]);
2528 uint32_t buf[3], nel;
2534 rc = next_entry(buf, fp, sizeof(uint32_t));
2537 nel = le32_to_cpu(buf[0]);
2549 rc = next_entry(buf, fp, sizeof(uint32_t) * 3);
2552 tr->role = le32_to_cpu(buf[0]);
2553 tr->type = le32_to_cpu(buf[1]);
2554 tr->new_role = le32_to_cpu(buf[2]);
2556 rc = next_entry(buf, fp, sizeof(uint32_t));
2559 tr->tclass = le32_to_cpu(buf[0]);
2570 uint32_t buf[2], nel;
2574 rc = next_entry(buf, fp, sizeof(uint32_t));
2577 nel = le32_to_cpu(buf[0]);
2589 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
2592 ra->role = le32_to_cpu(buf[0]);
2593 ra->new_role = le32_to_cpu(buf[1]);
2676 uint32_t buf[4], len, stype, ttype, tclass, otype;
2680 rc = next_entry(buf, fp, sizeof(uint32_t));
2683 len = le32_to_cpu(buf[0]);
2695 rc = next_entry(buf, fp, sizeof(uint32_t) * 4);
2699 stype = le32_to_cpu(buf[0]);
2703 ttype = le32_to_cpu(buf[1]);
2704 tclass = le32_to_cpu(buf[2]);
2705 otype = le32_to_cpu(buf[3]);
2761 uint32_t buf[3], len, ttype, tclass, ndatum;
2765 rc = next_entry(buf, fp, sizeof(uint32_t));
2768 len = le32_to_cpu(buf[0]);
2780 rc = next_entry(buf, fp, sizeof(uint32_t) * 3);
2784 ttype = le32_to_cpu(buf[0]);
2785 tclass = le32_to_cpu(buf[1]);
2786 ndatum = le32_to_cpu(buf[2]);
2804 rc = next_entry(buf, fp, sizeof(uint32_t));
2808 datum->otype = le32_to_cpu(buf[0]);
2848 uint32_t buf[1], nel;
2851 rc = next_entry(buf, fp, sizeof(uint32_t));
2854 nel = le32_to_cpu(buf[0]);
2878 uint32_t buf[8];
2882 rc = next_entry(buf, fp, sizeof(uint32_t));
2885 nel = le32_to_cpu(buf[0]);
2898 rc = next_entry(buf, fp, sizeof(uint32_t));
2901 c->sid[0] = le32_to_cpu(buf[0]);
2909 rc = next_entry(buf, fp, sizeof(uint32_t));
2912 c->u.pirq = le32_to_cpu(buf[0]);
2918 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
2921 c->u.ioport.low_ioport = le32_to_cpu(buf[0]);
2922 c->u.ioport.high_ioport = le32_to_cpu(buf[1]);
2936 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
2939 c->u.iomem.low_iomem = le32_to_cpu(buf[0]);
2940 c->u.iomem.high_iomem = le32_to_cpu(buf[1]);
2947 rc = next_entry(buf, fp, sizeof(uint32_t));
2950 c->u.device = le32_to_cpu(buf[0]);
2956 rc = next_entry(buf, fp, sizeof(uint32_t));
2959 len = le32_to_cpu(buf[0]);
2989 uint32_t buf[8];
2993 rc = next_entry(buf, fp, sizeof(uint32_t));
2996 nel = le32_to_cpu(buf[0]);
3011 rc = next_entry(buf, fp, sizeof(uint32_t));
3014 c->sid[0] = le32_to_cpu(buf[0]);
3023 rc = next_entry(buf, fp, sizeof(uint32_t));
3026 len = le32_to_cpu(buf[0]);
3046 rc = next_entry(buf, fp, sizeof(uint32_t) * 4);
3050 pkey_lo = le32_to_cpu(buf[2]);
3051 pkey_hi = le32_to_cpu(buf[3]);
3061 memcpy(&c->u.ibpkey.subnet_prefix, buf,
3072 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
3075 len = le32_to_cpu(buf[0]);
3079 port = le32_to_cpu(buf[1]);
3097 rc = next_entry(buf, fp, sizeof(uint32_t) * 3);
3100 c->u.port.protocol = le32_to_cpu(buf[0]);
3101 c->u.port.low_port = le32_to_cpu(buf[1]);
3102 c->u.port.high_port = le32_to_cpu(buf[2]);
3108 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
3111 c->u.node.addr = buf[0]; /* network order */
3112 c->u.node.mask = buf[1]; /* network order */
3118 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
3121 c->v.behavior = le32_to_cpu(buf[0]);
3122 len = le32_to_cpu(buf[1]);
3139 rc = next_entry(buf, fp, sizeof(uint32_t) * 8);
3144 c->u.node6.addr[k] = buf[k];
3147 c->u.node6.mask[k] = buf[k + 4];
3182 uint32_t buf[1];
3189 rc = next_entry(buf, fp, sizeof(uint32_t));
3192 nel = le32_to_cpu(buf[0]);
3195 rc = next_entry(buf, fp, sizeof(uint32_t));
3198 len = le32_to_cpu(buf[0]);
3233 rc = next_entry(buf, fp, sizeof(uint32_t));
3236 nel2 = le32_to_cpu(buf[0]);
3242 rc = next_entry(buf, fp, sizeof(uint32_t));
3245 len = le32_to_cpu(buf[0]);
3256 rc = next_entry(buf, fp, sizeof(uint32_t));
3259 newc->v.sclass = le32_to_cpu(buf[0]);
3305 uint32_t buf[1];
3310 rc = next_entry(buf, fp, sizeof(uint32_t));
3315 lp->sens = le32_to_cpu(buf[0]);
3331 uint32_t buf[3];
3342 rc = next_entry(buf, fp, sizeof(uint32_t) * to_read);
3346 len = le32_to_cpu(buf[0]);
3350 usrdatum->s.value = le32_to_cpu(buf[1]);
3352 usrdatum->bounds = le32_to_cpu(buf[2]);
3420 uint32_t buf[2], len;
3428 rc = next_entry(buf, fp, (sizeof(uint32_t) * 2));
3432 len = le32_to_cpu(buf[0]);
3436 levdatum->isalias = le32_to_cpu(buf[1]);
3466 uint32_t buf[3], len;
3474 rc = next_entry(buf, fp, (sizeof(uint32_t) * 3));
3478 len = le32_to_cpu(buf[0]);
3482 catdatum->s.value = le32_to_cpu(buf[1]);
3483 catdatum->isalias = le32_to_cpu(buf[2]);
3513 uint32_t buf[2], len;
3524 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
3528 avrule->specified = le32_to_cpu(buf[0]);
3529 avrule->flags = le32_to_cpu(buf[1]);
3537 rc = next_entry(buf, fp, sizeof(uint32_t));
3540 len = le32_to_cpu(buf[0]);
3548 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
3554 cur->tclass = le32_to_cpu(buf[0]);
3555 cur->data = le32_to_cpu(buf[1]);
3622 uint32_t buf[2], nel;
3631 rc = next_entry(buf, fp, sizeof(uint32_t));
3634 nel = le32_to_cpu(buf[0]);
3639 rc = next_entry(buf, fp, (sizeof(uint32_t) * 2));
3642 rt->source_type = le32_to_cpu(buf[0]);
3645 rt->target_type = le32_to_cpu(buf[1]);
3649 rc = next_entry(buf, fp, (sizeof(uint32_t)));
3652 rt->target_class = le32_to_cpu(buf[0]);
3721 uint32_t buf[1], len;
3726 rc = next_entry(buf, fp, sizeof(uint32_t));
3730 len = le32_to_cpu(buf[0]);
3752 uint32_t buf[1], nel;
3757 rc = next_entry(buf, fp, sizeof(uint32_t));
3760 nel = le32_to_cpu(buf[0]);
3791 rc = next_entry(buf, fp, sizeof(uint32_t));
3794 tr->new_role = le32_to_cpu(buf[0]);
3804 uint32_t buf[1], nel;
3808 rc = next_entry(buf, fp, sizeof(uint32_t));
3811 nel = le32_to_cpu(buf[0]);
3840 uint32_t buf[3], nel, i, len;
3845 rc = next_entry(buf, fp, sizeof(uint32_t));
3848 nel = le32_to_cpu(buf[0]);
3863 rc = next_entry(buf, fp, sizeof(uint32_t));
3867 len = le32_to_cpu(buf[0]);
3891 rc = next_entry(buf, fp, sizeof(uint32_t) * entries);
3894 ftr->tclass = le32_to_cpu(buf[0]);
3895 ftr->otype = le32_to_cpu(buf[1]);
3897 ftr->flags = le32_to_cpu(buf[2]);
3906 uint32_t buf[1], nel;
3911 rc = next_entry(buf, fp, sizeof(uint32_t));
3914 nel = le32_to_cpu(buf[0]);
3949 uint32_t buf[1];
3957 rc = next_entry(buf, fp, sizeof(uint32_t));
3960 scope_index->class_perms_len = le32_to_cpu(buf[0]);
3983 uint32_t buf[2], nprim, nel;
3987 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
3990 decl->decl_id = le32_to_cpu(buf[0]);
3991 decl->enabled = le32_to_cpu(buf[1]);
4013 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
4016 nprim = le32_to_cpu(buf[0]);
4019 nel = le32_to_cpu(buf[1]);
4036 uint32_t buf[1], num_blocks, nel;
4041 rc = next_entry(buf, fp, sizeof(uint32_t));
4044 num_blocks = le32_to_cpu(buf[0]);
4052 rc = next_entry(buf, fp, sizeof(uint32_t));
4061 num_decls = le32_to_cpu(buf[0]);
4111 uint32_t buf[2];
4118 rc = next_entry(buf, fp, sizeof(uint32_t));
4121 key_len = le32_to_cpu(buf[0]);
4140 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
4143 scope->scope = le32_to_cpu(buf[0]);
4144 scope->decl_ids_len = le32_to_cpu(buf[1]);
4229 uint32_t buf[5];
4238 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
4242 buf[i] = le32_to_cpu(buf[i]);
4244 if (buf[0] == POLICYDB_MAGIC) {
4246 } else if (buf[0] == POLICYDB_MOD_MAGIC) {
4251 buf[0], POLICYDB_MAGIC, POLICYDB_MOD_MAGIC);
4255 len = buf[1];
4309 rc = next_entry(buf, fp, sizeof(uint32_t) * nel);
4313 buf[i] = le32_to_cpu(buf[i]);
4319 module or regular binary policy module. buf[0]
4321 policy_type = buf[bufindex];
4330 r_policyvers = buf[bufindex];
4335 "my version range %d-%d", buf[bufindex],
4344 buf[bufindex], MOD_POLICYDB_VERSION_MIN,
4357 if (buf[bufindex] & POLICYDB_CONFIG_MLS) {
4363 p->handle_unknown = buf[bufindex] & POLICYDB_CONFIG_UNKNOWN_MASK;
4375 if (buf[bufindex] != info->sym_num
4376 || buf[bufindex + 1] != info->ocon_num) {
4379 buf[bufindex], buf[bufindex + 1], info->sym_num,
4386 if ((rc = next_entry(buf, fp, sizeof(uint32_t))) < 0) {
4389 len = le32_to_cpu(buf[0]);
4399 if ((rc = next_entry(buf, fp, sizeof(uint32_t))) < 0) {
4402 len = le32_to_cpu(buf[0]);
4431 rc = next_entry(buf, fp, sizeof(uint32_t) * 2);
4434 nprim = le32_to_cpu(buf[0]);
4437 nel = le32_to_cpu(buf[1]);
4487 if ((rc = next_entry(buf, fp, sizeof(uint32_t))) < 0) {
4490 nel = le32_to_cpu(buf[0]);