| /linux/drivers/scsi/qedf/ |
| H A D | qedf_els.c | 9 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 …]
|
| H A D | qedf_io.c | 24 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() 294 struct qedf_ioreq *qedf_alloc_cmd(struct qedf_rport *fcport, u8 cmd_type) in qedf_alloc_cmd() argument 296 struct qedf_ctx *qedf = fcport->qedf; in qedf_alloc_cmd() 305 free_sqes = atomic_read(&fcport->free_sqes); in qedf_alloc_cmd() 315 if ((atomic_read(&fcport->num_active_ios) >= in qedf_alloc_cmd() 319 atomic_read(&fcport->num_active_ios)); in qedf_alloc_cmd() [all …]
|
| H A D | qedf_main.c | 731 struct qedf_rport *fcport = NULL; in qedf_eh_abort() local 742 fcport = (struct qedf_rport *)&rp[1]; in qedf_eh_abort() 743 rdata = fcport->rdata; in qedf_eh_abort() 788 if (test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags)) { in qedf_eh_abort() 885 struct qedf_rport *fcport; in qedf_wait_for_upload() local 899 list_for_each_entry_rcu(fcport, &qedf->fcports, peers) { in qedf_wait_for_upload() 901 &fcport->flags)) { in qedf_wait_for_upload() 902 if (fcport->rdata) in qedf_wait_for_upload() 905 fcport, fcport->rdata->ids.port_id); in qedf_wait_for_upload() 908 "Waiting for fcport %p.\n", fcport); in qedf_wait_for_upload() [all …]
|
| H A D | qedf_debugfs.c | 329 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()
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_init.c | 181 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() 320 "%s %8phC res %d \n", __func__, sp->fcport->port_name, res); in qla2x00_async_login_sp_done() 322 sp->fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE); in qla2x00_async_login_sp_done() 326 ea.fcport = sp->fcport; in qla2x00_async_login_sp_done() 342 qla2x00_async_login(struct scsi_qla_host *vha, fc_port_t *fcport, in qla2x00_async_login() argument [all …]
|
| H A D | qla_os.c | 774 struct qla_hw_data *ha = sp->fcport->vha->hw; in qla2xxx_qpair_sp_free_dma() 869 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; in qla2xxx_queuecommand() local 927 if (!fcport || fcport->deleted) { in qla2xxx_queuecommand() 932 if (atomic_read(&fcport->state) != FCS_ONLINE || fcport->deleted) { in qla2xxx_queuecommand() 933 if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD || in qla2xxx_queuecommand() 937 atomic_read(&fcport->state), in qla2xxx_queuecommand() 949 if (fcport->retry_delay_timestamp == 0) { in qla2xxx_queuecommand() 951 } else if (time_after(jiffies, fcport->retry_delay_timestamp)) in qla2xxx_queuecommand() 952 fcport->retry_delay_timestamp = 0; in qla2xxx_queuecommand() 958 qla2xxx_init_sp(sp, vha, vha->hw->base_qpair, fcport); in qla2xxx_queuecommand() [all …]
|
| H A D | qla_mr.c | 730 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 …]
|
| H A D | qla_edif.h | 28 struct fc_port *fcport; member
|
| /linux/drivers/scsi/bfa/ |
| H A D | bfad_bsg.c | 927 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 …]
|
| H A D | bfad_im.c | 1032 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_fc_host_init() local 1055 fc_host_maxframe_size(host) = fcport->cfg.maxfrsize; in bfad_fc_host_init()
|
| H A D | bfa_fcs_lport.c | 1259 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(port->fcs->bfa); in bfa_fcport_get_loop_attr() local 1261 port->port_topo.ploop.alpabm_valid = fcport->alpabm_valid; in bfa_fcport_get_loop_attr() 1262 port->pid = fcport->myalpa; in bfa_fcport_get_loop_attr() 1267 bfa_trc(port->fcs->bfa, fcport->alpabm.alpa_bm[i]); in bfa_fcport_get_loop_attr() 1268 bit = (fcport->alpabm.alpa_bm[i] & (1 << (7 - j))); in bfa_fcport_get_loop_attr()
|