Home
last modified time | relevance | path

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

123

/linux/drivers/target/ !
H A Dtarget_core_fabric_configfs.c809 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in target_fabric_tpg_release() local
810 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_tpg_release()
930 struct se_wwn *wwn = container_of(group, struct se_wwn, wwn_group); in target_fabric_make_tpg() local
931 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_make_tpg()
939 se_tpg = tf->tf_ops->fabric_make_tpg(wwn, name); in target_fabric_make_tpg()
992 struct se_wwn *wwn = container_of(to_config_group(item), in target_fabric_release_wwn() local
994 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_release_wwn()
996 configfs_remove_default_groups(&wwn->fabric_stat_group); in target_fabric_release_wwn()
997 configfs_remove_default_groups(&wwn->param_group); in target_fabric_release_wwn()
998 tf->tf_ops->fabric_drop_wwn(wwn); in target_fabric_release_wwn()
[all …]
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_device.c688 struct t10_wwn *wwn = &dev->t10_wwn; in scsi_dump_inquiry() local
695 wwn->vendor); in scsi_dump_inquiry()
697 wwn->model); in scsi_dump_inquiry()
699 wwn->revision); in scsi_dump_inquiry()
/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_nportdisc.c169 sp->nodeName.u.wwn[0], sp->nodeName.u.wwn[1], in lpfc_check_sparm()
170 sp->nodeName.u.wwn[2], sp->nodeName.u.wwn[3], in lpfc_check_sparm()
171 sp->nodeName.u.wwn[4], sp->nodeName.u.wwn[5], in lpfc_check_sparm()
172 sp->nodeName.u.wwn[6], sp->nodeName.u.wwn[7]); in lpfc_check_sparm()
381 if (wwn_to_u64(sp->portName.u.wwn) == 0) { in lpfc_rcv_plogi()
390 if (wwn_to_u64(sp->nodeName.u.wwn) == 0) { in lpfc_rcv_plogi()
400 nlp_portwwn = wwn_to_u64(ndlp->nlp_portname.u.wwn); in lpfc_rcv_plogi()
456 nlp_portwwn != wwn_to_u64(sp->portName.u.wwn)) in lpfc_rcv_plogi()
463 wwn_to_u64(sp->portName.u.wwn)); in lpfc_rcv_plogi()
1393 (wwn_to_u64(sp->portName.u.wwn) == 0 || in lpfc_cmpl_plogi_plogi_issue()
[all …]
H A Dlpfc_mbox.c954 memcpy(mb->un.varRegVpi.wwn, &vport->fc_portname, in lpfc_reg_vpi()
956 mb->un.varRegVpi.wwn[0] = cpu_to_le32(mb->un.varRegVpi.wwn[0]); in lpfc_reg_vpi()
957 mb->un.varRegVpi.wwn[1] = cpu_to_le32(mb->un.varRegVpi.wwn[1]); in lpfc_reg_vpi()
2224 memcpy(reg_vfi->wwn, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_reg_vfi()
2225 reg_vfi->wwn[0] = cpu_to_le32(reg_vfi->wwn[0]); in lpfc_reg_vfi()
2226 reg_vfi->wwn[1] = cpu_to_le32(reg_vfi->wwn[1]); in lpfc_reg_vfi()
2272 reg_vfi->wwn[0], reg_vfi->wwn[1], vport->fc_flag, in lpfc_reg_vfi()
H A Dlpfc_scsi.c1014 if (phba->lpfc_injerr_wwpn.u.wwn[0] && in lpfc_bg_err_inject()
5304 ndlp->nlp_nodename.u.wwn[0], in lpfc_queuecommand()
5305 ndlp->nlp_nodename.u.wwn[1], in lpfc_queuecommand()
5306 ndlp->nlp_nodename.u.wwn[2], in lpfc_queuecommand()
5307 ndlp->nlp_nodename.u.wwn[3], in lpfc_queuecommand()
5308 ndlp->nlp_nodename.u.wwn[4], in lpfc_queuecommand()
5309 ndlp->nlp_nodename.u.wwn[5], in lpfc_queuecommand()
5310 ndlp->nlp_nodename.u.wwn[6], in lpfc_queuecommand()
5311 ndlp->nlp_nodename.u.wwn[7], in lpfc_queuecommand()
5312 ndlp->nlp_portname.u.wwn[0], in lpfc_queuecommand()
[all …]
/linux/drivers/target/tcm_fc/ !
H A Dtfc_conf.c50 static ssize_t ft_parse_wwn(const char *name, u64 *wwn, int strict) in ft_parse_wwn() argument
59 *wwn = 0; in ft_parse_wwn()
81 *wwn = (*wwn << 4) | val; in ft_parse_wwn()
90 ssize_t ft_format_wwn(char *buf, size_t len, u64 wwn) in ft_format_wwn() argument
94 put_unaligned_be64(wwn, b); in ft_format_wwn()
102 u64 *wwn = arg; in ft_wwn_show() local
105 len = ft_format_wwn(buf, PAGE_SIZE - 2, *wwn); in ft_wwn_show()
113 u64 wwn; in ft_wwn_store() local
115 ret = ft_parse_wwn(buf, &wwn, 0); in ft_wwn_store()
117 *(u64 *)arg = wwn; in ft_wwn_store()
[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/scsi/qla2xxx/ !
H A Dtcm_qla2xxx.c45 static ssize_t tcm_qla2xxx_parse_wwn(const char *name, u64 *wwn, int strict) in tcm_qla2xxx_parse_wwn() argument
54 *wwn = 0; in tcm_qla2xxx_parse_wwn()
79 *wwn = (*wwn << 4) | nibble; in tcm_qla2xxx_parse_wwn()
88 static ssize_t tcm_qla2xxx_format_wwn(char *buf, size_t len, u64 wwn) in tcm_qla2xxx_format_wwn() argument
92 put_unaligned_be64(wwn, b); in tcm_qla2xxx_format_wwn()
104 u8 wwn[8]; in tcm_qla2xxx_npiv_extract_wwn() local
106 memset(wwn, 0, sizeof(wwn)); in tcm_qla2xxx_npiv_extract_wwn()
119 wwn[i/2] = j & 0xff; in tcm_qla2xxx_npiv_extract_wwn()
124 *nm = wwn_to_u64(wwn); in tcm_qla2xxx_npiv_extract_wwn()
999 static struct se_portal_group *tcm_qla2xxx_make_tpg(struct se_wwn *wwn, in tcm_qla2xxx_make_tpg() argument
[all …]
/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);
/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/elx/efct/ !
H A Defct_lio.c20 efct_format_wwn(char *str, size_t len, const char *pre, u64 wwn) in efct_format_wwn() argument
24 put_unaligned_be64(wwn, a); in efct_format_wwn()
844 efct_lio_drop_nport(struct se_wwn *wwn) in efct_lio_drop_nport() argument
847 container_of(wwn, struct efct_lio_nport, nport_wwn); in efct_lio_drop_nport()
858 efct_lio_npiv_drop_nport(struct se_wwn *wwn) in efct_lio_npiv_drop_nport() argument
861 container_of(wwn, struct efct_lio_vport, vport_wwn); in efct_lio_npiv_drop_nport()
884 efct_lio_make_tpg(struct se_wwn *wwn, const char *name) in efct_lio_make_tpg() argument
887 container_of(wwn, struct efct_lio_nport, nport_wwn); in efct_lio_make_tpg()
912 ret = core_tpg_register(wwn, &tpg->tpg, SCSI_PROTOCOL_FCP); in efct_lio_make_tpg()
941 efct_lio_npiv_make_tpg(struct se_wwn *wwn, const char *name) in efct_lio_npiv_make_tpg() argument
[all …]
/linux/include/scsi/ !
H A Dlibfcoe.h262 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type);
265 void fcoe_wwn_to_str(u64 wwn, char *buf, int len);
H A Dscsi_transport_fc.h811 static inline u64 wwn_to_u64(const u8 *wwn) in wwn_to_u64() argument
813 return get_unaligned_be64(wwn); in wwn_to_u64()
816 static inline void u64_to_wwn(u64 inm, u8 *wwn) in u64_to_wwn() argument
818 put_unaligned_be64(inm, wwn); in u64_to_wwn()
/linux/drivers/target/sbp/ !
H A Dsbp_target.c1883 static ssize_t sbp_parse_wwn(const char *name, u64 *wwn) in sbp_parse_wwn() argument
1889 *wwn = 0; in sbp_parse_wwn()
1907 *wwn = (*wwn << 4) | nibble; in sbp_parse_wwn()
1917 static ssize_t sbp_format_wwn(char *buf, size_t len, u64 wwn) in sbp_format_wwn() argument
1919 return snprintf(buf, len, "%016llx", wwn); in sbp_format_wwn()
1956 static struct se_portal_group *sbp_make_tpg(struct se_wwn *wwn, in sbp_make_tpg() argument
1960 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_make_tpg()
1997 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg()
2043 static void sbp_drop_tport(struct se_wwn *wwn) in sbp_drop_tport() argument
2046 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_drop_tport()
/linux/drivers/target/iscsi/ !
H A Discsi_target_configfs.c1040 static struct se_portal_group *lio_target_tiqn_addtpg(struct se_wwn *wwn, in lio_target_tiqn_addtpg() argument
1049 tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_tiqn_addtpg()
1069 ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); in lio_target_tiqn_addtpg()
1202 static void lio_target_add_wwn_groups(struct se_wwn *wwn) in lio_target_add_wwn_groups() argument
1204 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_add_wwn_groups()
1233 struct se_wwn *wwn) in lio_target_call_coredeltiqn() argument
1235 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_call_coredeltiqn()
/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.c3369 static struct srpt_port_id *srpt_wwn_to_sport_id(struct se_wwn *wwn) in srpt_wwn_to_sport_id() argument
3371 struct srpt_port *sport = wwn->priv; in srpt_wwn_to_sport_id()
3373 if (sport->guid_id && &sport->guid_id->wwn == wwn) in srpt_wwn_to_sport_id()
3375 if (sport->gid_id && &sport->gid_id->wwn == wwn) in srpt_wwn_to_sport_id()
3784 static struct se_portal_group *srpt_make_tpg(struct se_wwn *wwn, in srpt_make_tpg() argument
3787 struct srpt_port_id *sport_id = srpt_wwn_to_sport_id(wwn); in srpt_make_tpg()
3795 res = core_tpg_register(wwn, &stpg->tpg, SCSI_PROTOCOL_SRP); in srpt_make_tpg()
3846 return &(*papi.port_id)->wwn; in srpt_make_tport()
3855 port_id->wwn.priv = sport; in srpt_make_tport()
3861 return &port_id->wwn; in srpt_make_tport()
[all …]
H A Dib_srpt.h391 struct se_wwn wwn; member

123