Home
last modified time | relevance | path

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

123

/drivers/scsi/lpfc/
Dlpfc_vport.c179 lpfc_valid_wwn_format(struct lpfc_hba *phba, struct lpfc_name *wwn, in lpfc_valid_wwn_format() argument
185 if (!((wwn->u.wwn[0] >> 4) == 1 && in lpfc_valid_wwn_format()
186 ((wwn->u.wwn[0] & 0xf) != 0 || (wwn->u.wwn[1] & 0xf) != 0))) in lpfc_valid_wwn_format()
193 wwn->u.wwn[0], wwn->u.wwn[1], in lpfc_valid_wwn_format()
194 wwn->u.wwn[2], wwn->u.wwn[3], in lpfc_valid_wwn_format()
195 wwn->u.wwn[4], wwn->u.wwn[5], in lpfc_valid_wwn_format()
196 wwn->u.wwn[6], wwn->u.wwn[7]); in lpfc_valid_wwn_format()
360 u64_to_wwn(fc_vport->node_name, vport->fc_nodename.u.wwn); in lpfc_vport_create()
361 u64_to_wwn(fc_vport->port_name, vport->fc_portname.u.wwn); in lpfc_vport_create()
363 memcpy(&vport->fc_sparam.portName, vport->fc_portname.u.wwn, 8); in lpfc_vport_create()
[all …]
Dlpfc_nportdisc.c156 sp->nodeName.u.wwn[0], sp->nodeName.u.wwn[1], in lpfc_check_sparm()
157 sp->nodeName.u.wwn[2], sp->nodeName.u.wwn[3], in lpfc_check_sparm()
158 sp->nodeName.u.wwn[4], sp->nodeName.u.wwn[5], in lpfc_check_sparm()
159 sp->nodeName.u.wwn[6], sp->nodeName.u.wwn[7]); in lpfc_check_sparm()
292 if (wwn_to_u64(sp->portName.u.wwn) == 0) { in lpfc_rcv_plogi()
301 if (wwn_to_u64(sp->nodeName.u.wwn) == 0) { in lpfc_rcv_plogi()
311 nlp_portwwn = wwn_to_u64(ndlp->nlp_portname.u.wwn); in lpfc_rcv_plogi()
363 nlp_portwwn != wwn_to_u64(sp->portName.u.wwn)) in lpfc_rcv_plogi()
370 wwn_to_u64(sp->portName.u.wwn)); in lpfc_rcv_plogi()
1059 (wwn_to_u64(sp->portName.u.wwn) == 0 || in lpfc_cmpl_plogi_plogi_issue()
[all …]
Dlpfc_mbox.c892 memcpy(mb->un.varRegVpi.wwn, &vport->fc_portname, in lpfc_reg_vpi()
894 mb->un.varRegVpi.wwn[0] = cpu_to_le32(mb->un.varRegVpi.wwn[0]); in lpfc_reg_vpi()
895 mb->un.varRegVpi.wwn[1] = cpu_to_le32(mb->un.varRegVpi.wwn[1]); in lpfc_reg_vpi()
2143 memcpy(reg_vfi->wwn, &vport->fc_portname, sizeof(struct lpfc_name)); in lpfc_reg_vfi()
2144 reg_vfi->wwn[0] = cpu_to_le32(reg_vfi->wwn[0]); in lpfc_reg_vfi()
2145 reg_vfi->wwn[1] = cpu_to_le32(reg_vfi->wwn[1]); in lpfc_reg_vfi()
2171 reg_vfi->wwn[0], reg_vfi->wwn[1], vport->fc_flag, in lpfc_reg_vfi()
Dlpfc_attr.c2003 lpfc_wwn_set(const char *buf, size_t cnt, char wwn[]) in lpfc_wwn_set() argument
2015 memset(wwn, 0, WWN_SZ); in lpfc_wwn_set()
2028 wwn[i/2] = j & 0xff; in lpfc_wwn_set()
3616 ndlp->nlp_portname.u.wwn[0], in sysfs_drvr_stat_data_read()
3617 ndlp->nlp_portname.u.wwn[1], in sysfs_drvr_stat_data_read()
3618 ndlp->nlp_portname.u.wwn[2], in sysfs_drvr_stat_data_read()
3619 ndlp->nlp_portname.u.wwn[3], in sysfs_drvr_stat_data_read()
3620 ndlp->nlp_portname.u.wwn[4], in sysfs_drvr_stat_data_read()
3621 ndlp->nlp_portname.u.wwn[5], in sysfs_drvr_stat_data_read()
3622 ndlp->nlp_portname.u.wwn[6], in sysfs_drvr_stat_data_read()
[all …]
Dlpfc_ct.c1079 uint8_t *wwn = vport->phba->wwpn; in lpfc_vport_symbolic_port_name() local
1083 wwn[0], wwn[1], wwn[2], wwn[3], in lpfc_vport_symbolic_port_name()
1084 wwn[4], wwn[5], wwn[6], wwn[7]); in lpfc_vport_symbolic_port_name()
/drivers/target/tcm_fc/
Dtfc_conf.c57 static ssize_t ft_parse_wwn(const char *name, u64 *wwn, int strict) in ft_parse_wwn() argument
66 *wwn = 0; in ft_parse_wwn()
88 *wwn = (*wwn << 4) | val; in ft_parse_wwn()
97 ssize_t ft_format_wwn(char *buf, size_t len, u64 wwn) in ft_format_wwn() argument
101 put_unaligned_be64(wwn, b); in ft_format_wwn()
109 u64 *wwn = arg; in ft_wwn_show() local
112 len = ft_format_wwn(buf, PAGE_SIZE - 2, *wwn); in ft_wwn_show()
120 u64 wwn; in ft_wwn_store() local
122 ret = ft_parse_wwn(buf, &wwn, 0); in ft_wwn_store()
124 *(u64 *)arg = wwn; in ft_wwn_store()
[all …]
/drivers/target/
Dtarget_core_fabric_configfs.c813 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in target_fabric_tpg_release() local
814 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_tpg_release()
833 struct se_wwn *wwn = container_of(group, struct se_wwn, wwn_group); in target_fabric_make_tpg() local
834 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_make_tpg()
842 se_tpg = tf->tf_ops->fabric_make_tpg(wwn, group, name); in target_fabric_make_tpg()
895 struct se_wwn *wwn = container_of(to_config_group(item), in target_fabric_release_wwn() local
897 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_release_wwn()
899 configfs_remove_default_groups(&wwn->fabric_stat_group); in target_fabric_release_wwn()
900 tf->tf_ops->fabric_drop_wwn(wwn); in target_fabric_release_wwn()
934 struct se_wwn *wwn; in target_fabric_make_wwn() local
[all …]
Dtarget_core_pscsi.c180 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() argument
193 memcpy(&wwn->vendor[0], &buf[8], sizeof(wwn->vendor)); in pscsi_set_inquiry_info()
194 memcpy(&wwn->model[0], &buf[16], sizeof(wwn->model)); in pscsi_set_inquiry_info()
195 memcpy(&wwn->revision[0], &buf[32], sizeof(wwn->revision)); in pscsi_set_inquiry_info()
199 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial() argument
220 snprintf(&wwn->unit_serial[0], INQUIRY_VPD_SERIAL_LEN, "%s", &buf[4]); in pscsi_get_inquiry_vpd_serial()
222 wwn->t10_dev->dev_flags |= DF_FIRMWARE_VPD_UNIT_SERIAL; in pscsi_get_inquiry_vpd_serial()
234 struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_device_ident() argument
293 list_add_tail(&vpd->vpd_list, &wwn->t10_vpd_list); in pscsi_get_inquiry_vpd_device_ident()
Dtarget_core_device.c716 struct t10_wwn *wwn = &dev->t10_wwn; in scsi_dump_inquiry() local
723 if (wwn->vendor[i] >= 0x20) in scsi_dump_inquiry()
724 buf[i] = wwn->vendor[i]; in scsi_dump_inquiry()
731 if (wwn->model[i] >= 0x20) in scsi_dump_inquiry()
732 buf[i] = wwn->model[i]; in scsi_dump_inquiry()
739 if (wwn->revision[i] >= 0x20) in scsi_dump_inquiry()
740 buf[i] = wwn->revision[i]; in scsi_dump_inquiry()
Dtarget_core_alua.c914 struct t10_wwn *wwn = &tg_pt_gp->tg_pt_gp_dev->t10_wwn; in core_alua_update_tpg_primary_metadata() local
935 "%s/alua/tpgs_%s/%s", db_root, &wwn->unit_serial[0], in core_alua_update_tpg_primary_metadata()
1234 char path[ALUA_METADATA_PATH_LEN], wwn[ALUA_SECONDARY_METADATA_WWN_LEN]; in core_alua_update_tpg_secondary_metadata() local
1247 memset(wwn, 0, ALUA_SECONDARY_METADATA_WWN_LEN); in core_alua_update_tpg_secondary_metadata()
1249 len = snprintf(wwn, ALUA_SECONDARY_METADATA_WWN_LEN, "%s", in core_alua_update_tpg_secondary_metadata()
1253 snprintf(wwn+len, ALUA_SECONDARY_METADATA_WWN_LEN-len, "+%hu", in core_alua_update_tpg_secondary_metadata()
1262 db_root, se_tpg->se_tpg_tfo->get_fabric_name(), wwn, in core_alua_update_tpg_secondary_metadata()
Dtarget_core_stat.c781 struct t10_wwn *wwn; in target_stat_transport_dev_name_show() local
787 wwn = &dev->t10_wwn; in target_stat_transport_dev_name_show()
791 (strlen(wwn->unit_serial)) ? wwn->unit_serial : in target_stat_transport_dev_name_show()
792 wwn->vendor); in target_stat_transport_dev_name_show()
/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c60 static ssize_t tcm_qla2xxx_parse_wwn(const char *name, u64 *wwn, int strict) in tcm_qla2xxx_parse_wwn() argument
69 *wwn = 0; in tcm_qla2xxx_parse_wwn()
94 *wwn = (*wwn << 4) | nibble; in tcm_qla2xxx_parse_wwn()
103 static ssize_t tcm_qla2xxx_format_wwn(char *buf, size_t len, u64 wwn) in tcm_qla2xxx_format_wwn() argument
107 put_unaligned_be64(wwn, b); in tcm_qla2xxx_format_wwn()
124 u8 wwn[8]; in tcm_qla2xxx_npiv_extract_wwn() local
126 memset(wwn, 0, sizeof(wwn)); in tcm_qla2xxx_npiv_extract_wwn()
139 wwn[i/2] = j & 0xff; in tcm_qla2xxx_npiv_extract_wwn()
144 *nm = wwn_to_u64(wwn); in tcm_qla2xxx_npiv_extract_wwn()
945 struct se_wwn *wwn, in tcm_qla2xxx_make_tpg() argument
[all …]
/drivers/scsi/csiostor/
Dcsio_attr.c549 uint8_t wwn[8]; in csio_vport_create() local
557 u64_to_wwn(fc_vport->node_name, wwn); in csio_vport_create()
559 if (!CSIO_VALID_WWN(wwn)) { in csio_vport_create()
564 memcpy(csio_ln_wwnn(ln), wwn, 8); in csio_vport_create()
568 u64_to_wwn(fc_vport->port_name, wwn); in csio_vport_create()
570 if (!CSIO_VALID_WWN(wwn)) { in csio_vport_create()
576 if (csio_lnode_lookup_by_wwpn(hw, wwn)) { in csio_vport_create()
581 memcpy(csio_ln_wwpn(ln), wwn, 8); in csio_vport_create()
/drivers/scsi/bfa/
Dbfa_cs.h296 wwn2str(char *wwn_str, u64 wwn) in wwn2str() argument
299 u64 wwn; in wwn2str() member
303 w.wwn = wwn; in wwn2str()
Dbfa_fcbuild.c1430 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) in fc_gmal_req_build() argument
1441 gmal->wwn = wwn; in fc_gmal_req_build()
1450 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) in fc_gfn_req_build() argument
1461 gfn->wwn = wwn; in fc_gfn_req_build()
Dbfa_fcbuild.h271 u16 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn);
272 u16 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn);
Dbfad_drv.h184 wwn_t wwn[BFA_FCS_MAX_LPORTS]; member
/drivers/target/loopback/
Dtcm_loop.c1045 struct se_wwn *wwn, in tcm_loop_make_naa_tpg() argument
1049 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_make_naa_tpg()
1074 ret = core_tpg_register(wwn, &tl_tpg->tl_se_tpg, tl_hba->tl_proto_id); in tcm_loop_make_naa_tpg()
1080 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_make_naa_tpg()
1088 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_loop_drop_naa_tpg() local
1110 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_drop_naa_tpg()
1188 struct se_wwn *wwn) in tcm_loop_drop_scsi_hba() argument
1190 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_drop_scsi_hba()
/drivers/target/sbp/
Dsbp_target.c1935 static ssize_t sbp_parse_wwn(const char *name, u64 *wwn) in sbp_parse_wwn() argument
1941 *wwn = 0; in sbp_parse_wwn()
1959 *wwn = (*wwn << 4) | nibble; in sbp_parse_wwn()
1969 static ssize_t sbp_format_wwn(char *buf, size_t len, u64 wwn) in sbp_format_wwn() argument
1971 return snprintf(buf, len, "%016llx", wwn); in sbp_format_wwn()
2009 struct se_wwn *wwn, in sbp_make_tpg() argument
2014 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_make_tpg()
2053 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg()
2101 static void sbp_drop_tport(struct se_wwn *wwn) in sbp_drop_tport() argument
2104 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_drop_tport()
/drivers/target/iscsi/
Discsi_target_configfs.c1115 struct se_wwn *wwn, in lio_target_tiqn_addtpg() argument
1125 tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_tiqn_addtpg()
1145 ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); in lio_target_tiqn_addtpg()
1212 static void lio_target_add_wwn_groups(struct se_wwn *wwn) in lio_target_add_wwn_groups() argument
1214 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_add_wwn_groups()
1243 struct se_wwn *wwn) in lio_target_call_coredeltiqn() argument
1245 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_call_coredeltiqn()
Discsi_target_stat.c600 struct se_wwn *wwn = acl->se_node_acl.se_tpg->se_tpg_wwn; in iscsi_stat_sess_inst_show() local
601 struct iscsi_tiqn *tiqn = container_of(wwn, in iscsi_stat_sess_inst_show()
/drivers/scsi/fcoe/
Dfcoe_ctlr.c902 struct fip_wwn_desc *wwn; in fcoe_ctlr_parse_adv() local
963 wwn = (struct fip_wwn_desc *)desc; in fcoe_ctlr_parse_adv()
964 fcf->switch_name = get_unaligned_be64(&wwn->fd_wwn); in fcoe_ctlr_parse_adv()
1951 u64 wwn; in fcoe_wwn_from_mac() local
1963 wwn = host_mac | ((u64) scheme << 60); in fcoe_wwn_from_mac()
1970 wwn |= (u64) port << 48; in fcoe_wwn_from_mac()
1977 return wwn; in fcoe_wwn_from_mac()
2252 struct fip_wwn_desc *wwn = NULL; in fcoe_ctlr_vn_parse() local
2326 wwn = (struct fip_wwn_desc *)desc; in fcoe_ctlr_vn_parse()
2327 rdata->ids.node_name = get_unaligned_be64(&wwn->fd_wwn); in fcoe_ctlr_vn_parse()
[all …]
Dfcoe_transport.c240 void fcoe_wwn_to_str(u64 wwn, char *buf, int len) in fcoe_wwn_to_str() argument
244 u64_to_wwn(wwn, wwpn); in fcoe_wwn_to_str()
302 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in fcoe_get_wwn() argument
307 return ops->ndo_fcoe_get_wwn(netdev, wwn, type); in fcoe_get_wwn()
/drivers/xen/
Dxen-scsiback.c1359 static void scsiback_drop_tport(struct se_wwn *wwn) in scsiback_drop_tport() argument
1361 struct scsiback_tport *tport = container_of(wwn, in scsiback_drop_tport()
1739 scsiback_make_tpg(struct se_wwn *wwn, in scsiback_make_tpg() argument
1743 struct scsiback_tport *tport = container_of(wwn, in scsiback_make_tpg()
1766 ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); in scsiback_make_tpg()
/drivers/vhost/
Dscsi.c1949 vhost_scsi_make_tpg(struct se_wwn *wwn, in vhost_scsi_make_tpg() argument
1953 struct vhost_scsi_tport *tport = container_of(wwn, in vhost_scsi_make_tpg()
1975 ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); in vhost_scsi_make_tpg()
2067 static void vhost_scsi_drop_tport(struct se_wwn *wwn) in vhost_scsi_drop_tport() argument
2069 struct vhost_scsi_tport *tport = container_of(wwn, in vhost_scsi_drop_tport()

123