Lines Matching refs:efc
12 struct efc *efc = arg; in efc_remote_node_cb() local
17 spin_lock_irqsave(&efc->lock, flags); in efc_remote_node_cb()
19 spin_unlock_irqrestore(&efc->lock, flags); in efc_remote_node_cb()
35 struct efc *efc = node->efc; in _efc_node_free() local
39 dma_pool_free(efc->node_dma_pool, dma->virt, dma->phys); in _efc_node_free()
41 mempool_free(node, efc->node_pool); in _efc_node_free()
49 struct efc *efc = nport->efc; in efc_node_alloc() local
53 efc_log_debug(efc, "node allocation when shutting down %06x", in efc_node_alloc()
58 node = mempool_alloc(efc->node_pool, GFP_ATOMIC); in efc_node_alloc()
60 efc_log_err(efc, "node allocation failed %06x", port_id); in efc_node_alloc()
67 dma->virt = dma_pool_zalloc(efc->node_dma_pool, GFP_ATOMIC, &dma->phys); in efc_node_alloc()
69 efc_log_err(efc, "node dma alloc failed\n"); in efc_node_alloc()
75 node->efc = efc; in efc_node_alloc()
85 rc = efc_cmd_node_alloc(efc, &node->rnode, port_id, nport); in efc_node_alloc()
87 efc_log_err(efc, "efc_hw_node_alloc failed: %d\n", rc); in efc_node_alloc()
99 efc_log_err(efc, "Node lookup store failed: %d\n", rc); in efc_node_alloc()
111 efc_node_free_resources(efc, &node->rnode); in efc_node_alloc()
113 dma_pool_free(efc->node_dma_pool, dma->virt, dma->phys); in efc_node_alloc()
115 mempool_free(node, efc->node_pool); in efc_node_alloc()
123 struct efc *efc; in efc_node_free() local
128 efc = node->efc; in efc_node_free()
141 efc_log_err(efc, "Node already Freed\n"); in efc_node_free()
146 rc = efc_node_free_resources(efc, &node->rnode); in efc_node_free()
148 efc_log_err(efc, "efc_hw_node_free failed: %d\n", rc); in efc_node_free()
197 struct efc *efc = node->efc; in efc_node_attach() local
200 efc_log_err(efc, "Warning: unattached domain\n"); in efc_node_attach()
214 rc = efc_cmd_node_attach(efc, &node->rnode, &node->sparm_dma_buf); in efc_node_attach()
216 efc_log_debug(efc, "efc_hw_node_attach failed: %d\n", rc); in efc_node_attach()
262 efc_log_debug(node->efc, "[%s] cleaning up LS_ACC oxid=0x%x\n", in efc_node_send_ls_io_cleanup()
348 struct efc *efc = node->efc; in efc_node_purge_pending() local
356 efc->tt.hw_seq_free(efc, frame); in efc_node_purge_pending()
592 struct efc *efc = node->efc; in __efc_node_wait_ios_shutdown() local
633 efc_log_debug(efc, "[%s] %-20s\n", node->display_name, in __efc_node_wait_ios_shutdown()
649 struct efc *efc = NULL; in __efc_node_common() local
653 efc = node->efc; in __efc_node_common()
714 efc_log_debug(efc, in __efc_node_common()
737 efc_log_debug(efc, "[%s] (%s) %s sending ELS_RJT\n", in __efc_node_common()
746 efc_log_debug(efc, "[%s] (%s) %s sending BA_ACC\n", in __efc_node_common()
756 efc_log_debug(node->efc, "[%s] %-20s %-20s not handled\n", in __efc_node_common()
971 struct efc *efc = node->efc; in efc_node_recv_ct_frame() local
974 efc_log_err(efc, "[%s] Received cmd :%x sending CT_REJECT\n", in efc_node_recv_ct_frame()
976 efc_send_ct_rsp(efc, node, be16_to_cpu(hdr->fh_ox_id), iu, in efc_node_recv_ct_frame()
995 struct efc *efc = node->efc; in efc_process_node_pending() local
1028 efc->tt.hw_seq_free(efc, seq); in efc_process_node_pending()
1032 efc_log_debug(efc, "%u node frames held and processed\n", in efc_process_node_pending()
1041 struct efc *efc = node->efc; in efc_scsi_sess_reg_complete() local
1046 spin_lock_irqsave(&efc->lock, flags); in efc_scsi_sess_reg_complete()
1049 spin_unlock_irqrestore(&efc->lock, flags); in efc_scsi_sess_reg_complete()
1053 efc_scsi_del_initiator_complete(struct efc *efc, struct efc_node *node) in efc_scsi_del_initiator_complete() argument
1057 spin_lock_irqsave(&efc->lock, flags); in efc_scsi_del_initiator_complete()
1060 spin_unlock_irqrestore(&efc->lock, flags); in efc_scsi_del_initiator_complete()
1064 efc_scsi_del_target_complete(struct efc *efc, struct efc_node *node) in efc_scsi_del_target_complete() argument
1068 spin_lock_irqsave(&efc->lock, flags); in efc_scsi_del_target_complete()
1071 spin_unlock_irqrestore(&efc->lock, flags); in efc_scsi_del_target_complete()
1075 efc_scsi_io_list_empty(struct efc *efc, struct efc_node *node) in efc_scsi_io_list_empty() argument
1079 spin_lock_irqsave(&efc->lock, flags); in efc_scsi_io_list_empty()
1081 spin_unlock_irqrestore(&efc->lock, flags); in efc_scsi_io_list_empty()
1086 struct efc *efc = node->efc; in efc_node_post_els_resp() local
1089 spin_lock_irqsave(&efc->lock, flags); in efc_node_post_els_resp()
1091 spin_unlock_irqrestore(&efc->lock, flags); in efc_node_post_els_resp()
1097 struct efc *efc = node->efc; in efc_node_post_shutdown() local
1099 spin_lock_irqsave(&efc->lock, flags); in efc_node_post_shutdown()
1101 spin_unlock_irqrestore(&efc->lock, flags); in efc_node_post_shutdown()