/linux/drivers/scsi/libfc/ |
A D | fc_lport.c | 438 lport->tt.frame_send(lport, fp); in fc_lport_recv_echo_req() 495 lport->tt.frame_send(lport, fp); in fc_lport_recv_rnid_req() 581 lport->tt.fcp_cleanup(lport); in __fc_linkdown() 609 lport->tt.disc_stop_final(lport); in fc_fabric_logoff() 641 lport->tt.fcp_abort_io(lport); in fc_lport_destroy() 642 lport->tt.disc_stop_final(lport); in fc_lport_destroy() 848 lport->tt.frame_send(lport, fp); in fc_lport_recv_flogi_req() 1008 lport->tt.disc_stop(lport); in fc_lport_reset_locked() 1396 lport, 3 * lport->r_a_tov)) in fc_lport_enter_ns() 2053 info->lport = lport; in fc_lport_els_request() [all …]
|
A D | fc_encode.h | 234 put_unaligned_be64(lport->wwpn, in fc_ct_ms_fill() 284 fc_host_model(lport->host), in fc_ct_ms_fill() 796 if (lport->does_npiv) in fc_flogi_fill() 908 fc_adisc_fill(lport, fp); in fc_els_fill() 916 fc_flogi_fill(lport, fp); in fc_els_fill() 920 fc_fdisc_fill(lport, fp); in fc_els_fill() 924 fc_logo_fill(lport, fp); in fc_els_fill() 928 fc_rtv_fill(lport, fp); in fc_els_fill() 932 fc_rec_fill(lport, fp); in fc_els_fill() 936 fc_prli_fill(lport, fp); in fc_els_fill() [all …]
|
A D | fc_rport.c | 352 lport->tt.exch_mgr_reset(lport, 0, port_id); in fc_rport_work() 353 lport->tt.exch_mgr_reset(lport, port_id, 0); in fc_rport_work() 523 lport->tt.exch_mgr_reset(lport, 0, port_id); in fc_rport_logoff() 946 lport->tt.frame_send(lport, fp); in fc_rport_recv_flogi_req() 1442 lport->tt.frame_send(lport, fp); in fc_rport_recv_rtv_req() 1618 lport->tt.frame_send(lport, fp); in fc_rport_recv_adisc_req() 1665 lport->tt.get_lesb(lport, lesb); in fc_rport_recv_rls_req() 1678 lport->tt.frame_send(lport, fp); in fc_rport_recv_rls_req() 1948 lport->tt.frame_send(lport, fp); in fc_rport_recv_plogi_req() 2063 lport->tt.frame_send(lport, fp); in fc_rport_recv_prli_req() [all …]
|
A D | fc_disc.c | 72 struct fc_lport *lport; in fc_disc_recv_rscn_req() local 85 lport = fc_disc_lport(disc); in fc_disc_recv_rscn_req() 127 dp->lp = lport; in fc_disc_recv_rscn_req() 362 if (lport->tt.elsct_send(lport, 0, fp, in fc_disc_gpn_ft_req() 381 struct fc_lport *lport; in fc_disc_gpn_ft_parse() local 573 struct fc_lport *lport; in fc_disc_gpn_id_resp() local 580 disc = &lport->disc; in fc_disc_gpn_id_resp() 656 if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID, in fc_disc_gpn_id_req() 658 3 * lport->r_a_tov)) in fc_disc_gpn_id_req() 706 fc_disc_stop(lport); in fc_disc_stop_final() [all …]
|
A D | fc_fcp.c | 143 fsp->lp = lport; in fc_fcp_pkt_alloc() 321 lport = fsp->lp; in fc_fcp_ddp_setup() 323 (lport->lro_enabled) && (lport->tt.ddp_setup)) { in fc_fcp_ddp_setup() 324 if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd), in fc_fcp_ddp_setup() 345 lport = fsp->lp; in fc_fcp_ddp_done() 347 fsp->xfer_len = lport->tt.ddp_done(lport, fsp->xfer_ddp); in fc_fcp_ddp_done() 1150 rc = lport->tt.fcp_cmd_send(lport, fsp, fc_fcp_recv); in fc_fcp_pkt_send() 1294 if (lport->tt.fcp_cmd_send(lport, fsp, fc_tm_done)) { in fc_lun_reset_send() 1467 lport = fsp->lp; in fc_fcp_rec() 1485 if (lport->tt.elsct_send(lport, rport->port_id, fp, ELS_REC, in fc_fcp_rec() [all …]
|
A D | fc_exch.c | 499 error = lport->tt.frame_send(lport, fp); in fc_seq_send_locked() 929 struct fc_lport *lport = mp->lport; in fc_exch_find() local 939 lport->host->host_no, lport->port_id, xid, cpu); in fc_exch_find() 1326 lport->tt.frame_send(lport, fp); in fc_seq_send_ack() 1400 lport->tt.frame_send(lport, fp); in fc_exch_send_ba_rjt() 1848 lport->tt.frame_send(lport, fp); in fc_seq_ls_acc() 1882 lport->tt.frame_send(lport, fp); in fc_seq_ls_rjt() 2082 lport->tt.frame_send(lport, fp); in fc_exch_els_rec() 2214 if (unlikely(lport->tt.frame_send(lport, fp))) in fc_exch_seq_send() 2488 mp->lport = lport; in fc_exch_mgr_alloc() [all …]
|
A D | fc_elsct.c | 31 struct fc_seq *fc_elsct_send(struct fc_lport *lport, u32 did, in fc_elsct_send() argument 44 rc = fc_els_fill(lport, did, fp, op, &r_ctl, &fh_type); in fc_elsct_send() 47 rc = fc_ct_fill(lport, did, fp, op, &r_ctl, &fh_type, &did); in fc_elsct_send() 55 fc_fill_fc_hdr(fp, r_ctl, did, lport->port_id, fh_type, in fc_elsct_send() 58 return fc_exch_seq_send(lport, fp, resp, NULL, arg, timer_msec); in fc_elsct_send() 66 int fc_elsct_init(struct fc_lport *lport) in fc_elsct_init() argument 68 if (!lport->tt.elsct_send) in fc_elsct_init() 69 lport->tt.elsct_send = fc_elsct_send; in fc_elsct_init()
|
/linux/drivers/scsi/fcoe/ |
A D | fcoe.c | 622 lport->qfull = 0; in fcoe_lport_config() 716 lport->vlan = 0; in fcoe_netdev_config() 773 if (lport->vport) in fcoe_shost_config() 817 if (lport->vport) in fcoe_fdmi_info() 932 if (!lport->lro_enabled || !lport->lro_xid || in fcoe_em_config() 1022 if (lport->vport) in fcoe_if_destroy() 1047 if (lport->vport) in fcoe_if_destroy() 1143 if (!lport) { in fcoe_if_create() 1149 port->lport = lport; in fcoe_if_create() 1228 return lport; in fcoe_if_create() [all …]
|
/linux/drivers/scsi/bnx2fc/ |
A D | bnx2fc_fcoe.c | 440 lport = ctlr->lp; in bnx2fc_rcv() 746 if (lport->vport) in bnx2fc_shost_config() 1002 fc_disc_config(lport, lport); in bnx2fc_libfc_config() 1185 if (blport->lport == lport) { in bnx2fc_free_vport() 1519 if (!lport) { in bnx2fc_if_create() 1525 port->lport = lport; in bnx2fc_if_create() 1583 blport->lport = lport; in bnx2fc_if_create() 1587 return lport; in bnx2fc_if_create() 1703 lport = port->lport; in bnx2fc_destroy_work() 2209 if (!lport) in __bnx2fc_enable() [all …]
|
A D | bnx2fc_debug.c | 30 if (io_req && io_req->port && io_req->port->lport && in BNX2FC_IO_DBG() 31 io_req->port->lport->host) in BNX2FC_IO_DBG() 32 shost_printk(KERN_INFO, io_req->port->lport->host, in BNX2FC_IO_DBG() 54 if (tgt && tgt->port && tgt->port->lport && tgt->port->lport->host && in BNX2FC_TGT_DBG() 56 shost_printk(KERN_INFO, tgt->port->lport->host, in BNX2FC_TGT_DBG() 65 void BNX2FC_HBA_DBG(const struct fc_lport *lport, const char *fmt, ...) in BNX2FC_HBA_DBG() argument 78 if (lport && lport->host) in BNX2FC_HBA_DBG() 79 shost_printk(KERN_INFO, lport->host, PFX "%pV", &vaf); in BNX2FC_HBA_DBG()
|
/linux/drivers/target/tcm_fc/ |
A D | tfc_sess.c | 32 (lport)->host->host_no, \ 33 (lport)->port_id, ##args ) 52 tpg = ft_lport_find_tpg(lport); in ft_tport_get() 66 tport->lport = lport; in ft_tport_get() 82 struct fc_lport *lport; in ft_tport_delete() local 86 lport = tport->lport; in ft_tport_delete() 106 ft_tport_get(lport); in ft_lport_add() 120 tport = lport->prov[FC_TYPE_FCP]; in ft_lport_del() 132 struct fc_lport *lport = arg; in ft_lport_notify() local 136 ft_lport_add(lport, NULL); in ft_lport_notify() [all …]
|
A D | tfc_io.c | 46 struct fc_lport *lport; in ft_queue_data_in() local 71 lport = ep->lp; in ft_queue_data_in() 110 frame_len = (lport->seq_offload) ? lport->lso_max : in ft_queue_data_in() 169 remaining, lport->lso_max); in ft_queue_data_in() 200 struct fc_lport *lport; in ft_recv_write_data() local 221 lport = ep->lp; in ft_recv_write_data() 223 BUG_ON(!lport); in ft_recv_write_data() 331 struct fc_lport *lport = NULL; in ft_invl_hw_context() local 340 lport = ep->lp; in ft_invl_hw_context() 341 if (lport && (ep->xid <= lport->lro_xid)) { in ft_invl_hw_context() [all …]
|
A D | tfc_cmd.c | 105 struct fc_lport *lport; in ft_queue_status() local 114 lport = ep->lp; in ft_queue_status() 116 fp = fc_frame_alloc(lport, len); in ft_queue_status() 182 struct fc_lport *lport; in ft_write_pending() local 192 lport = ep->lp; in ft_write_pending() 216 lport->tt.ddp_target(lport, ep->xid, in ft_write_pending() 222 fc_seq_send(lport, cmd->seq, fp); in ft_write_pending() 287 fp = fc_frame_alloc(lport, len); in ft_send_resp_status() 303 fc_seq_send(lport, sp, fp); in ft_send_resp_status() 306 lport->tt.frame_send(lport, fp); in ft_send_resp_status() [all …]
|
/linux/drivers/scsi/qla2xxx/ |
A D | tcm_qla2xxx.c | 166 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_get_fabric_wwn() local 1017 tpg->lport = lport; in tcm_qla2xxx_make_tpg() 1044 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_drop_tpg() local 1108 tpg->lport = lport; in tcm_qla2xxx_npiv_make_tpg() 1141 if (!lport) { in tcm_qla2xxx_find_sess_by_s_id() 1246 if (!lport) { in tcm_qla2xxx_find_sess_by_loop_id() 1366 if (!lport) { in tcm_qla2xxx_free_session() 1381 struct tcm_qla2xxx_lport *lport = tpg->lport; in tcm_qla2xxx_session_cb() local 1422 if (!lport) { in tcm_qla2xxx_check_initiator_node_acl() 1606 if (!lport) { in tcm_qla2xxx_make_lport() [all …]
|
/linux/drivers/scsi/qedf/ |
A D | qedf_attr.c | 10 return qedf->lport->vport != NULL; in qedf_is_vport() 16 struct fc_lport *lport; in qedf_get_base_qedf() local 22 lport = qedf->lport; in qedf_get_base_qedf() 23 base_lport = shost_priv(vport_to_shost(lport->vport)); in qedf_get_base_qedf() 30 struct fc_lport *lport = shost_priv(class_to_shost(dev)); in fcoe_mac_show() local 35 port_id = fc_host_port_id(lport->host); in fcoe_mac_show() 48 struct qedf_ctx *qedf = lport_priv(lport); in fka_period_show() 113 struct qedf_ctx *qedf = lport_priv(lport); in qedf_sysfs_read_grcdump() 130 struct fc_lport *lport = NULL; in qedf_sysfs_write_grcdump() local 140 lport = shost_priv(dev_to_shost(container_of(kobj, in qedf_sysfs_write_grcdump() [all …]
|
A D | qedf_main.c | 337 lport = qedf->lport; in qedf_send_flogi() 352 lport->tt.elsct_send(lport, FC_FID_FLOGI, fp, in qedf_send_flogi() 369 struct fc_lport *lport = qedf->lport; in qedf_link_recovery() local 451 struct fc_lport *lport = qedf->lport; in qedf_update_link_speed() local 539 if (lport->host && lport->host->shost_data) in qedf_update_link_speed() 1656 struct fc_lport *lport = qedf->lport; in qedf_setup_fdmi() local 1727 struct fc_lport *lport = qedf->lport; in qedf_lport_setup() local 2452 lport = qedf->lport; in qedf_recv_frame() 3299 qedf->lport = lport; in __qedf_probe() 3324 lport = qedf->lport; in __qedf_probe() [all …]
|
A D | qedf_els.c | 15 struct fc_lport *lport; in qedf_initiate_els() local 34 lport = qedf->lport; in qedf_initiate_els() 44 if (lport->state != LPORT_ST_READY || !(lport->link_up)) { in qedf_initiate_els() 291 lport = qedf->lport; in qedf_send_rrq() 333 struct fc_lport *lport = fcport->qedf->lport; in qedf_process_l2_frame_compl() local 401 lport = fcport->qedf->lport; in qedf_restart_rport() 504 struct fc_lport *lport = fcport->qedf->lport; in qedf_send_adisc() local 554 lport = qedf->lport; in qedf_srr_compl() 655 lport = qedf->lport; in qedf_send_srr() 855 lport = qedf->lport; in qedf_rec_compl() [all …]
|
/linux/include/scsi/ |
A D | libfc.h | 795 lport->wwnn = wwnn; in fc_set_wwnn() 805 lport->wwpn = wwpn; in fc_set_wwpn() 816 if (state != lport->state) in fc_lport_state_enter() 817 lport->retry_count = 0; in fc_lport_state_enter() 818 lport->state = state; in fc_lport_state_enter() 828 if (!lport->stats) in fc_lport_init_stats() 839 free_percpu(lport->stats); in fc_lport_free_stats() 862 struct fc_lport *lport; in libfc_host_alloc() local 868 lport = shost_priv(shost); in libfc_host_alloc() 869 lport->host = shost; in libfc_host_alloc() [all …]
|
/linux/drivers/scsi/fnic/ |
A D | fnic_fcs.c | 123 fnic->lport->host->host_no, in fnic_handle_link() 134 fnic->lport->host->host_no, in fnic_handle_link() 161 fnic->lport->host->host_no, in fnic_handle_link() 196 struct fc_lport *lp = fnic->lport; in fnic_handle_frame() 309 struct fc_lport *lport = fip->lp; in is_fnic_fip_flogi_reject() local 361 shost_printk(KERN_INFO, lport->host, in is_fnic_fip_flogi_reject() 365 shost_printk(KERN_INFO, lport->host, in is_fnic_fip_flogi_reject() 750 struct fnic *fnic = lport_priv(lport); in fnic_update_mac() 773 struct fnic *fnic = lport_priv(lport); in fnic_set_port_id() 796 fnic_update_mac(lport, mac); in fnic_set_port_id() [all …]
|
A D | fnic_scsi.c | 263 struct fc_lport *lp = fnic->lport; in fnic_flogi_reg_handler() 658 fnic->lport->host, in DEF_SCSI_QCMD() 674 fnic->lport->host, in DEF_SCSI_QCMD() 732 fnic->lport->host, in fnic_fcpio_flogi_reg_cmpl_handler() 1667 fnic->lport->host, in fnic_rport_exch_reset() 1684 struct fc_lport *lport; in fnic_terminate_rport_io() local 1697 lport = rdata->local_port; in fnic_terminate_rport_io() 1699 if (!lport) { in fnic_terminate_rport_io() 1703 fnic = lport_priv(lport); in fnic_terminate_rport_io() 1755 fnic->lport->host, in fnic_abort_cmd() [all …]
|
/linux/drivers/nvme/host/ |
A D | fc.c | 482 lport->ops->localport_delete(&lport->localport); in nvme_fc_unregister_localport() 732 newrec->lport = lport; in nvme_fc_register_remoteport() 1466 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_xmt_ls_rsp_done() local 1487 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_xmt_ls_rsp() local 1727 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_rcv_ls_req() local 3007 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_rport_active_on_lport() local 3015 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_rport_inactive_on_lport() local 3020 lport->ops->localport_delete(&lport->localport); in nvme_fc_rport_inactive_on_lport() 3043 struct nvme_fc_lport *lport = rport->lport; in nvme_fc_ctlr_inactive_on_rport() local 3501 ctrl->lport = lport; in nvme_fc_init_ctrl() [all …]
|
/linux/drivers/scsi/lpfc/ |
A D | lpfc_nvme.c | 95 vport = lport->vport; in lpfc_nvme_create_queue() 150 vport = lport->vport; in lpfc_nvme_delete_queue() 154 lport, qidx, handle); in lpfc_nvme_delete_queue() 165 lport); in lpfc_nvme_localport_delete() 274 if (!lport) in lpfc_nvme_handle_lsreq() 365 if (lport) { in lpfc_nvme_ls_req_cmp() 664 vport = lport->vport; in lpfc_nvme_ls_req() 972 if (lport) { in lpfc_nvme_io_cmd_wqe_cmpl() 2279 if (!lport) { in lpfc_nvme_update_localport() 2401 rport->lport = lport; in lpfc_nvme_register_port() [all …]
|
/linux/arch/um/drivers/ |
A D | umcast_kern.c | 21 int lport; member 36 dpri->lport = init->lport; in umcast_init() 44 "%u\n", dpri->addr, dpri->rport, dpri->lport); in umcast_init() 47 "TTL:%u\n", dpri->addr, dpri->lport, dpri->ttl); in umcast_init() 78 .lport = 1102, in mcast_setup() 90 init->lport = simple_strtoul(port_str, &last, 10); in mcast_setup() 108 init->rport = init->lport; in mcast_setup() 111 init->lport, init->ttl); in mcast_setup() 124 .lport = 1102, in ucast_setup() 136 init->lport = simple_strtoul(lport_str, &last, 10); in ucast_setup() [all …]
|
/linux/net/netfilter/ |
A D | xt_TPROXY.c | 57 if (!lport) in tproxy_tg4() 58 lport = hp->dest; in tproxy_tg4() 63 sk = nf_tproxy_handle_time_wait4(net, skb, laddr, lport, sk); in tproxy_tg4() 69 hp->source, lport, in tproxy_tg4() 80 &laddr, ntohs(lport), skb->mark); in tproxy_tg4() 97 return tproxy_tg4(xt_net(par), skb, tgi->laddr, tgi->lport, in tproxy_tg4_v0() 120 __be16 lport; in tproxy_tg6_v1() local 146 lport = tgi->lport ? tgi->lport : hp->dest; in tproxy_tg6_v1() 155 tgi->lport, in tproxy_tg6_v1() 163 hp->source, lport, in tproxy_tg6_v1() [all …]
|
/linux/drivers/nvme/target/ |
A D | fcloop.c | 1019 struct fcloop_lport *lport = lport_priv->lport; in fcloop_localport_delete() local 1101 lport = kzalloc(sizeof(*lport), GFP_KERNEL); in fcloop_create_local_port() 1102 if (!lport) in fcloop_create_local_port() 1129 lport_priv->lport = lport; in fcloop_create_local_port() 1198 if (!lport) in fcloop_delete_local_port() 1256 if (!lport) in fcloop_alloc_nport() 1258 newnport->lport = lport; in fcloop_alloc_nport() 1275 nport->lport = lport; in fcloop_alloc_nport() 1333 nport->tport->lport = nport->lport; in fcloop_create_remote_port() 1336 rport->lport = nport->lport; in fcloop_create_remote_port() [all …]
|