Lines Matching defs:ret_val
300 int ret_val = -EPERM;
316 ret_val = -ENOMEM;
343 return ret_val;
385 int ret_val = -EINVAL;
423 ret_val = -EEXIST;
428 ret_val = 0;
449 doi, type_str, ret_val == 0 ? 1 : 0);
453 return ret_val;
512 int ret_val;
520 ret_val = -ENOENT;
527 ret_val = 0;
534 doi, ret_val == 0 ? 1 : 0);
538 return ret_val;
605 int ret_val = -ENOENT;
614 ret_val = callback(iter_doi, cb_arg);
615 if (ret_val < 0) {
624 return ret_val;
850 int ret_val;
885 ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat,
888 if (ret_val != 0)
889 return ret_val;
982 int ret_val;
986 ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat,
989 if (ret_val != 0)
990 return ret_val;
1114 int ret_val;
1126 ret_val = netlbl_catmap_setrng(&secattr->attr.mls.cat,
1130 if (ret_val != 0)
1131 return ret_val;
1179 int ret_val;
1186 ret_val = cipso_v4_map_lvl_hton(doi_def,
1189 if (ret_val != 0)
1190 return ret_val;
1193 ret_val = cipso_v4_map_cat_rbm_hton(doi_def,
1197 if (ret_val < 0)
1198 return ret_val;
1203 if (READ_ONCE(cipso_v4_rbm_optfmt) && ret_val > 0 &&
1204 ret_val <= 10)
1207 tag_len = 4 + ret_val;
1234 int ret_val;
1238 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1239 if (ret_val != 0)
1240 return ret_val;
1245 ret_val = cipso_v4_map_cat_rbm_ntoh(doi_def,
1249 if (ret_val != 0) {
1251 return ret_val;
1278 int ret_val;
1285 ret_val = cipso_v4_map_lvl_hton(doi_def,
1288 if (ret_val != 0)
1289 return ret_val;
1292 ret_val = cipso_v4_map_cat_enum_hton(doi_def,
1296 if (ret_val < 0)
1297 return ret_val;
1299 tag_len = 4 + ret_val;
1326 int ret_val;
1330 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1331 if (ret_val != 0)
1332 return ret_val;
1337 ret_val = cipso_v4_map_cat_enum_ntoh(doi_def,
1341 if (ret_val != 0) {
1343 return ret_val;
1369 int ret_val;
1376 ret_val = cipso_v4_map_lvl_hton(doi_def,
1379 if (ret_val != 0)
1380 return ret_val;
1383 ret_val = cipso_v4_map_cat_rng_hton(doi_def,
1387 if (ret_val < 0)
1388 return ret_val;
1390 tag_len = 4 + ret_val;
1416 int ret_val;
1420 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1421 if (ret_val != 0)
1422 return ret_val;
1427 ret_val = cipso_v4_map_cat_rng_ntoh(doi_def,
1431 if (ret_val != 0) {
1433 return ret_val;
1765 int ret_val;
1779 ret_val = cipso_v4_gentag_rbm(doi_def,
1785 ret_val = cipso_v4_gentag_enum(doi_def,
1791 ret_val = cipso_v4_gentag_rng(doi_def,
1797 ret_val = cipso_v4_gentag_loc(doi_def,
1807 } while (ret_val < 0 &&
1810 if (ret_val < 0)
1811 return ret_val;
1812 cipso_v4_gentag_hdr(doi_def, buf, ret_val);
1813 return CIPSO_V4_HDR_LEN + ret_val;
1834 int ret_val = -EPERM;
1855 ret_val = -ENOMEM;
1859 ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr);
1860 if (ret_val < 0)
1862 buf_len = ret_val;
1871 ret_val = -ENOMEM;
1900 return ret_val;
1919 int ret_val = -EPERM;
1932 ret_val = -ENOMEM;
1936 ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr);
1937 if (ret_val < 0)
1939 buf_len = ret_val;
1948 ret_val = -ENOMEM;
1967 return ret_val;
2087 int ret_val = -ENOMSG;
2104 ret_val = cipso_v4_parsetag_rbm(doi_def, &cipso[6], secattr);
2107 ret_val = cipso_v4_parsetag_enum(doi_def, &cipso[6], secattr);
2110 ret_val = cipso_v4_parsetag_rng(doi_def, &cipso[6], secattr);
2113 ret_val = cipso_v4_parsetag_loc(doi_def, &cipso[6], secattr);
2116 if (ret_val == 0)
2121 return ret_val;
2167 int ret_val;
2175 ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr);
2176 if (ret_val < 0)
2177 return ret_val;
2178 buf_len = ret_val;
2191 ret_val = skb_cow(skb, skb_headroom(skb) + len_delta);
2192 if (ret_val < 0)
2193 return ret_val;
2243 int ret_val;
2252 ret_val = skb_cow(skb, skb_headroom(skb));
2253 if (ret_val < 0)
2254 return ret_val;
2285 int ret_val;
2287 ret_val = cipso_v4_cache_init();
2288 if (ret_val != 0)
2290 ret_val);