Home
last modified time | relevance | path

Searched refs:wwn (Results 1 – 25 of 39) 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_scsi.c1015 if (phba->lpfc_injerr_wwpn.u.wwn[0] && in lpfc_bg_err_inject()
5284 ndlp->nlp_nodename.u.wwn[0], in lpfc_queuecommand()
5285 ndlp->nlp_nodename.u.wwn[1], in lpfc_queuecommand()
5286 ndlp->nlp_nodename.u.wwn[2], in lpfc_queuecommand()
5287 ndlp->nlp_nodename.u.wwn[3], in lpfc_queuecommand()
5288 ndlp->nlp_nodename.u.wwn[4], in lpfc_queuecommand()
5289 ndlp->nlp_nodename.u.wwn[5], in lpfc_queuecommand()
5290 ndlp->nlp_nodename.u.wwn[6], in lpfc_queuecommand()
5291 ndlp->nlp_nodename.u.wwn[7], in lpfc_queuecommand()
5292 ndlp->nlp_portname.u.wwn[0], in lpfc_queuecommand()
[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 …]
H A Dlpfc_attr.c476 wwn_to_u64(vport->fc_portname.u.wwn)); in lpfc_nvme_info_show()
492 wwn_to_u64(vport->fc_portname.u.wwn), in lpfc_nvme_info_show()
493 wwn_to_u64(vport->fc_nodename.u.wwn), in lpfc_nvme_info_show()
597 wwn_to_u64(vport->fc_portname.u.wwn)); in lpfc_nvme_info_show()
620 wwn_to_u64(vport->fc_portname.u.wwn), in lpfc_nvme_info_show()
621 wwn_to_u64(vport->fc_nodename.u.wwn), in lpfc_nvme_info_show()
3065 lpfc_wwn_set(const char *buf, size_t cnt, char wwn[]) in lpfc_wwn_set() argument
3077 memset(wwn, 0, WWN_SZ); in lpfc_wwn_set()
3090 wwn[i/2] = j & 0xff; in lpfc_wwn_set()
6632 node_name = wwn_to_u64(phba->fc_fabparam.nodeName.u.wwn); in lpfc_get_host_fabric_name()
[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_transport.c907 struct se_wwn *wwn = cmd->se_sess->se_tpg->se_tpg_wwn; in target_complete() local
912 if (!wwn) { in target_complete()
919 compl_type = wwn->wwn_tf->tf_ops->default_compl_type; in target_complete()
921 wwn->wwn_tf->tf_ops->direct_compl_supp) in target_complete()
944 if (!wwn || wwn->cmd_compl_affinity == SE_COMPL_AFFINITY_CPUID) in target_complete()
947 cpu = wwn->cmd_compl_affinity; in target_complete()
/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/scsi/fcoe/
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/xen/
H A Dxen-scsiback.c1414 static void scsiback_drop_tport(struct se_wwn *wwn) in scsiback_drop_tport() argument
1416 struct scsiback_tport *tport = container_of(wwn, in scsiback_drop_tport()
1761 scsiback_make_tpg(struct se_wwn *wwn, const char *name) in scsiback_make_tpg() argument
1763 struct scsiback_tport *tport = container_of(wwn, in scsiback_make_tpg()
1786 ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); in scsiback_make_tpg()
/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
/linux/drivers/vhost/
H A Dscsi.c2820 vhost_scsi_make_tpg(struct se_wwn *wwn, const char *name) in vhost_scsi_make_tpg() argument
2822 struct vhost_scsi_tport *tport = container_of(wwn, in vhost_scsi_make_tpg()
2844 ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); in vhost_scsi_make_tpg()
2936 static void vhost_scsi_drop_tport(struct se_wwn *wwn) in vhost_scsi_drop_tport() argument
2938 struct vhost_scsi_tport *tport = container_of(wwn, in vhost_scsi_drop_tport()
/linux/net/8021q/
H A Dvlan_dev.c464 static int vlan_dev_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type) in vlan_dev_fcoe_get_wwn() argument
471 rc = ops->ndo_fcoe_get_wwn(real_dev, wwn, type); in vlan_dev_fcoe_get_wwn()
/linux/drivers/scsi/qla2xxx/
H A Dqla_init.c746 u64 wwn; in qla24xx_handle_gnl_done_event() local
792 wwn = wwn_to_u64(e->port_name); in qla24xx_handle_gnl_done_event()
798 if (memcmp((u8 *)&wwn, fcport->port_name, WWN_SIZE)) in qla24xx_handle_gnl_done_event()
852 wwn = wwn_to_u64(fcport->port_name); in qla24xx_handle_gnl_done_event()
853 qlt_find_sess_invalidate_other(vha, wwn, in qla24xx_handle_gnl_done_event()
1049 u64 wwn; in qla24xx_async_gnl_sp_done() local
1077 wwn = wwn_to_u64(e->port_name); in qla24xx_async_gnl_sp_done()
1081 __func__, &wwn, e->port_id[2], e->port_id[1], in qla24xx_async_gnl_sp_done()
1110 wwn = wwn_to_u64(e->port_name); in qla24xx_async_gnl_sp_done()
1114 if (!memcmp((u8 *)&wwn, fcport->port_name, in qla24xx_async_gnl_sp_done()
[all …]
/linux/drivers/scsi/
H A Dscsi_transport_fc.c2314 u8 wwn[8]; in fc_parse_wwn() local
2316 memset(wwn, 0, sizeof(wwn)); in fc_parse_wwn()
2328 wwn[i/2] = j & 0xff; in fc_parse_wwn()
2333 *nm = wwn_to_u64(wwn); in fc_parse_wwn()
/linux/drivers/nvme/target/
H A Dfc.c2824 substring_t wwn = { name, &name[sizeof(name)-1] }; in nvme_fc_parse_traddr() local
2849 if (__nvme_fc_parse_u64(&wwn, &traddr->nn)) in nvme_fc_parse_traddr()
2853 if (__nvme_fc_parse_u64(&wwn, &traddr->pn)) in nvme_fc_parse_traddr()

12