Lines Matching refs:cat
473 kfree(doi_def->map.std->cat.cipso); in cipso_v4_doi_free()
474 kfree(doi_def->map.std->cat.local); in cipso_v4_doi_free()
748 int cat = -1; in cipso_v4_map_cat_rbm_valid() local
757 cipso_cat_size = doi_def->map.std->cat.cipso_size; in cipso_v4_map_cat_rbm_valid()
758 cipso_array = doi_def->map.std->cat.cipso; in cipso_v4_map_cat_rbm_valid()
760 cat = netlbl_bitmap_walk(bitmap, in cipso_v4_map_cat_rbm_valid()
762 cat + 1, in cipso_v4_map_cat_rbm_valid()
764 if (cat < 0) in cipso_v4_map_cat_rbm_valid()
766 if (cat >= cipso_cat_size || in cipso_v4_map_cat_rbm_valid()
767 cipso_array[cat] >= CIPSO_V4_INV_CAT) in cipso_v4_map_cat_rbm_valid()
771 if (cat == -1) in cipso_v4_map_cat_rbm_valid()
805 host_cat_size = doi_def->map.std->cat.local_size; in cipso_v4_map_cat_rbm_hton()
806 host_cat_array = doi_def->map.std->cat.local; in cipso_v4_map_cat_rbm_hton()
810 host_spot = netlbl_catmap_walk(secattr->attr.mls.cat, in cipso_v4_map_cat_rbm_hton()
866 net_cat_size = doi_def->map.std->cat.cipso_size; in cipso_v4_map_cat_rbm_ntoh()
867 net_cat_array = doi_def->map.std->cat.cipso; in cipso_v4_map_cat_rbm_ntoh()
893 ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, in cipso_v4_map_cat_rbm_ntoh()
919 u16 cat; in cipso_v4_map_cat_enum_valid() local
927 cat = get_unaligned_be16(&enumcat[iter]); in cipso_v4_map_cat_enum_valid()
928 if (cat <= cat_prev) in cipso_v4_map_cat_enum_valid()
930 cat_prev = cat; in cipso_v4_map_cat_enum_valid()
955 int cat = -1; in cipso_v4_map_cat_enum_hton() local
959 cat = netlbl_catmap_walk(secattr->attr.mls.cat, cat + 1); in cipso_v4_map_cat_enum_hton()
960 if (cat < 0) in cipso_v4_map_cat_enum_hton()
965 *((__be16 *)&net_cat[cat_iter]) = htons(cat); in cipso_v4_map_cat_enum_hton()
994 ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, in cipso_v4_map_cat_enum_ntoh()
1074 iter = netlbl_catmap_walk(secattr->attr.mls.cat, iter + 1); in cipso_v4_map_cat_rng_hton()
1082 iter = netlbl_catmap_walkrng(secattr->attr.mls.cat, iter); in cipso_v4_map_cat_rng_hton()
1134 ret_val = netlbl_catmap_setrng(&secattr->attr.mls.cat, in cipso_v4_map_cat_rng_ntoh()
1257 netlbl_catmap_free(secattr->attr.mls.cat); in cipso_v4_parsetag_rbm()
1348 netlbl_catmap_free(secattr->attr.mls.cat); in cipso_v4_parsetag_enum()
1438 netlbl_catmap_free(secattr->attr.mls.cat); in cipso_v4_parsetag_rng()