Lines Matching full:ocs
41 #include "ocs.h"
51 if (OCS_LOG_ENABLE_ELS_TRACE(ocs)) \
52 ocs_log_info(ocs, "[%s] %-20s\n", node->display_name, __func__); \
56 …ocs_log_debug(els->node->ocs, "[%s]" ELS_IOFMT " %-8s " fmt, els->node->display_name, ELS_IOFMT_AR…
165 ocs_t *ocs; in ocs_els_io_alloc_size() local
169 ocs_assert(node->ocs, NULL); in ocs_els_io_alloc_size()
170 ocs = node->ocs; in ocs_els_io_alloc_size()
171 ocs_assert(ocs->xport, NULL); in ocs_els_io_alloc_size()
172 xport = ocs->xport; in ocs_els_io_alloc_size()
176 ocs_log_debug(ocs, "called with io_alloc_enabled = FALSE\n"); in ocs_els_io_alloc_size()
181 els = ocs_io_alloc(ocs); in ocs_els_io_alloc_size()
204 ocs_log_err(ocs, "assertion failed. HIO is not null\n"); in ocs_els_io_alloc_size()
205 ocs_io_free(ocs, els); in ocs_els_io_alloc_size()
211 els->ocs = ocs; in ocs_els_io_alloc_size()
219 ocs_log_err(ocs, "ELS command request len greater than allocated\n"); in ocs_els_io_alloc_size()
220 ocs_io_free(ocs, els); in ocs_els_io_alloc_size()
226 ocs_log_err(ocs, "ELS command response len: %d " in ocs_els_io_alloc_size()
228 ocs_io_free(ocs, els); in ocs_els_io_alloc_size()
288 ocs_t *ocs; in _ocs_els_io_free() local
294 ocs_assert(els->node->ocs); in _ocs_els_io_free()
295 ocs = els->node->ocs; in _ocs_els_io_free()
298 ocs = node->ocs; in _ocs_els_io_free()
317 ocs_log_err(ocs, "assertion failed: niether els->els_pend nor els->active set\n"); in _ocs_els_io_free()
324 ocs_io_free(ocs, els); in _ocs_els_io_free()
330 ocs_scsi_check_pending(ocs); in _ocs_els_io_free()
351 ocs_log_err(node->ocs, "assertion failed: both els->els_pend and els->active set\n"); in ocs_els_make_active()
366 ocs_log_err(node->ocs, "assertion failed: niether els->els_pend nor els->active set\n"); in ocs_els_make_active()
456 ocs_t *ocs; in ocs_els_req_cb() local
466 ocs_assert(node->ocs, -1); in ocs_els_req_cb()
467 ocs = node->ocs; in ocs_els_req_cb()
489 ocs_log_warn(ocs, "ELS response returned len=%d > buflen=%zu\n", in ocs_els_req_cb()
519 ocs_log_warn(ocs, "els req complete: failed status x%x, ext_status, x%x\n", status, ext_status); in ocs_els_req_cb()
549 ocs_t *ocs; in ocs_els_acc_cb() local
559 ocs_assert(node->ocs, -1); in ocs_els_acc_cb()
560 ocs = node->ocs; in ocs_els_acc_cb()
577 ocs_log_warn(ocs, "[%s] %-8s failed status x%x, ext_status x%x\n", in ocs_els_acc_cb()
579 ocs_log_warn(ocs, "els acc complete: failed status x%x, ext_status, x%x\n", status, ext_status); in ocs_els_acc_cb()
616 ocs_t *ocs = node->ocs; in ocs_send_plogi() local
623 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_plogi()
670 ocs_t *ocs; in ocs_send_flogi() local
674 ocs_assert(node->ocs, NULL); in ocs_send_flogi()
676 ocs = node->ocs; in ocs_send_flogi()
682 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_flogi()
730 ocs_t *ocs; in ocs_send_fdisc() local
734 ocs_assert(node->ocs, NULL); in ocs_send_fdisc()
735 ocs = node->ocs; in ocs_send_fdisc()
741 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_fdisc()
785 ocs_t *ocs = node->ocs; in ocs_send_prli() local
793 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_prli()
848 ocs_t *ocs = node->ocs; in ocs_send_prlo() local
856 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_prlo()
902 ocs_t *ocs; in ocs_send_logo() local
906 ocs = node->ocs; in ocs_send_logo()
914 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_logo()
961 ocs_t *ocs; in ocs_send_adisc() local
966 ocs = node->ocs; in ocs_send_adisc()
974 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_adisc()
1024 ocs_t *ocs = node->ocs; in ocs_send_pdisc() local
1031 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_pdisc()
1074 ocs_t *ocs = node->ocs; in ocs_send_scr() local
1081 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_scr()
1123 ocs_t *ocs = node->ocs; in ocs_send_rrq() local
1130 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_rrq()
1173 ocs_t *ocs = node->ocs; in ocs_send_rscn() local
1182 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_send_rscn()
1232 ocs_t *ocs = node->ocs; in ocs_send_ls_rjt() local
1281 ocs_t *ocs = node->ocs; in ocs_send_plogi_acc() local
1343 ocs_t *ocs = node->ocs; in ocs_send_flogi_p2p_acc() local
1382 ocs_t *ocs = node->ocs; in ocs_send_flogi_acc() local
1447 ocs_t *ocs = node->ocs; in ocs_send_prli_acc() local
1504 ocs_t *ocs = node->ocs; in ocs_send_prlo_acc() local
1556 ocs_t *ocs = node->ocs; in ocs_send_ls_acc() local
1603 ocs_t *ocs = node->ocs; in ocs_send_logo_acc() local
1654 ocs_t *ocs; in ocs_send_adisc_acc() local
1657 ocs_assert(node->ocs, NULL); in ocs_send_adisc_acc()
1658 ocs = node->ocs; in ocs_send_adisc_acc()
1711 ocs_t *ocs = node->ocs; in ocs_ns_send_rftid() local
1718 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_ns_send_rftid()
1763 ocs_t *ocs = node->ocs; in ocs_ns_send_rffid() local
1770 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_ns_send_rffid()
1823 ocs_t *ocs = node->ocs; in ocs_ns_send_gidpt() local
1830 ocs_log_err(ocs, "IO alloc failed\n"); in ocs_ns_send_gidpt()
1901 ocs_t *ocs; in ocs_bls_send_acc() local
1904 ocs_assert(node->ocs, NULL); in ocs_bls_send_acc()
1905 ocs = node->ocs; in ocs_bls_send_acc()
1912 io->ocs = ocs; in ocs_bls_send_acc()
1936 ocs_log_err(ocs, "ocs_scsi_io_dispatch() failed: %d\n", rc); in ocs_bls_send_acc()
1991 ocs_t *ocs; in ocs_els_abort_cb() local
1997 ocs_assert(els->node->ocs, -1); in ocs_els_abort_cb()
1999 ocs = els->node->ocs; in ocs_els_abort_cb()
2002 ocs_log_warn(ocs, "status x%x ext x%x\n", status, ext_status); in ocs_els_abort_cb()
2006 ocs_io_free(ocs, abort_io); in ocs_els_abort_cb()
2041 ocs_t *ocs; in ocs_els_abort_io() local
2048 ocs_assert(els->node->ocs, NULL); in ocs_els_abort_io()
2050 ocs = els->node->ocs; in ocs_els_abort_io()
2051 ocs_assert(ocs->xport, NULL); in ocs_els_abort_io()
2052 xport = ocs->xport; in ocs_els_abort_io()
2057 ocs_log_debug(ocs, "els no longer active\n"); in ocs_els_abort_io()
2062 abort_io = ocs_io_alloc(ocs); in ocs_els_abort_io()
2069 abort_io->ocs = ocs; in ocs_els_abort_io()
2081 ocs_log_err(ocs, "ocs_scsi_io_dispatch failed: %d\n", rc); in ocs_els_abort_io()
2082 ocs_io_free(ocs, abort_io); in ocs_els_abort_io()
2101 ocs_t *ocs = NULL; \
2107 ocs = node->ocs; \
2108 ocs_assert(ocs != NULL, NULL);
2112 if (OCS_LOG_ENABLE_ELS_TRACE(ocs)) \
2113 ocs_log_info(ocs, "[%s] %-8s %-20s %-20s\n", node->display_name, els->display_name, \
2179 …ocs_log_warn(els->node->ocs, "[%s] %-20s %-20s not handled - terminating ELS\n", node->display_nam… in __ocs_els_common()
2184 ocs_log_warn(els->node->ocs, "[%s] %-20s %-20s not handled\n", node->display_name, funcname, in __ocs_els_common()
2220 ocs_log_err(ocs, "ocs_els_send failed: %d\n", rc); in __ocs_els_init()
2299 ocs_log_err(ocs, "ocs_els_send failed\n"); in __ocs_els_wait_resp()
2355 ocs_hw_io_free(&ocs->hw, els->hio); in __ocs_els_retry()
2363 ocs_log_err(ocs, "ocs_els_send failed: %d\n", rc); in __ocs_els_retry()
2440 ocs_setup_timer(ocs, &els->delay_timer, ocs_els_delay_timer_cb, els, 5000); in __ocs_els_delay_retry()
2447 ocs_hw_io_free(&ocs->hw, els->hio); in __ocs_els_delay_retry()
2759 ocs_setup_timer(els->ocs, &els->delay_timer, ocs_els_delay_timer_cb, els, 1); in ocs_els_delay_timer_cb()