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()
1481 int ec = 0; in extract_attr() local
1496 ec = ISNS_RSP_MSG_FORMAT_ERROR; in extract_attr()
1512 ec = ISNS_RSP_MSG_FORMAT_ERROR; in extract_attr()
1537 ec = ISNS_RSP_MSG_FORMAT_ERROR; in extract_attr()
1565 ec = ISNS_RSP_MSG_FORMAT_ERROR; in extract_attr()
1578 ec = ISNS_RSP_INVALID_QRY; in extract_attr()
1580 ec = ISNS_RSP_INVALID_REGIS; in extract_attr()
1585 return (ec); in extract_attr()
1606 int ec = 0; in copy_attr() local
1611 ec = extract_attr(&tmp, tlv, 1); in copy_attr()
1614 if (ec == 0 && tmp.tag != 0) { in copy_attr()
1616 ec = ISNS_RSP_INTERNAL_ERROR; in copy_attr()
1620 return (ec); in copy_attr()
1869 int ec = 0; in reg_get_entity() local
1887 ec = copy_attr(attr, tmp); in reg_get_entity()
1889 } while (ec == 0 && in reg_get_entity()
1893 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_entity()
1896 if (ec == 0) { in reg_get_entity()
1915 return (ec); in reg_get_entity()
1941 int ec = 0; in reg_get_iscsi() local
1966 ec = copy_attr(attr, tmp); in reg_get_iscsi()
1968 } while (ec == 0 && in reg_get_iscsi()
1973 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_iscsi()
1980 return (ec); in reg_get_iscsi()
2008 int ec = 0; in reg_get_portal() local
2042 ec = copy_attr(attr, ip); in reg_get_portal()
2044 if (ec == 0) { in reg_get_portal()
2047 ec = copy_attr(attr, tmp); in reg_get_portal()
2051 while (ec == 0 && in reg_get_portal()
2057 ec = copy_attr(attr, tmp); in reg_get_portal()
2062 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_portal()
2066 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_portal()
2073 return (ec); in reg_get_portal()
2097 int ec = 0; in reg_get_pg() local
2115 ec = copy_attr(attr, tmp); in reg_get_pg()
2117 } while (ec == 0 && in reg_get_pg()
2121 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_pg()
2128 return (ec); in reg_get_pg()
2155 int ec = 0; in reg_get_pg1() local
2176 ec = copy_attr(attr, tmp); in reg_get_pg1()
2178 while (ec == 0 && i < 3) { in reg_get_pg1()
2181 ec = assign_attr(attr, &pgt[i]); in reg_get_pg1()
2187 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_pg1()
2190 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_pg1()
2197 return (ec); in reg_get_pg1()
2225 int ec = 0; in reg_get_pg2() local
2260 ec = copy_attr(attr, ip); in reg_get_pg2()
2262 if (ec == 0) { in reg_get_pg2()
2265 ec = copy_attr(attr, tmp); in reg_get_pg2()
2268 while (ec == 0 && i < 3) { in reg_get_pg2()
2271 ec = assign_attr(attr, &pgt[i]); in reg_get_pg2()
2276 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_pg2()
2279 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_pg2()
2286 return (ec); in reg_get_pg2()
2317 int ec = 0; in reg_get_obj() local
2330 ec = reg_get_iscsi(p, &pgt[0], op, op_len); in reg_get_obj()
2335 ec = reg_get_portal(p, &pgt[0], &pgt[1], op, op_len); in reg_get_obj()
2342 ec = reg_get_pg1(p, pgt, op, op_len); in reg_get_obj()
2345 ec = reg_get_pg(p, op, op_len); in reg_get_obj()
2353 ec = reg_get_pg2(p, pgt, op, op_len); in reg_get_obj()
2361 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_obj()
2377 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_obj()
2380 if (ec == 0) { in reg_get_obj()
2383 ec = reg_get_obj(p, pgt, op, op_len); in reg_get_obj()
2390 ec = ISNS_RSP_INTERNAL_ERROR; in reg_get_obj()
2396 ec = ISNS_RSP_MSG_FORMAT_ERROR; in reg_get_obj()
2400 if (ec == 0 && derefd == 0) { in reg_get_obj()
2401 ec = update_deref_obj(*p); in reg_get_obj()
2404 if (ec != 0 && *p != NULL) { in reg_get_obj()
2409 return (ec); in reg_get_obj()
2742 int ec = 0; in buff_child_obj() local
2760 return (ec); in buff_child_obj()
2772 return (ec); in buff_child_obj()
2789 ec = ISNS_RSP_INTERNAL_ERROR; in buff_child_obj()
2792 return (ec); in buff_child_obj()
2816 int ec = 0; in update_child_obj() local
2825 ec = cache_lookup(&lc, NULL, cb_add_child); in update_child_obj()
2827 return (ec); in update_child_obj()
2875 int ec = 0; in verify_ref_obj() local
2883 ec = cache_lookup(&lc, NULL, cb_verify_ref); in verify_ref_obj()
2885 return (ec); in verify_ref_obj()
2893 int ec = 0; in update_deref_obj() local
2916 ec = ISNS_RSP_INVALID_REGIS; in update_deref_obj()
2919 return (ec); in update_deref_obj()
3395 int ec = 0; in cb_verify_ref() local
3458 ec = ref_new2old( in cb_verify_ref()
3460 if (ec != 0) { in cb_verify_ref()
3461 return (ec); in cb_verify_ref()
3495 ec = ref_new2new(&lc, vp, evp); in cb_verify_ref()
3496 if (ec != 0) { in cb_verify_ref()
3497 return (ec); in cb_verify_ref()
3508 return (ec); in cb_verify_ref()
3547 int ec = 0; in cb_new_ref() local
3553 ec = new_ref(a, b); in cb_new_ref()
3555 return (ec); in cb_new_ref()
3566 int ec = 0; in ref_new2old() local
3588 ec = cache_lookup(&lc, NULL, cb_new_ref); in ref_new2old()
3591 return (ec); in ref_new2old()
3601 int ec = 0; in ref_new2new() local
3607 ec = new_ref(p1, p2); in ref_new2new()
3609 return (ec); in ref_new2new()
3618 int ec = 0; in new_ref() local
3624 ec = register_object(obj, NULL, NULL); in new_ref()
3626 ec = ISNS_RSP_INTERNAL_ERROR; in new_ref()
3629 return (ec); in new_ref()
3659 int ec = 0; in do_dereg() local
3681 while (ec == 0 && !parent_flag && in do_dereg()
3690 while (ec == 0 && num > 0) { in do_dereg()
3694 ec = do_dereg(lcp, in do_dereg()
3705 if (ec == 0 && TYPE_OF_REF[obj->type][0] > 0) { in do_dereg()
3713 ec = do_dereg(lcp, in do_dereg()
3722 if (ec == 0 && !child_flag && in do_dereg()
3727 ec = do_dereg(lcp, in do_dereg()
3734 if (ec == 0 && !child_flag) { in do_dereg()
3737 ec = write_data(DATA_DELETE, obj); in do_dereg()
3740 if (ec == 0) { in do_dereg()
3754 if (ec == 0 && in do_dereg()
3762 return (ec); in do_dereg()
3829 int ec in data_sync() argument
3834 if (ec == 0) { in data_sync()
3835 ec = write_data(DATA_COMMIT, NULL); in data_sync()
3837 if (ec == 0) { in data_sync()
3850 return (ec); in data_sync()