Lines Matching refs:efc

15 #define EFC_LOG_ENABLE_ELS_TRACE(efc)		\  argument
16 (((efc) != NULL) ? (((efc)->logmask & (1U << 1)) != 0) : 0)
20 if (EFC_LOG_ENABLE_ELS_TRACE(efc)) \
21 efc_log_info(efc, "[%s] %-20s\n", \
26 efc_log_err((struct efc *)els->node->efc,\
43 struct efc *efc; in efc_els_io_alloc_size() local
47 efc = node->efc; in efc_els_io_alloc_size()
50 efc_log_err(efc, "els io alloc disabled\n"); in efc_els_io_alloc_size()
54 els = mempool_alloc(efc->els_io_pool, GFP_ATOMIC); in efc_els_io_alloc_size()
56 atomic_add_return(1, &efc->els_io_alloc_failed_count); in efc_els_io_alloc_size()
69 els->io.req.virt = dma_alloc_coherent(&efc->pci->dev, els->io.req.size, in efc_els_io_alloc_size()
72 mempool_free(els, efc->els_io_pool); in efc_els_io_alloc_size()
77 els->io.rsp.virt = dma_alloc_coherent(&efc->pci->dev, els->io.rsp.size, in efc_els_io_alloc_size()
80 dma_free_coherent(&efc->pci->dev, els->io.req.size, in efc_els_io_alloc_size()
82 mempool_free(els, efc->els_io_pool); in efc_els_io_alloc_size()
111 struct efc *efc; in _efc_els_io_free() local
117 efc = node->efc; in _efc_els_io_free()
133 dma_free_coherent(&efc->pci->dev, els->io.rsp.size, in _efc_els_io_free()
135 dma_free_coherent(&efc->pci->dev, els->io.req.size, in _efc_els_io_free()
138 mempool_free(els, efc->els_io_pool); in _efc_els_io_free()
141 efc_scsi_io_list_empty(node->efc, node); in _efc_els_io_free()
161 struct efc *efc; in efc_els_req_cb() local
167 efc = node->efc; in efc_els_req_cb()
188 efc_log_warn(efc, in efc_els_req_cb()
228 efc_log_err(efc, "LOCAL_REJECT with ext status:%x\n", in efc_els_req_cb()
236 efc_log_warn(efc, "els req failed status x%x, ext_status x%x\n", in efc_els_req_cb()
260 struct efc *efc = node->efc; in efc_els_send_req() local
280 rc = efc->tt.send_els(efc, &els->io); in efc_els_send_req()
287 efc_log_err(efc, "efc_els_send failed: %d\n", rc); in efc_els_send_req()
296 struct efc *efc; in efc_els_retry() local
300 efc = els->node->efc; in efc_els_retry()
307 rc = efc->tt.send_els(efc, &els->io); in efc_els_retry()
313 efc_log_err(efc, "ELS retries exhausted\n"); in efc_els_retry()
323 struct efc *efc; in efc_els_acc_cb() local
328 efc = node->efc; in efc_els_acc_cb()
342 efc_log_warn(efc, "[%s] %-8s failed status x%x, ext x%x\n", in efc_els_acc_cb()
358 struct efc *efc = node->efc; in efc_els_send_rsp() local
380 rc = efc->tt.send_els(efc, &els->io); in efc_els_send_rsp()
396 struct efc *efc = node->efc; in efc_send_plogi() local
403 efc_log_err(efc, "IO alloc failed\n"); in efc_send_plogi()
423 struct efc *efc; in efc_send_flogi() local
426 efc = node->efc; in efc_send_flogi()
432 efc_log_err(efc, "IO alloc failed\n"); in efc_send_flogi()
452 struct efc *efc; in efc_send_fdisc() local
455 efc = node->efc; in efc_send_fdisc()
461 efc_log_err(efc, "IO alloc failed\n"); in efc_send_fdisc()
480 struct efc *efc = node->efc; in efc_send_prli() local
491 efc_log_err(efc, "IO alloc failed\n"); in efc_send_prli()
520 struct efc *efc = node->efc; in efc_send_logo() local
531 efc_log_err(efc, "IO alloc failed\n"); in efc_send_logo()
552 struct efc *efc = node->efc; in efc_send_adisc() local
564 efc_log_err(efc, "IO alloc failed\n"); in efc_send_adisc()
588 struct efc *efc = node->efc; in efc_send_scr() local
595 efc_log_err(efc, "IO alloc failed\n"); in efc_send_scr()
614 struct efc *efc = node->efc; in efc_send_ls_rjt() local
620 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_ls_rjt()
644 struct efc *efc = node->efc; in efc_send_plogi_acc() local
653 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_plogi_acc()
679 struct efc *efc = node->efc; in efc_send_flogi_p2p_acc() local
687 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_flogi_p2p_acc()
712 struct efc *efc = node->efc; in efc_send_prli_acc() local
723 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_prli_acc()
754 struct efc *efc = node->efc; in efc_send_prlo_acc() local
765 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_prlo_acc()
790 struct efc *efc = node->efc; in efc_send_ls_acc() local
798 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_ls_acc()
819 struct efc *efc = node->efc; in efc_send_logo_acc() local
826 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_logo_acc()
846 struct efc *efc = node->efc; in efc_send_adisc_acc() local
855 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_adisc_acc()
894 struct efc *efc = node->efc; in efc_ns_send_rftid() local
905 efc_log_err(efc, "IO alloc failed\n"); in efc_ns_send_rftid()
931 struct efc *efc = node->efc; in efc_ns_send_rffid() local
942 efc_log_err(efc, "IO alloc failed\n"); in efc_ns_send_rffid()
972 struct efc *efc = node->efc; in efc_ns_send_gidpt() local
982 efc_log_err(efc, "IO alloc failed\n"); in efc_ns_send_gidpt()
1027 efc_send_ct_rsp(struct efc *efc, struct efc_node *node, u16 ox_id, in efc_send_ct_rsp() argument
1036 efc_log_err(efc, "IO alloc failed\n"); in efc_send_ct_rsp()
1066 if (efc->tt.send_els(efc, &els->io)) { in efc_send_ct_rsp()
1078 struct efc *efc = node->efc; in efc_send_bls_acc() local
1093 return efc->tt.send_bls(efc, FC_RCTL_BA_ACC, &bls); in efc_send_bls_acc()