Home
last modified time | relevance | path

Searched refs:phba (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/scsi/lpfc/
H A Dlpfc_init.c73 static void __lpfc_cpuhp_remove(struct lpfc_hba *phba);
74 static void lpfc_cpuhp_remove(struct lpfc_hba *phba);
75 static void lpfc_cpuhp_add(struct lpfc_hba *phba);
87 static int lpfc_hba_down_post_s3(struct lpfc_hba *phba);
88 static int lpfc_hba_down_post_s4(struct lpfc_hba *phba);
94 static void lpfc_sli4_oas_verify(struct lpfc_hba *phba);
98 static void lpfc_sli4_async_cmstat_evt(struct lpfc_hba *phba);
99 static void lpfc_sli4_prep_dev_for_reset(struct lpfc_hba *phba);
105 static int lpfc_vmid_res_alloc(struct lpfc_hba *phba, struct lpfc_vport *vport);
106 static void lpfc_cgn_update_tstamp(struct lpfc_hba *phba, struct lpfc_cgn_ts *ts);
[all …]
H A Dlpfc_mem.c60 lpfc_mem_free_sli_mbox(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox) in lpfc_mem_free_sli_mbox() argument
66 if (phba->sli_rev == LPFC_SLI_REV4 && in lpfc_mem_free_sli_mbox()
68 lpfc_sli4_mbox_cmd_free(phba, mbox); in lpfc_mem_free_sli_mbox()
70 lpfc_mbox_rsrc_cleanup(phba, mbox, MBOX_THD_UNLOCKED); in lpfc_mem_free_sli_mbox()
75 lpfc_mem_alloc_active_rrq_pool_s4(struct lpfc_hba *phba) { in lpfc_mem_alloc_active_rrq_pool_s4() argument
77 int max_xri = phba->sli4_hba.max_cfg_param.max_xri; in lpfc_mem_alloc_active_rrq_pool_s4()
83 phba->cfg_rrq_xri_bitmap_sz = bytes; in lpfc_mem_alloc_active_rrq_pool_s4()
84 phba->active_rrq_pool = mempool_create_kmalloc_pool(LPFC_MEM_POOL_SIZE, in lpfc_mem_alloc_active_rrq_pool_s4()
86 if (!phba->active_rrq_pool) in lpfc_mem_alloc_active_rrq_pool_s4()
109 lpfc_mem_alloc(struct lpfc_hba *phba, int align) in lpfc_mem_alloc() argument
[all …]
H A Dlpfc_sli.c75 lpfc_sli4_els_preprocess_rspiocbq(struct lpfc_hba *phba,
81 static bool lpfc_sli4_fp_handle_cqe(struct lpfc_hba *phba,
85 static void lpfc_sli4_hba_handle_eqe(struct lpfc_hba *phba,
89 static bool lpfc_sli4_mbox_completions_pending(struct lpfc_hba *phba);
90 static bool lpfc_sli4_process_missed_mbox_completions(struct lpfc_hba *phba);
92 static void __lpfc_sli4_consume_cqe(struct lpfc_hba *phba,
95 static uint16_t lpfc_wqe_bpl2sgl(struct lpfc_hba *phba,
287 if (q->phba->sli3_options & LPFC_SLI4_PHWQ_ENABLED) in lpfc_sli4_wq_put()
290 if (q->dpp_enable && q->phba->cfg_enable_dpp) { in lpfc_sli4_wq_put()
314 if (q->dpp_enable && q->phba->cfg_enable_dpp) { in lpfc_sli4_wq_put()
[all …]
H A Dlpfc_bsg.c140 lpfc_free_bsg_buffers(struct lpfc_hba *phba, struct lpfc_dmabuf *mlist) in lpfc_free_bsg_buffers() argument
148 lpfc_mbuf_free(phba, mlast->virt, mlast->phys); in lpfc_free_bsg_buffers()
151 lpfc_mbuf_free(phba, mlist->virt, mlist->phys); in lpfc_free_bsg_buffers()
158 lpfc_alloc_bsg_buffers(struct lpfc_hba *phba, unsigned int size, in lpfc_alloc_bsg_buffers() argument
180 lpfc_free_bsg_buffers(phba, mlist); in lpfc_alloc_bsg_buffers()
185 mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys)); in lpfc_alloc_bsg_buffers()
190 lpfc_free_bsg_buffers(phba, mlist); in lpfc_alloc_bsg_buffers()
300 lpfc_bsg_send_mgmt_cmd_cmp(struct lpfc_hba *phba, in lpfc_bsg_send_mgmt_cmd_cmp() argument
317 spin_lock_irqsave(&phba->ct_ev_lock, flags); in lpfc_bsg_send_mgmt_cmd_cmp()
324 spin_unlock_irqrestore(&phba->ct_ev_lock, flags); in lpfc_bsg_send_mgmt_cmd_cmp()
[all …]
H A Dlpfc_vport.c88 lpfc_alloc_vpi(struct lpfc_hba *phba) in lpfc_alloc_vpi() argument
92 spin_lock_irq(&phba->hbalock); in lpfc_alloc_vpi()
94 vpi = find_next_zero_bit(phba->vpi_bmask, (phba->max_vpi + 1), 1); in lpfc_alloc_vpi()
95 if (vpi > phba->max_vpi) in lpfc_alloc_vpi()
98 set_bit(vpi, phba->vpi_bmask); in lpfc_alloc_vpi()
99 if (phba->sli_rev == LPFC_SLI_REV4) in lpfc_alloc_vpi()
100 phba->sli4_hba.max_cfg_param.vpi_used++; in lpfc_alloc_vpi()
101 spin_unlock_irq(&phba->hbalock); in lpfc_alloc_vpi()
106 lpfc_free_vpi(struct lpfc_hba *phba, int vpi) in lpfc_free_vpi() argument
110 spin_lock_irq(&phba->hbalock); in lpfc_free_vpi()
[all …]
H A Dlpfc_debugfs.c212 lpfc_debugfs_slow_ring_trc_data(struct lpfc_hba *phba, char *buf, int size) in lpfc_debugfs_slow_ring_trc_data() argument
227 index = (atomic_read(&phba->slow_ring_trc_cnt) + 1) & in lpfc_debugfs_slow_ring_trc_data()
230 dtp = phba->slow_ring_trc + i; in lpfc_debugfs_slow_ring_trc_data()
241 dtp = phba->slow_ring_trc + i; in lpfc_debugfs_slow_ring_trc_data()
280 lpfc_debugfs_hbqinfo_data(struct lpfc_hba *phba, char *buf, int size) in lpfc_debugfs_hbqinfo_data() argument
291 if (phba->sli_rev != 3) in lpfc_debugfs_hbqinfo_data()
294 spin_lock_irq(&phba->hbalock); in lpfc_debugfs_hbqinfo_data()
310 hbqs = &phba->hbqs[i]; in lpfc_debugfs_hbqinfo_data()
321 raw_index = phba->hbq_get[i]; in lpfc_debugfs_hbqinfo_data()
328 hbqe = (struct lpfc_hbq_entry *) phba->hbqs[i].hbq_virt; in lpfc_debugfs_hbqinfo_data()
[all …]
H A Dlpfc_nvme.h101 struct lpfc_hba *phba; member
168 #define lpfc_get_ctx_list(phba, cpu, mrq) \ argument
169 (phba->sli4_hba.nvmet_ctx_info + ((cpu * phba->cfg_nvmet_mrq) + mrq))
196 struct lpfc_hba *phba; member
235 void (*gen_req_cmp)(struct lpfc_hba *phba,
238 void __lpfc_nvme_ls_req_cmp(struct lpfc_hba *phba, struct lpfc_vport *vport,
244 int lpfc_nvme_unsol_ls_issue_abort(struct lpfc_hba *phba,
249 void (*xmt_ls_rsp_cmp)(struct lpfc_hba *phba,
252 void __lpfc_nvme_xmt_ls_rsp_cmp(struct lpfc_hba *phba,
H A Dlpfc_sli4.h174 struct lpfc_hba *phba; member
496 struct lpfc_hba *phba; member
501 #define lpfc_get_eq_hdl(eqidx) (&phba->sli4_hba.hba_eq_hdl[eqidx])
502 #define lpfc_get_aff_mask(eqidx) (&phba->sli4_hba.hba_eq_hdl[eqidx].aff_mask)
503 #define lpfc_get_irq(eqidx) (phba->sli4_hba.hba_eq_hdl[eqidx].irq)
850 void (*sli4_write_eq_db)(struct lpfc_hba *phba, struct lpfc_queue *eq,
852 void (*sli4_write_cq_db)(struct lpfc_hba *phba, struct lpfc_queue *cq,
1083 struct lpfc_queue *lpfc_sli4_queue_alloc(struct lpfc_hba *phba,
1089 void lpfc_modify_hba_eq_delay(struct lpfc_hba *phba, uint32_t startq,
1093 int lpfc_cq_create_set(struct lpfc_hba *phba, struct lpfc_queue **cqp,
[all …]
H A Dlpfc_sli.h146 void (*fabric_cmd_cmpl)(struct lpfc_hba *phba, struct lpfc_iocbq *cmd,
148 void (*wait_cmd_cmpl)(struct lpfc_hba *phba, struct lpfc_iocbq *cmd,
150 void (*cmd_cmpl)(struct lpfc_hba *phba, struct lpfc_iocbq *cmd,
H A Dlpfc_vport.h95 int lpfc_alloc_vpi(struct lpfc_hba *phba);
/linux/drivers/scsi/be2iscsi/
H A Dbe_main.c75 struct beiscsi_hba *phba = iscsi_host_priv(shost); \
77 phba->attr_##_name);\
82 beiscsi_##_name##_change(struct beiscsi_hba *phba, uint32_t val)\
85 beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_INIT,\
88 phba->attr_##_name, val); \
89 phba->attr_##_name = val;\
92 beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_INIT, \
106 struct beiscsi_hba *phba = iscsi_host_priv(shost);\
112 if (beiscsi_##_name##_change(phba, param_val) == 0) \
120 beiscsi_##_name##_init(struct beiscsi_hba *phba, uint32_t val) \
[all …]
H A Dbe_iscsi.c43 struct beiscsi_hba *phba; in beiscsi_session_create() local
54 phba = beiscsi_ep->phba; in beiscsi_session_create()
56 if (!beiscsi_hba_is_online(phba)) { in beiscsi_session_create()
57 beiscsi_log(phba, KERN_INFO, BEISCSI_LOG_CONFIG, in beiscsi_session_create()
58 "BS_%d : HBA in error 0x%lx\n", phba->state); in beiscsi_session_create()
62 beiscsi_log(phba, KERN_INFO, BEISCSI_LOG_CONFIG, in beiscsi_session_create()
64 if (cmds_max > beiscsi_ep->phba->params.wrbs_per_cxn) { in beiscsi_session_create()
65 beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_CONFIG, in beiscsi_session_create()
69 beiscsi_ep->phba->params.wrbs_per_cxn, in beiscsi_session_create()
70 beiscsi_ep->phba->params.wrbs_per_cxn); in beiscsi_session_create()
[all …]
H A Dbe_cmds.c88 struct be_mcc_wrb *alloc_mcc_wrb(struct beiscsi_hba *phba, in alloc_mcc_wrb() argument
91 struct be_queue_info *mccq = &phba->ctrl.mcc_obj.q; in alloc_mcc_wrb()
95 spin_lock(&phba->ctrl.mcc_lock); in alloc_mcc_wrb()
97 beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_INIT | in alloc_mcc_wrb()
100 mccq->used, phba->ctrl.mcc_tag_available); in alloc_mcc_wrb()
104 if (!phba->ctrl.mcc_tag_available) in alloc_mcc_wrb()
107 tag = phba->ctrl.mcc_tag[phba->ctrl.mcc_alloc_index]; in alloc_mcc_wrb()
109 beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_INIT | in alloc_mcc_wrb()
112 phba->ctrl.mcc_tag_available, in alloc_mcc_wrb()
113 phba->ctrl.mcc_alloc_index); in alloc_mcc_wrb()
[all …]
H A Dbe_mgmt.c34 struct beiscsi_hba *phba, in mgmt_vendor_specific_fw_cmd() argument
71 beiscsi_log(phba, KERN_WARNING, BEISCSI_LOG_CONFIG, in mgmt_vendor_specific_fw_cmd()
79 wrb = alloc_mcc_wrb(phba, &tag); in mgmt_vendor_specific_fw_cmd()
92 be_mcc_notify(phba, tag); in mgmt_vendor_specific_fw_cmd()
109 int mgmt_open_connection(struct beiscsi_hba *phba, in mgmt_open_connection() argument
118 struct be_ctrl_info *ctrl = &phba->ctrl; in mgmt_open_connection()
131 beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_CONFIG, in mgmt_open_connection()
137 phwi_ctrlr = phba->phwi_ctrlr; in mgmt_open_connection()
142 def_hdr_id = (unsigned short)HWI_GET_DEF_HDRQ_ID(phba, ulp_num); in mgmt_open_connection()
143 def_data_id = (unsigned short)HWI_GET_DEF_BUFQ_ID(phba, ulp_num); in mgmt_open_connection()
[all …]
H A Dbe_mgmt.h29 int mgmt_open_connection(struct beiscsi_hba *phba,
35 struct beiscsi_hba *phba,
141 #define GET_MGMT_CONTROLLER_WS(phba) (phba->pmgmt_ws) argument
144 pa->lo = phba->init_mem[ISCSI_MEM_GLOBAL_HEADER].mem_array[0].\
146 pa->hi = phba->init_mem[ISCSI_MEM_GLOBAL_HEADER].mem_array[0].\
154 struct beiscsi_hba *phba; member
166 int beiscsi_mgmt_invalidate_icds(struct beiscsi_hba *phba,
170 int beiscsi_get_initiator_name(struct beiscsi_hba *phba, char *name, bool cfg);
172 int beiscsi_if_en_dhcp(struct beiscsi_hba *phba, u32 ip_type);
174 int beiscsi_if_en_static(struct beiscsi_hba *phba, u32 ip_type,
[all …]
H A Dbe_main.h251 #define chip_be2(phba) (phba->generation == BE_GEN2) argument
252 #define chip_be3_r(phba) (phba->generation == BE_GEN3) argument
253 #define is_chip_be2_be3r(phba) (chip_be3_r(phba) || (chip_be2(phba))) argument
261 #define BEISCSI_ULP_AVLBL_CID(phba, ulp_num) \ argument
262 (((struct ulp_cid_info *)phba->cid_array_info[ulp_num])->avlbl_cids)
263 #define BEISCSI_ULP0_AVLBL_CID(phba) \ argument
264 BEISCSI_ULP_AVLBL_CID(phba, BEISCSI_ULP0)
265 #define BEISCSI_ULP1_AVLBL_CID(phba) \ argument
266 BEISCSI_ULP_AVLBL_CID(phba, BEISCSI_ULP1)
299 (phba->cid_to_cri_map[cid] = cri_index)
[all …]
H A Dbe_iscsi.h16 void beiscsi_iface_create_default(struct beiscsi_hba *phba);
18 void beiscsi_iface_destroy_default(struct beiscsi_hba *phba);
32 void beiscsi_offload_iscsi(struct beiscsi_hba *phba, struct iscsi_conn *conn,
58 int beiscsi_get_macaddr(char *buf, struct beiscsi_hba *phba);
H A Dbe_cmds.h788 int beiscsi_cmd_function_reset(struct beiscsi_hba *phba);
792 int beiscsi_check_fw_rdy(struct beiscsi_hba *phba);
794 int beiscsi_init_sliport(struct beiscsi_hba *phba);
796 int beiscsi_cmd_iscsi_cleanup(struct beiscsi_hba *phba, unsigned short ulp_num);
798 int beiscsi_detect_ue(struct beiscsi_hba *phba);
800 int beiscsi_detect_tpe(struct beiscsi_hba *phba);
812 int beiscsi_cmd_mccq_create(struct beiscsi_hba *phba,
818 int beiscsi_modify_eq_delay(struct beiscsi_hba *phba, struct be_set_eqd *,
820 int beiscsi_mccq_compl_wait(struct beiscsi_hba *phba,
824 int __beiscsi_mcc_compl_status(struct beiscsi_hba *phba,
[all …]
H A Dbe.h90 struct beiscsi_hba *phba; member
/linux/Documentation/scsi/
H A DChangeLog.lpfc189 remove shim lpfc_scsi_host_init - allocate phba mem in scsi's
339 lpfc_disc_done() Moving all events from phba->dpc_disc to local
496 * New static function lpfc_sli_next_iocb(phba, pring, &piocb) to
617 * Grab lock before calling lpfc_sli_issue_mbox(phba, pmb,
725 here, the most notable is that the phba->slim2p lpfc_dmabuf goes
874 * Removed range checking. phba->config[] array elements are now
1081 * Change lpfc_printf_log to a #define. Also include phba->brd_no
1100 * Changing phba->config to kmalloc lpfc_icfgparam and not
1101 *phba->config. This is manifesting itself as a panic in
1165 * Changed pHba->phba, pCommand->pcmd
[all …]