Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/target/tcm_fc/
Dtfc_conf.c49 static ssize_t ft_parse_wwn(const char *name, u64 *wwn, int strict) in ft_parse_wwn() argument
58 *wwn = 0; in ft_parse_wwn()
80 *wwn = (*wwn << 4) | val; in ft_parse_wwn()
89 ssize_t ft_format_wwn(char *buf, size_t len, u64 wwn) in ft_format_wwn() argument
93 put_unaligned_be64(wwn, b); in ft_format_wwn()
101 u64 *wwn = arg; in ft_wwn_show() local
104 len = ft_format_wwn(buf, PAGE_SIZE - 2, *wwn); in ft_wwn_show()
112 u64 wwn; in ft_wwn_store() local
114 ret = ft_parse_wwn(buf, &wwn, 0); in ft_wwn_store()
116 *(u64 *)arg = wwn; in ft_wwn_store()
[all …]
/Linux-v5.4/drivers/scsi/lpfc/
Dlpfc_vport.c183 lpfc_valid_wwn_format(struct lpfc_hba *phba, struct lpfc_name *wwn, in lpfc_valid_wwn_format() argument
189 if (!((wwn->u.wwn[0] >> 4) == 1 && in lpfc_valid_wwn_format()
190 ((wwn->u.wwn[0] & 0xf) != 0 || (wwn->u.wwn[1] & 0xf) != 0))) in lpfc_valid_wwn_format()
197 wwn->u.wwn[0], wwn->u.wwn[1], in lpfc_valid_wwn_format()
198 wwn->u.wwn[2], wwn->u.wwn[3], in lpfc_valid_wwn_format()
199 wwn->u.wwn[4], wwn->u.wwn[5], in lpfc_valid_wwn_format()
200 wwn->u.wwn[6], wwn->u.wwn[7]); in lpfc_valid_wwn_format()
373 u64_to_wwn(fc_vport->node_name, vport->fc_nodename.u.wwn); in lpfc_vport_create()
374 u64_to_wwn(fc_vport->port_name, vport->fc_portname.u.wwn); in lpfc_vport_create()
376 memcpy(&vport->fc_sparam.portName, vport->fc_portname.u.wwn, 8); in lpfc_vport_create()
[all …]
Dlpfc_nportdisc.c162 sp->nodeName.u.wwn[0], sp->nodeName.u.wwn[1], in lpfc_check_sparm()
163 sp->nodeName.u.wwn[2], sp->nodeName.u.wwn[3], in lpfc_check_sparm()
164 sp->nodeName.u.wwn[4], sp->nodeName.u.wwn[5], in lpfc_check_sparm()
165 sp->nodeName.u.wwn[6], sp->nodeName.u.wwn[7]); in lpfc_check_sparm()
303 if (wwn_to_u64(sp->portName.u.wwn) == 0) { in lpfc_rcv_plogi()
312 if (wwn_to_u64(sp->nodeName.u.wwn) == 0) { in lpfc_rcv_plogi()
322 nlp_portwwn = wwn_to_u64(ndlp->nlp_portname.u.wwn); in lpfc_rcv_plogi()
379 nlp_portwwn != wwn_to_u64(sp->portName.u.wwn)) in lpfc_rcv_plogi()
386 wwn_to_u64(sp->portName.u.wwn)); in lpfc_rcv_plogi()
1183 (wwn_to_u64(sp->portName.u.wwn) == 0 || in lpfc_cmpl_plogi_plogi_issue()
[all …]
Dlpfc_mbox.c903 memcpy(mb->un.varRegVpi.wwn, &vport->fc_portname, in lpfc_reg_vpi()
905 mb->un.varRegVpi.wwn[0] = cpu_to_le32(mb->un.varRegVpi.wwn[0]); in lpfc_reg_vpi()
906 mb->un.varRegVpi.wwn[1] = cpu_to_le32(mb->un.varRegVpi.wwn[1]); in lpfc_reg_vpi()
2161 memcpy(reg_vfi->wwn, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_reg_vfi()
2162 reg_vfi->wwn[0] = cpu_to_le32(reg_vfi->wwn[0]); in lpfc_reg_vfi()
2163 reg_vfi->wwn[1] = cpu_to_le32(reg_vfi->wwn[1]); in lpfc_reg_vfi()
2209 reg_vfi->wwn[0], reg_vfi->wwn[1], vport->fc_flag, in lpfc_reg_vfi()
Dlpfc_attr.c189 wwn_to_u64(vport->fc_portname.u.wwn)); in lpfc_nvme_info_show()
207 wwn_to_u64(vport->fc_portname.u.wwn), in lpfc_nvme_info_show()
208 wwn_to_u64(vport->fc_nodename.u.wwn), in lpfc_nvme_info_show()
343 wwn_to_u64(vport->fc_portname.u.wwn)); in lpfc_nvme_info_show()
370 wwn_to_u64(vport->fc_portname.u.wwn), in lpfc_nvme_info_show()
371 wwn_to_u64(vport->fc_nodename.u.wwn), in lpfc_nvme_info_show()
2727 lpfc_wwn_set(const char *buf, size_t cnt, char wwn[]) in lpfc_wwn_set() argument
2739 memset(wwn, 0, WWN_SZ); in lpfc_wwn_set()
2752 wwn[i/2] = j & 0xff; in lpfc_wwn_set()
4454 ndlp->nlp_portname.u.wwn[0], in sysfs_drvr_stat_data_read()
[all …]
Dlpfc_scsi.c1035 if (phba->lpfc_injerr_wwpn.u.wwn[0] && in lpfc_bg_err_inject()
4547 ndlp->nlp_nodename.u.wwn[0], in lpfc_queuecommand()
4548 ndlp->nlp_nodename.u.wwn[1], in lpfc_queuecommand()
4549 ndlp->nlp_nodename.u.wwn[2], in lpfc_queuecommand()
4550 ndlp->nlp_nodename.u.wwn[3], in lpfc_queuecommand()
4551 ndlp->nlp_nodename.u.wwn[4], in lpfc_queuecommand()
4552 ndlp->nlp_nodename.u.wwn[5], in lpfc_queuecommand()
4553 ndlp->nlp_nodename.u.wwn[6], in lpfc_queuecommand()
4554 ndlp->nlp_nodename.u.wwn[7], in lpfc_queuecommand()
4555 ndlp->nlp_portname.u.wwn[0], in lpfc_queuecommand()
[all …]
/Linux-v5.4/drivers/target/
Dtarget_core_fabric_configfs.c808 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in target_fabric_tpg_release() local
809 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_tpg_release()
828 struct se_wwn *wwn = container_of(group, struct se_wwn, wwn_group); in target_fabric_make_tpg() local
829 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_make_tpg()
837 se_tpg = tf->tf_ops->fabric_make_tpg(wwn, name); in target_fabric_make_tpg()
890 struct se_wwn *wwn = container_of(to_config_group(item), in target_fabric_release_wwn() local
892 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_release_wwn()
894 configfs_remove_default_groups(&wwn->fabric_stat_group); in target_fabric_release_wwn()
895 tf->tf_ops->fabric_drop_wwn(wwn); in target_fabric_release_wwn()
929 struct se_wwn *wwn; in target_fabric_make_wwn() local
[all …]
Dtarget_core_pscsi.c167 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() argument
174 BUILD_BUG_ON(sizeof(wwn->vendor) != INQUIRY_VENDOR_LEN + 1); in pscsi_set_inquiry_info()
175 snprintf(wwn->vendor, sizeof(wwn->vendor), in pscsi_set_inquiry_info()
177 BUILD_BUG_ON(sizeof(wwn->model) != INQUIRY_MODEL_LEN + 1); in pscsi_set_inquiry_info()
178 snprintf(wwn->model, sizeof(wwn->model), in pscsi_set_inquiry_info()
180 BUILD_BUG_ON(sizeof(wwn->revision) != INQUIRY_REVISION_LEN + 1); in pscsi_set_inquiry_info()
181 snprintf(wwn->revision, sizeof(wwn->revision), in pscsi_set_inquiry_info()
186 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial() argument
206 snprintf(&wwn->unit_serial[0], INQUIRY_VPD_SERIAL_LEN, "%s", &buf[4]); in pscsi_get_inquiry_vpd_serial()
208 wwn->t10_dev->dev_flags |= DF_FIRMWARE_VPD_UNIT_SERIAL; in pscsi_get_inquiry_vpd_serial()
[all …]
Dtarget_core_stat.c768 struct t10_wwn *wwn; in target_stat_transport_dev_name_show() local
774 wwn = &dev->t10_wwn; in target_stat_transport_dev_name_show()
778 (strlen(wwn->unit_serial)) ? wwn->unit_serial : in target_stat_transport_dev_name_show()
779 wwn->vendor); in target_stat_transport_dev_name_show()
Dtarget_core_device.c709 struct t10_wwn *wwn = &dev->t10_wwn; in scsi_dump_inquiry() local
716 wwn->vendor); in scsi_dump_inquiry()
718 wwn->model); in scsi_dump_inquiry()
720 wwn->revision); in scsi_dump_inquiry()
/Linux-v5.4/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c44 static ssize_t tcm_qla2xxx_parse_wwn(const char *name, u64 *wwn, int strict) in tcm_qla2xxx_parse_wwn() argument
53 *wwn = 0; in tcm_qla2xxx_parse_wwn()
78 *wwn = (*wwn << 4) | nibble; in tcm_qla2xxx_parse_wwn()
87 static ssize_t tcm_qla2xxx_format_wwn(char *buf, size_t len, u64 wwn) in tcm_qla2xxx_format_wwn() argument
91 put_unaligned_be64(wwn, b); in tcm_qla2xxx_format_wwn()
103 u8 wwn[8]; in tcm_qla2xxx_npiv_extract_wwn() local
105 memset(wwn, 0, sizeof(wwn)); in tcm_qla2xxx_npiv_extract_wwn()
118 wwn[i/2] = j & 0xff; in tcm_qla2xxx_npiv_extract_wwn()
123 *nm = wwn_to_u64(wwn); in tcm_qla2xxx_npiv_extract_wwn()
980 static struct se_portal_group *tcm_qla2xxx_make_tpg(struct se_wwn *wwn, in tcm_qla2xxx_make_tpg() argument
[all …]
/Linux-v5.4/drivers/scsi/csiostor/
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-v5.4/drivers/scsi/bfa/
Dbfa_cs.h288 wwn2str(char *wwn_str, u64 wwn) in wwn2str() argument
291 u64 wwn; in wwn2str() member
295 w.wwn = wwn; in wwn2str()
Dbfa_fcbuild.h262 u16 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn);
263 u16 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn);
Dbfa_fcbuild.c1314 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) in fc_gmal_req_build() argument
1325 gmal->wwn = wwn; in fc_gmal_req_build()
1334 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) in fc_gfn_req_build() argument
1345 gfn->wwn = wwn; in fc_gfn_req_build()
Dbfad_drv.h176 wwn_t wwn[BFA_FCS_MAX_LPORTS]; member
/Linux-v5.4/drivers/target/loopback/
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-v5.4/include/scsi/
Dlibfcoe.h257 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type);
260 void fcoe_wwn_to_str(u64 wwn, char *buf, int len);
Dscsi_transport_fc.h745 static inline u64 wwn_to_u64(const u8 *wwn) in wwn_to_u64() argument
747 return get_unaligned_be64(wwn); in wwn_to_u64()
750 static inline void u64_to_wwn(u64 inm, u8 *wwn) in u64_to_wwn() argument
752 put_unaligned_be64(inm, wwn); in u64_to_wwn()
/Linux-v5.4/drivers/target/sbp/
Dsbp_target.c1912 static ssize_t sbp_parse_wwn(const char *name, u64 *wwn) in sbp_parse_wwn() argument
1918 *wwn = 0; in sbp_parse_wwn()
1936 *wwn = (*wwn << 4) | nibble; in sbp_parse_wwn()
1946 static ssize_t sbp_format_wwn(char *buf, size_t len, u64 wwn) in sbp_format_wwn() argument
1948 return snprintf(buf, len, "%016llx", wwn); in sbp_format_wwn()
1985 static struct se_portal_group *sbp_make_tpg(struct se_wwn *wwn, in sbp_make_tpg() argument
1989 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_make_tpg()
2026 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg()
2072 static void sbp_drop_tport(struct se_wwn *wwn) in sbp_drop_tport() argument
2075 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_drop_tport()
/Linux-v5.4/drivers/target/iscsi/
Discsi_target_configfs.c1085 static struct se_portal_group *lio_target_tiqn_addtpg(struct se_wwn *wwn, in lio_target_tiqn_addtpg() argument
1094 tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_tiqn_addtpg()
1114 ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); in lio_target_tiqn_addtpg()
1181 static void lio_target_add_wwn_groups(struct se_wwn *wwn) in lio_target_add_wwn_groups() argument
1183 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_add_wwn_groups()
1212 struct se_wwn *wwn) in lio_target_call_coredeltiqn() argument
1214 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_call_coredeltiqn()
/Linux-v5.4/drivers/scsi/fcoe/
Dfcoe_transport.c228 void fcoe_wwn_to_str(u64 wwn, char *buf, int len) in fcoe_wwn_to_str() argument
232 u64_to_wwn(wwn, wwpn); in fcoe_wwn_to_str()
290 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in fcoe_get_wwn() argument
295 return ops->ndo_fcoe_get_wwn(netdev, wwn, type); in fcoe_get_wwn()
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()
1972 u64 wwn; in fcoe_wwn_from_mac() local
1984 wwn = host_mac | ((u64) scheme << 60); in fcoe_wwn_from_mac()
1991 wwn |= (u64) port << 48; in fcoe_wwn_from_mac()
1998 return wwn; in fcoe_wwn_from_mac()
2277 struct fip_wwn_desc *wwn = NULL; in fcoe_ctlr_vn_parse() local
2347 wwn = (struct fip_wwn_desc *)desc; in fcoe_ctlr_vn_parse()
2349 get_unaligned_be64(&wwn->fd_wwn); in fcoe_ctlr_vn_parse()
[all …]
/Linux-v5.4/drivers/infiniband/ulp/srpt/
Dib_srpt.c2990 struct se_wwn *wwn; in srpt_lookup_wwn() local
2993 wwn = __srpt_lookup_wwn(name); in srpt_lookup_wwn()
2996 return wwn; in srpt_lookup_wwn()
3721 static struct se_portal_group *srpt_make_tpg(struct se_wwn *wwn, in srpt_make_tpg() argument
3724 struct srpt_port *sport = wwn->priv; in srpt_make_tpg()
3728 WARN_ON_ONCE(wwn != &sport->port_guid_wwn && in srpt_make_tpg()
3729 wwn != &sport->port_gid_wwn); in srpt_make_tpg()
3730 tpg = wwn == &sport->port_guid_wwn ? &sport->port_guid_tpg : in srpt_make_tpg()
3732 res = core_tpg_register(wwn, tpg, SCSI_PROTOCOL_SRP); in srpt_make_tpg()
3768 static void srpt_drop_tport(struct se_wwn *wwn) in srpt_drop_tport() argument
/Linux-v5.4/drivers/xen/
Dxen-scsiback.c1368 static void scsiback_drop_tport(struct se_wwn *wwn) in scsiback_drop_tport() argument
1370 struct scsiback_tport *tport = container_of(wwn, in scsiback_drop_tport()
1735 scsiback_make_tpg(struct se_wwn *wwn, const char *name) in scsiback_make_tpg() argument
1737 struct scsiback_tport *tport = container_of(wwn, in scsiback_make_tpg()
1760 ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); in scsiback_make_tpg()

123