Home
last modified time | relevance | path

Searched refs:fcport (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.6.21/drivers/scsi/bfa/
Dbfa_svc.c140 static bfa_boolean_t bfa_fcport_send_enable(struct bfa_fcport_s *fcport);
141 static bfa_boolean_t bfa_fcport_send_disable(struct bfa_fcport_s *fcport);
142 static void bfa_fcport_update_linkinfo(struct bfa_fcport_s *fcport);
143 static void bfa_fcport_reset_linkinfo(struct bfa_fcport_s *fcport);
144 static void bfa_fcport_set_wwns(struct bfa_fcport_s *fcport);
146 static void bfa_fcport_scn(struct bfa_fcport_s *fcport,
158 static void bfa_fcport_sm_uninit(struct bfa_fcport_s *fcport,
160 static void bfa_fcport_sm_enabling_qwait(struct bfa_fcport_s *fcport,
162 static void bfa_fcport_sm_enabling(struct bfa_fcport_s *fcport,
164 static void bfa_fcport_sm_linkdown(struct bfa_fcport_s *fcport,
[all …]
Dbfad_bsg.c927 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_ratelim() local
932 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_ratelim()
933 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_ratelim()
937 fcport->cfg.ratelimit = BFA_TRUE; in bfad_iocmd_ratelim()
939 fcport->cfg.ratelimit = BFA_FALSE; in bfad_iocmd_ratelim()
941 if (fcport->cfg.trl_def_speed == BFA_PORT_SPEED_UNKNOWN) in bfad_iocmd_ratelim()
942 fcport->cfg.trl_def_speed = BFA_PORT_SPEED_1GBPS; in bfad_iocmd_ratelim()
956 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_ratelim_speed() local
963 (iocmd->speed > fcport->speed_sup)) { in bfad_iocmd_ratelim_speed()
969 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_ratelim_speed()
[all …]
Dbfa_modules.h26 struct bfa_fcport_s fcport; /* fc port module */ member
/linux-6.6.21/drivers/scsi/qla2xxx/
Dqla_edif.c16 static uint16_t qla_edif_sadb_get_sa_index(fc_port_t *fcport,
18 static int qla_edif_sadb_delete_sa_index(fc_port_t *fcport, uint16_t nport_handle,
80 static struct edif_list_entry *qla_edif_list_find_sa_index(fc_port_t *fcport, in qla_edif_list_find_sa_index() argument
85 struct list_head *indx_list = &fcport->edif.edif_indx_list; in qla_edif_list_find_sa_index()
98 fc_port_t *fcport = edif_entry->fcport; in qla2x00_sa_replace_iocb_timeout() local
99 struct scsi_qla_host *vha = fcport->vha; in qla2x00_sa_replace_iocb_timeout()
106 __func__, edif_entry->handle, fcport->port_name, fcport->d_id.b24); in qla2x00_sa_replace_iocb_timeout()
112 spin_lock_irqsave(&fcport->edif.indx_list_lock, flags); in qla2x00_sa_replace_iocb_timeout()
126 spin_unlock_irqrestore(&fcport->edif.indx_list_lock, flags); in qla2x00_sa_replace_iocb_timeout()
128 sa_ctl = qla_edif_find_sa_ctl_by_index(fcport, in qla2x00_sa_replace_iocb_timeout()
[all …]
Dqla_init.c181 sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport, in qla24xx_async_abort_cmd()
229 fc_port_t *fcport = sp->fcport; in qla2x00_async_iocb_timeout() local
234 if (fcport) { in qla2x00_async_iocb_timeout()
235 ql_dbg(ql_dbg_disc, fcport->vha, 0x2071, in qla2x00_async_iocb_timeout()
237 sp->name, sp->handle, fcport->d_id.b24, fcport->port_name); in qla2x00_async_iocb_timeout()
239 fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE); in qla2x00_async_iocb_timeout()
302 "%s %8phC res %d \n", __func__, sp->fcport->port_name, res); in qla2x00_async_login_sp_done()
304 sp->fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE); in qla2x00_async_login_sp_done()
308 ea.fcport = sp->fcport; in qla2x00_async_login_sp_done()
324 qla2x00_async_login(struct scsi_qla_host *vha, fc_port_t *fcport, in qla2x00_async_login() argument
[all …]
Dqla_nvme.c23 struct fc_port *fcport; member
36 int qla_nvme_register_remote(struct scsi_qla_host *vha, struct fc_port *fcport) in qla_nvme_register_remote() argument
55 if (!(fcport->nvme_prli_service_param & in qla_nvme_register_remote()
57 (fcport->nvme_flag & NVME_FLAG_REGISTERED)) in qla_nvme_register_remote()
60 fcport->nvme_flag &= ~NVME_FLAG_RESETTING; in qla_nvme_register_remote()
63 req.port_name = wwn_to_u64(fcport->port_name); in qla_nvme_register_remote()
64 req.node_name = wwn_to_u64(fcport->node_name); in qla_nvme_register_remote()
66 req.dev_loss_tmo = fcport->dev_loss_tmo; in qla_nvme_register_remote()
68 if (fcport->nvme_prli_service_param & NVME_PRLI_SP_INITIATOR) in qla_nvme_register_remote()
71 if (fcport->nvme_prli_service_param & NVME_PRLI_SP_TARGET) in qla_nvme_register_remote()
[all …]
Dqla_inline.h108 qla2x00_set_fcport_disc_state(fc_port_t *fcport, int state) in qla2x00_set_fcport_disc_state() argument
119 fcport->disc_state = state; in qla2x00_set_fcport_disc_state()
121 old_val = atomic_read(&fcport->shadow_disc_state); in qla2x00_set_fcport_disc_state()
122 if (old_val == atomic_cmpxchg(&fcport->shadow_disc_state, in qla2x00_set_fcport_disc_state()
124 ql_dbg(ql_dbg_disc, fcport->vha, 0x2134, in qla2x00_set_fcport_disc_state()
126 fcport->port_name, (old_val & mask) < port_dstate_str_sz ? in qla2x00_set_fcport_disc_state()
128 port_dstate_str[state], fcport->d_id.b24); in qla2x00_set_fcport_disc_state()
182 struct qla_qpair *qpair, fc_port_t *fcport) in qla2xxx_init_sp() argument
185 sp->fcport = fcport; in qla2xxx_init_sp()
197 fc_port_t *fcport, gfp_t flag) in qla2xxx_get_qpair_sp() argument
[all …]
Dqla_gs.c200 qla2x00_ga_nxt(scsi_qla_host_t *vha, fc_port_t *fcport) in qla2x00_ga_nxt() argument
211 return qla2x00_sns_ga_nxt(vha, fcport); in qla2x00_ga_nxt()
230 ct_req->req.port_id.port_id = port_id_to_be_id(fcport->d_id); in qla2x00_ga_nxt()
244 fcport->d_id = be_to_port_id(ct_rsp->rsp.ga_nxt.port_id); in qla2x00_ga_nxt()
246 memcpy(fcport->node_name, ct_rsp->rsp.ga_nxt.node_name, in qla2x00_ga_nxt()
248 memcpy(fcport->port_name, ct_rsp->rsp.ga_nxt.port_name, in qla2x00_ga_nxt()
251 fcport->fc4_type = (ct_rsp->rsp.ga_nxt.fc4_types[2] & BIT_0) ? in qla2x00_ga_nxt()
256 fcport->d_id.b.domain = 0xf0; in qla2x00_ga_nxt()
261 fcport->node_name, fcport->port_name, in qla2x00_ga_nxt()
262 fcport->d_id.b.domain, fcport->d_id.b.area, in qla2x00_ga_nxt()
[all …]
Dqla_iocb.c407 SET_TARGET_ID(ha, cmd_pkt->target, sp->fcport->loop_id); in qla2x00_start_scsi()
1555 if (sp->fcport->edif.enable && (sp->fcport->flags & FCF_FCSP_DEVICE)) in qla24xx_start_scsi()
1633 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_start_scsi()
1634 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_start_scsi()
1635 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_start_scsi()
1636 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_start_scsi()
1839 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); in qla24xx_dif_start_scsi()
1840 cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa; in qla24xx_dif_start_scsi()
1841 cmd_pkt->port_id[1] = sp->fcport->d_id.b.area; in qla24xx_dif_start_scsi()
1842 cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain; in qla24xx_dif_start_scsi()
[all …]
Dqla_os.c781 struct qla_hw_data *ha = sp->fcport->vha->hw; in qla2xxx_qpair_sp_free_dma()
876 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; in qla2xxx_queuecommand() local
934 if (!fcport || fcport->deleted) { in qla2xxx_queuecommand()
939 if (atomic_read(&fcport->state) != FCS_ONLINE || fcport->deleted) { in qla2xxx_queuecommand()
940 if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD || in qla2xxx_queuecommand()
944 atomic_read(&fcport->state), in qla2xxx_queuecommand()
956 if (fcport->retry_delay_timestamp == 0) { in qla2xxx_queuecommand()
958 } else if (time_after(jiffies, fcport->retry_delay_timestamp)) in qla2xxx_queuecommand()
959 fcport->retry_delay_timestamp = 0; in qla2xxx_queuecommand()
965 qla2xxx_init_sp(sp, vha, vha->hw->base_qpair, fcport); in qla2xxx_queuecommand()
[all …]
Dqla_mr.c730 qlafx00_abort_target(fc_port_t *fcport, uint64_t l, int tag) in qlafx00_abort_target() argument
732 return qla2x00_async_tm_cmd(fcport, TCF_TARGET_RESET, l, tag); in qlafx00_abort_target()
736 qlafx00_lun_reset(fc_port_t *fcport, uint64_t l, int tag) in qlafx00_lun_reset() argument
738 return qla2x00_async_tm_cmd(fcport, TCF_LUN_RESET, l, tag); in qlafx00_lun_reset()
1099 fc_port_t *fcport, *new_fcport; in qlafx00_find_all_targets() local
1141 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qlafx00_find_all_targets()
1143 fcport->port_name, WWN_SIZE)) in qlafx00_find_all_targets()
1152 if (fcport->tgt_id == new_fcport->tgt_id && in qlafx00_find_all_targets()
1153 atomic_read(&fcport->state) == FCS_ONLINE) in qlafx00_find_all_targets()
1163 __func__, fcport->tgt_id, in qlafx00_find_all_targets()
[all …]
Dqla_isr.c1267 fc_port_t *fcport = NULL; in qla2x00_async_event() local
1671 fcport = qla2x00_find_fcport_by_loopid(vha, mb[1]); in qla2x00_async_event()
1672 if (!fcport) in qla2x00_async_event()
1674 if (atomic_read(&fcport->state) != FCS_ONLINE) in qla2x00_async_event()
1678 fcport->loop_id, fcport->d_id.b24); in qla2x00_async_event()
1680 fcport->logout_on_delete = 0; in qla2x00_async_event()
1681 qlt_schedule_sess_for_deletion(fcport); in qla2x00_async_event()
2078 fc_port_t *fcport; in qla2x00_mbx_iocb_entry() local
2090 fcport = sp->fcport; in qla2x00_mbx_iocb_entry()
2101 fcport->d_id.b.domain, fcport->d_id.b.area, in qla2x00_mbx_iocb_entry()
[all …]
Dqla_mbx.c1529 fc_port_t *fcport = sp->fcport; in qla2x00_abort_command() local
1530 scsi_qla_host_t *vha = fcport->vha; in qla2x00_abort_command()
1557 mcp->mb[1] = fcport->loop_id; in qla2x00_abort_command()
1559 mcp->mb[1] = fcport->loop_id << 8; in qla2x00_abort_command()
1580 qla2x00_abort_target(struct fc_port *fcport, uint64_t l, int tag) in qla2x00_abort_target() argument
1587 vha = fcport->vha; in qla2x00_abort_target()
1595 mcp->mb[1] = fcport->loop_id; in qla2x00_abort_target()
1599 mcp->mb[1] = fcport->loop_id << 8; in qla2x00_abort_target()
1614 rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, 0, in qla2x00_abort_target()
1628 qla2x00_lun_reset(struct fc_port *fcport, uint64_t l, int tag) in qla2x00_lun_reset() argument
[all …]
Dqla_bsg.c16 struct fc_port *fcport = container_of(work, typeof(*fcport), in qla2xxx_free_fcport_work() local
19 qla2x00_free_fcport(fcport); in qla2xxx_free_fcport_work()
79 INIT_WORK(&sp->fcport->free_work, qla2xxx_free_fcport_work); in qla2x00_bsg_sp_free()
80 queue_work(ha->wq, &sp->fcport->free_work); in qla2x00_bsg_sp_free()
273 fc_port_t *fcport = NULL; in qla2x00_process_els() local
290 fcport = *(fc_port_t **) rport->dd_data; in qla2x00_process_els()
336 if (atomic_read(&fcport->state) != FCS_ONLINE) { in qla2x00_process_els()
339 fcport->d_id.b24); in qla2x00_process_els()
349 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla2x00_process_els()
350 if (!fcport) { in qla2x00_process_els()
[all …]
Dqla_target.c120 fc_port_t *fcport, bool local);
521 static int qla24xx_post_nack_work(struct scsi_qla_host *vha, fc_port_t *fcport, in qla24xx_post_nack_work() argument
530 e->u.nack.fcport = fcport; in qla24xx_post_nack_work()
543 sp->name, res, sp->fcport->port_name, sp->type); in qla2x00_async_nack_sp_done()
546 sp->fcport->flags &= ~FCF_ASYNC_SENT; in qla2x00_async_nack_sp_done()
547 sp->fcport->chip_reset = vha->hw->base_qpair->chip_reset; in qla2x00_async_nack_sp_done()
551 sp->fcport->login_gen++; in qla2x00_async_nack_sp_done()
552 sp->fcport->fw_login_state = DSC_LS_PLOGI_COMP; in qla2x00_async_nack_sp_done()
553 sp->fcport->logout_on_delete = 1; in qla2x00_async_nack_sp_done()
554 sp->fcport->plogi_nack_done_deadline = jiffies + HZ; in qla2x00_async_nack_sp_done()
[all …]
Dqla_attr.c2642 fc_port_t *fcport; in qla2x00_get_starget_node_name() local
2645 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla2x00_get_starget_node_name()
2646 if (fcport->rport && in qla2x00_get_starget_node_name()
2647 starget->id == fcport->rport->scsi_target_id) { in qla2x00_get_starget_node_name()
2648 node_name = wwn_to_u64(fcport->node_name); in qla2x00_get_starget_node_name()
2661 fc_port_t *fcport; in qla2x00_get_starget_port_name() local
2664 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla2x00_get_starget_port_name()
2665 if (fcport->rport && in qla2x00_get_starget_port_name()
2666 starget->id == fcport->rport->scsi_target_id) { in qla2x00_get_starget_port_name()
2667 port_name = wwn_to_u64(fcport->port_name); in qla2x00_get_starget_port_name()
[all …]
Dqla_gbl.h15 extern int qla24xx_post_prli_work(struct scsi_qla_host *vha, fc_port_t *fcport);
41 extern void qla2x00_clear_loop_id(fc_port_t *fcport);
79 extern void qla2x00_set_fcport_state(fc_port_t *fcport, int state);
122 int qla_post_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport);
123 void qla_do_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport);
125 void qla_rscn_replay(fc_port_t *fcport);
130 void qla_edif_list_del(fc_port_t *fcport);
136 void qlt_chk_edif_rx_sa_delete_pending(scsi_qla_host_t *vha, fc_port_t *fcport,
138 void qla2x00_release_all_sadb(struct scsi_qla_host *vha, struct fc_port *fcport);
142 struct fc_port *fcport);
[all …]
Dqla_mid.c150 fc_port_t *fcport; in qla2x00_mark_vp_devices_dead() local
152 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla2x00_mark_vp_devices_dead()
155 fcport->loop_id, fcport->vha->vp_idx); in qla2x00_mark_vp_devices_dead()
157 qla2x00_mark_device_lost(vha, fcport, 0); in qla2x00_mark_vp_devices_dead()
158 qla2x00_set_fcport_state(fcport, FCS_UNCONFIGURED); in qla2x00_mark_vp_devices_dead()
167 fc_port_t *fcport; in qla24xx_disable_vp() local
182 list_for_each_entry(fcport, &vha->vp_fcports, list) in qla24xx_disable_vp()
183 fcport->logout_on_delete = 0; in qla24xx_disable_vp()
326 fc_port_t *fcport; in qla2x00_vp_abort_isp() local
336 list_for_each_entry(fcport, &vha->vp_fcports, list) in qla2x00_vp_abort_isp()
[all …]
Dqla_def.h477 struct fc_port *fcport; member
513 struct fc_port *fcport; member
730 struct fc_port *fcport; member
2527 void *fcport; member
2725 fc_port_t *fcport; member
3567 struct fc_port *fcport; member
3591 fc_port_t *fcport; member
3593 } fcport; member
3595 fc_port_t *fcport; member
3605 fc_port_t *fcport; member
[all …]
Dqla_dfs.c305 fc_port_t *fcport = NULL; in qla_dfs_tgt_counters_show() local
387 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla_dfs_tgt_counters_show()
388 if (!fcport->rport) in qla_dfs_tgt_counters_show()
392 fcport->rport->number, fcport->tgt_short_link_down_cnt); in qla_dfs_tgt_counters_show()
/linux-6.6.21/drivers/scsi/qedf/
Dqedf_els.c9 static int qedf_initiate_els(struct qedf_rport *fcport, unsigned int op, in qedf_initiate_els() argument
27 if (!fcport) { in qedf_initiate_els()
33 qedf = fcport->qedf; in qedf_initiate_els()
38 rc = fc_remote_port_chkready(fcport->rport); in qedf_initiate_els()
51 if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) { in qedf_initiate_els()
57 els_req = qedf_alloc_cmd(fcport, QEDF_ELS); in qedf_initiate_els()
70 els_req->fcport = fcport; in qedf_initiate_els()
107 did = fcport->rdata->ids.port_id; in qedf_initiate_els()
108 sid = fcport->sid; in qedf_initiate_els()
117 spin_lock_irqsave(&fcport->rport_lock, flags); in qedf_initiate_els()
[all …]
Dqedf_io.c24 struct qedf_rport *fcport; in qedf_cmd_timeout() local
26 fcport = io_req->fcport; in qedf_cmd_timeout()
27 if (io_req->fcport == NULL) { in qedf_cmd_timeout()
32 qedf = fcport->qedf; in qedf_cmd_timeout()
63 qedf_restart_rport(fcport); in qedf_cmd_timeout()
298 struct qedf_ioreq *qedf_alloc_cmd(struct qedf_rport *fcport, u8 cmd_type) in qedf_alloc_cmd() argument
300 struct qedf_ctx *qedf = fcport->qedf; in qedf_alloc_cmd()
309 free_sqes = atomic_read(&fcport->free_sqes); in qedf_alloc_cmd()
319 if ((atomic_read(&fcport->num_active_ios) >= in qedf_alloc_cmd()
323 atomic_read(&fcport->num_active_ios)); in qedf_alloc_cmd()
[all …]
Dqedf_main.c724 struct qedf_rport *fcport = NULL; in qedf_eh_abort() local
735 fcport = (struct qedf_rport *)&rp[1]; in qedf_eh_abort()
736 rdata = fcport->rdata; in qedf_eh_abort()
781 if (test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags)) { in qedf_eh_abort()
877 struct qedf_rport *fcport; in qedf_wait_for_upload() local
891 list_for_each_entry_rcu(fcport, &qedf->fcports, peers) { in qedf_wait_for_upload()
893 &fcport->flags)) { in qedf_wait_for_upload()
894 if (fcport->rdata) in qedf_wait_for_upload()
897 fcport, fcport->rdata->ids.port_id); in qedf_wait_for_upload()
900 "Waiting for fcport %p.\n", fcport); in qedf_wait_for_upload()
[all …]
Dqedf.h115 struct qedf_rport *fcport; member
500 extern void qedf_flush_active_ios(struct qedf_rport *fcport, int lun);
506 extern struct qedf_ioreq *qedf_alloc_cmd(struct qedf_rport *fcport,
515 extern u16 qedf_get_sqe_idx(struct qedf_rport *fcport);
516 extern void qedf_ring_doorbell(struct qedf_rport *fcport);
520 extern int qedf_send_adisc(struct qedf_rport *fcport, struct fc_frame *fp);
538 extern void qedf_restart_rport(struct qedf_rport *fcport);
540 extern int qedf_post_io_req(struct qedf_rport *fcport,
Dqedf_debugfs.c329 struct qedf_rport *fcport; in qedf_driver_stats_show() local
359 list_for_each_entry_rcu(fcport, &qedf->fcports, peers) { in qedf_driver_stats_show()
360 rdata = fcport->rdata; in qedf_driver_stats_show()
367 atomic_read(&fcport->free_sqes), in qedf_driver_stats_show()
368 atomic_read(&fcport->num_active_ios)); in qedf_driver_stats_show()

12