Home
last modified time | relevance | path

Searched refs:fc_vport (Results 1 – 25 of 39) sorted by relevance

12

/openbmc/linux/drivers/scsi/csiostor/
H A Dcsio_attr.c391 struct fc_vport *fc_vport = ln->fc_vport; in csio_vport_set_state() local
398 fc_vport_set_state(fc_vport, FC_VPORT_LINKDOWN); in csio_vport_set_state()
403 fc_vport_set_state(fc_vport, FC_VPORT_NO_FABRIC_SUPP); in csio_vport_set_state()
410 fc_vport_set_state(fc_vport, FC_VPORT_LINKDOWN); in csio_vport_set_state()
413 fc_vport_set_state(fc_vport, FC_VPORT_ACTIVE); in csio_vport_set_state()
552 csio_vport_create(struct fc_vport *fc_vport, bool disable) in csio_vport_create() argument
554 struct Scsi_Host *shost = fc_vport->shost; in csio_vport_create()
561 ln = csio_shost_init(hw, &fc_vport->dev, false, pln); in csio_vport_create()
565 if (fc_vport->node_name != 0) { in csio_vport_create()
566 u64_to_wwn(fc_vport->node_name, wwn); in csio_vport_create()
[all …]
H A Dcsio_lnode.h184 struct fc_vport *fc_vport; member
/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_vport.c56 struct fc_vport *fc_vport = vport->fc_vport; in lpfc_vport_set_state() local
58 if (fc_vport) { in lpfc_vport_set_state()
65 fc_vport->vport_last_state = fc_vport->vport_state; in lpfc_vport_set_state()
66 fc_vport->vport_state = new_state; in lpfc_vport_set_state()
292 lpfc_vport_create(struct fc_vport *fc_vport, bool disable) in lpfc_vport_create() argument
295 struct Scsi_Host *shost = fc_vport->shost; in lpfc_vport_create()
342 vport = lpfc_create_port(phba, instance, &fc_vport->dev); in lpfc_vport_create()
370 u64_to_wwn(fc_vport->node_name, vport->fc_nodename.u.wwn); in lpfc_vport_create()
371 u64_to_wwn(fc_vport->port_name, vport->fc_portname.u.wwn); in lpfc_vport_create()
406 *(struct lpfc_vport **)fc_vport->dd_data = vport; in lpfc_vport_create()
[all …]
H A Dlpfc_vport.h89 int lpfc_vport_create(struct fc_vport *, bool);
90 int lpfc_vport_delete(struct fc_vport *);
H A Dlpfc_crtn.h477 int lpfc_vport_disable(struct fc_vport *fc_vport, bool disable);
H A Dlpfc.h693 struct fc_vport *fc_vport; member
/openbmc/linux/drivers/scsi/bfa/
H A Dbfad_attr.c352 bfad_im_vport_create(struct fc_vport *fc_vport, bool disable) in bfad_im_vport_create() argument
354 char *vname = fc_vport->symbolic_name; in bfad_im_vport_create()
355 struct Scsi_Host *shost = fc_vport->shost; in bfad_im_vport_create()
365 u64_to_wwn(fc_vport->node_name, (u8 *)&port_cfg.nwwn); in bfad_im_vport_create()
366 u64_to_wwn(fc_vport->port_name, (u8 *)&port_cfg.pwwn); in bfad_im_vport_create()
382 rc = bfad_vport_create(bfad, 0, &port_cfg, &fc_vport->dev); in bfad_im_vport_create()
395 fc_vport_set_state(fc_vport, FC_VPORT_ACTIVE); in bfad_im_vport_create()
400 fc_vport_set_state(fc_vport, FC_VPORT_DISABLED); in bfad_im_vport_create()
424 fc_vport->dd_data = vport; in bfad_im_vport_create()
425 vport->drv_port.im_port->fc_vport = fc_vport; in bfad_im_vport_create()
[all …]
H A Dbfad_im.h76 struct fc_vport *fc_vport; member
H A Dbfad.c1019 struct fc_vport *fc_vport; in bfad_start_ops() local
1030 fc_vport = fc_vport_create(bfad->pport.im_port->shost, 0, &vid); in bfad_start_ops()
1031 if (!fc_vport) { in bfad_start_ops()
/openbmc/linux/drivers/scsi/elx/efct/
H A Defct_xport.c966 efct_vport_create(struct fc_vport *fc_vport, bool disable) in efct_vport_create() argument
968 struct Scsi_Host *shost = fc_vport ? fc_vport->shost : NULL; in efct_vport_create()
975 if (!fc_vport || !shost || !efct) in efct_vport_create()
978 vport = efct_scsi_new_vport(efct, &fc_vport->dev); in efct_vport_create()
984 vport->fc_vport = fc_vport; in efct_vport_create()
985 vport->npiv_wwpn = fc_vport->port_name; in efct_vport_create()
986 vport->npiv_wwnn = fc_vport->node_name; in efct_vport_create()
989 *(struct efct_vport **)fc_vport->dd_data = vport; in efct_vport_create()
998 efct_vport_delete(struct fc_vport *fc_vport) in efct_vport_delete() argument
1000 struct efct_vport *vport = *(struct efct_vport **)fc_vport->dd_data; in efct_vport_delete()
[all …]
H A Defct_lio.h143 struct fc_vport *fc_vport; member
H A Defct_scsi.h60 struct fc_vport *fc_vport; member
H A Defct_lio.c770 struct fc_vport *new_fc_vport; in efct_lio_npiv_make_nport()
834 lio_vport->fc_vport = new_fc_vport; in efct_lio_npiv_make_nport()
866 if (lio_vport->fc_vport) in efct_lio_npiv_drop_nport()
867 fc_vport_terminate(lio_vport->fc_vport); in efct_lio_npiv_drop_nport()
/openbmc/linux/drivers/scsi/qla2xxx/
H A Dqla_mid.c197 fc_vport_set_state(vha->fc_vport, FC_VPORT_DISABLED); in qla24xx_disable_vp()
199 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); in qla24xx_disable_vp()
217 fc_vport_set_state(vha->fc_vport, FC_VPORT_LINKDOWN); in qla24xx_enable_vp()
232 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); in qla24xx_enable_vp()
249 struct fc_vport *fc_vport; in qla24xx_configure_vp() local
252 fc_vport = vha->fc_vport; in qla24xx_configure_vp()
271 fc_vport_set_state(fc_vport, FC_VPORT_ACTIVE); in qla24xx_configure_vp()
456 qla24xx_vport_create_req_sanity_check(struct fc_vport *fc_vport) in qla24xx_vport_create_req_sanity_check() argument
458 scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost); in qla24xx_vport_create_req_sanity_check()
463 if (fc_vport->roles != FC_PORT_ROLE_FCP_INITIATOR) in qla24xx_vport_create_req_sanity_check()
[all …]
H A Dqla_attr.c14 static int qla24xx_vport_disable(struct fc_vport *, bool);
3051 qla24xx_vport_create(struct fc_vport *fc_vport, bool disable) in qla24xx_vport_create() argument
3055 scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost); in qla24xx_vport_create()
3062 ret = qla24xx_vport_create_req_sanity_check(fc_vport); in qla24xx_vport_create()
3069 vha = qla24xx_create_vhost(fc_vport); in qla24xx_vport_create()
3076 fc_vport_set_state(fc_vport, FC_VPORT_DISABLED); in qla24xx_vport_create()
3096 fc_vport_set_state(fc_vport, FC_VPORT_LINKDOWN); in qla24xx_vport_create()
3125 if (scsi_add_host_with_dma(vha->host, &fc_vport->dev, in qla24xx_vport_create()
3142 qla24xx_vport_disable(fc_vport, disable); in qla24xx_vport_create()
3187 qla24xx_vport_delete(struct fc_vport *fc_vport) in qla24xx_vport_delete() argument
[all …]
H A Dqla_gbl.h273 extern int qla24xx_vport_create_req_sanity_check(struct fc_vport *);
274 extern scsi_qla_host_t *qla24xx_create_vhost(struct fc_vport *);
H A Dqla_isr.c1445 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); in qla2x00_async_event()
1524 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); in qla2x00_async_event()
1544 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); in qla2x00_async_event()
1587 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); in qla2x00_async_event()
1616 fc_vport_set_state(vha->fc_vport, FC_VPORT_FAILED); in qla2x00_async_event()
1696 fc_vport_set_state(vha->fc_vport, in qla2x00_async_event()
/openbmc/linux/drivers/scsi/libfc/
H A Dfc_npiv.c21 struct fc_lport *libfc_vport_create(struct fc_vport *vport, int privsize) in libfc_vport_create()
94 struct fc_vport *vport = vn_port->vport; in __fc_vport_setlink()
119 struct fc_vport *vport = vn_port->vport; in fc_vport_setlink()
/openbmc/linux/include/scsi/
H A Dscsi_transport_fc.h219 struct fc_vport { struct
254 container_of(d, struct fc_vport, dev)
706 void (*set_vport_symbolic_name)(struct fc_vport *);
707 int (*vport_create)(struct fc_vport *, bool);
708 int (*vport_disable)(struct fc_vport *, bool);
709 int (*vport_delete)(struct fc_vport *);
828 fc_vport_set_state(struct fc_vport *vport, enum fc_vport_state new_state) in fc_vport_set_state()
862 struct fc_vport *fc_vport_create(struct Scsi_Host *shost, int channel,
864 int fc_vport_terminate(struct fc_vport *vport);
H A Dlibfc.h713 struct fc_vport *vport;
911 struct fc_lport *libfc_vport_create(struct fc_vport *, int privsize);
H A Dlibfcoe.h263 int fcoe_validate_vport_create(struct fc_vport *vport);
/openbmc/linux/drivers/scsi/
H A Dscsi_transport_fc.c32 struct fc_vport **vport);
1474 struct fc_vport *vport = transport_class_to_vport(dev); \
1490 struct fc_vport *vport = transport_class_to_vport(dev); \
1509 struct fc_vport *vport = transport_class_to_vport(dev); \
1546 struct fc_vport *vport = transport_class_to_vport(dev); \
1557 struct fc_vport *vport = transport_class_to_vport(dev); \
1593 struct fc_vport *vport = transport_class_to_vport(dev); \
1662 struct fc_vport *vport = transport_class_to_vport(dev); in show_fc_vport_roles()
1682 struct fc_vport *vport = transport_class_to_vport(dev); in store_fc_vport_delete()
1710 struct fc_vport *vport = transport_class_to_vport(dev); in store_fc_vport_disable()
[all …]
/openbmc/linux/Documentation/scsi/
H A Dscsi_fc_transport.rst133 /sys/class/fc_vports/vport-17:0-0 the vport's fc_vport
142 The new fc_vport class object has the following attributes
349 int vport_create(struct fc_vport *vport, bool disable)
435 int vport_disable(struct fc_vport *vport, bool disable)
466 int vport_delete(struct fc_vport *vport)
473 fc_host or fc_vport vport_delete attributes), the transport will call
523 struct fc_vport *
528 * @vport: fc_vport to be terminated
537 fc_vport_terminate(struct fc_vport *vport)
/openbmc/linux/drivers/scsi/fcoe/
H A Dfcoe.c140 static int fcoe_vport_destroy(struct fc_vport *);
141 static int fcoe_vport_create(struct fc_vport *, bool disabled);
142 static int fcoe_vport_disable(struct fc_vport *, bool disable);
143 static void fcoe_set_vport_symbolic_name(struct fc_vport *);
1135 struct fc_vport *vport = dev_to_vport(parent); in fcoe_if_create()
2643 static int fcoe_vport_create(struct fc_vport *vport, bool disabled) in fcoe_vport_create()
2691 static int fcoe_vport_destroy(struct fc_vport *vport) in fcoe_vport_destroy()
2719 struct fc_vport *vport; in fcoe_vport_remove()
2720 struct fc_vport *next_vport; in fcoe_vport_remove()
2746 static int fcoe_vport_disable(struct fc_vport *vport, bool disable) in fcoe_vport_disable()
[all …]
/openbmc/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_fcoe.c1117 static int bnx2fc_vport_create(struct fc_vport *vport, bool disabled) in bnx2fc_vport_create()
1182 static int bnx2fc_vport_destroy(struct fc_vport *vport) in bnx2fc_vport_destroy()
1212 static int bnx2fc_vport_disable(struct fc_vport *vport, bool disable) in bnx2fc_vport_disable()
1490 struct fc_vport *vport = dev_to_vport(parent); in bnx2fc_if_create()

12