/drivers/scsi/bfa/ |
D | bfa_svc.c | 30 BFA_MODULE(fcport); 164 static bfa_boolean_t bfa_fcport_send_enable(struct bfa_fcport_s *fcport); 165 static bfa_boolean_t bfa_fcport_send_disable(struct bfa_fcport_s *fcport); 166 static void bfa_fcport_update_linkinfo(struct bfa_fcport_s *fcport); 167 static void bfa_fcport_reset_linkinfo(struct bfa_fcport_s *fcport); 168 static void bfa_fcport_set_wwns(struct bfa_fcport_s *fcport); 170 static void bfa_fcport_scn(struct bfa_fcport_s *fcport, 182 static void bfa_fcport_sm_uninit(struct bfa_fcport_s *fcport, 184 static void bfa_fcport_sm_enabling_qwait(struct bfa_fcport_s *fcport, 186 static void bfa_fcport_sm_enabling(struct bfa_fcport_s *fcport, [all …]
|
D | bfad_bsg.c | 935 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_ratelim() local 940 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_ratelim() 941 (fcport->topology == BFA_PORT_TOPOLOGY_LOOP)) in bfad_iocmd_ratelim() 945 fcport->cfg.ratelimit = BFA_TRUE; in bfad_iocmd_ratelim() 947 fcport->cfg.ratelimit = BFA_FALSE; in bfad_iocmd_ratelim() 949 if (fcport->cfg.trl_def_speed == BFA_PORT_SPEED_UNKNOWN) in bfad_iocmd_ratelim() 950 fcport->cfg.trl_def_speed = BFA_PORT_SPEED_1GBPS; in bfad_iocmd_ratelim() 964 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_iocmd_ratelim_speed() local 971 (iocmd->speed > fcport->speed_sup)) { in bfad_iocmd_ratelim_speed() 977 if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) && in bfad_iocmd_ratelim_speed() [all …]
|
D | bfa_modules.h | 34 struct bfa_fcport_s fcport; /* fc port module */ member
|
D | bfa_svc.h | 454 struct bfa_fcport_s *fcport; member 520 #define BFA_FCPORT_MOD(__bfa) (&(__bfa)->modules.fcport)
|
D | bfad_im.c | 1047 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa); in bfad_fc_host_init() local 1070 fc_host_maxframe_size(host) = fcport->cfg.maxfrsize; in bfad_fc_host_init()
|
D | bfa_fcs_lport.c | 1288 struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(port->fcs->bfa); in bfa_fcport_get_loop_attr() local 1290 port->port_topo.ploop.alpabm_valid = fcport->alpabm_valid; in bfa_fcport_get_loop_attr() 1291 port->pid = fcport->myalpa; in bfa_fcport_get_loop_attr() 1296 bfa_trc(port->fcs->bfa, fcport->alpabm.alpa_bm[i]); in bfa_fcport_get_loop_attr() 1297 bit = (fcport->alpabm.alpa_bm[i] & (1 << (7 - j))); in bfa_fcport_get_loop_attr()
|
/drivers/scsi/qla2xxx/ |
D | qla_init.c | 50 fc_port_t *fcport = sp->fcport; in qla2x00_sp_timeout() local 51 struct qla_hw_data *ha = fcport->vha->hw; in qla2x00_sp_timeout() 60 sp->free(fcport->vha, sp); in qla2x00_sp_timeout() 101 fc_port_t *fcport = sp->fcport; in qla2x00_async_iocb_timeout() local 103 ql_dbg(ql_dbg_disc, fcport->vha, 0x2071, in qla2x00_async_iocb_timeout() 105 sp->name, sp->handle, fcport->d_id.b.domain, fcport->d_id.b.area, in qla2x00_async_iocb_timeout() 106 fcport->d_id.b.al_pa); in qla2x00_async_iocb_timeout() 108 fcport->flags &= ~FCF_ASYNC_SENT; in qla2x00_async_iocb_timeout() 111 qla2x00_post_async_logout_work(fcport->vha, fcport, NULL); in qla2x00_async_iocb_timeout() 116 qla2x00_post_async_login_done_work(fcport->vha, fcport, in qla2x00_async_iocb_timeout() [all …]
|
D | qla_inline.h | 120 qla2x00_clear_loop_id(fc_port_t *fcport) { in qla2x00_clear_loop_id() argument 121 struct qla_hw_data *ha = fcport->vha->hw; in qla2x00_clear_loop_id() 123 if (fcport->loop_id == FC_NO_LOOP_ID || in qla2x00_clear_loop_id() 124 qla2x00_is_reserved_id(fcport->vha, fcport->loop_id)) in qla2x00_clear_loop_id() 127 clear_bit(fcport->loop_id, ha->loop_id_map); in qla2x00_clear_loop_id() 128 fcport->loop_id = FC_NO_LOOP_ID; in qla2x00_clear_loop_id() 159 qla2x00_set_fcport_state(fc_port_t *fcport, int state) in qla2x00_set_fcport_state() argument 163 old_state = atomic_read(&fcport->state); in qla2x00_set_fcport_state() 164 atomic_set(&fcport->state, state); in qla2x00_set_fcport_state() 168 ql_dbg(ql_dbg_disc, fcport->vha, 0x207d, in qla2x00_set_fcport_state() [all …]
|
D | qla_iocb.c | 27 struct scsi_qla_host *vha = sp->fcport->vha; in qla2x00_get_cmd_direction() 214 vha = sp->fcport->vha; in qla2x00_build_scsi_iocbs_32() 271 vha = sp->fcport->vha; in qla2x00_build_scsi_iocbs_64() 328 vha = sp->fcport->vha; in qla2x00_start_scsi() 401 SET_TARGET_ID(ha, cmd_pkt->target, sp->fcport->loop_id); in qla2x00_start_scsi() 605 vha = sp->fcport->vha; in qla24xx_build_scsi_type_6_iocbs() 719 vha = sp->fcport->vha; in qla24xx_build_scsi_iocbs() 1128 vha = sp->fcport->vha; in qla24xx_walk_and_build_prot_sglist() 1235 vha = sp->fcport->vha; in qla24xx_build_scsi_crc_2_iocbs() 1245 cmd_pkt->vp_index = sp->fcport->vha->vp_idx; in qla24xx_build_scsi_crc_2_iocbs() [all …]
|
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() 745 struct fc_port *fcport; in qlafx00_loop_reset() local 749 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qlafx00_loop_reset() 750 if (fcport->port_type != FCT_TARGET) in qlafx00_loop_reset() 753 ret = ha->isp_ops->target_reset(fcport, 0, 0); in qlafx00_loop_reset() 757 "d_id=%x.\n", ret, fcport->d_id.b24); in qlafx00_loop_reset() 1122 fc_port_t *fcport, *new_fcport; in qlafx00_find_all_targets() local [all …]
|
D | qla_isr.c | 570 fc_port_t *fcport; in qla2x00_find_fcport_by_loopid() local 572 list_for_each_entry(fcport, &vha->vp_fcports, list) in qla2x00_find_fcport_by_loopid() 573 if (fcport->loop_id == loop_id) in qla2x00_find_fcport_by_loopid() 574 return fcport; in qla2x00_find_fcport_by_loopid() 595 fc_port_t *fcport = NULL; in qla2x00_async_event() local 932 fcport = qla2x00_find_fcport_by_loopid(vha, mb[1]); in qla2x00_async_event() 933 if (!fcport) in qla2x00_async_event() 935 if (atomic_read(&fcport->state) != FCS_ONLINE) in qla2x00_async_event() 939 fcport->loop_id, fcport->d_id.b24); in qla2x00_async_event() 940 qla2x00_mark_device_lost(fcport->vha, fcport, 1, 1); in qla2x00_async_event() [all …]
|
D | qla_os.c | 630 struct qla_hw_data *ha = sp->fcport->vha->hw; in qla2x00_sp_free_dma() 669 qla2x00_rel_sp(sp->fcport->vha, sp); in qla2x00_sp_free_dma() 682 ql_dbg(ql_dbg_io, sp->fcport->vha, 0x3015, in qla2x00_sp_compl() 703 fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; in qla2xxx_queuecommand() local 747 if (!fcport) { in qla2xxx_queuecommand() 752 if (atomic_read(&fcport->state) != FCS_ONLINE) { in qla2xxx_queuecommand() 753 if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD || in qla2xxx_queuecommand() 757 atomic_read(&fcport->state), in qla2xxx_queuecommand() 769 if (fcport->retry_delay_timestamp == 0) { in qla2xxx_queuecommand() 771 } else if (time_after(jiffies, fcport->retry_delay_timestamp)) in qla2xxx_queuecommand() [all …]
|
D | qla_bsg.c | 30 struct scsi_qla_host *vha = sp->fcport->vha; in qla2x00_bsg_sp_free() 59 kfree(sp->fcport); in qla2x00_bsg_sp_free() 248 fc_port_t *fcport = NULL; in qla2x00_process_els() local 260 fcport = *(fc_port_t **) rport->dd_data; in qla2x00_process_els() 303 if (qla2x00_fabric_login(vha, fcport, &nextlid)) { in qla2x00_process_els() 306 fcport->d_id.b24); in qla2x00_process_els() 316 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla2x00_process_els() 317 if (!fcport) { in qla2x00_process_els() 323 fcport->vha = vha; in qla2x00_process_els() 324 fcport->d_id.b.al_pa = in qla2x00_process_els() [all …]
|
D | qla_attr.c | 1678 fc_port_t *fcport; in qla2x00_get_starget_node_name() local 1681 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla2x00_get_starget_node_name() 1682 if (fcport->rport && in qla2x00_get_starget_node_name() 1683 starget->id == fcport->rport->scsi_target_id) { in qla2x00_get_starget_node_name() 1684 node_name = wwn_to_u64(fcport->node_name); in qla2x00_get_starget_node_name() 1697 fc_port_t *fcport; in qla2x00_get_starget_port_name() local 1700 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla2x00_get_starget_port_name() 1701 if (fcport->rport && in qla2x00_get_starget_port_name() 1702 starget->id == fcport->rport->scsi_target_id) { in qla2x00_get_starget_port_name() 1703 port_name = wwn_to_u64(fcport->port_name); in qla2x00_get_starget_port_name() [all …]
|
D | qla_mbx.c | 1194 fc_port_t *fcport = sp->fcport; in qla2x00_abort_command() local 1195 scsi_qla_host_t *vha = fcport->vha; in qla2x00_abort_command() 1217 mcp->mb[1] = fcport->loop_id; in qla2x00_abort_command() 1219 mcp->mb[1] = fcport->loop_id << 8; in qla2x00_abort_command() 1240 qla2x00_abort_target(struct fc_port *fcport, uint64_t l, int tag) in qla2x00_abort_target() argument 1250 vha = fcport->vha; in qla2x00_abort_target() 1260 mcp->mb[1] = fcport->loop_id; in qla2x00_abort_target() 1264 mcp->mb[1] = fcport->loop_id << 8; in qla2x00_abort_target() 1279 rval2 = qla2x00_marker(vha, req, rsp, fcport->loop_id, 0, in qla2x00_abort_target() 1293 qla2x00_lun_reset(struct fc_port *fcport, uint64_t l, int tag) in qla2x00_lun_reset() argument [all …]
|
D | qla_gs.c | 178 qla2x00_ga_nxt(scsi_qla_host_t *vha, fc_port_t *fcport) in qla2x00_ga_nxt() argument 188 return qla2x00_sns_ga_nxt(vha, fcport); in qla2x00_ga_nxt() 201 ct_req->req.port_id.port_id[0] = fcport->d_id.b.domain; in qla2x00_ga_nxt() 202 ct_req->req.port_id.port_id[1] = fcport->d_id.b.area; in qla2x00_ga_nxt() 203 ct_req->req.port_id.port_id[2] = fcport->d_id.b.al_pa; in qla2x00_ga_nxt() 217 fcport->d_id.b.domain = ct_rsp->rsp.ga_nxt.port_id[0]; in qla2x00_ga_nxt() 218 fcport->d_id.b.area = ct_rsp->rsp.ga_nxt.port_id[1]; in qla2x00_ga_nxt() 219 fcport->d_id.b.al_pa = ct_rsp->rsp.ga_nxt.port_id[2]; in qla2x00_ga_nxt() 221 memcpy(fcport->node_name, ct_rsp->rsp.ga_nxt.node_name, in qla2x00_ga_nxt() 223 memcpy(fcport->port_name, ct_rsp->rsp.ga_nxt.port_name, in qla2x00_ga_nxt() [all …]
|
D | qla_target.c | 529 fc_port_t fcport; in qlt_free_session_done() local 551 memset(&fcport, 0, sizeof(fcport)); in qlt_free_session_done() 552 fcport.loop_id = sess->loop_id; in qlt_free_session_done() 553 fcport.d_id = sess->s_id; in qlt_free_session_done() 554 memcpy(fcport.port_name, sess->port_name, WWN_SIZE); in qlt_free_session_done() 555 fcport.vha = vha; in qlt_free_session_done() 556 fcport.tgt_session = sess; in qlt_free_session_done() 558 rc = qla2x00_post_async_logout_work(vha, &fcport, NULL); in qlt_free_session_done() 882 fc_port_t *fcport, in qlt_create_sess() argument 893 if (!memcmp(sess->port_name, fcport->port_name, WWN_SIZE)) { in qlt_create_sess() [all …]
|
D | qla_mid.c | 138 fc_port_t *fcport; in qla2x00_mark_vp_devices_dead() local 140 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla2x00_mark_vp_devices_dead() 143 fcport->loop_id, fcport->vha->vp_idx); in qla2x00_mark_vp_devices_dead() 145 qla2x00_mark_device_lost(vha, fcport, 0, 0); in qla2x00_mark_vp_devices_dead() 146 qla2x00_set_fcport_state(fcport, FCS_UNCONFIGURED); in qla2x00_mark_vp_devices_dead()
|
D | qla_mr.h | 475 fc_port_t fcport; /* fcport used for requests member
|
D | qla_def.h | 398 struct fc_port *fcport; member 2789 struct fc_port *fcport; member
|