wwn 3014 drivers/infiniband/ulp/srpt/ib_srpt.c struct se_wwn *wwn; wwn 3017 drivers/infiniband/ulp/srpt/ib_srpt.c wwn = __srpt_lookup_wwn(name); wwn 3020 drivers/infiniband/ulp/srpt/ib_srpt.c return wwn; wwn 3745 drivers/infiniband/ulp/srpt/ib_srpt.c static struct se_portal_group *srpt_make_tpg(struct se_wwn *wwn, wwn 3748 drivers/infiniband/ulp/srpt/ib_srpt.c struct srpt_port *sport = wwn->priv; wwn 3752 drivers/infiniband/ulp/srpt/ib_srpt.c WARN_ON_ONCE(wwn != &sport->port_guid_wwn && wwn 3753 drivers/infiniband/ulp/srpt/ib_srpt.c wwn != &sport->port_gid_wwn); wwn 3754 drivers/infiniband/ulp/srpt/ib_srpt.c tpg = wwn == &sport->port_guid_wwn ? &sport->port_guid_tpg : wwn 3756 drivers/infiniband/ulp/srpt/ib_srpt.c res = core_tpg_register(wwn, tpg, SCSI_PROTOCOL_SRP); wwn 3792 drivers/infiniband/ulp/srpt/ib_srpt.c static void srpt_drop_tport(struct se_wwn *wwn) wwn 4845 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int bnx2x_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type) wwn 4852 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c *wwn = HILO_U64(cp->fcoe_wwn_node_name_hi, wwn 4856 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c *wwn = HILO_U64(cp->fcoe_wwn_port_name_hi, wwn 608 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h int bnx2x_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type); wwn 941 drivers/net/ethernet/intel/ixgbe/ixgbe.h int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type); wwn 926 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) wwn 945 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c *wwn = ((u64) prefix << 48) | wwn 3261 drivers/nvme/host/fc.c substring_t wwn = { name, &name[sizeof(name)-1] }; wwn 3286 drivers/nvme/host/fc.c if (__nvme_fc_parse_u64(&wwn, &traddr->nn)) wwn 3290 drivers/nvme/host/fc.c if (__nvme_fc_parse_u64(&wwn, &traddr->pn)) wwn 2456 drivers/nvme/target/fc.c substring_t wwn = { name, &name[sizeof(name)-1] }; wwn 2481 drivers/nvme/target/fc.c if (__nvme_fc_parse_u64(&wwn, &traddr->nn)) wwn 2485 drivers/nvme/target/fc.c if (__nvme_fc_parse_u64(&wwn, &traddr->pn)) wwn 325 drivers/scsi/aacraid/aachba.c module_param_named(wwn, aac_wwn, int, S_IRUGO|S_IWUSR); wwn 326 drivers/scsi/aacraid/aachba.c MODULE_PARM_DESC(wwn, "Select a WWN type for the arrays:\n" wwn 1711 drivers/scsi/bfa/bfa_core.c memcpy(wwns, cfgrsp->bootwwns.wwn, sizeof(cfgrsp->bootwwns.wwn)); wwn 288 drivers/scsi/bfa/bfa_cs.h wwn2str(char *wwn_str, u64 wwn) wwn 291 drivers/scsi/bfa/bfa_cs.h u64 wwn; wwn 295 drivers/scsi/bfa/bfa_cs.h w.wwn = wwn; wwn 1030 drivers/scsi/bfa/bfa_defs_svc.h wwn_t wwn; wwn 1452 drivers/scsi/bfa/bfa_fc.h wwn_t wwn; /* PWWN/NWWN */ wwn 1314 drivers/scsi/bfa/bfa_fcbuild.c fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) wwn 1325 drivers/scsi/bfa/bfa_fcbuild.c gmal->wwn = wwn; wwn 1334 drivers/scsi/bfa/bfa_fcbuild.c fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) wwn 1345 drivers/scsi/bfa/bfa_fcbuild.c gfn->wwn = wwn; wwn 262 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn); wwn 263 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn); wwn 286 drivers/scsi/bfa/bfa_fcs.h wwn_t bfa_fcs_lport_get_rport(struct bfa_fcs_lport_s *port, wwn_t wwn, wwn 488 drivers/scsi/bfa/bfa_fcs.h struct bfa_fcs_lport_s *port, wwn_t wwn); wwn 5712 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_lport_get_rport(struct bfa_fcs_lport_s *port, wwn_t wwn, int index, wwn 5741 drivers/scsi/bfa/bfa_fcs_lport.c if (!memcmp(&wwn, &rport->pwwn, 8)) wwn 176 drivers/scsi/bfa/bfad_drv.h wwn_t wwn[BFA_FCS_MAX_LPORTS]; wwn 70 drivers/scsi/bfa/bfi_ms.h wwn_t wwn[BFA_BOOT_BOOTLUN_MAX]; wwn 558 drivers/scsi/csiostor/csio_attr.c uint8_t wwn[8]; wwn 566 drivers/scsi/csiostor/csio_attr.c u64_to_wwn(fc_vport->node_name, wwn); wwn 568 drivers/scsi/csiostor/csio_attr.c if (!CSIO_VALID_WWN(wwn)) { wwn 573 drivers/scsi/csiostor/csio_attr.c memcpy(csio_ln_wwnn(ln), wwn, 8); wwn 577 drivers/scsi/csiostor/csio_attr.c u64_to_wwn(fc_vport->port_name, wwn); wwn 579 drivers/scsi/csiostor/csio_attr.c if (!CSIO_VALID_WWN(wwn)) { wwn 585 drivers/scsi/csiostor/csio_attr.c if (csio_lnode_lookup_by_wwpn(hw, wwn)) { wwn 590 drivers/scsi/csiostor/csio_attr.c memcpy(csio_ln_wwpn(ln), wwn, 8); wwn 894 drivers/scsi/fcoe/fcoe_ctlr.c struct fip_wwn_desc *wwn; wwn 955 drivers/scsi/fcoe/fcoe_ctlr.c wwn = (struct fip_wwn_desc *)desc; wwn 956 drivers/scsi/fcoe/fcoe_ctlr.c fcf->switch_name = get_unaligned_be64(&wwn->fd_wwn); wwn 1972 drivers/scsi/fcoe/fcoe_ctlr.c u64 wwn; wwn 1984 drivers/scsi/fcoe/fcoe_ctlr.c wwn = host_mac | ((u64) scheme << 60); wwn 1991 drivers/scsi/fcoe/fcoe_ctlr.c wwn |= (u64) port << 48; wwn 1998 drivers/scsi/fcoe/fcoe_ctlr.c return wwn; wwn 2277 drivers/scsi/fcoe/fcoe_ctlr.c struct fip_wwn_desc *wwn = NULL; wwn 2347 drivers/scsi/fcoe/fcoe_ctlr.c wwn = (struct fip_wwn_desc *)desc; wwn 2349 drivers/scsi/fcoe/fcoe_ctlr.c get_unaligned_be64(&wwn->fd_wwn); wwn 2808 drivers/scsi/fcoe/fcoe_ctlr.c struct fip_wwn_desc *wwn = NULL; wwn 2867 drivers/scsi/fcoe/fcoe_ctlr.c wwn = (struct fip_wwn_desc *)desc; wwn 2869 drivers/scsi/fcoe/fcoe_ctlr.c get_unaligned_be64(&wwn->fd_wwn); wwn 228 drivers/scsi/fcoe/fcoe_transport.c void fcoe_wwn_to_str(u64 wwn, char *buf, int len) wwn 232 drivers/scsi/fcoe/fcoe_transport.c u64_to_wwn(wwn, wwpn); wwn 290 drivers/scsi/fcoe/fcoe_transport.c int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) wwn 295 drivers/scsi/fcoe/fcoe_transport.c return ops->ndo_fcoe_get_wwn(netdev, wwn, type); wwn 378 drivers/scsi/gdth.h char wwn[8]; /* world wide name */ wwn 3900 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static void ibmvscsis_drop_tport(struct se_wwn *wwn) wwn 3902 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct ibmvscsis_tport *tport = container_of(wwn, wwn 3911 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static struct se_portal_group *ibmvscsis_make_tpg(struct se_wwn *wwn, wwn 3915 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c container_of(wwn, struct ibmvscsis_tport, tport_wwn); wwn 2455 drivers/scsi/ipr.c be32_to_cpu(error->wwn[0]), be32_to_cpu(error->wwn[1]), wwn 2456 drivers/scsi/ipr.c be32_to_cpu(error->wwn[2]), be32_to_cpu(error->wwn[3])); wwn 919 drivers/scsi/ipr.h __be32 wwn[4]; wwn 189 drivers/scsi/lpfc/lpfc_attr.c wwn_to_u64(vport->fc_portname.u.wwn)); wwn 207 drivers/scsi/lpfc/lpfc_attr.c wwn_to_u64(vport->fc_portname.u.wwn), wwn 208 drivers/scsi/lpfc/lpfc_attr.c wwn_to_u64(vport->fc_nodename.u.wwn), wwn 343 drivers/scsi/lpfc/lpfc_attr.c wwn_to_u64(vport->fc_portname.u.wwn)); wwn 370 drivers/scsi/lpfc/lpfc_attr.c wwn_to_u64(vport->fc_portname.u.wwn), wwn 371 drivers/scsi/lpfc/lpfc_attr.c wwn_to_u64(vport->fc_nodename.u.wwn), wwn 2727 drivers/scsi/lpfc/lpfc_attr.c lpfc_wwn_set(const char *buf, size_t cnt, char wwn[]) wwn 2739 drivers/scsi/lpfc/lpfc_attr.c memset(wwn, 0, WWN_SZ); wwn 2752 drivers/scsi/lpfc/lpfc_attr.c wwn[i/2] = j & 0xff; wwn 4454 drivers/scsi/lpfc/lpfc_attr.c ndlp->nlp_portname.u.wwn[0], wwn 4455 drivers/scsi/lpfc/lpfc_attr.c ndlp->nlp_portname.u.wwn[1], wwn 4456 drivers/scsi/lpfc/lpfc_attr.c ndlp->nlp_portname.u.wwn[2], wwn 4457 drivers/scsi/lpfc/lpfc_attr.c ndlp->nlp_portname.u.wwn[3], wwn 4458 drivers/scsi/lpfc/lpfc_attr.c ndlp->nlp_portname.u.wwn[4], wwn 4459 drivers/scsi/lpfc/lpfc_attr.c ndlp->nlp_portname.u.wwn[5], wwn 4460 drivers/scsi/lpfc/lpfc_attr.c ndlp->nlp_portname.u.wwn[6], wwn 4461 drivers/scsi/lpfc/lpfc_attr.c ndlp->nlp_portname.u.wwn[7]); wwn 6554 drivers/scsi/lpfc/lpfc_attr.c node_name = wwn_to_u64(phba->fc_fabparam.nodeName.u.wwn); wwn 6830 drivers/scsi/lpfc/lpfc_attr.c ndlp ? wwn_to_u64(ndlp->nlp_nodename.u.wwn) : 0; wwn 6845 drivers/scsi/lpfc/lpfc_attr.c ndlp ? wwn_to_u64(ndlp->nlp_portname.u.wwn) : 0; wwn 869 drivers/scsi/lpfc/lpfc_debugfs.c wwn_to_u64(ndlp->nlp_portname.u.wwn)); wwn 872 drivers/scsi/lpfc/lpfc_debugfs.c wwn_to_u64(ndlp->nlp_nodename.u.wwn)); wwn 931 drivers/scsi/lpfc/lpfc_debugfs.c wwn_to_u64(vport->fc_nodename.u.wwn), wwn 932 drivers/scsi/lpfc/lpfc_debugfs.c wwn_to_u64(vport->fc_portname.u.wwn), wwn 159 drivers/scsi/lpfc/lpfc_hbadisc.c if (rport->port_name != wwn_to_u64(ndlp->nlp_portname.u.wwn)) wwn 163 drivers/scsi/lpfc/lpfc_hbadisc.c wwn_to_u64(ndlp->nlp_portname.u.wwn)); wwn 3091 drivers/scsi/lpfc/lpfc_hbadisc.c fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); wwn 4127 drivers/scsi/lpfc/lpfc_hbadisc.c rport_ids.node_name = wwn_to_u64(ndlp->nlp_nodename.u.wwn); wwn 4128 drivers/scsi/lpfc/lpfc_hbadisc.c rport_ids.port_name = wwn_to_u64(ndlp->nlp_portname.u.wwn); wwn 366 drivers/scsi/lpfc/lpfc_hw.h uint8_t wwn[8]; wwn 2846 drivers/scsi/lpfc/lpfc_hw.h uint32_t wwn[2]; wwn 2855 drivers/scsi/lpfc/lpfc_hw.h uint32_t wwn[2]; wwn 2385 drivers/scsi/lpfc/lpfc_hw4.h uint32_t wwn[2]; wwn 356 drivers/scsi/lpfc/lpfc_init.c vport->fc_sparam.nodeName.u.wwn); wwn 359 drivers/scsi/lpfc/lpfc_init.c vport->fc_sparam.portName.u.wwn); wwn 365 drivers/scsi/lpfc/lpfc_init.c if (vport->fc_nodename.u.wwn[0] == 0 || vport->phba->cfg_soft_wwnn) wwn 376 drivers/scsi/lpfc/lpfc_init.c if (vport->fc_portname.u.wwn[0] != 0 && wwn 381 drivers/scsi/lpfc/lpfc_init.c if (vport->fc_portname.u.wwn[0] == 0 || wwn 468 drivers/scsi/lpfc/lpfc_init.c fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); wwn 469 drivers/scsi/lpfc/lpfc_init.c fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); wwn 4192 drivers/scsi/lpfc/lpfc_init.c uint64_t wwn; wwn 4215 drivers/scsi/lpfc/lpfc_init.c memcpy(&wwn, (char *)mb->un.varRDnvp.portname, sizeof(uint64_t)); wwn 4219 drivers/scsi/lpfc/lpfc_init.c return be64_to_cpu(wwn); wwn 4221 drivers/scsi/lpfc/lpfc_init.c return rol64(wwn, 32); wwn 4247 drivers/scsi/lpfc/lpfc_init.c uint64_t wwn; wwn 4260 drivers/scsi/lpfc/lpfc_init.c wwn = lpfc_get_wwpn(phba); wwn 4264 drivers/scsi/lpfc/lpfc_init.c if (wwn == lpfc_no_hba_reset[i]) { wwn 4267 drivers/scsi/lpfc/lpfc_init.c wwn); wwn 4516 drivers/scsi/lpfc/lpfc_init.c fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); wwn 4517 drivers/scsi/lpfc/lpfc_init.c fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); wwn 6422 drivers/scsi/lpfc/lpfc_init.c uint64_t wwn; wwn 6606 drivers/scsi/lpfc/lpfc_init.c memcpy(&wwn, (char *)mb->un.varRDnvp.nodename, wwn 6608 drivers/scsi/lpfc/lpfc_init.c wwn = cpu_to_be64(wwn); wwn 6609 drivers/scsi/lpfc/lpfc_init.c phba->sli4_hba.wwnn.u.name = wwn; wwn 6610 drivers/scsi/lpfc/lpfc_init.c memcpy(&wwn, (char *)mb->un.varRDnvp.portname, wwn 6613 drivers/scsi/lpfc/lpfc_init.c wwn = cpu_to_be64(wwn); wwn 6614 drivers/scsi/lpfc/lpfc_init.c phba->sli4_hba.wwpn.u.name = wwn; wwn 6618 drivers/scsi/lpfc/lpfc_init.c if (wwn == lpfc_enable_nvmet[i]) { wwn 6627 drivers/scsi/lpfc/lpfc_init.c wwn); wwn 903 drivers/scsi/lpfc/lpfc_mbox.c memcpy(mb->un.varRegVpi.wwn, &vport->fc_portname, wwn 905 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegVpi.wwn[0] = cpu_to_le32(mb->un.varRegVpi.wwn[0]); wwn 906 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegVpi.wwn[1] = cpu_to_le32(mb->un.varRegVpi.wwn[1]); wwn 2161 drivers/scsi/lpfc/lpfc_mbox.c memcpy(reg_vfi->wwn, &vport->fc_portname, sizeof(struct lpfc_name)); wwn 2162 drivers/scsi/lpfc/lpfc_mbox.c reg_vfi->wwn[0] = cpu_to_le32(reg_vfi->wwn[0]); wwn 2163 drivers/scsi/lpfc/lpfc_mbox.c reg_vfi->wwn[1] = cpu_to_le32(reg_vfi->wwn[1]); wwn 2209 drivers/scsi/lpfc/lpfc_mbox.c reg_vfi->wwn[0], reg_vfi->wwn[1], vport->fc_flag, wwn 162 drivers/scsi/lpfc/lpfc_nportdisc.c sp->nodeName.u.wwn[0], sp->nodeName.u.wwn[1], wwn 163 drivers/scsi/lpfc/lpfc_nportdisc.c sp->nodeName.u.wwn[2], sp->nodeName.u.wwn[3], wwn 164 drivers/scsi/lpfc/lpfc_nportdisc.c sp->nodeName.u.wwn[4], sp->nodeName.u.wwn[5], wwn 165 drivers/scsi/lpfc/lpfc_nportdisc.c sp->nodeName.u.wwn[6], sp->nodeName.u.wwn[7]); wwn 303 drivers/scsi/lpfc/lpfc_nportdisc.c if (wwn_to_u64(sp->portName.u.wwn) == 0) { wwn 312 drivers/scsi/lpfc/lpfc_nportdisc.c if (wwn_to_u64(sp->nodeName.u.wwn) == 0) { wwn 322 drivers/scsi/lpfc/lpfc_nportdisc.c nlp_portwwn = wwn_to_u64(ndlp->nlp_portname.u.wwn); wwn 379 drivers/scsi/lpfc/lpfc_nportdisc.c nlp_portwwn != wwn_to_u64(sp->portName.u.wwn)) wwn 386 drivers/scsi/lpfc/lpfc_nportdisc.c wwn_to_u64(sp->portName.u.wwn)); wwn 1185 drivers/scsi/lpfc/lpfc_nportdisc.c (wwn_to_u64(sp->portName.u.wwn) == 0 || wwn 1186 drivers/scsi/lpfc/lpfc_nportdisc.c wwn_to_u64(sp->nodeName.u.wwn) == 0)) { wwn 2135 drivers/scsi/lpfc/lpfc_nvme.c nfcp_info.node_name = wwn_to_u64(vport->fc_nodename.u.wwn); wwn 2136 drivers/scsi/lpfc/lpfc_nvme.c nfcp_info.port_name = wwn_to_u64(vport->fc_portname.u.wwn); wwn 2380 drivers/scsi/lpfc/lpfc_nvme.c rpinfo.port_name = wwn_to_u64(ndlp->nlp_portname.u.wwn); wwn 2381 drivers/scsi/lpfc/lpfc_nvme.c rpinfo.node_name = wwn_to_u64(ndlp->nlp_nodename.u.wwn); wwn 1464 drivers/scsi/lpfc/lpfc_nvmet.c pinfo.node_name = wwn_to_u64(vport->fc_nodename.u.wwn); wwn 1465 drivers/scsi/lpfc/lpfc_nvmet.c pinfo.port_name = wwn_to_u64(vport->fc_portname.u.wwn); wwn 1037 drivers/scsi/lpfc/lpfc_scsi.c if (phba->lpfc_injerr_wwpn.u.wwn[0] && wwn 4552 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_nodename.u.wwn[0], wwn 4553 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_nodename.u.wwn[1], wwn 4554 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_nodename.u.wwn[2], wwn 4555 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_nodename.u.wwn[3], wwn 4556 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_nodename.u.wwn[4], wwn 4557 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_nodename.u.wwn[5], wwn 4558 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_nodename.u.wwn[6], wwn 4559 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_nodename.u.wwn[7], wwn 4560 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_portname.u.wwn[0], wwn 4561 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_portname.u.wwn[1], wwn 4562 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_portname.u.wwn[2], wwn 4563 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_portname.u.wwn[3], wwn 4564 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_portname.u.wwn[4], wwn 4565 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_portname.u.wwn[5], wwn 4566 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_portname.u.wwn[6], wwn 4567 drivers/scsi/lpfc/lpfc_scsi.c ndlp->nlp_portname.u.wwn[7]); wwn 5520 drivers/scsi/lpfc/lpfc_scsi.c u64_to_wwn(rport->port_name, target_wwpn.u.wwn); wwn 5829 drivers/scsi/lpfc/lpfc_scsi.c if (((wwn_to_u64(vport_wwpn->u.wwn) == 0) || wwn 5832 drivers/scsi/lpfc/lpfc_scsi.c ((wwn_to_u64(target_wwpn->u.wwn) == 0) || wwn 7469 drivers/scsi/lpfc/lpfc_sli.c fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); wwn 7470 drivers/scsi/lpfc/lpfc_sli.c fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); wwn 183 drivers/scsi/lpfc/lpfc_vport.c lpfc_valid_wwn_format(struct lpfc_hba *phba, struct lpfc_name *wwn, wwn 189 drivers/scsi/lpfc/lpfc_vport.c if (!((wwn->u.wwn[0] >> 4) == 1 && wwn 190 drivers/scsi/lpfc/lpfc_vport.c ((wwn->u.wwn[0] & 0xf) != 0 || (wwn->u.wwn[1] & 0xf) != 0))) wwn 197 drivers/scsi/lpfc/lpfc_vport.c wwn->u.wwn[0], wwn->u.wwn[1], wwn 198 drivers/scsi/lpfc/lpfc_vport.c wwn->u.wwn[2], wwn->u.wwn[3], wwn 199 drivers/scsi/lpfc/lpfc_vport.c wwn->u.wwn[4], wwn->u.wwn[5], wwn 200 drivers/scsi/lpfc/lpfc_vport.c wwn->u.wwn[6], wwn->u.wwn[7]); wwn 373 drivers/scsi/lpfc/lpfc_vport.c u64_to_wwn(fc_vport->node_name, vport->fc_nodename.u.wwn); wwn 374 drivers/scsi/lpfc/lpfc_vport.c u64_to_wwn(fc_vport->port_name, vport->fc_portname.u.wwn); wwn 376 drivers/scsi/lpfc/lpfc_vport.c memcpy(&vport->fc_sparam.portName, vport->fc_portname.u.wwn, 8); wwn 377 drivers/scsi/lpfc/lpfc_vport.c memcpy(&vport->fc_sparam.nodeName, vport->fc_nodename.u.wwn, 8); wwn 909 drivers/scsi/qla2xxx/qla_gbl.h uint64_t wwn, port_id_t port_id, uint16_t loop_id, struct fc_port **); wwn 3532 drivers/scsi/qla2xxx/qla_gs.c static int qla2x00_is_a_vp(scsi_qla_host_t *vha, u64 wwn) wwn 3546 drivers/scsi/qla2xxx/qla_gs.c if (wwn == twwn) { wwn 3594 drivers/scsi/qla2xxx/qla_gs.c u64 wwn; wwn 3600 drivers/scsi/qla2xxx/qla_gs.c wwn = wwn_to_u64(rp->port_name); wwn 3601 drivers/scsi/qla2xxx/qla_gs.c if (wwn == 0) wwn 3626 drivers/scsi/qla2xxx/qla_gs.c if (qla2x00_is_a_vp(vha, wwn)) wwn 3777 drivers/scsi/qla2xxx/qla_gs.c u64 wwn; wwn 3787 drivers/scsi/qla2xxx/qla_gs.c wwn = wwn_to_u64(d->port_name); wwn 3789 drivers/scsi/qla2xxx/qla_gs.c if (id.b24 == 0 || wwn == 0) wwn 4372 drivers/scsi/qla2xxx/qla_gs.c u64 wwn; wwn 4374 drivers/scsi/qla2xxx/qla_gs.c wwn = wwn_to_u64(fpn); wwn 4375 drivers/scsi/qla2xxx/qla_gs.c if (wwn) wwn 687 drivers/scsi/qla2xxx/qla_init.c u64 wwn; wwn 732 drivers/scsi/qla2xxx/qla_init.c wwn = wwn_to_u64(e->port_name); wwn 738 drivers/scsi/qla2xxx/qla_init.c if (memcmp((u8 *)&wwn, fcport->port_name, WWN_SIZE)) wwn 794 drivers/scsi/qla2xxx/qla_init.c wwn = wwn_to_u64(fcport->port_name); wwn 795 drivers/scsi/qla2xxx/qla_init.c qlt_find_sess_invalidate_other(vha, wwn, wwn 973 drivers/scsi/qla2xxx/qla_init.c u64 wwn; wwn 1003 drivers/scsi/qla2xxx/qla_init.c wwn = wwn_to_u64(e->port_name); wwn 1007 drivers/scsi/qla2xxx/qla_init.c __func__, (void *)&wwn, e->port_id[2], e->port_id[1], wwn 1036 drivers/scsi/qla2xxx/qla_init.c wwn = wwn_to_u64(e->port_name); wwn 1040 drivers/scsi/qla2xxx/qla_init.c if (!memcmp((u8 *)&wwn, fcport->port_name, wwn 1052 drivers/scsi/qla2xxx/qla_init.c if (!found && wwn && !IS_SW_RESV_ADDR(id)) { wwn 1055 drivers/scsi/qla2xxx/qla_init.c __func__, __LINE__, (u8 *)&wwn, id.b24); wwn 1057 drivers/scsi/qla2xxx/qla_init.c qla24xx_post_newsess_work(vha, &id, (u8 *)&wwn, wwn 1478 drivers/scsi/qla2xxx/qla_init.c u64 mywwn, wwn; wwn 1481 drivers/scsi/qla2xxx/qla_init.c wwn = wwn_to_u64(fcport->port_name); wwn 1482 drivers/scsi/qla2xxx/qla_init.c if (mywwn > wwn) wwn 1520 drivers/scsi/qla2xxx/qla_init.c u64 wwn; wwn 1558 drivers/scsi/qla2xxx/qla_init.c wwn = wwn_to_u64(fcport->node_name); wwn 1582 drivers/scsi/qla2xxx/qla_init.c if (wwn == 0) { wwn 4562 drivers/scsi/qla2xxx/qla_target.c qlt_find_sess_invalidate_other(scsi_qla_host_t *vha, uint64_t wwn, wwn 4574 drivers/scsi/qla2xxx/qla_target.c if (wwn == other_wwn) { wwn 4676 drivers/scsi/qla2xxx/qla_target.c uint64_t wwn; wwn 4685 drivers/scsi/qla2xxx/qla_target.c wwn = wwn_to_u64(iocb->u.isp24.port_name); wwn 4697 drivers/scsi/qla2xxx/qla_target.c if (wwn) { wwn 4699 drivers/scsi/qla2xxx/qla_target.c sess = qlt_find_sess_invalidate_other(vha, wwn, wwn 4854 drivers/scsi/qla2xxx/qla_target.c uint64_t wwn; wwn 4863 drivers/scsi/qla2xxx/qla_target.c wwn = wwn_to_u64(iocb->u.isp24.port_name); wwn 4912 drivers/scsi/qla2xxx/qla_target.c if (wwn) { wwn 4914 drivers/scsi/qla2xxx/qla_target.c sess = qlt_find_sess_invalidate_other(vha, wwn, port_id, wwn 5071 drivers/scsi/qla2xxx/qla_target.c __func__, wwn, res, sess); wwn 44 drivers/scsi/qla2xxx/tcm_qla2xxx.c static ssize_t tcm_qla2xxx_parse_wwn(const char *name, u64 *wwn, int strict) wwn 53 drivers/scsi/qla2xxx/tcm_qla2xxx.c *wwn = 0; wwn 78 drivers/scsi/qla2xxx/tcm_qla2xxx.c *wwn = (*wwn << 4) | nibble; wwn 87 drivers/scsi/qla2xxx/tcm_qla2xxx.c static ssize_t tcm_qla2xxx_format_wwn(char *buf, size_t len, u64 wwn) wwn 91 drivers/scsi/qla2xxx/tcm_qla2xxx.c put_unaligned_be64(wwn, b); wwn 103 drivers/scsi/qla2xxx/tcm_qla2xxx.c u8 wwn[8]; wwn 105 drivers/scsi/qla2xxx/tcm_qla2xxx.c memset(wwn, 0, sizeof(wwn)); wwn 118 drivers/scsi/qla2xxx/tcm_qla2xxx.c wwn[i/2] = j & 0xff; wwn 123 drivers/scsi/qla2xxx/tcm_qla2xxx.c *nm = wwn_to_u64(wwn); wwn 983 drivers/scsi/qla2xxx/tcm_qla2xxx.c static struct se_portal_group *tcm_qla2xxx_make_tpg(struct se_wwn *wwn, wwn 986 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_lport *lport = container_of(wwn, wwn 1019 drivers/scsi/qla2xxx/tcm_qla2xxx.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); wwn 1103 drivers/scsi/qla2xxx/tcm_qla2xxx.c static struct se_portal_group *tcm_qla2xxx_npiv_make_tpg(struct se_wwn *wwn, wwn 1106 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_lport *lport = container_of(wwn, wwn 1134 drivers/scsi/qla2xxx/tcm_qla2xxx.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); wwn 1647 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_drop_lport(struct se_wwn *wwn) wwn 1649 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_lport *lport = container_of(wwn, wwn 1772 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_npiv_drop_lport(struct se_wwn *wwn) wwn 1774 drivers/scsi/qla2xxx/tcm_qla2xxx.c struct tcm_qla2xxx_lport *lport = container_of(wwn, wwn 1811 drivers/scsi/scsi_transport_fc.c u8 wwn[8]; wwn 1813 drivers/scsi/scsi_transport_fc.c memset(wwn, 0, sizeof(wwn)); wwn 1825 drivers/scsi/scsi_transport_fc.c wwn[i/2] = j & 0xff; wwn 1830 drivers/scsi/scsi_transport_fc.c *nm = wwn_to_u64(wwn); wwn 1085 drivers/target/iscsi/iscsi_target_configfs.c static struct se_portal_group *lio_target_tiqn_addtpg(struct se_wwn *wwn, wwn 1094 drivers/target/iscsi/iscsi_target_configfs.c tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); wwn 1114 drivers/target/iscsi/iscsi_target_configfs.c ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); wwn 1181 drivers/target/iscsi/iscsi_target_configfs.c static void lio_target_add_wwn_groups(struct se_wwn *wwn) wwn 1183 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); wwn 1212 drivers/target/iscsi/iscsi_target_configfs.c struct se_wwn *wwn) wwn 1214 drivers/target/iscsi/iscsi_target_configfs.c struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); wwn 592 drivers/target/iscsi/iscsi_target_stat.c struct se_wwn *wwn = acl->se_node_acl.se_tpg->se_tpg_wwn; wwn 593 drivers/target/iscsi/iscsi_target_stat.c struct iscsi_tiqn *tiqn = container_of(wwn, wwn 958 drivers/target/loopback/tcm_loop.c static struct se_portal_group *tcm_loop_make_naa_tpg(struct se_wwn *wwn, wwn 961 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba = container_of(wwn, wwn 985 drivers/target/loopback/tcm_loop.c ret = core_tpg_register(wwn, &tl_tpg->tl_se_tpg, tl_hba->tl_proto_id); wwn 991 drivers/target/loopback/tcm_loop.c config_item_name(&wwn->wwn_group.cg_item), tpgt); wwn 998 drivers/target/loopback/tcm_loop.c struct se_wwn *wwn = se_tpg->se_tpg_wwn; wwn 1020 drivers/target/loopback/tcm_loop.c config_item_name(&wwn->wwn_group.cg_item), tpgt); wwn 1094 drivers/target/loopback/tcm_loop.c struct se_wwn *wwn) wwn 1096 drivers/target/loopback/tcm_loop.c struct tcm_loop_hba *tl_hba = container_of(wwn, wwn 1912 drivers/target/sbp/sbp_target.c static ssize_t sbp_parse_wwn(const char *name, u64 *wwn) wwn 1918 drivers/target/sbp/sbp_target.c *wwn = 0; wwn 1936 drivers/target/sbp/sbp_target.c *wwn = (*wwn << 4) | nibble; wwn 1946 drivers/target/sbp/sbp_target.c static ssize_t sbp_format_wwn(char *buf, size_t len, u64 wwn) wwn 1948 drivers/target/sbp/sbp_target.c return snprintf(buf, len, "%016llx", wwn); wwn 1985 drivers/target/sbp/sbp_target.c static struct se_portal_group *sbp_make_tpg(struct se_wwn *wwn, wwn 1989 drivers/target/sbp/sbp_target.c container_of(wwn, struct sbp_tport, tport_wwn); wwn 2026 drivers/target/sbp/sbp_target.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); wwn 2072 drivers/target/sbp/sbp_target.c static void sbp_drop_tport(struct se_wwn *wwn) wwn 2075 drivers/target/sbp/sbp_target.c container_of(wwn, struct sbp_tport, tport_wwn); wwn 904 drivers/target/target_core_alua.c struct t10_wwn *wwn = &tg_pt_gp->tg_pt_gp_dev->t10_wwn; wwn 926 drivers/target/target_core_alua.c &wwn->unit_serial[0], wwn 709 drivers/target/target_core_device.c struct t10_wwn *wwn = &dev->t10_wwn; wwn 716 drivers/target/target_core_device.c wwn->vendor); wwn 718 drivers/target/target_core_device.c wwn->model); wwn 720 drivers/target/target_core_device.c wwn->revision); wwn 808 drivers/target/target_core_fabric_configfs.c struct se_wwn *wwn = se_tpg->se_tpg_wwn; wwn 809 drivers/target/target_core_fabric_configfs.c struct target_fabric_configfs *tf = wwn->wwn_tf; wwn 828 drivers/target/target_core_fabric_configfs.c struct se_wwn *wwn = container_of(group, struct se_wwn, wwn_group); wwn 829 drivers/target/target_core_fabric_configfs.c struct target_fabric_configfs *tf = wwn->wwn_tf; wwn 837 drivers/target/target_core_fabric_configfs.c se_tpg = tf->tf_ops->fabric_make_tpg(wwn, name); wwn 890 drivers/target/target_core_fabric_configfs.c struct se_wwn *wwn = container_of(to_config_group(item), wwn 892 drivers/target/target_core_fabric_configfs.c struct target_fabric_configfs *tf = wwn->wwn_tf; wwn 894 drivers/target/target_core_fabric_configfs.c configfs_remove_default_groups(&wwn->fabric_stat_group); wwn 895 drivers/target/target_core_fabric_configfs.c tf->tf_ops->fabric_drop_wwn(wwn); wwn 929 drivers/target/target_core_fabric_configfs.c struct se_wwn *wwn; wwn 936 drivers/target/target_core_fabric_configfs.c wwn = tf->tf_ops->fabric_make_wwn(tf, group, name); wwn 937 drivers/target/target_core_fabric_configfs.c if (!wwn || IS_ERR(wwn)) wwn 940 drivers/target/target_core_fabric_configfs.c wwn->wwn_tf = tf; wwn 942 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&wwn->wwn_group, name, &tf->tf_tpg_cit); wwn 944 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&wwn->fabric_stat_group, "fabric_statistics", wwn 946 drivers/target/target_core_fabric_configfs.c configfs_add_default_group(&wwn->fabric_stat_group, &wwn->wwn_group); wwn 949 drivers/target/target_core_fabric_configfs.c tf->tf_ops->add_wwn_groups(wwn); wwn 950 drivers/target/target_core_fabric_configfs.c return &wwn->wwn_group; wwn 957 drivers/target/target_core_fabric_configfs.c struct se_wwn *wwn = container_of(to_config_group(item), wwn 960 drivers/target/target_core_fabric_configfs.c configfs_remove_default_groups(&wwn->wwn_group); wwn 969 drivers/target/target_core_fabric_configfs.c TF_CIT_SETUP_DRV(wwn, NULL, &target_fabric_wwn_group_ops); wwn 1966 drivers/target/target_core_pr.c struct t10_wwn *wwn = &dev->t10_wwn; wwn 1975 drivers/target/target_core_pr.c &wwn->unit_serial[0]); wwn 167 drivers/target/target_core_pscsi.c pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) wwn 174 drivers/target/target_core_pscsi.c BUILD_BUG_ON(sizeof(wwn->vendor) != INQUIRY_VENDOR_LEN + 1); wwn 175 drivers/target/target_core_pscsi.c snprintf(wwn->vendor, sizeof(wwn->vendor), wwn 177 drivers/target/target_core_pscsi.c BUILD_BUG_ON(sizeof(wwn->model) != INQUIRY_MODEL_LEN + 1); wwn 178 drivers/target/target_core_pscsi.c snprintf(wwn->model, sizeof(wwn->model), wwn 180 drivers/target/target_core_pscsi.c BUILD_BUG_ON(sizeof(wwn->revision) != INQUIRY_REVISION_LEN + 1); wwn 181 drivers/target/target_core_pscsi.c snprintf(wwn->revision, sizeof(wwn->revision), wwn 186 drivers/target/target_core_pscsi.c pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) wwn 206 drivers/target/target_core_pscsi.c snprintf(&wwn->unit_serial[0], INQUIRY_VPD_SERIAL_LEN, "%s", &buf[4]); wwn 208 drivers/target/target_core_pscsi.c wwn->t10_dev->dev_flags |= DF_FIRMWARE_VPD_UNIT_SERIAL; wwn 220 drivers/target/target_core_pscsi.c struct t10_wwn *wwn) wwn 278 drivers/target/target_core_pscsi.c list_add_tail(&vpd->vpd_list, &wwn->t10_vpd_list); wwn 768 drivers/target/target_core_stat.c struct t10_wwn *wwn; wwn 774 drivers/target/target_core_stat.c wwn = &dev->t10_wwn; wwn 778 drivers/target/target_core_stat.c (strlen(wwn->unit_serial)) ? wwn->unit_serial : wwn 779 drivers/target/target_core_stat.c wwn->vendor); wwn 49 drivers/target/tcm_fc/tfc_conf.c static ssize_t ft_parse_wwn(const char *name, u64 *wwn, int strict) wwn 58 drivers/target/tcm_fc/tfc_conf.c *wwn = 0; wwn 80 drivers/target/tcm_fc/tfc_conf.c *wwn = (*wwn << 4) | val; wwn 89 drivers/target/tcm_fc/tfc_conf.c ssize_t ft_format_wwn(char *buf, size_t len, u64 wwn) wwn 93 drivers/target/tcm_fc/tfc_conf.c put_unaligned_be64(wwn, b); wwn 101 drivers/target/tcm_fc/tfc_conf.c u64 *wwn = arg; wwn 104 drivers/target/tcm_fc/tfc_conf.c len = ft_format_wwn(buf, PAGE_SIZE - 2, *wwn); wwn 112 drivers/target/tcm_fc/tfc_conf.c u64 wwn; wwn 114 drivers/target/tcm_fc/tfc_conf.c ret = ft_parse_wwn(buf, &wwn, 0); wwn 116 drivers/target/tcm_fc/tfc_conf.c *(u64 *)arg = wwn; wwn 218 drivers/target/tcm_fc/tfc_conf.c static struct se_portal_group *ft_add_tpg(struct se_wwn *wwn, const char *name) wwn 245 drivers/target/tcm_fc/tfc_conf.c ft_wwn = container_of(wwn, struct ft_lport_wwn, se_wwn); wwn 259 drivers/target/tcm_fc/tfc_conf.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); wwn 356 drivers/target/tcm_fc/tfc_conf.c static void ft_del_wwn(struct se_wwn *wwn) wwn 358 drivers/target/tcm_fc/tfc_conf.c struct ft_lport_wwn *ft_wwn = container_of(wwn, wwn 1334 drivers/usb/gadget/function/f_tcm.c static struct se_portal_group *usbg_make_tpg(struct se_wwn *wwn, wwn 1337 drivers/usb/gadget/function/f_tcm.c struct usbg_tport *tport = container_of(wwn, struct usbg_tport, wwn 1368 drivers/usb/gadget/function/f_tcm.c wwn->wwn_group.cg_subsys, wwn 1391 drivers/usb/gadget/function/f_tcm.c ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); wwn 1474 drivers/usb/gadget/function/f_tcm.c static void usbg_drop_tport(struct se_wwn *wwn) wwn 1476 drivers/usb/gadget/function/f_tcm.c struct usbg_tport *tport = container_of(wwn, wwn 2147 drivers/vhost/scsi.c vhost_scsi_make_tpg(struct se_wwn *wwn, const char *name) wwn 2149 drivers/vhost/scsi.c struct vhost_scsi_tport *tport = container_of(wwn, wwn 2171 drivers/vhost/scsi.c ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); wwn 2263 drivers/vhost/scsi.c static void vhost_scsi_drop_tport(struct se_wwn *wwn) wwn 2265 drivers/vhost/scsi.c struct vhost_scsi_tport *tport = container_of(wwn, wwn 1368 drivers/xen/xen-scsiback.c static void scsiback_drop_tport(struct se_wwn *wwn) wwn 1370 drivers/xen/xen-scsiback.c struct scsiback_tport *tport = container_of(wwn, wwn 1735 drivers/xen/xen-scsiback.c scsiback_make_tpg(struct se_wwn *wwn, const char *name) wwn 1737 drivers/xen/xen-scsiback.c struct scsiback_tport *tport = container_of(wwn, wwn 1760 drivers/xen/xen-scsiback.c ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); wwn 1352 include/linux/netdevice.h u64 *wwn, int type); wwn 257 include/scsi/libfcoe.h int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type); wwn 260 include/scsi/libfcoe.h void fcoe_wwn_to_str(u64 wwn, char *buf, int len); wwn 745 include/scsi/scsi_transport_fc.h static inline u64 wwn_to_u64(const u8 *wwn) wwn 747 include/scsi/scsi_transport_fc.h return get_unaligned_be64(wwn); wwn 750 include/scsi/scsi_transport_fc.h static inline void u64_to_wwn(u64 inm, u8 *wwn) wwn 752 include/scsi/scsi_transport_fc.h put_unaligned_be64(inm, wwn); wwn 462 net/8021q/vlan_dev.c static int vlan_dev_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type) wwn 469 net/8021q/vlan_dev.c rc = ops->ndo_fcoe_get_wwn(real_dev, wwn, type);