Lines Matching defs:ret_val
301 int ret_val = -EPERM;
317 ret_val = -ENOMEM;
344 return ret_val;
386 int ret_val = -EINVAL;
424 ret_val = -EEXIST;
429 ret_val = 0;
450 doi, type_str, ret_val == 0 ? 1 : 0);
454 return ret_val;
513 int ret_val;
521 ret_val = -ENOENT;
528 ret_val = 0;
535 doi, ret_val == 0 ? 1 : 0);
539 return ret_val;
606 int ret_val = -ENOENT;
615 ret_val = callback(iter_doi, cb_arg);
616 if (ret_val < 0) {
625 return ret_val;
851 int ret_val;
886 ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat,
889 if (ret_val != 0)
890 return ret_val;
983 int ret_val;
987 ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat,
990 if (ret_val != 0)
991 return ret_val;
1115 int ret_val;
1127 ret_val = netlbl_catmap_setrng(&secattr->attr.mls.cat,
1131 if (ret_val != 0)
1132 return ret_val;
1180 int ret_val;
1187 ret_val = cipso_v4_map_lvl_hton(doi_def,
1190 if (ret_val != 0)
1191 return ret_val;
1194 ret_val = cipso_v4_map_cat_rbm_hton(doi_def,
1198 if (ret_val < 0)
1199 return ret_val;
1204 if (READ_ONCE(cipso_v4_rbm_optfmt) && ret_val > 0 &&
1205 ret_val <= 10)
1208 tag_len = 4 + ret_val;
1235 int ret_val;
1239 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1240 if (ret_val != 0)
1241 return ret_val;
1246 ret_val = cipso_v4_map_cat_rbm_ntoh(doi_def,
1250 if (ret_val != 0) {
1252 return ret_val;
1279 int ret_val;
1286 ret_val = cipso_v4_map_lvl_hton(doi_def,
1289 if (ret_val != 0)
1290 return ret_val;
1293 ret_val = cipso_v4_map_cat_enum_hton(doi_def,
1297 if (ret_val < 0)
1298 return ret_val;
1300 tag_len = 4 + ret_val;
1327 int ret_val;
1331 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1332 if (ret_val != 0)
1333 return ret_val;
1338 ret_val = cipso_v4_map_cat_enum_ntoh(doi_def,
1342 if (ret_val != 0) {
1344 return ret_val;
1370 int ret_val;
1377 ret_val = cipso_v4_map_lvl_hton(doi_def,
1380 if (ret_val != 0)
1381 return ret_val;
1384 ret_val = cipso_v4_map_cat_rng_hton(doi_def,
1388 if (ret_val < 0)
1389 return ret_val;
1391 tag_len = 4 + ret_val;
1417 int ret_val;
1421 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1422 if (ret_val != 0)
1423 return ret_val;
1428 ret_val = cipso_v4_map_cat_rng_ntoh(doi_def,
1432 if (ret_val != 0) {
1434 return ret_val;
1766 int ret_val;
1780 ret_val = cipso_v4_gentag_rbm(doi_def,
1786 ret_val = cipso_v4_gentag_enum(doi_def,
1792 ret_val = cipso_v4_gentag_rng(doi_def,
1798 ret_val = cipso_v4_gentag_loc(doi_def,
1808 } while (ret_val < 0 &&
1811 if (ret_val < 0)
1812 return ret_val;
1813 cipso_v4_gentag_hdr(doi_def, buf, ret_val);
1814 return CIPSO_V4_HDR_LEN + ret_val;
1835 int ret_val = -EPERM;
1856 ret_val = -ENOMEM;
1860 ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr);
1861 if (ret_val < 0)
1863 buf_len = ret_val;
1872 ret_val = -ENOMEM;
1901 return ret_val;
1920 int ret_val = -EPERM;
1933 ret_val = -ENOMEM;
1937 ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr);
1938 if (ret_val < 0)
1940 buf_len = ret_val;
1949 ret_val = -ENOMEM;
1968 return ret_val;
2088 int ret_val = -ENOMSG;
2105 ret_val = cipso_v4_parsetag_rbm(doi_def, &cipso[6], secattr);
2108 ret_val = cipso_v4_parsetag_enum(doi_def, &cipso[6], secattr);
2111 ret_val = cipso_v4_parsetag_rng(doi_def, &cipso[6], secattr);
2114 ret_val = cipso_v4_parsetag_loc(doi_def, &cipso[6], secattr);
2117 if (ret_val == 0)
2122 return ret_val;
2168 int ret_val;
2176 ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr);
2177 if (ret_val < 0)
2178 return ret_val;
2179 buf_len = ret_val;
2192 ret_val = skb_cow(skb, skb_headroom(skb) + len_delta);
2193 if (ret_val < 0)
2194 return ret_val;
2244 int ret_val;
2253 ret_val = skb_cow(skb, skb_headroom(skb));
2254 if (ret_val < 0)
2255 return ret_val;
2286 int ret_val;
2288 ret_val = cipso_v4_cache_init();
2289 if (ret_val != 0)
2291 ret_val);