Lines Matching defs:level

632  * cipso_v4_map_lvl_valid - Checks to see if the given level is understood
634 * @level: the level to check
637 * Checks the given level against the given DOI definition and returns a
638 * negative value if the level does not have a valid mapping and a zero value
639 * if the level is defined by the DOI.
642 static int cipso_v4_map_lvl_valid(const struct cipso_v4_doi *doi_def, u8 level)
648 if ((level < doi_def->map.std->lvl.cipso_size) &&
649 (doi_def->map.std->lvl.cipso[level] < CIPSO_V4_INV_LVL))
658 * cipso_v4_map_lvl_hton - Perform a level mapping from the host to the network
660 * @host_lvl: the host MLS level
661 * @net_lvl: the network/CIPSO MLS level
664 * Perform a label mapping to translate a local MLS level to the correct
665 * CIPSO level using the given DOI definition. Returns zero on success,
690 * cipso_v4_map_lvl_ntoh - Perform a level mapping from the network to the host
692 * @net_lvl: the network/CIPSO MLS level
693 * @host_lvl: the host MLS level
696 * Perform a label mapping to translate a CIPSO level to the correct local MLS
697 * level using the given DOI definition. Returns zero on success, negative
1181 u32 level;
1188 &level);
1213 buffer[3] = level;
1236 u32 level;
1238 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1241 secattr->attr.mls.lvl = level;
1280 u32 level;
1287 &level);
1305 buffer[3] = level;
1328 u32 level;
1330 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1333 secattr->attr.mls.lvl = level;
1371 u32 level;
1378 &level);
1396 buffer[3] = level;
1418 u32 level;
1420 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1423 secattr->attr.mls.lvl = level;