Lines Matching refs:ec
762 int ec = 0; in replace_object() local
810 ec = write_data(DATA_UPDATE, dst); in replace_object()
813 ec = ISNS_RSP_INTERNAL_ERROR; in replace_object()
817 if (ec == 0) { in replace_object()
829 return (ec); in replace_object()
848 int ec = 0; in add_object() local
854 ec = write_data(DATA_ADD, obj); in add_object()
858 if (ec == 0 && scn_q != NULL) { in add_object()
862 return (ec); in add_object()
1483 int ec = 0; in extract_attr() local
1500 ec = ISNS_RSP_MSG_FORMAT_ERROR; in extract_attr()
1516 ec = ISNS_RSP_MSG_FORMAT_ERROR; in extract_attr()
1541 ec = ISNS_RSP_MSG_FORMAT_ERROR; in extract_attr()
1570 ec = ISNS_RSP_MSG_FORMAT_ERROR; in extract_attr()
1584 ec = ISNS_RSP_INVALID_QRY; in extract_attr()
1586 ec = ISNS_RSP_INVALID_REGIS; in extract_attr()
1591 return (ec); in extract_attr()
1612 int ec = 0; in copy_attr() local
1617 ec = extract_attr(&tmp, tlv, 1); in copy_attr()
1620 if (ec == 0 && tmp.tag != 0) { in copy_attr()
1622 ec = ISNS_RSP_INTERNAL_ERROR; in copy_attr()
1626 return (ec); in copy_attr()
1875 int ec = 0; in reg_get_entity() local
1893 ec = copy_attr(attr, tmp); in reg_get_entity()
1895 } while (ec == 0 && in reg_get_entity()
1899 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_entity()
1902 if (ec == 0) { in reg_get_entity()
1921 return (ec); in reg_get_entity()
1947 int ec = 0; in reg_get_iscsi() local
1972 ec = copy_attr(attr, tmp); in reg_get_iscsi()
1974 } while (ec == 0 && in reg_get_iscsi()
1979 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_iscsi()
1986 return (ec); in reg_get_iscsi()
2014 int ec = 0; in reg_get_portal() local
2048 ec = copy_attr(attr, ip); in reg_get_portal()
2050 if (ec == 0) { in reg_get_portal()
2053 ec = copy_attr(attr, tmp); in reg_get_portal()
2057 while (ec == 0 && in reg_get_portal()
2063 ec = copy_attr(attr, tmp); in reg_get_portal()
2068 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_portal()
2072 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_portal()
2079 return (ec); in reg_get_portal()
2103 int ec = 0; in reg_get_pg() local
2121 ec = copy_attr(attr, tmp); in reg_get_pg()
2123 } while (ec == 0 && in reg_get_pg()
2127 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_pg()
2134 return (ec); in reg_get_pg()
2161 int ec = 0; in reg_get_pg1() local
2182 ec = copy_attr(attr, tmp); in reg_get_pg1()
2184 while (ec == 0 && i < 3) { in reg_get_pg1()
2187 ec = assign_attr(attr, &pgt[i]); in reg_get_pg1()
2193 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_pg1()
2196 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_pg1()
2203 return (ec); in reg_get_pg1()
2231 int ec = 0; in reg_get_pg2() local
2266 ec = copy_attr(attr, ip); in reg_get_pg2()
2268 if (ec == 0) { in reg_get_pg2()
2271 ec = copy_attr(attr, tmp); in reg_get_pg2()
2274 while (ec == 0 && i < 3) { in reg_get_pg2()
2277 ec = assign_attr(attr, &pgt[i]); in reg_get_pg2()
2282 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_pg2()
2285 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_pg2()
2292 return (ec); in reg_get_pg2()
2323 int ec = 0; in reg_get_obj() local
2336 ec = reg_get_iscsi(p, &pgt[0], op, op_len); in reg_get_obj()
2341 ec = reg_get_portal(p, &pgt[0], &pgt[1], op, op_len); in reg_get_obj()
2348 ec = reg_get_pg1(p, pgt, op, op_len); in reg_get_obj()
2351 ec = reg_get_pg(p, op, op_len); in reg_get_obj()
2359 ec = reg_get_pg2(p, pgt, op, op_len); in reg_get_obj()
2367 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_obj()
2384 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_obj()
2387 if (ec == 0) { in reg_get_obj()
2390 ec = reg_get_obj(p, pgt, op, op_len); in reg_get_obj()
2397 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_obj()
2403 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_obj()
2407 if (ec == 0 && derefd == 0) { in reg_get_obj()
2408 ec = update_deref_obj(*p); in reg_get_obj()
2411 if (ec != 0 && *p != NULL) { in reg_get_obj()
2416 return (ec); in reg_get_obj()
2749 int ec = 0; in buff_child_obj() local
2767 return (ec); in buff_child_obj()
2779 return (ec); in buff_child_obj()
2796 ec = ISNS_RSP_INTERNAL_ERROR; in buff_child_obj()
2799 return (ec); in buff_child_obj()
2823 int ec = 0; in update_child_obj() local
2832 ec = cache_lookup(&lc, NULL, cb_add_child); in update_child_obj()
2834 return (ec); in update_child_obj()
2882 int ec = 0; in verify_ref_obj() local
2890 ec = cache_lookup(&lc, NULL, cb_verify_ref); in verify_ref_obj()
2892 return (ec); in verify_ref_obj()
2900 int ec = 0; in update_deref_obj() local
2923 ec = ISNS_RSP_INVALID_REGIS; in update_deref_obj()
2926 return (ec); in update_deref_obj()
3402 int ec = 0; in cb_verify_ref() local
3465 ec = ref_new2old( in cb_verify_ref()
3467 if (ec != 0) { in cb_verify_ref()
3468 return (ec); in cb_verify_ref()
3502 ec = ref_new2new(&lc, vp, evp); in cb_verify_ref()
3503 if (ec != 0) { in cb_verify_ref()
3504 return (ec); in cb_verify_ref()
3515 return (ec); in cb_verify_ref()
3554 int ec = 0; in cb_new_ref() local
3560 ec = new_ref(a, b); in cb_new_ref()
3562 return (ec); in cb_new_ref()
3573 int ec = 0; in ref_new2old() local
3595 ec = cache_lookup(&lc, NULL, cb_new_ref); in ref_new2old()
3598 return (ec); in ref_new2old()
3608 int ec = 0; in ref_new2new() local
3614 ec = new_ref(p1, p2); in ref_new2new()
3616 return (ec); in ref_new2new()
3625 int ec = 0; in new_ref() local
3631 ec = register_object(obj, NULL, NULL); in new_ref()
3633 ec = ISNS_RSP_INTERNAL_ERROR; in new_ref()
3636 return (ec); in new_ref()
3666 int ec = 0; in do_dereg() local
3688 while (ec == 0 && !parent_flag && in do_dereg()
3697 while (ec == 0 && num > 0) { in do_dereg()
3701 ec = do_dereg(lcp, in do_dereg()
3712 if (ec == 0 && TYPE_OF_REF[obj->type][0] > 0) { in do_dereg()
3720 ec = do_dereg(lcp, in do_dereg()
3729 if (ec == 0 && !child_flag && in do_dereg()
3734 ec = do_dereg(lcp, in do_dereg()
3741 if (ec == 0 && !child_flag) { in do_dereg()
3744 ec = write_data(DATA_DELETE, obj); in do_dereg()
3747 if (ec == 0) { in do_dereg()
3761 if (ec == 0 && in do_dereg()
3769 return (ec); in do_dereg()
3836 int ec in data_sync() argument
3841 if (ec == 0) { in data_sync()
3842 ec = write_data(DATA_COMMIT, NULL); in data_sync()
3844 if (ec == 0) { in data_sync()
3857 return (ec); in data_sync()