Home
last modified time | relevance | path

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

123

/linux/drivers/scsi/lpfc/
A 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 …]
A Dlpfc_nportdisc.c160 sp->nodeName.u.wwn[0], sp->nodeName.u.wwn[1], in lpfc_check_sparm()
161 sp->nodeName.u.wwn[2], sp->nodeName.u.wwn[3], in lpfc_check_sparm()
162 sp->nodeName.u.wwn[4], sp->nodeName.u.wwn[5], in lpfc_check_sparm()
163 sp->nodeName.u.wwn[6], sp->nodeName.u.wwn[7]); in lpfc_check_sparm()
341 if (wwn_to_u64(sp->portName.u.wwn) == 0) { in lpfc_rcv_plogi()
350 if (wwn_to_u64(sp->nodeName.u.wwn) == 0) { in lpfc_rcv_plogi()
360 nlp_portwwn = wwn_to_u64(ndlp->nlp_portname.u.wwn); in lpfc_rcv_plogi()
425 nlp_portwwn != wwn_to_u64(sp->portName.u.wwn)) in lpfc_rcv_plogi()
432 wwn_to_u64(sp->portName.u.wwn)); in lpfc_rcv_plogi()
1339 (wwn_to_u64(sp->portName.u.wwn) == 0 || in lpfc_cmpl_plogi_plogi_issue()
[all …]
A Dlpfc_mbox.c904 memcpy(mb->un.varRegVpi.wwn, &vport->fc_portname, in lpfc_reg_vpi()
906 mb->un.varRegVpi.wwn[0] = cpu_to_le32(mb->un.varRegVpi.wwn[0]); in lpfc_reg_vpi()
907 mb->un.varRegVpi.wwn[1] = cpu_to_le32(mb->un.varRegVpi.wwn[1]); in lpfc_reg_vpi()
2171 memcpy(reg_vfi->wwn, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_reg_vfi()
2172 reg_vfi->wwn[0] = cpu_to_le32(reg_vfi->wwn[0]); in lpfc_reg_vfi()
2173 reg_vfi->wwn[1] = cpu_to_le32(reg_vfi->wwn[1]); in lpfc_reg_vfi()
2219 reg_vfi->wwn[0], reg_vfi->wwn[1], vport->fc_flag, in lpfc_reg_vfi()
A Dlpfc_attr.c540 wwn_to_u64(vport->fc_portname.u.wwn), in lpfc_nvme_info_show()
2845 memset(wwn, 0, WWN_SZ); in lpfc_wwn_set()
2858 wwn[i/2] = j & 0xff; in lpfc_wwn_set()
4605 ndlp->nlp_portname.u.wwn[0], in sysfs_drvr_stat_data_read()
4606 ndlp->nlp_portname.u.wwn[1], in sysfs_drvr_stat_data_read()
4607 ndlp->nlp_portname.u.wwn[2], in sysfs_drvr_stat_data_read()
4608 ndlp->nlp_portname.u.wwn[3], in sysfs_drvr_stat_data_read()
4609 ndlp->nlp_portname.u.wwn[4], in sysfs_drvr_stat_data_read()
4610 ndlp->nlp_portname.u.wwn[5], in sysfs_drvr_stat_data_read()
4611 ndlp->nlp_portname.u.wwn[6], in sysfs_drvr_stat_data_read()
[all …]
A Dlpfc_scsi.c5656 ndlp->nlp_nodename.u.wwn[0], in lpfc_queuecommand()
5657 ndlp->nlp_nodename.u.wwn[1], in lpfc_queuecommand()
5658 ndlp->nlp_nodename.u.wwn[2], in lpfc_queuecommand()
5659 ndlp->nlp_nodename.u.wwn[3], in lpfc_queuecommand()
5660 ndlp->nlp_nodename.u.wwn[4], in lpfc_queuecommand()
5661 ndlp->nlp_nodename.u.wwn[5], in lpfc_queuecommand()
5662 ndlp->nlp_nodename.u.wwn[6], in lpfc_queuecommand()
5663 ndlp->nlp_nodename.u.wwn[7], in lpfc_queuecommand()
5664 ndlp->nlp_portname.u.wwn[0], in lpfc_queuecommand()
5665 ndlp->nlp_portname.u.wwn[1], in lpfc_queuecommand()
[all …]
/linux/drivers/target/
A Dtarget_core_fabric_configfs.c808 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in target_fabric_tpg_release() local
964 tf->tf_ops->fabric_drop_wwn(wwn); in target_fabric_release_wwn()
1014 wwn->cmd_compl_affinity = compl_val; in target_fabric_wwn_cmd_completion_affinity_store()
1027 wwn->cmd_compl_affinity = compl_val; in target_fabric_wwn_cmd_completion_affinity_store()
1049 struct se_wwn *wwn; in target_fabric_make_wwn() local
1057 if (!wwn || IS_ERR(wwn)) in target_fabric_make_wwn()
1061 wwn->wwn_tf = tf; in target_fabric_make_wwn()
1067 configfs_add_default_group(&wwn->fabric_stat_group, &wwn->wwn_group); in target_fabric_make_wwn()
1071 configfs_add_default_group(&wwn->param_group, &wwn->wwn_group); in target_fabric_make_wwn()
1074 tf->tf_ops->add_wwn_groups(wwn); in target_fabric_make_wwn()
[all …]
A Dtarget_core_pscsi.c165 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() argument
172 BUILD_BUG_ON(sizeof(wwn->vendor) != INQUIRY_VENDOR_LEN + 1); in pscsi_set_inquiry_info()
173 snprintf(wwn->vendor, sizeof(wwn->vendor), in pscsi_set_inquiry_info()
175 BUILD_BUG_ON(sizeof(wwn->model) != INQUIRY_MODEL_LEN + 1); in pscsi_set_inquiry_info()
176 snprintf(wwn->model, sizeof(wwn->model), in pscsi_set_inquiry_info()
178 BUILD_BUG_ON(sizeof(wwn->revision) != INQUIRY_REVISION_LEN + 1); in pscsi_set_inquiry_info()
179 snprintf(wwn->revision, sizeof(wwn->revision), in pscsi_set_inquiry_info()
204 snprintf(&wwn->unit_serial[0], INQUIRY_VPD_SERIAL_LEN, "%s", &buf[4]); in pscsi_get_inquiry_vpd_serial()
206 wwn->t10_dev->dev_flags |= DF_FIRMWARE_VPD_UNIT_SERIAL; in pscsi_get_inquiry_vpd_serial()
218 struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_device_ident() argument
[all …]
A Dtarget_core_stat.c765 struct t10_wwn *wwn; in target_stat_transport_dev_name_show() local
771 wwn = &dev->t10_wwn; in target_stat_transport_dev_name_show()
775 (strlen(wwn->unit_serial)) ? wwn->unit_serial : in target_stat_transport_dev_name_show()
776 wwn->vendor); in target_stat_transport_dev_name_show()
A Dtarget_core_device.c705 struct t10_wwn *wwn = &dev->t10_wwn; in scsi_dump_inquiry() local
712 wwn->vendor); in scsi_dump_inquiry()
714 wwn->model); in scsi_dump_inquiry()
716 wwn->revision); in scsi_dump_inquiry()
/linux/drivers/target/tcm_fc/
A Dtfc_conf.c58 *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()
356 static void ft_del_wwn(struct se_wwn *wwn) in ft_del_wwn() argument
[all …]
/linux/drivers/scsi/qla2xxx/
A Dtcm_qla2xxx.c53 *wwn = 0; in tcm_qla2xxx_parse_wwn()
78 *wwn = (*wwn << 4) | nibble; in tcm_qla2xxx_parse_wwn()
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()
996 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_make_tpg()
1092 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_npiv_make_tpg()
1635 struct tcm_qla2xxx_lport *lport = container_of(wwn, in tcm_qla2xxx_drop_lport()
[all …]
A Dqla_dfs.c108 char wwn[32]; in qla2x00_dfs_create_rport() local
117 sprintf(wwn, "pn-%016llx", wwn_to_u64(fp->port_name)); in qla2x00_dfs_create_rport()
118 fp->dfs_rport_dir = debugfs_create_dir(wwn, vha->dfs_rport_root); in qla2x00_dfs_create_rport()
/linux/drivers/scsi/csiostor/
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/
A Dbfa_cs.h288 wwn2str(char *wwn_str, u64 wwn) in wwn2str() argument
291 u64 wwn; in wwn2str() member
295 w.wwn = wwn; in wwn2str()
A 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);
A 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()
/linux/drivers/target/loopback/
A Dtcm_loop.c953 static struct se_portal_group *tcm_loop_make_naa_tpg(struct se_wwn *wwn, in tcm_loop_make_naa_tpg() argument
956 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_make_naa_tpg()
980 ret = core_tpg_register(wwn, &tl_tpg->tl_se_tpg, tl_hba->tl_proto_id); in tcm_loop_make_naa_tpg()
986 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_make_naa_tpg()
993 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_loop_drop_naa_tpg() local
1015 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_drop_naa_tpg()
1089 struct se_wwn *wwn) in tcm_loop_drop_scsi_hba() argument
1091 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_drop_scsi_hba()
/linux/drivers/scsi/elx/efct/
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()
861 efct_lio_drop_nport(struct se_wwn *wwn) in efct_lio_drop_nport() argument
864 container_of(wwn, struct efct_lio_nport, nport_wwn); in efct_lio_drop_nport()
875 efct_lio_npiv_drop_nport(struct se_wwn *wwn) in efct_lio_npiv_drop_nport() argument
878 container_of(wwn, struct efct_lio_vport, vport_wwn); in efct_lio_npiv_drop_nport()
901 efct_lio_make_tpg(struct se_wwn *wwn, const char *name) in efct_lio_make_tpg() argument
904 container_of(wwn, struct efct_lio_nport, nport_wwn); in efct_lio_make_tpg()
929 ret = core_tpg_register(wwn, &tpg->tpg, SCSI_PROTOCOL_FCP); in efct_lio_make_tpg()
958 efct_lio_npiv_make_tpg(struct se_wwn *wwn, const char *name) in efct_lio_npiv_make_tpg() argument
[all …]
/linux/include/scsi/
A 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);
A Dscsi_transport_fc.h805 static inline u64 wwn_to_u64(const u8 *wwn) in wwn_to_u64() argument
807 return get_unaligned_be64(wwn); in wwn_to_u64()
810 static inline void u64_to_wwn(u64 inm, u8 *wwn) in u64_to_wwn() argument
812 put_unaligned_be64(inm, wwn); in u64_to_wwn()
/linux/drivers/infiniband/ulp/srpt/
A Dib_srpt.c568 sport->port_guid_id.wwn.priv = sport; in srpt_refresh_port()
572 sport->port_gid_id.wwn.priv = sport; in srpt_refresh_port()
3002 return &sport->port_guid_id.wwn; in __srpt_lookup_wwn()
3004 return &sport->port_gid_id.wwn; in __srpt_lookup_wwn()
3013 struct se_wwn *wwn; in srpt_lookup_wwn() local
3016 wwn = __srpt_lookup_wwn(name); in srpt_lookup_wwn()
3019 return wwn; in srpt_lookup_wwn()
3287 struct srpt_port *sport = wwn->priv; in srpt_wwn_to_sport_id()
3289 if (wwn == &sport->port_guid_id.wwn) in srpt_wwn_to_sport_id()
3291 if (wwn == &sport->port_gid_id.wwn) in srpt_wwn_to_sport_id()
[all …]
/linux/drivers/target/sbp/
A Dsbp_target.c1909 static ssize_t sbp_parse_wwn(const char *name, u64 *wwn) in sbp_parse_wwn() argument
1915 *wwn = 0; in sbp_parse_wwn()
1933 *wwn = (*wwn << 4) | nibble; in sbp_parse_wwn()
1943 static ssize_t sbp_format_wwn(char *buf, size_t len, u64 wwn) in sbp_format_wwn() argument
1945 return snprintf(buf, len, "%016llx", wwn); in sbp_format_wwn()
1982 static struct se_portal_group *sbp_make_tpg(struct se_wwn *wwn, in sbp_make_tpg() argument
1986 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_make_tpg()
2023 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg()
2069 static void sbp_drop_tport(struct se_wwn *wwn) in sbp_drop_tport() argument
2072 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_drop_tport()
/linux/drivers/target/iscsi/
A Discsi_target_configfs.c1025 static struct se_portal_group *lio_target_tiqn_addtpg(struct se_wwn *wwn, in lio_target_tiqn_addtpg() argument
1034 tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_tiqn_addtpg()
1054 ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); in lio_target_tiqn_addtpg()
1152 static void lio_target_add_wwn_groups(struct se_wwn *wwn) in lio_target_add_wwn_groups() argument
1154 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_add_wwn_groups()
1183 struct se_wwn *wwn) in lio_target_call_coredeltiqn() argument
1185 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_call_coredeltiqn()
/linux/drivers/scsi/fcoe/
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()
A Dfcoe_ctlr.c896 struct fip_wwn_desc *wwn; in fcoe_ctlr_parse_adv() local
957 wwn = (struct fip_wwn_desc *)desc; in fcoe_ctlr_parse_adv()
1975 u64 wwn; in fcoe_wwn_from_mac() local
1994 wwn |= (u64) port << 48; in fcoe_wwn_from_mac()
2001 return wwn; in fcoe_wwn_from_mac()
2280 struct fip_wwn_desc *wwn = NULL; in fcoe_ctlr_vn_parse() local
2350 wwn = (struct fip_wwn_desc *)desc; in fcoe_ctlr_vn_parse()
2352 get_unaligned_be64(&wwn->fd_wwn); in fcoe_ctlr_vn_parse()
2811 struct fip_wwn_desc *wwn = NULL; in fcoe_ctlr_vlan_parse() local
2870 wwn = (struct fip_wwn_desc *)desc; in fcoe_ctlr_vlan_parse()
[all …]

Completed in 87 milliseconds

123