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()
52 efc_log_err(efc, "els io alloc disabled\n"); in efc_els_io_alloc_size()
57 els = mempool_alloc(efc->els_io_pool, GFP_ATOMIC); in efc_els_io_alloc_size()
59 atomic_add_return(1, &efc->els_io_alloc_failed_count); in efc_els_io_alloc_size()
73 els->io.req.virt = dma_alloc_coherent(&efc->pci->dev, els->io.req.size, in efc_els_io_alloc_size()
76 mempool_free(els, efc->els_io_pool); in efc_els_io_alloc_size()
82 els->io.rsp.virt = dma_alloc_coherent(&efc->pci->dev, els->io.rsp.size, in efc_els_io_alloc_size()
85 dma_free_coherent(&efc->pci->dev, els->io.req.size, in efc_els_io_alloc_size()
87 mempool_free(els, efc->els_io_pool); in efc_els_io_alloc_size()
115 struct efc *efc; in _efc_els_io_free() local
121 efc = node->efc; in _efc_els_io_free()
137 dma_free_coherent(&efc->pci->dev, els->io.rsp.size, in _efc_els_io_free()
139 dma_free_coherent(&efc->pci->dev, els->io.req.size, in _efc_els_io_free()
142 mempool_free(els, efc->els_io_pool); in _efc_els_io_free()
145 efc_scsi_io_list_empty(node->efc, node); in _efc_els_io_free()
165 struct efc *efc; in efc_els_req_cb() local
171 efc = node->efc; in efc_els_req_cb()
192 efc_log_warn(efc, in efc_els_req_cb()
232 efc_log_err(efc, "LOCAL_REJECT with ext status:%x\n", in efc_els_req_cb()
240 efc_log_warn(efc, "els req failed status x%x, ext_status x%x\n", in efc_els_req_cb()
264 struct efc *efc = node->efc; in efc_els_send_req() local
284 rc = efc->tt.send_els(efc, &els->io); in efc_els_send_req()
291 efc_log_err(efc, "efc_els_send failed: %d\n", rc); in efc_els_send_req()
300 struct efc *efc; in efc_els_retry() local
304 efc = els->node->efc; in efc_els_retry()
311 rc = efc->tt.send_els(efc, &els->io); in efc_els_retry()
317 efc_log_err(efc, "ELS retries exhausted\n"); in efc_els_retry()
327 struct efc *efc; in efc_els_acc_cb() local
332 efc = node->efc; in efc_els_acc_cb()
346 efc_log_warn(efc, "[%s] %-8s failed status x%x, ext x%x\n", in efc_els_acc_cb()
362 struct efc *efc = node->efc; in efc_els_send_rsp() local
384 rc = efc->tt.send_els(efc, &els->io); in efc_els_send_rsp()
400 struct efc *efc = node->efc; in efc_send_plogi() local
407 efc_log_err(efc, "IO alloc failed\n"); in efc_send_plogi()
427 struct efc *efc; in efc_send_flogi() local
430 efc = node->efc; in efc_send_flogi()
436 efc_log_err(efc, "IO alloc failed\n"); in efc_send_flogi()
456 struct efc *efc; in efc_send_fdisc() local
459 efc = node->efc; in efc_send_fdisc()
465 efc_log_err(efc, "IO alloc failed\n"); in efc_send_fdisc()
484 struct efc *efc = node->efc; in efc_send_prli() local
495 efc_log_err(efc, "IO alloc failed\n"); in efc_send_prli()
524 struct efc *efc = node->efc; in efc_send_logo() local
535 efc_log_err(efc, "IO alloc failed\n"); in efc_send_logo()
556 struct efc *efc = node->efc; in efc_send_adisc() local
568 efc_log_err(efc, "IO alloc failed\n"); in efc_send_adisc()
592 struct efc *efc = node->efc; in efc_send_scr() local
599 efc_log_err(efc, "IO alloc failed\n"); in efc_send_scr()
618 struct efc *efc = node->efc; in efc_send_ls_rjt() local
624 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_ls_rjt()
648 struct efc *efc = node->efc; in efc_send_plogi_acc() local
657 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_plogi_acc()
683 struct efc *efc = node->efc; in efc_send_flogi_p2p_acc() local
691 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_flogi_p2p_acc()
716 struct efc *efc = node->efc; in efc_send_prli_acc() local
727 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_prli_acc()
758 struct efc *efc = node->efc; in efc_send_prlo_acc() local
769 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_prlo_acc()
794 struct efc *efc = node->efc; in efc_send_ls_acc() local
802 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_ls_acc()
823 struct efc *efc = node->efc; in efc_send_logo_acc() local
830 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_logo_acc()
850 struct efc *efc = node->efc; in efc_send_adisc_acc() local
859 efc_log_err(efc, "els IO alloc failed\n"); in efc_send_adisc_acc()
898 struct efc *efc = node->efc; in efc_ns_send_rftid() local
909 efc_log_err(efc, "IO alloc failed\n"); in efc_ns_send_rftid()
935 struct efc *efc = node->efc; in efc_ns_send_rffid() local
946 efc_log_err(efc, "IO alloc failed\n"); in efc_ns_send_rffid()
976 struct efc *efc = node->efc; in efc_ns_send_gidpt() local
986 efc_log_err(efc, "IO alloc failed\n"); in efc_ns_send_gidpt()
1031 efc_send_ct_rsp(struct efc *efc, struct efc_node *node, u16 ox_id, in efc_send_ct_rsp() argument
1040 efc_log_err(efc, "IO alloc failed\n"); in efc_send_ct_rsp()
1070 if (efc->tt.send_els(efc, &els->io)) { in efc_send_ct_rsp()
1082 struct efc *efc = node->efc; in efc_send_bls_acc() local
1097 return efc->tt.send_bls(efc, FC_RCTL_BA_ACC, &bls); in efc_send_bls_acc()