0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 typedef int (*node_filter)(struct lpfc_nodelist *, void *);
0024
0025 struct fc_rport;
0026 struct fc_frame_header;
0027 void lpfc_down_link(struct lpfc_hba *, LPFC_MBOXQ_t *);
0028 void lpfc_sli_read_link_ste(struct lpfc_hba *);
0029 void lpfc_dump_mem(struct lpfc_hba *, LPFC_MBOXQ_t *, uint16_t, uint16_t);
0030 void lpfc_dump_wakeup_param(struct lpfc_hba *, LPFC_MBOXQ_t *);
0031 int lpfc_dump_static_vport(struct lpfc_hba *, LPFC_MBOXQ_t *, uint16_t);
0032 int lpfc_sli4_dump_cfg_rg23(struct lpfc_hba *, struct lpfcMboxq *);
0033 void lpfc_read_nv(struct lpfc_hba *, LPFC_MBOXQ_t *);
0034 void lpfc_config_async(struct lpfc_hba *, LPFC_MBOXQ_t *, uint32_t);
0035 int lpfc_mbox_rsrc_prep(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox);
0036 void lpfc_mbox_rsrc_cleanup(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox,
0037 enum lpfc_mbox_ctx locked);
0038 void lpfc_heart_beat(struct lpfc_hba *, LPFC_MBOXQ_t *);
0039 int lpfc_read_topology(struct lpfc_hba *, LPFC_MBOXQ_t *, struct lpfc_dmabuf *);
0040 void lpfc_clear_la(struct lpfc_hba *, LPFC_MBOXQ_t *);
0041 void lpfc_issue_clear_la(struct lpfc_hba *, struct lpfc_vport *);
0042 void lpfc_config_link(struct lpfc_hba *, LPFC_MBOXQ_t *);
0043 int lpfc_config_msi(struct lpfc_hba *, LPFC_MBOXQ_t *);
0044 int lpfc_read_sparam(struct lpfc_hba *, LPFC_MBOXQ_t *, int);
0045 void lpfc_read_config(struct lpfc_hba *, LPFC_MBOXQ_t *);
0046 void lpfc_read_lnk_stat(struct lpfc_hba *, LPFC_MBOXQ_t *);
0047 int lpfc_reg_rpi(struct lpfc_hba *, uint16_t, uint32_t, uint8_t *,
0048 LPFC_MBOXQ_t *, uint16_t);
0049 void lpfc_set_var(struct lpfc_hba *, LPFC_MBOXQ_t *, uint32_t, uint32_t);
0050 void lpfc_unreg_login(struct lpfc_hba *, uint16_t, uint32_t, LPFC_MBOXQ_t *);
0051 void lpfc_unreg_did(struct lpfc_hba *, uint16_t, uint32_t, LPFC_MBOXQ_t *);
0052 void lpfc_sli4_unreg_all_rpis(struct lpfc_vport *);
0053
0054 void lpfc_reg_vpi(struct lpfc_vport *, LPFC_MBOXQ_t *);
0055 void lpfc_register_new_vport(struct lpfc_hba *, struct lpfc_vport *,
0056 struct lpfc_nodelist *);
0057 void lpfc_unreg_vpi(struct lpfc_hba *, uint16_t, LPFC_MBOXQ_t *);
0058 void lpfc_init_link(struct lpfc_hba *, LPFC_MBOXQ_t *, uint32_t, uint32_t);
0059 void lpfc_request_features(struct lpfc_hba *, struct lpfcMboxq *);
0060 int lpfc_sli4_mbox_rsrc_extent(struct lpfc_hba *, struct lpfcMboxq *,
0061 uint16_t, uint16_t, bool);
0062 int lpfc_get_sli4_parameters(struct lpfc_hba *, LPFC_MBOXQ_t *);
0063 int lpfc_reg_congestion_buf(struct lpfc_hba *phba);
0064 int lpfc_unreg_congestion_buf(struct lpfc_hba *phba);
0065 struct lpfc_vport *lpfc_find_vport_by_did(struct lpfc_hba *, uint32_t);
0066 void lpfc_cleanup_rcv_buffers(struct lpfc_vport *);
0067 void lpfc_rcv_seq_check_edtov(struct lpfc_vport *);
0068 void lpfc_cleanup_rpis(struct lpfc_vport *, int);
0069 void lpfc_cleanup_pending_mbox(struct lpfc_vport *);
0070 int lpfc_linkdown(struct lpfc_hba *);
0071 void lpfc_linkdown_port(struct lpfc_vport *);
0072 void lpfc_port_link_failure(struct lpfc_vport *);
0073 void lpfc_mbx_cmpl_read_topology(struct lpfc_hba *, LPFC_MBOXQ_t *);
0074 void lpfc_init_vpi_cmpl(struct lpfc_hba *, LPFC_MBOXQ_t *);
0075 void lpfc_cancel_all_vport_retry_delay_timer(struct lpfc_hba *);
0076 void lpfc_retry_pport_discovery(struct lpfc_hba *);
0077 int lpfc_init_iocb_list(struct lpfc_hba *phba, int cnt);
0078 void lpfc_free_iocb_list(struct lpfc_hba *phba);
0079 int lpfc_post_rq_buffer(struct lpfc_hba *phba, struct lpfc_queue *hrq,
0080 struct lpfc_queue *drq, int count, int idx);
0081 uint32_t lpfc_calc_cmf_latency(struct lpfc_hba *phba);
0082 void lpfc_cmf_signal_init(struct lpfc_hba *phba);
0083 void lpfc_cmf_start(struct lpfc_hba *phba);
0084 void lpfc_cmf_stop(struct lpfc_hba *phba);
0085 void lpfc_init_congestion_stat(struct lpfc_hba *phba);
0086 void lpfc_init_congestion_buf(struct lpfc_hba *phba);
0087 int lpfc_sli4_cgn_params_read(struct lpfc_hba *phba);
0088 uint32_t lpfc_cgn_calc_crc32(void *bufp, uint32_t sz, uint32_t seed);
0089 int lpfc_config_cgn_signal(struct lpfc_hba *phba);
0090 int lpfc_issue_cmf_sync_wqe(struct lpfc_hba *phba, u32 ms, u64 total);
0091 void lpfc_cgn_dump_rxmonitor(struct lpfc_hba *phba);
0092 void lpfc_cgn_update_stat(struct lpfc_hba *phba, uint32_t dtag);
0093 void lpfc_unblock_requests(struct lpfc_hba *phba);
0094 void lpfc_block_requests(struct lpfc_hba *phba);
0095
0096 void lpfc_mbx_cmpl_local_config_link(struct lpfc_hba *, LPFC_MBOXQ_t *);
0097 void lpfc_mbx_cmpl_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *);
0098 void lpfc_mbx_cmpl_dflt_rpi(struct lpfc_hba *, LPFC_MBOXQ_t *);
0099 void lpfc_mbx_cmpl_fabric_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *);
0100 void lpfc_mbx_cmpl_ns_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *);
0101 void lpfc_mbx_cmpl_fc_reg_login(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb);
0102 void lpfc_mbx_cmpl_fdmi_reg_login(struct lpfc_hba *, LPFC_MBOXQ_t *);
0103 void lpfc_mbx_cmpl_reg_vfi(struct lpfc_hba *, LPFC_MBOXQ_t *);
0104 void lpfc_unregister_vfi_cmpl(struct lpfc_hba *, LPFC_MBOXQ_t *);
0105 void lpfc_enqueue_node(struct lpfc_vport *, struct lpfc_nodelist *);
0106 void lpfc_dequeue_node(struct lpfc_vport *, struct lpfc_nodelist *);
0107 void lpfc_nlp_set_state(struct lpfc_vport *, struct lpfc_nodelist *, int);
0108 void lpfc_nlp_reg_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp);
0109 void lpfc_nlp_unreg_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp);
0110 void lpfc_drop_node(struct lpfc_vport *, struct lpfc_nodelist *);
0111 void lpfc_set_disctmo(struct lpfc_vport *);
0112 int lpfc_can_disctmo(struct lpfc_vport *);
0113 int lpfc_unreg_rpi(struct lpfc_vport *, struct lpfc_nodelist *);
0114 void lpfc_unreg_all_rpis(struct lpfc_vport *);
0115 void lpfc_unreg_hba_rpis(struct lpfc_hba *);
0116 void lpfc_unreg_default_rpis(struct lpfc_vport *);
0117 void lpfc_issue_reg_vpi(struct lpfc_hba *, struct lpfc_vport *);
0118
0119 int lpfc_check_sli_ndlp(struct lpfc_hba *, struct lpfc_sli_ring *,
0120 struct lpfc_iocbq *, struct lpfc_nodelist *);
0121 struct lpfc_nodelist *lpfc_nlp_init(struct lpfc_vport *vport, uint32_t did);
0122 struct lpfc_nodelist *lpfc_nlp_get(struct lpfc_nodelist *);
0123 int lpfc_nlp_put(struct lpfc_nodelist *);
0124 void lpfc_check_nlp_post_devloss(struct lpfc_vport *vport,
0125 struct lpfc_nodelist *ndlp);
0126 void lpfc_ignore_els_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
0127 struct lpfc_iocbq *rspiocb);
0128 int lpfc_nlp_not_used(struct lpfc_nodelist *ndlp);
0129 struct lpfc_nodelist *lpfc_setup_disc_node(struct lpfc_vport *, uint32_t);
0130 void lpfc_disc_list_loopmap(struct lpfc_vport *);
0131 void lpfc_disc_start(struct lpfc_vport *);
0132 void lpfc_cleanup_discovery_resources(struct lpfc_vport *);
0133 void lpfc_cleanup(struct lpfc_vport *);
0134 void lpfc_prep_embed_io(struct lpfc_hba *phba, struct lpfc_io_buf *lpfc_ncmd);
0135 void lpfc_disc_timeout(struct timer_list *);
0136
0137 int lpfc_unregister_fcf_prep(struct lpfc_hba *);
0138 struct lpfc_nodelist *__lpfc_findnode_rpi(struct lpfc_vport *, uint16_t);
0139 struct lpfc_nodelist *lpfc_findnode_rpi(struct lpfc_vport *, uint16_t);
0140 void lpfc_worker_wake_up(struct lpfc_hba *);
0141 int lpfc_workq_post_event(struct lpfc_hba *, void *, void *, uint32_t);
0142 int lpfc_do_work(void *);
0143 int lpfc_disc_state_machine(struct lpfc_vport *, struct lpfc_nodelist *, void *,
0144 uint32_t);
0145
0146 void lpfc_do_scr_ns_plogi(struct lpfc_hba *, struct lpfc_vport *);
0147 int lpfc_check_sparm(struct lpfc_vport *, struct lpfc_nodelist *,
0148 struct serv_parm *, uint32_t, int);
0149 void lpfc_els_abort(struct lpfc_hba *, struct lpfc_nodelist *);
0150 void lpfc_more_plogi(struct lpfc_vport *);
0151 void lpfc_more_adisc(struct lpfc_vport *);
0152 void lpfc_end_rscn(struct lpfc_vport *);
0153 int lpfc_els_chk_latt(struct lpfc_vport *);
0154 int lpfc_els_abort_flogi(struct lpfc_hba *);
0155 int lpfc_initial_flogi(struct lpfc_vport *);
0156 void lpfc_issue_init_vfi(struct lpfc_vport *);
0157 int lpfc_initial_fdisc(struct lpfc_vport *);
0158 int lpfc_issue_els_plogi(struct lpfc_vport *, uint32_t, uint8_t);
0159 int lpfc_issue_els_prli(struct lpfc_vport *, struct lpfc_nodelist *, uint8_t);
0160 int lpfc_issue_els_adisc(struct lpfc_vport *, struct lpfc_nodelist *, uint8_t);
0161 int lpfc_issue_els_logo(struct lpfc_vport *, struct lpfc_nodelist *, uint8_t);
0162 int lpfc_issue_els_npiv_logo(struct lpfc_vport *, struct lpfc_nodelist *);
0163 int lpfc_issue_els_scr(struct lpfc_vport *vport, uint8_t retry);
0164 int lpfc_issue_els_rscn(struct lpfc_vport *vport, uint8_t retry);
0165 int lpfc_issue_fabric_reglogin(struct lpfc_vport *);
0166 int lpfc_issue_els_rdf(struct lpfc_vport *vport, uint8_t retry);
0167 int lpfc_issue_els_edc(struct lpfc_vport *vport, uint8_t retry);
0168 void lpfc_els_rcv_fpin(struct lpfc_vport *vport, void *p, u32 fpin_length);
0169 int lpfc_els_free_iocb(struct lpfc_hba *, struct lpfc_iocbq *);
0170 int lpfc_ct_free_iocb(struct lpfc_hba *, struct lpfc_iocbq *);
0171 int lpfc_els_rsp_acc(struct lpfc_vport *, uint32_t, struct lpfc_iocbq *,
0172 struct lpfc_nodelist *, LPFC_MBOXQ_t *);
0173 int lpfc_els_rsp_reject(struct lpfc_vport *, uint32_t, struct lpfc_iocbq *,
0174 struct lpfc_nodelist *, LPFC_MBOXQ_t *);
0175 int lpfc_els_rsp_adisc_acc(struct lpfc_vport *, struct lpfc_iocbq *,
0176 struct lpfc_nodelist *);
0177 int lpfc_els_rsp_prli_acc(struct lpfc_vport *, struct lpfc_iocbq *,
0178 struct lpfc_nodelist *);
0179 void lpfc_cancel_retry_delay_tmo(struct lpfc_vport *, struct lpfc_nodelist *);
0180 void lpfc_els_retry_delay(struct timer_list *);
0181 void lpfc_els_retry_delay_handler(struct lpfc_nodelist *);
0182 void lpfc_els_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *,
0183 struct lpfc_iocbq *);
0184 int lpfc_els_handle_rscn(struct lpfc_vport *);
0185 void lpfc_els_flush_rscn(struct lpfc_vport *);
0186 int lpfc_rscn_payload_check(struct lpfc_vport *, uint32_t);
0187 void lpfc_els_flush_all_cmd(struct lpfc_hba *);
0188 void lpfc_els_flush_cmd(struct lpfc_vport *);
0189 int lpfc_els_disc_adisc(struct lpfc_vport *);
0190 int lpfc_els_disc_plogi(struct lpfc_vport *);
0191 void lpfc_els_timeout(struct timer_list *);
0192 void lpfc_els_timeout_handler(struct lpfc_vport *);
0193 struct lpfc_iocbq *lpfc_prep_els_iocb(struct lpfc_vport *, uint8_t, uint16_t,
0194 uint8_t, struct lpfc_nodelist *,
0195 uint32_t, uint32_t);
0196 void lpfc_sli_prep_wqe(struct lpfc_hba *phba, struct lpfc_iocbq *job);
0197 void lpfc_hb_timeout_handler(struct lpfc_hba *);
0198
0199 void lpfc_ct_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *,
0200 struct lpfc_iocbq *);
0201 int lpfc_ct_handle_unsol_abort(struct lpfc_hba *, struct hbq_dmabuf *);
0202 int lpfc_issue_gidpt(struct lpfc_vport *vport);
0203 int lpfc_issue_gidft(struct lpfc_vport *vport);
0204 int lpfc_get_gidft_type(struct lpfc_vport *vport, struct lpfc_iocbq *iocbq);
0205 int lpfc_ns_cmd(struct lpfc_vport *, int, uint8_t, uint32_t);
0206 int lpfc_fdmi_cmd(struct lpfc_vport *, struct lpfc_nodelist *, int, uint32_t);
0207 void lpfc_fdmi_change_check(struct lpfc_vport *vport);
0208 void lpfc_delayed_disc_tmo(struct timer_list *);
0209 void lpfc_delayed_disc_timeout_handler(struct lpfc_vport *);
0210
0211 int lpfc_config_port_prep(struct lpfc_hba *);
0212 void lpfc_update_vport_wwn(struct lpfc_vport *vport);
0213 int lpfc_config_port_post(struct lpfc_hba *);
0214 int lpfc_sli4_refresh_params(struct lpfc_hba *phba);
0215 int lpfc_hba_down_prep(struct lpfc_hba *);
0216 int lpfc_hba_down_post(struct lpfc_hba *);
0217 void lpfc_hba_init(struct lpfc_hba *, uint32_t *);
0218 int lpfc_sli3_post_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, int cnt);
0219 void lpfc_decode_firmware_rev(struct lpfc_hba *, char *, int);
0220 int lpfc_online(struct lpfc_hba *);
0221 void lpfc_unblock_mgmt_io(struct lpfc_hba *);
0222 void lpfc_offline_prep(struct lpfc_hba *, int);
0223 void lpfc_offline(struct lpfc_hba *);
0224 void lpfc_reset_hba(struct lpfc_hba *);
0225 int lpfc_emptyq_wait(struct lpfc_hba *phba, struct list_head *hd,
0226 spinlock_t *slock);
0227
0228 int lpfc_sli_setup(struct lpfc_hba *);
0229 int lpfc_sli4_setup(struct lpfc_hba *phba);
0230 void lpfc_sli_queue_init(struct lpfc_hba *phba);
0231 void lpfc_sli4_queue_init(struct lpfc_hba *phba);
0232 struct lpfc_sli_ring *lpfc_sli4_calc_ring(struct lpfc_hba *phba,
0233 struct lpfc_iocbq *iocbq);
0234
0235 void lpfc_handle_eratt(struct lpfc_hba *);
0236 void lpfc_handle_latt(struct lpfc_hba *);
0237 irqreturn_t lpfc_sli_intr_handler(int, void *);
0238 irqreturn_t lpfc_sli_sp_intr_handler(int, void *);
0239 irqreturn_t lpfc_sli_fp_intr_handler(int, void *);
0240 irqreturn_t lpfc_sli4_intr_handler(int, void *);
0241 irqreturn_t lpfc_sli4_hba_intr_handler(int, void *);
0242
0243 int lpfc_read_object(struct lpfc_hba *phba, char *s, uint32_t *datap,
0244 uint32_t len);
0245
0246 void lpfc_sli4_cleanup_poll_list(struct lpfc_hba *phba);
0247 int lpfc_sli4_poll_eq(struct lpfc_queue *q, uint8_t path);
0248 void lpfc_sli4_poll_hbtimer(struct timer_list *t);
0249 void lpfc_sli4_start_polling(struct lpfc_queue *q);
0250 void lpfc_sli4_stop_polling(struct lpfc_queue *q);
0251
0252 void lpfc_read_rev(struct lpfc_hba *, LPFC_MBOXQ_t *);
0253 void lpfc_sli4_swap_str(struct lpfc_hba *, LPFC_MBOXQ_t *);
0254 void lpfc_config_ring(struct lpfc_hba *, int, LPFC_MBOXQ_t *);
0255 void lpfc_config_port(struct lpfc_hba *, LPFC_MBOXQ_t *);
0256 void lpfc_kill_board(struct lpfc_hba *, LPFC_MBOXQ_t *);
0257 void lpfc_mbox_put(struct lpfc_hba *, LPFC_MBOXQ_t *);
0258 LPFC_MBOXQ_t *lpfc_mbox_get(struct lpfc_hba *);
0259 void __lpfc_mbox_cmpl_put(struct lpfc_hba *, LPFC_MBOXQ_t *);
0260 void lpfc_mbox_cmpl_put(struct lpfc_hba *, LPFC_MBOXQ_t *);
0261 int lpfc_mbox_cmd_check(struct lpfc_hba *, LPFC_MBOXQ_t *);
0262 int lpfc_mbox_dev_check(struct lpfc_hba *);
0263 int lpfc_mbox_tmo_val(struct lpfc_hba *, LPFC_MBOXQ_t *);
0264 void lpfc_init_vfi(struct lpfcMboxq *, struct lpfc_vport *);
0265 void lpfc_reg_vfi(struct lpfcMboxq *, struct lpfc_vport *, dma_addr_t);
0266 void lpfc_init_vpi(struct lpfc_hba *, struct lpfcMboxq *, uint16_t);
0267 void lpfc_unreg_vfi(struct lpfcMboxq *, struct lpfc_vport *);
0268 void lpfc_reg_fcfi(struct lpfc_hba *, struct lpfcMboxq *);
0269 void lpfc_reg_fcfi_mrq(struct lpfc_hba *phba, struct lpfcMboxq *mbox, int mode);
0270 void lpfc_unreg_fcfi(struct lpfcMboxq *, uint16_t);
0271 void lpfc_resume_rpi(struct lpfcMboxq *, struct lpfc_nodelist *);
0272 int lpfc_check_pending_fcoe_event(struct lpfc_hba *, uint8_t);
0273 void lpfc_issue_init_vpi(struct lpfc_vport *);
0274
0275 void lpfc_config_hbq(struct lpfc_hba *, uint32_t, struct lpfc_hbq_init *,
0276 uint32_t , LPFC_MBOXQ_t *);
0277 struct hbq_dmabuf *lpfc_els_hbq_alloc(struct lpfc_hba *);
0278 void lpfc_els_hbq_free(struct lpfc_hba *, struct hbq_dmabuf *);
0279 struct hbq_dmabuf *lpfc_sli4_rb_alloc(struct lpfc_hba *);
0280 void lpfc_sli4_rb_free(struct lpfc_hba *, struct hbq_dmabuf *);
0281 struct rqb_dmabuf *lpfc_sli4_nvmet_alloc(struct lpfc_hba *phba);
0282 void lpfc_sli4_nvmet_free(struct lpfc_hba *phba, struct rqb_dmabuf *dmab);
0283 void lpfc_nvmet_ctxbuf_post(struct lpfc_hba *phba,
0284 struct lpfc_nvmet_ctxbuf *ctxp);
0285 int lpfc_nvmet_rcv_unsol_abort(struct lpfc_vport *vport,
0286 struct fc_frame_header *fc_hdr);
0287 void lpfc_nvmet_wqfull_process(struct lpfc_hba *phba, struct lpfc_queue *wq);
0288 void lpfc_nvme_wait_for_io_drain(struct lpfc_hba *phba);
0289 void lpfc_sli4_build_dflt_fcf_record(struct lpfc_hba *, struct fcf_record *,
0290 uint16_t);
0291 int lpfc_sli4_rq_put(struct lpfc_queue *hq, struct lpfc_queue *dq,
0292 struct lpfc_rqe *hrqe, struct lpfc_rqe *drqe);
0293 int lpfc_free_rq_buffer(struct lpfc_hba *phba, struct lpfc_queue *hq);
0294 void lpfc_unregister_fcf(struct lpfc_hba *);
0295 void lpfc_unregister_fcf_rescan(struct lpfc_hba *);
0296 void lpfc_unregister_unused_fcf(struct lpfc_hba *);
0297 int lpfc_sli4_redisc_fcf_table(struct lpfc_hba *);
0298 void lpfc_fcf_redisc_wait_start_timer(struct lpfc_hba *);
0299 void lpfc_sli4_fcf_dead_failthrough(struct lpfc_hba *);
0300 uint16_t lpfc_sli4_fcf_rr_next_index_get(struct lpfc_hba *);
0301 void lpfc_sli4_set_fcf_flogi_fail(struct lpfc_hba *, uint16_t);
0302 int lpfc_sli4_fcf_rr_index_set(struct lpfc_hba *, uint16_t);
0303 void lpfc_sli4_fcf_rr_index_clear(struct lpfc_hba *, uint16_t);
0304 int lpfc_sli4_fcf_rr_next_proc(struct lpfc_vport *, uint16_t);
0305 void lpfc_sli4_clear_fcf_rr_bmask(struct lpfc_hba *);
0306
0307 int lpfc_mem_alloc(struct lpfc_hba *, int align);
0308 int lpfc_nvmet_mem_alloc(struct lpfc_hba *phba);
0309 int lpfc_mem_alloc_active_rrq_pool_s4(struct lpfc_hba *);
0310 void lpfc_mem_free(struct lpfc_hba *);
0311 void lpfc_mem_free_all(struct lpfc_hba *);
0312 void lpfc_stop_vport_timers(struct lpfc_vport *);
0313
0314 void lpfc_poll_timeout(struct timer_list *t);
0315 void lpfc_poll_start_timer(struct lpfc_hba *);
0316 void lpfc_poll_eratt(struct timer_list *);
0317 int
0318 lpfc_sli_handle_fast_ring_event(struct lpfc_hba *,
0319 struct lpfc_sli_ring *, uint32_t);
0320
0321 struct lpfc_iocbq *__lpfc_sli_get_iocbq(struct lpfc_hba *);
0322 struct lpfc_iocbq * lpfc_sli_get_iocbq(struct lpfc_hba *);
0323 void lpfc_sli_release_iocbq(struct lpfc_hba *, struct lpfc_iocbq *);
0324 uint16_t lpfc_sli_next_iotag(struct lpfc_hba *, struct lpfc_iocbq *);
0325 void lpfc_sli_cancel_iocbs(struct lpfc_hba *, struct list_head *, uint32_t,
0326 uint32_t);
0327 void lpfc_sli_wake_mbox_wait(struct lpfc_hba *, LPFC_MBOXQ_t *);
0328 int lpfc_selective_reset(struct lpfc_hba *);
0329 void lpfc_reset_barrier(struct lpfc_hba *);
0330 int lpfc_sli_brdready(struct lpfc_hba *, uint32_t);
0331 int lpfc_sli_brdkill(struct lpfc_hba *);
0332 int lpfc_sli_chipset_init(struct lpfc_hba *phba);
0333 int lpfc_sli_brdreset(struct lpfc_hba *);
0334 int lpfc_sli_brdrestart(struct lpfc_hba *);
0335 int lpfc_sli_hba_setup(struct lpfc_hba *);
0336 int lpfc_sli_config_port(struct lpfc_hba *, int);
0337 int lpfc_sli_host_down(struct lpfc_vport *);
0338 int lpfc_sli_hba_down(struct lpfc_hba *);
0339 int lpfc_sli_issue_mbox(struct lpfc_hba *, LPFC_MBOXQ_t *, uint32_t);
0340 int lpfc_sli_handle_mb_event(struct lpfc_hba *);
0341 void lpfc_sli_mbox_sys_shutdown(struct lpfc_hba *, int);
0342 int lpfc_sli_check_eratt(struct lpfc_hba *);
0343 void lpfc_sli_handle_slow_ring_event(struct lpfc_hba *,
0344 struct lpfc_sli_ring *, uint32_t);
0345 void lpfc_sli4_handle_received_buffer(struct lpfc_hba *, struct hbq_dmabuf *);
0346 void lpfc_sli4_seq_abort_rsp(struct lpfc_vport *vport,
0347 struct fc_frame_header *fc_hdr, bool aborted);
0348 void lpfc_sli_def_mbox_cmpl(struct lpfc_hba *, LPFC_MBOXQ_t *);
0349 void lpfc_sli4_unreg_rpi_cmpl_clr(struct lpfc_hba *, LPFC_MBOXQ_t *);
0350 int lpfc_sli_issue_iocb(struct lpfc_hba *, uint32_t,
0351 struct lpfc_iocbq *, uint32_t);
0352 int lpfc_sli_issue_fcp_io(struct lpfc_hba *phba, uint32_t ring_number,
0353 struct lpfc_iocbq *piocb, uint32_t flag);
0354 int lpfc_sli4_issue_wqe(struct lpfc_hba *phba, struct lpfc_sli4_hdw_queue *qp,
0355 struct lpfc_iocbq *pwqe);
0356 int lpfc_sli4_issue_abort_iotag(struct lpfc_hba *phba,
0357 struct lpfc_iocbq *cmdiocb, void *cmpl);
0358 void lpfc_sli_prep_els_req_rsp(struct lpfc_hba *phba,
0359 struct lpfc_iocbq *cmdiocbq,
0360 struct lpfc_vport *vport,
0361 struct lpfc_dmabuf *bmp, u16 cmd_size, u32 did,
0362 u32 elscmd, u8 tmo, u8 expect_rsp);
0363 void lpfc_sli_prep_gen_req(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocbq,
0364 struct lpfc_dmabuf *bmp, u16 rpi, u32 num_entry,
0365 u8 tmo);
0366 void lpfc_sli_prep_xmit_seq64(struct lpfc_hba *phba,
0367 struct lpfc_iocbq *cmdiocbq,
0368 struct lpfc_dmabuf *bmp, u16 rpi, u16 ox_id,
0369 u32 num_entry, u8 rctl, u8 last_seq,
0370 u8 cr_cx_cmd);
0371 void lpfc_sli_prep_abort_xri(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocbq,
0372 u16 ulp_context, u16 iotag, u8 ulp_class, u16 cqid,
0373 bool ia, bool wqec);
0374 struct lpfc_sglq *__lpfc_clear_active_sglq(struct lpfc_hba *phba, uint16_t xri);
0375 struct lpfc_sglq *__lpfc_sli_get_nvmet_sglq(struct lpfc_hba *phba,
0376 struct lpfc_iocbq *piocbq);
0377 void lpfc_sli_pcimem_bcopy(void *, void *, uint32_t);
0378 void lpfc_sli_bemem_bcopy(void *, void *, uint32_t);
0379 void lpfc_sli_abort_iocb_ring(struct lpfc_hba *, struct lpfc_sli_ring *);
0380 void lpfc_sli_abort_fcp_rings(struct lpfc_hba *phba);
0381 void lpfc_sli_hba_iocb_abort(struct lpfc_hba *);
0382 void lpfc_sli_flush_io_rings(struct lpfc_hba *phba);
0383 int lpfc_sli_ringpostbuf_put(struct lpfc_hba *, struct lpfc_sli_ring *,
0384 struct lpfc_dmabuf *);
0385 struct lpfc_dmabuf *lpfc_sli_ringpostbuf_get(struct lpfc_hba *,
0386 struct lpfc_sli_ring *,
0387 dma_addr_t);
0388
0389 uint32_t lpfc_sli_get_buffer_tag(struct lpfc_hba *);
0390 struct lpfc_dmabuf * lpfc_sli_ring_taggedbuf_get(struct lpfc_hba *,
0391 struct lpfc_sli_ring *, uint32_t );
0392
0393 int lpfc_sli_hbq_count(void);
0394 int lpfc_sli_hbqbuf_add_hbqs(struct lpfc_hba *, uint32_t);
0395 void lpfc_sli_hbqbuf_free_all(struct lpfc_hba *);
0396 int lpfc_sli_hbq_size(void);
0397 int lpfc_sli_issue_abort_iotag(struct lpfc_hba *, struct lpfc_sli_ring *,
0398 struct lpfc_iocbq *, void *);
0399 int lpfc_sli_sum_iocb(struct lpfc_vport *, uint16_t, uint64_t, lpfc_ctx_cmd);
0400 int lpfc_sli_abort_iocb(struct lpfc_vport *vport, u16 tgt_id, u64 lun_id,
0401 lpfc_ctx_cmd abort_cmd);
0402 int
0403 lpfc_sli_abort_taskmgmt(struct lpfc_vport *, struct lpfc_sli_ring *,
0404 uint16_t, uint64_t, lpfc_ctx_cmd);
0405
0406 void lpfc_mbox_timeout(struct timer_list *t);
0407 void lpfc_mbox_timeout_handler(struct lpfc_hba *);
0408 int lpfc_issue_hb_mbox(struct lpfc_hba *phba);
0409 void lpfc_issue_hb_tmo(struct lpfc_hba *phba);
0410
0411 struct lpfc_nodelist *lpfc_findnode_did(struct lpfc_vport *, uint32_t);
0412 struct lpfc_nodelist *lpfc_findnode_wwpn(struct lpfc_vport *,
0413 struct lpfc_name *);
0414 struct lpfc_nodelist *lpfc_findnode_mapped(struct lpfc_vport *vport);
0415
0416 int lpfc_sli_issue_mbox_wait(struct lpfc_hba *, LPFC_MBOXQ_t *, uint32_t);
0417
0418 int lpfc_sli_issue_iocb_wait(struct lpfc_hba *, uint32_t,
0419 struct lpfc_iocbq *, struct lpfc_iocbq *,
0420 uint32_t);
0421 void lpfc_sli_abort_fcp_cmpl(struct lpfc_hba *, struct lpfc_iocbq *,
0422 struct lpfc_iocbq *);
0423
0424 void lpfc_sli_free_hbq(struct lpfc_hba *, struct hbq_dmabuf *);
0425
0426 void *lpfc_mbuf_alloc(struct lpfc_hba *, int, dma_addr_t *);
0427 void __lpfc_mbuf_free(struct lpfc_hba *, void *, dma_addr_t);
0428 void lpfc_mbuf_free(struct lpfc_hba *, void *, dma_addr_t);
0429 void *lpfc_nvmet_buf_alloc(struct lpfc_hba *phba, int flags,
0430 dma_addr_t *handle);
0431 void lpfc_nvmet_buf_free(struct lpfc_hba *phba, void *virtp, dma_addr_t dma);
0432
0433 void lpfc_in_buf_free(struct lpfc_hba *, struct lpfc_dmabuf *);
0434 void lpfc_rq_buf_free(struct lpfc_hba *phba, struct lpfc_dmabuf *mp);
0435 void lpfc_setup_fdmi_mask(struct lpfc_vport *vport);
0436 int lpfc_link_reset(struct lpfc_vport *vport);
0437
0438
0439 int lpfc_check_pci_resettable(struct lpfc_hba *phba);
0440 const char* lpfc_info(struct Scsi_Host *);
0441 int lpfc_scan_finished(struct Scsi_Host *, unsigned long);
0442
0443 int lpfc_init_api_table_setup(struct lpfc_hba *, uint8_t);
0444 int lpfc_sli_api_table_setup(struct lpfc_hba *, uint8_t);
0445 int lpfc_scsi_api_table_setup(struct lpfc_hba *, uint8_t);
0446 int lpfc_mbox_api_table_setup(struct lpfc_hba *, uint8_t);
0447 int lpfc_api_table_setup(struct lpfc_hba *, uint8_t);
0448
0449 void lpfc_get_cfgparam(struct lpfc_hba *);
0450 void lpfc_get_vport_cfgparam(struct lpfc_vport *);
0451 int lpfc_alloc_sysfs_attr(struct lpfc_vport *);
0452 void lpfc_free_sysfs_attr(struct lpfc_vport *);
0453 extern const struct attribute_group *lpfc_hba_groups[];
0454 extern const struct attribute_group *lpfc_vport_groups[];
0455 extern struct scsi_host_template lpfc_template;
0456 extern struct scsi_host_template lpfc_template_nvme;
0457 extern struct fc_function_template lpfc_transport_functions;
0458 extern struct fc_function_template lpfc_vport_transport_functions;
0459
0460 int lpfc_vport_symbolic_node_name(struct lpfc_vport *, char *, size_t);
0461 int lpfc_vport_symbolic_port_name(struct lpfc_vport *, char *, size_t);
0462 void lpfc_terminate_rport_io(struct fc_rport *);
0463 void lpfc_dev_loss_tmo_callbk(struct fc_rport *rport);
0464
0465 struct lpfc_vport *lpfc_create_port(struct lpfc_hba *, int, struct device *);
0466 int lpfc_vport_disable(struct fc_vport *fc_vport, bool disable);
0467 int lpfc_mbx_unreg_vpi(struct lpfc_vport *);
0468 void destroy_port(struct lpfc_vport *);
0469 int lpfc_get_instance(void);
0470 void lpfc_host_attrib_init(struct Scsi_Host *);
0471
0472 extern void lpfc_debugfs_initialize(struct lpfc_vport *);
0473 extern void lpfc_debugfs_terminate(struct lpfc_vport *);
0474 extern void lpfc_debugfs_disc_trc(struct lpfc_vport *, int, char *, uint32_t,
0475 uint32_t, uint32_t);
0476 extern void lpfc_debugfs_slow_ring_trc(struct lpfc_hba *, char *, uint32_t,
0477 uint32_t, uint32_t);
0478 extern void lpfc_debugfs_nvme_trc(struct lpfc_hba *phba, char *fmt,
0479 uint16_t data1, uint16_t data2, uint32_t data3);
0480 extern struct lpfc_hbq_init *lpfc_hbq_defs[];
0481
0482
0483 int lpfc_sli4_alloc_resource_identifiers(struct lpfc_hba *);
0484 int lpfc_sli4_dealloc_resource_identifiers(struct lpfc_hba *);
0485 int lpfc_sli4_get_allocated_extnts(struct lpfc_hba *, uint16_t,
0486 uint16_t *, uint16_t *);
0487 int lpfc_sli4_get_avail_extnt_rsrc(struct lpfc_hba *, uint16_t,
0488 uint16_t *, uint16_t *);
0489
0490
0491 void lpfc_fabric_abort_nport(struct lpfc_nodelist *);
0492 void lpfc_fabric_abort_hba(struct lpfc_hba *);
0493 void lpfc_fabric_block_timeout(struct timer_list *);
0494 void lpfc_unblock_fabric_iocbs(struct lpfc_hba *);
0495 void lpfc_rampdown_queue_depth(struct lpfc_hba *);
0496 void lpfc_ramp_down_queue_handler(struct lpfc_hba *);
0497 void lpfc_scsi_dev_block(struct lpfc_hba *);
0498
0499 void
0500 lpfc_send_els_failure_event(struct lpfc_hba *, struct lpfc_iocbq *,
0501 struct lpfc_iocbq *);
0502 struct lpfc_fast_path_event *lpfc_alloc_fast_evt(struct lpfc_hba *);
0503 void lpfc_free_fast_evt(struct lpfc_hba *, struct lpfc_fast_path_event *);
0504 void lpfc_create_static_vport(struct lpfc_hba *);
0505 void lpfc_stop_hba_timers(struct lpfc_hba *);
0506 void lpfc_stop_port(struct lpfc_hba *);
0507 int lpfc_update_cmf_cmd(struct lpfc_hba *phba, uint32_t sz);
0508 int lpfc_update_cmf_cmpl(struct lpfc_hba *phba, uint64_t val, uint32_t sz,
0509 struct Scsi_Host *shost);
0510 void __lpfc_sli4_stop_fcf_redisc_wait_timer(struct lpfc_hba *);
0511 void lpfc_sli4_stop_fcf_redisc_wait_timer(struct lpfc_hba *);
0512 void lpfc_parse_fcoe_conf(struct lpfc_hba *, uint8_t *, uint32_t);
0513 int lpfc_parse_vpd(struct lpfc_hba *, uint8_t *, int);
0514 void lpfc_start_fdiscs(struct lpfc_hba *phba);
0515 struct lpfc_vport *lpfc_find_vport_by_vpid(struct lpfc_hba *, uint16_t);
0516 struct lpfc_sglq *__lpfc_get_active_sglq(struct lpfc_hba *, uint16_t);
0517 #define HBA_EVENT_RSCN 5
0518 #define HBA_EVENT_LINK_UP 2
0519 #define HBA_EVENT_LINK_DOWN 3
0520
0521
0522 int lpfc_bsg_request(struct bsg_job *);
0523 int lpfc_bsg_timeout(struct bsg_job *);
0524 int lpfc_bsg_ct_unsol_event(struct lpfc_hba *, struct lpfc_sli_ring *,
0525 struct lpfc_iocbq *);
0526 int lpfc_bsg_ct_unsol_abort(struct lpfc_hba *, struct hbq_dmabuf *);
0527 void __lpfc_sli_ringtx_put(struct lpfc_hba *, struct lpfc_sli_ring *,
0528 struct lpfc_iocbq *);
0529 struct lpfc_iocbq *lpfc_sli_ringtx_get(struct lpfc_hba *,
0530 struct lpfc_sli_ring *);
0531 int __lpfc_sli_issue_iocb(struct lpfc_hba *, uint32_t,
0532 struct lpfc_iocbq *, uint32_t);
0533 uint32_t lpfc_drain_txq(struct lpfc_hba *);
0534 void lpfc_clr_rrq_active(struct lpfc_hba *, uint16_t, struct lpfc_node_rrq *);
0535 int lpfc_test_rrq_active(struct lpfc_hba *, struct lpfc_nodelist *, uint16_t);
0536 void lpfc_handle_rrq_active(struct lpfc_hba *);
0537 int lpfc_send_rrq(struct lpfc_hba *, struct lpfc_node_rrq *);
0538 int lpfc_set_rrq_active(struct lpfc_hba *, struct lpfc_nodelist *,
0539 uint16_t, uint16_t, uint16_t);
0540 uint16_t lpfc_sli4_xri_inrange(struct lpfc_hba *, uint16_t);
0541 void lpfc_cleanup_vports_rrqs(struct lpfc_vport *, struct lpfc_nodelist *);
0542 struct lpfc_node_rrq *lpfc_get_active_rrq(struct lpfc_vport *, uint16_t,
0543 uint32_t);
0544 void lpfc_idiag_mbxacc_dump_bsg_mbox(struct lpfc_hba *, enum nemb_type,
0545 enum mbox_type, enum dma_type, enum sta_type,
0546 struct lpfc_dmabuf *, uint32_t);
0547 void lpfc_idiag_mbxacc_dump_issue_mbox(struct lpfc_hba *, MAILBOX_t *);
0548 int lpfc_wr_object(struct lpfc_hba *, struct list_head *, uint32_t, uint32_t *);
0549
0550 int lpfc_sli_probe_sriov_nr_virtfn(struct lpfc_hba *, int);
0551 uint16_t lpfc_sli_sriov_nr_virtfn_get(struct lpfc_hba *);
0552 int lpfc_sli4_queue_create(struct lpfc_hba *);
0553 void lpfc_sli4_queue_destroy(struct lpfc_hba *);
0554 void lpfc_sli4_abts_err_handler(struct lpfc_hba *, struct lpfc_nodelist *,
0555 struct sli4_wcqe_xri_aborted *);
0556 void lpfc_sli_abts_recover_port(struct lpfc_vport *,
0557 struct lpfc_nodelist *);
0558 int lpfc_hba_init_link_fc_topology(struct lpfc_hba *, uint32_t, uint32_t);
0559 int lpfc_issue_reg_vfi(struct lpfc_vport *);
0560 int lpfc_issue_unreg_vfi(struct lpfc_vport *);
0561 int lpfc_selective_reset(struct lpfc_hba *);
0562 int lpfc_sli4_read_config(struct lpfc_hba *);
0563 void lpfc_sli4_node_prep(struct lpfc_hba *);
0564 int lpfc_sli4_els_sgl_update(struct lpfc_hba *phba);
0565 int lpfc_sli4_nvmet_sgl_update(struct lpfc_hba *phba);
0566 int lpfc_io_buf_flush(struct lpfc_hba *phba, struct list_head *sglist);
0567 int lpfc_io_buf_replenish(struct lpfc_hba *phba, struct list_head *cbuf);
0568 int lpfc_sli4_io_sgl_update(struct lpfc_hba *phba);
0569 int lpfc_sli4_post_io_sgl_list(struct lpfc_hba *phba,
0570 struct list_head *blist, int xricnt);
0571 int lpfc_new_io_buf(struct lpfc_hba *phba, int num_to_alloc);
0572 void lpfc_io_free(struct lpfc_hba *phba);
0573 void lpfc_free_sgl_list(struct lpfc_hba *, struct list_head *);
0574 uint32_t lpfc_sli_port_speed_get(struct lpfc_hba *);
0575 int lpfc_sli4_request_firmware_update(struct lpfc_hba *, uint8_t);
0576 void lpfc_sli4_offline_eratt(struct lpfc_hba *);
0577
0578 struct lpfc_device_data *lpfc_create_device_data(struct lpfc_hba *,
0579 struct lpfc_name *,
0580 struct lpfc_name *,
0581 uint64_t, uint32_t, bool);
0582 void lpfc_delete_device_data(struct lpfc_hba *, struct lpfc_device_data*);
0583 struct lpfc_device_data *__lpfc_get_device_data(struct lpfc_hba *,
0584 struct list_head *list,
0585 struct lpfc_name *,
0586 struct lpfc_name *, uint64_t);
0587 bool lpfc_enable_oas_lun(struct lpfc_hba *, struct lpfc_name *,
0588 struct lpfc_name *, uint64_t, uint8_t);
0589 bool lpfc_disable_oas_lun(struct lpfc_hba *, struct lpfc_name *,
0590 struct lpfc_name *, uint64_t, uint8_t);
0591 bool lpfc_find_next_oas_lun(struct lpfc_hba *, struct lpfc_name *,
0592 struct lpfc_name *, uint64_t *, struct lpfc_name *,
0593 struct lpfc_name *, uint64_t *,
0594 uint32_t *, uint32_t *);
0595 int lpfc_sli4_dump_page_a0(struct lpfc_hba *phba, struct lpfcMboxq *mbox);
0596 void lpfc_mbx_cmpl_rdp_page_a0(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb);
0597
0598
0599 void lpfc_sli4_ras_init(struct lpfc_hba *phba);
0600 void lpfc_sli4_ras_setup(struct lpfc_hba *phba);
0601 int lpfc_sli4_ras_fwlog_init(struct lpfc_hba *phba, uint32_t fwlog_level,
0602 uint32_t fwlog_enable);
0603 void lpfc_ras_stop_fwlog(struct lpfc_hba *phba);
0604 int lpfc_check_fwlog_support(struct lpfc_hba *phba);
0605
0606
0607 void lpfc_nvme_rescan_port(struct lpfc_vport *vport,
0608 struct lpfc_nodelist *ndlp);
0609 void lpfc_nvme_unregister_port(struct lpfc_vport *vport,
0610 struct lpfc_nodelist *ndlp);
0611 int lpfc_nvme_register_port(struct lpfc_vport *vport,
0612 struct lpfc_nodelist *ndlp);
0613 int lpfc_nvme_create_localport(struct lpfc_vport *vport);
0614 void lpfc_nvme_destroy_localport(struct lpfc_vport *vport);
0615 void lpfc_nvme_update_localport(struct lpfc_vport *vport);
0616 int lpfc_nvmet_create_targetport(struct lpfc_hba *phba);
0617 int lpfc_nvmet_update_targetport(struct lpfc_hba *phba);
0618 void lpfc_nvmet_destroy_targetport(struct lpfc_hba *phba);
0619 int lpfc_nvme_handle_lsreq(struct lpfc_hba *phba,
0620 struct lpfc_async_xchg_ctx *axchg);
0621 int lpfc_nvmet_handle_lsreq(struct lpfc_hba *phba,
0622 struct lpfc_async_xchg_ctx *axchg);
0623 void lpfc_nvmet_unsol_fcp_event(struct lpfc_hba *phba, uint32_t idx,
0624 struct rqb_dmabuf *nvmebuf, uint64_t isr_ts,
0625 uint8_t cqflag);
0626 void lpfc_nvme_mod_param_dep(struct lpfc_hba *phba);
0627 void lpfc_nvmet_invalidate_host(struct lpfc_hba *phba,
0628 struct lpfc_nodelist *ndlp);
0629 void lpfc_nvme_abort_fcreq_cmpl(struct lpfc_hba *phba,
0630 struct lpfc_iocbq *cmdiocb,
0631 struct lpfc_iocbq *rspiocb);
0632 void lpfc_create_multixri_pools(struct lpfc_hba *phba);
0633 void lpfc_create_destroy_pools(struct lpfc_hba *phba);
0634 void lpfc_move_xri_pvt_to_pbl(struct lpfc_hba *phba, u32 hwqid);
0635 void lpfc_move_xri_pbl_to_pvt(struct lpfc_hba *phba, u32 hwqid, u32 cnt);
0636 void lpfc_adjust_high_watermark(struct lpfc_hba *phba, u32 hwqid);
0637 void lpfc_keep_pvt_pool_above_lowwm(struct lpfc_hba *phba, u32 hwqid);
0638 void lpfc_adjust_pvt_pool_count(struct lpfc_hba *phba, u32 hwqid);
0639 #ifdef LPFC_MXP_STAT
0640 void lpfc_snapshot_mxp(struct lpfc_hba *, u32);
0641 #endif
0642 struct lpfc_io_buf *lpfc_get_io_buf(struct lpfc_hba *phba,
0643 struct lpfc_nodelist *ndlp, u32 hwqid,
0644 int);
0645 void lpfc_release_io_buf(struct lpfc_hba *phba, struct lpfc_io_buf *ncmd,
0646 struct lpfc_sli4_hdw_queue *qp);
0647 void lpfc_io_ktime(struct lpfc_hba *phba, struct lpfc_io_buf *ncmd);
0648 void lpfc_wqe_cmd_template(void);
0649 void lpfc_nvmet_cmd_template(void);
0650 void lpfc_nvme_cancel_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *pwqeIn,
0651 uint32_t stat, uint32_t param);
0652 extern int lpfc_enable_nvmet_cnt;
0653 extern unsigned long long lpfc_enable_nvmet[];
0654 extern int lpfc_no_hba_reset_cnt;
0655 extern unsigned long lpfc_no_hba_reset[];
0656 extern int lpfc_acqe_cgn_frequency;
0657 extern int lpfc_fabric_cgn_frequency;
0658 extern int lpfc_use_cgn_signal;
0659
0660 extern union lpfc_wqe128 lpfc_iread_cmd_template;
0661 extern union lpfc_wqe128 lpfc_iwrite_cmd_template;
0662 extern union lpfc_wqe128 lpfc_icmnd_cmd_template;
0663
0664
0665 int lpfc_vmid_uvem(struct lpfc_vport *vport, struct lpfc_vmid *vmid, bool ins);
0666 uint32_t lpfc_vmid_get_cs_ctl(struct lpfc_vport *vport);
0667 int lpfc_vmid_cmd(struct lpfc_vport *vport,
0668 int cmdcode, struct lpfc_vmid *vmid);
0669 int lpfc_vmid_hash_fn(const char *vmid, int len);
0670 struct lpfc_vmid *lpfc_get_vmid_from_hashtable(struct lpfc_vport *vport,
0671 uint32_t hash, uint8_t *buf);
0672 int lpfc_vmid_get_appid(struct lpfc_vport *vport, char *uuid,
0673 enum dma_data_direction iodir,
0674 union lpfc_vmid_io_tag *tag);
0675 void lpfc_vmid_vport_cleanup(struct lpfc_vport *vport);
0676 int lpfc_issue_els_qfpa(struct lpfc_vport *vport);
0677
0678 void lpfc_sli_rpi_release(struct lpfc_vport *vport,
0679 struct lpfc_nodelist *ndlp);