Home
last modified time | relevance | path

Searched refs:wwn (Results 1 – 25 of 35) sorted by relevance

12

/linux/drivers/scsi/lpfc/
H A Dlpfc_vport.c180 lpfc_valid_wwn_format(struct lpfc_hba *phba, struct lpfc_name *wwn, in lpfc_valid_wwn_format() argument
186 if (!((wwn->u.wwn[0] >> 4) == 1 && in lpfc_valid_wwn_format()
187 ((wwn->u.wwn[0] & 0xf) != 0 || (wwn->u.wwn[1] & 0xf) != 0))) in lpfc_valid_wwn_format()
194 wwn->u.wwn[0], wwn->u.wwn[1], in lpfc_valid_wwn_format()
195 wwn->u.wwn[2], wwn->u.wwn[3], in lpfc_valid_wwn_format()
196 wwn->u.wwn[4], wwn->u.wwn[5], in lpfc_valid_wwn_format()
197 wwn->u.wwn[6], wwn->u.wwn[7]); in lpfc_valid_wwn_format()
371 u64_to_wwn(fc_vport->node_name, vport->fc_nodename.u.wwn); in lpfc_vport_create()
372 u64_to_wwn(fc_vport->port_name, vport->fc_portname.u.wwn); in lpfc_vport_create()
374 memcpy(&vport->fc_sparam.portName, vport->fc_portname.u.wwn, 8); in lpfc_vport_create()
[all …]
H A Dlpfc_init.c360 if (vport->fc_nodename.u.wwn[0] == 0) in lpfc_update_vport_wwn()
371 if (vport->fc_portname.u.wwn[0] != 0 && in lpfc_update_vport_wwn()
386 wwn_to_u64(vport->fc_portname.u.wwn), in lpfc_update_vport_wwn()
388 (vport->fc_sparam.portName.u.wwn), in lpfc_update_vport_wwn()
396 if (vport->fc_portname.u.wwn[0] == 0) in lpfc_update_vport_wwn()
477 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); in lpfc_config_port_post()
478 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); in lpfc_config_port_post()
4581 uint64_t wwn; in lpfc_get_wwpn() local
4604 memcpy(&wwn, (char *)mb->un.varRDnvp.portname, sizeof(uint64_t)); in lpfc_get_wwpn()
4608 return be64_to_cpu(wwn); in lpfc_get_wwpn()
[all …]
/linux/drivers/target/tcm_remote/
H A Dtcm_remote.c88 struct se_wwn *wwn, in tcm_remote_make_tpg() argument
91 struct tcm_remote_hba *remote_hba = container_of(wwn, in tcm_remote_make_tpg()
115 ret = core_tpg_register(wwn, &remote_tpg->remote_se_tpg, in tcm_remote_make_tpg()
122 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_remote_make_tpg()
128 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_remote_drop_tpg() local
147 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_remote_drop_tpg()
210 static void tcm_remote_drop_wwn(struct se_wwn *wwn) in tcm_remote_drop_wwn() argument
212 struct tcm_remote_hba *remote_hba = container_of(wwn, in tcm_remote_drop_wwn()
/linux/drivers/target/
H A Dtarget_core_pscsi.c164 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() argument
171 BUILD_BUG_ON(sizeof(wwn->vendor) != INQUIRY_VENDOR_LEN + 1); in pscsi_set_inquiry_info()
172 snprintf(wwn->vendor, sizeof(wwn->vendor), in pscsi_set_inquiry_info()
174 BUILD_BUG_ON(sizeof(wwn->model) != INQUIRY_MODEL_LEN + 1); in pscsi_set_inquiry_info()
175 snprintf(wwn->model, sizeof(wwn->model), in pscsi_set_inquiry_info()
177 BUILD_BUG_ON(sizeof(wwn->revision) != INQUIRY_REVISION_LEN + 1); in pscsi_set_inquiry_info()
178 snprintf(wwn->revision, sizeof(wwn->revision), in pscsi_set_inquiry_info()
183 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial() argument
203 snprintf(&wwn->unit_serial[0], INQUIRY_VPD_SERIAL_LEN, "%s", &buf[4]); in pscsi_get_inquiry_vpd_serial()
205 wwn->t10_dev->dev_flags |= DF_FIRMWARE_VPD_UNIT_SERIAL; in pscsi_get_inquiry_vpd_serial()
[all …]
H A Dtarget_core_stat.c746 struct t10_wwn *wwn; in target_stat_transport_dev_name_show() local
752 wwn = &dev->t10_wwn; in target_stat_transport_dev_name_show()
756 (strlen(wwn->unit_serial)) ? wwn->unit_serial : in target_stat_transport_dev_name_show()
757 wwn->vendor); in target_stat_transport_dev_name_show()
H A Dtarget_core_alua.c878 struct t10_wwn *wwn = &tg_pt_gp->tg_pt_gp_dev->t10_wwn; in core_alua_update_tpg_primary_metadata() local
900 &wwn->unit_serial[0], in core_alua_update_tpg_primary_metadata()
/linux/drivers/scsi/csiostor/
H A Dcsio_attr.c558 uint8_t wwn[8]; in csio_vport_create() local
566 u64_to_wwn(fc_vport->node_name, wwn); in csio_vport_create()
568 if (!CSIO_VALID_WWN(wwn)) { in csio_vport_create()
573 memcpy(csio_ln_wwnn(ln), wwn, 8); in csio_vport_create()
577 u64_to_wwn(fc_vport->port_name, wwn); in csio_vport_create()
579 if (!CSIO_VALID_WWN(wwn)) { in csio_vport_create()
585 if (csio_lnode_lookup_by_wwpn(hw, wwn)) { in csio_vport_create()
590 memcpy(csio_ln_wwpn(ln), wwn, 8); in csio_vport_create()
/linux/drivers/scsi/bfa/
H A Dbfa_cs.h277 wwn2str(char *wwn_str, u64 wwn) in wwn2str() argument
280 u64 wwn; in wwn2str() member
284 w.wwn = wwn; in wwn2str()
H A Dbfa_fcbuild.c832 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) in fc_gmal_req_build() argument
843 gmal->wwn = wwn; in fc_gmal_req_build()
852 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) in fc_gfn_req_build() argument
863 gfn->wwn = wwn; in fc_gfn_req_build()
H A Dbfa_fcbuild.h220 u16 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn);
221 u16 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn);
H A Dbfi_ms.h70 wwn_t wwn[BFA_BOOT_BOOTLUN_MAX]; member
H A Dbfa_fc.h1437 wwn_t wwn; /* PWWN/NWWN */ member
/linux/drivers/target/loopback/
H A Dtcm_loop.c958 static struct se_portal_group *tcm_loop_make_naa_tpg(struct se_wwn *wwn, in tcm_loop_make_naa_tpg() argument
961 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_make_naa_tpg()
985 ret = core_tpg_register(wwn, &tl_tpg->tl_se_tpg, tl_hba->tl_proto_id); in tcm_loop_make_naa_tpg()
991 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_make_naa_tpg()
998 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_loop_drop_naa_tpg() local
1020 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_drop_naa_tpg()
1094 struct se_wwn *wwn) in tcm_loop_drop_scsi_hba() argument
1096 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_drop_scsi_hba()
/linux/drivers/scsi/fcoe/
H A Dfcoe_transport.c229 void fcoe_wwn_to_str(u64 wwn, char *buf, int len) in fcoe_wwn_to_str() argument
233 u64_to_wwn(wwn, wwpn); in fcoe_wwn_to_str()
291 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in fcoe_get_wwn() argument
296 return ops->ndo_fcoe_get_wwn(netdev, wwn, type); in fcoe_get_wwn()
H A Dfcoe_ctlr.c894 struct fip_wwn_desc *wwn; in fcoe_ctlr_parse_adv() local
955 wwn = (struct fip_wwn_desc *)desc; in fcoe_ctlr_parse_adv()
956 fcf->switch_name = get_unaligned_be64(&wwn->fd_wwn); in fcoe_ctlr_parse_adv()
1966 u64 wwn; in fcoe_wwn_from_mac() local
1978 wwn = host_mac | ((u64) scheme << 60); in fcoe_wwn_from_mac()
1985 wwn |= (u64) port << 48; in fcoe_wwn_from_mac()
1992 return wwn; in fcoe_wwn_from_mac()
2271 struct fip_wwn_desc *wwn = NULL; in fcoe_ctlr_vn_parse() local
2341 wwn = (struct fip_wwn_desc *)desc; in fcoe_ctlr_vn_parse()
2343 get_unaligned_be64(&wwn->fd_wwn); in fcoe_ctlr_vn_parse()
[all …]
/linux/drivers/infiniband/ulp/srpt/
H A Dib_srpt.h391 struct se_wwn wwn; member
/linux/drivers/usb/gadget/function/
H A Df_tcm.c1653 static struct se_portal_group *usbg_make_tpg(struct se_wwn *wwn, in usbg_make_tpg() argument
1656 struct usbg_tport *tport = container_of(wwn, struct usbg_tport, in usbg_make_tpg()
1687 wwn->wwn_group.cg_subsys, in usbg_make_tpg()
1711 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); in usbg_make_tpg()
1794 static void usbg_drop_tport(struct se_wwn *wwn) in usbg_drop_tport() argument
1796 struct usbg_tport *tport = container_of(wwn, in usbg_drop_tport()
/linux/drivers/target/iscsi/
H A Discsi_target_stat.c591 struct se_wwn *wwn = acl->se_node_acl.se_tpg->se_tpg_wwn; in iscsi_stat_sess_inst_show() local
592 struct iscsi_tiqn *tiqn = container_of(wwn, in iscsi_stat_sess_inst_show()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_fcoe.c927 int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in ixgbe_fcoe_get_wwn() argument
946 *wwn = ((u64) prefix << 48) | in ixgbe_fcoe_get_wwn()
/linux/drivers/scsi/elx/libefc/
H A Defclib.h77 u8 wwn[8]; member
H A Defc_domain.c32 fcf_wwn = be64_to_cpu(*((__be64 *)drec->wwn)); in efc_domain_cb()
/linux/net/8021q/
H A Dvlan_dev.c458 static int vlan_dev_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type) in vlan_dev_fcoe_get_wwn()
465 rc = ops->ndo_fcoe_get_wwn(real_dev, wwn, type);
455 vlan_dev_fcoe_get_wwn(struct net_device * dev,u64 * wwn,int type) vlan_dev_fcoe_get_wwn() argument
/linux/drivers/scsi/qla2xxx/
H A Dqla_target.c4931 qlt_find_sess_invalidate_other(scsi_qla_host_t *vha, uint64_t wwn, in qlt_find_sess_invalidate_other() argument
4943 if (wwn == other_wwn) { in qlt_find_sess_invalidate_other()
5036 uint64_t wwn; in qlt_handle_login() local
5045 wwn = wwn_to_u64(iocb->u.isp24.port_name); in qlt_handle_login()
5057 if (wwn) { in qlt_handle_login()
5059 sess = qlt_find_sess_invalidate_other(vha, wwn, in qlt_handle_login()
6113 uint64_t wwn; in qlt_24xx_handle_els() local
6122 wwn = wwn_to_u64(iocb->u.isp24.port_name); in qlt_24xx_handle_els()
6181 if (wwn) { in qlt_24xx_handle_els()
6183 sess = qlt_find_sess_invalidate_other(vha, wwn, port_id, in qlt_24xx_handle_els()
[all …]
/linux/drivers/scsi/
H A Dscsi_transport_fc.c2309 u8 wwn[8]; in fc_parse_wwn() local
2311 memset(wwn, 0, sizeof(wwn)); in fc_parse_wwn()
2323 wwn[i/2] = j & 0xff; in fc_parse_wwn()
2328 *nm = wwn_to_u64(wwn); in fc_parse_wwn()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.h606 int bnx2x_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type);

12