Home
last modified time | relevance | path

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

/linux-4.4.14/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()
318 if (wwn_to_u64(sp->portName.u.wwn) == 0) { in lpfc_rcv_plogi()
327 if (wwn_to_u64(sp->nodeName.u.wwn) == 0) { in lpfc_rcv_plogi()
337 nlp_portwwn = wwn_to_u64(ndlp->nlp_portname.u.wwn); in lpfc_rcv_plogi()
389 nlp_portwwn != wwn_to_u64(sp->portName.u.wwn)) in lpfc_rcv_plogi()
396 wwn_to_u64(sp->portName.u.wwn)); in lpfc_rcv_plogi()
1067 (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()
2169 reg_vfi->wwn[0], reg_vfi->wwn[1], vport->fc_flag, in lpfc_reg_vfi()
Dlpfc_ct.c1047 uint8_t *wwn = vport->phba->wwpn; in lpfc_vport_symbolic_port_name() local
1051 wwn[0], wwn[1], wwn[2], wwn[3], in lpfc_vport_symbolic_port_name()
1052 wwn[4], wwn[5], wwn[6], wwn[7]); in lpfc_vport_symbolic_port_name()
Dlpfc_attr.c2093 lpfc_wwn_set(const char *buf, size_t cnt, char wwn[]) in lpfc_wwn_set() argument
2105 memset(wwn, 0, WWN_SZ); in lpfc_wwn_set()
2118 wwn[i/2] = j & 0xff; in lpfc_wwn_set()
3646 ndlp->nlp_portname.u.wwn[0], in sysfs_drvr_stat_data_read()
3647 ndlp->nlp_portname.u.wwn[1], in sysfs_drvr_stat_data_read()
3648 ndlp->nlp_portname.u.wwn[2], in sysfs_drvr_stat_data_read()
3649 ndlp->nlp_portname.u.wwn[3], in sysfs_drvr_stat_data_read()
3650 ndlp->nlp_portname.u.wwn[4], in sysfs_drvr_stat_data_read()
3651 ndlp->nlp_portname.u.wwn[5], in sysfs_drvr_stat_data_read()
3652 ndlp->nlp_portname.u.wwn[6], in sysfs_drvr_stat_data_read()
[all …]
Dlpfc_hw.h341 uint8_t wwn[8]; member
2592 uint32_t wwn[2]; member
2601 uint32_t wwn[2];
Dlpfc_init.c334 vport->fc_sparam.nodeName.u.wwn); in lpfc_update_vport_wwn()
337 vport->fc_sparam.portName.u.wwn); in lpfc_update_vport_wwn()
343 if (vport->fc_nodename.u.wwn[0] == 0 || vport->phba->cfg_soft_wwnn) in lpfc_update_vport_wwn()
350 if (vport->fc_portname.u.wwn[0] == 0 || vport->phba->cfg_soft_wwpn) in lpfc_update_vport_wwn()
430 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); in lpfc_config_port_post()
431 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); in lpfc_config_port_post()
3489 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); in lpfc_host_attrib_init()
3490 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); in lpfc_host_attrib_init()
Dlpfc_scsi.c1345 if (phba->lpfc_injerr_wwpn.u.wwn[0] && in lpfc_bg_err_inject()
5446 u64_to_wwn(rport->port_name, target_wwpn.u.wwn); in lpfc_slave_alloc()
5745 if (((wwn_to_u64(vport_wwpn->u.wwn) == 0) || in lpfc_find_next_oas_lun()
5748 ((wwn_to_u64(target_wwpn->u.wwn) == 0) || in lpfc_find_next_oas_lun()
Dlpfc_hbadisc.c150 if (rport->port_name != wwn_to_u64(ndlp->nlp_portname.u.wwn)) in lpfc_dev_loss_tmo_callbk()
154 wwn_to_u64(ndlp->nlp_portname.u.wwn)); in lpfc_dev_loss_tmo_callbk()
3897 rport_ids.node_name = wwn_to_u64(ndlp->nlp_nodename.u.wwn); in lpfc_register_remote_port()
3898 rport_ids.port_name = wwn_to_u64(ndlp->nlp_portname.u.wwn); in lpfc_register_remote_port()
Dlpfc_hw4.h2013 uint32_t wwn[2]; member
Dlpfc_sli.c6491 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); in lpfc_sli4_hba_setup()
6492 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); in lpfc_sli4_hba_setup()
/linux-4.4.14/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 …]
/linux-4.4.14/include/scsi/
Dscsi_transport_fc.h798 static inline u64 wwn_to_u64(u8 *wwn) in wwn_to_u64() argument
800 return (u64)wwn[0] << 56 | (u64)wwn[1] << 48 | in wwn_to_u64()
801 (u64)wwn[2] << 40 | (u64)wwn[3] << 32 | in wwn_to_u64()
802 (u64)wwn[4] << 24 | (u64)wwn[5] << 16 | in wwn_to_u64()
803 (u64)wwn[6] << 8 | (u64)wwn[7]; in wwn_to_u64()
806 static inline void u64_to_wwn(u64 inm, u8 *wwn) in u64_to_wwn() argument
808 wwn[0] = (inm >> 56) & 0xff; in u64_to_wwn()
809 wwn[1] = (inm >> 48) & 0xff; in u64_to_wwn()
810 wwn[2] = (inm >> 40) & 0xff; in u64_to_wwn()
811 wwn[3] = (inm >> 32) & 0xff; in u64_to_wwn()
[all …]
Dlibfcoe.h263 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type);
266 void fcoe_wwn_to_str(u64 wwn, char *buf, int len);
/linux-4.4.14/drivers/target/
Dtarget_core_fabric_configfs.c893 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in target_fabric_tpg_release() local
894 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_tpg_release()
913 struct se_wwn *wwn = container_of(group, struct se_wwn, wwn_group); in target_fabric_make_tpg() local
914 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_make_tpg()
922 se_tpg = tf->tf_ops->fabric_make_tpg(wwn, group, name); in target_fabric_make_tpg()
979 struct se_wwn *wwn = container_of(to_config_group(item), in target_fabric_release_wwn() local
981 struct target_fabric_configfs *tf = wwn->wwn_tf; in target_fabric_release_wwn()
983 tf->tf_ops->fabric_drop_wwn(wwn); in target_fabric_release_wwn()
1017 struct se_wwn *wwn; in target_fabric_make_wwn() local
1024 wwn = tf->tf_ops->fabric_make_wwn(tf, group, name); in target_fabric_make_wwn()
[all …]
Dtarget_core_pscsi.c179 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() argument
192 memcpy(&wwn->vendor[0], &buf[8], sizeof(wwn->vendor)); in pscsi_set_inquiry_info()
193 memcpy(&wwn->model[0], &buf[16], sizeof(wwn->model)); in pscsi_set_inquiry_info()
194 memcpy(&wwn->revision[0], &buf[32], sizeof(wwn->revision)); in pscsi_set_inquiry_info()
198 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial() argument
219 snprintf(&wwn->unit_serial[0], INQUIRY_VPD_SERIAL_LEN, "%s", &buf[4]); in pscsi_get_inquiry_vpd_serial()
221 wwn->t10_dev->dev_flags |= DF_FIRMWARE_VPD_UNIT_SERIAL; in pscsi_get_inquiry_vpd_serial()
233 struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_device_ident() argument
292 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 "/var/target/alua/tpgs_%s/%s", &wwn->unit_serial[0], in core_alua_update_tpg_primary_metadata()
1251 char path[ALUA_METADATA_PATH_LEN], wwn[ALUA_SECONDARY_METADATA_WWN_LEN]; in core_alua_update_tpg_secondary_metadata() local
1264 memset(wwn, 0, ALUA_SECONDARY_METADATA_WWN_LEN); in core_alua_update_tpg_secondary_metadata()
1266 len = snprintf(wwn, ALUA_SECONDARY_METADATA_WWN_LEN, "%s", in core_alua_update_tpg_secondary_metadata()
1270 snprintf(wwn+len, ALUA_SECONDARY_METADATA_WWN_LEN-len, "+%hu", in core_alua_update_tpg_secondary_metadata()
1279 se_tpg->se_tpg_tfo->get_fabric_name(), wwn, in core_alua_update_tpg_secondary_metadata()
Dtarget_core_stat.c780 struct t10_wwn *wwn; in target_stat_transport_dev_name_show() local
786 wwn = &dev->t10_wwn; in target_stat_transport_dev_name_show()
790 (strlen(wwn->unit_serial)) ? wwn->unit_serial : in target_stat_transport_dev_name_show()
791 wwn->vendor); in target_stat_transport_dev_name_show()
Dtarget_core_pr.c1980 struct t10_wwn *wwn = &dev->t10_wwn; in __core_scsi3_write_aptpl_to_file() local
1989 if (strlen(&wwn->unit_serial[0]) >= 512) { in __core_scsi3_write_aptpl_to_file()
1995 snprintf(path, 512, "/var/target/pr/aptpl_%s", &wwn->unit_serial[0]); in __core_scsi3_write_aptpl_to_file()
/linux-4.4.14/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()
917 struct se_wwn *wwn, in tcm_qla2xxx_make_tpg() argument
[all …]
Dqla_target.c4042 qlt_find_sess_invalidate_other(struct qla_tgt *tgt, uint64_t wwn, in qlt_find_sess_invalidate_other() argument
4052 if (wwn == other_wwn) { in qlt_find_sess_invalidate_other()
4140 uint64_t wwn; in qlt_24xx_handle_els() local
4146 wwn = wwn_to_u64(iocb->u.isp24.port_name); in qlt_24xx_handle_els()
4168 if (wwn) in qlt_24xx_handle_els()
4169 sess = qlt_find_sess_invalidate_other(tgt, wwn, in qlt_24xx_handle_els()
4230 if (wwn) in qlt_24xx_handle_els()
4231 sess = qlt_find_sess_invalidate_other(tgt, wwn, port_id, in qlt_24xx_handle_els()
/linux-4.4.14/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()
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_cs.h328 wwn2str(char *wwn_str, u64 wwn) in wwn2str() argument
331 u64 wwn; in wwn2str() member
335 w.wwn = wwn; in wwn2str()
Dbfa_fcbuild.h270 u16 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn);
271 u16 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn);
Dbfa_fcbuild.c1429 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) in fc_gmal_req_build() argument
1440 gmal->wwn = wwn; in fc_gmal_req_build()
1449 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) in fc_gfn_req_build() argument
1460 gfn->wwn = wwn; in fc_gfn_req_build()
Dbfad_drv.h183 wwn_t wwn[BFA_FCS_MAX_LPORTS]; member
Dbfa_fcs.h293 wwn_t bfa_fcs_lport_get_rport(struct bfa_fcs_lport_s *port, wwn_t wwn,
495 struct bfa_fcs_lport_s *port, wwn_t wwn);
Dbfi_ms.h77 wwn_t wwn[BFA_BOOT_BOOTLUN_MAX]; member
Dbfa_fc.h1459 wwn_t wwn; /* PWWN/NWWN */ member
Dbfa_core.c1707 memcpy(wwns, cfgrsp->bootwwns.wwn, sizeof(cfgrsp->bootwwns.wwn)); in bfa_iocfc_get_bootwwns()
Dbfa_defs_svc.h1037 wwn_t wwn; member
Dbfa_fcs_lport.c5722 bfa_fcs_lport_get_rport(struct bfa_fcs_lport_s *port, wwn_t wwn, int index, in bfa_fcs_lport_get_rport() argument
5751 if (!memcmp(&wwn, &rport->pwwn, 8)) in bfa_fcs_lport_get_rport()
/linux-4.4.14/drivers/target/loopback/
Dtcm_loop.c1051 struct se_wwn *wwn, in tcm_loop_make_naa_tpg() argument
1055 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_make_naa_tpg()
1080 ret = core_tpg_register(wwn, &tl_tpg->tl_se_tpg, tl_hba->tl_proto_id); in tcm_loop_make_naa_tpg()
1086 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_make_naa_tpg()
1094 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_loop_drop_naa_tpg() local
1116 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_drop_naa_tpg()
1194 struct se_wwn *wwn) in tcm_loop_drop_scsi_hba() argument
1196 struct tcm_loop_hba *tl_hba = container_of(wwn, in tcm_loop_drop_scsi_hba()
/linux-4.4.14/drivers/target/sbp/
Dsbp_target.c1938 static ssize_t sbp_parse_wwn(const char *name, u64 *wwn) in sbp_parse_wwn() argument
1944 *wwn = 0; in sbp_parse_wwn()
1962 *wwn = (*wwn << 4) | nibble; in sbp_parse_wwn()
1972 static ssize_t sbp_format_wwn(char *buf, size_t len, u64 wwn) in sbp_format_wwn() argument
1974 return snprintf(buf, len, "%016llx", wwn); in sbp_format_wwn()
2012 struct se_wwn *wwn, in sbp_make_tpg() argument
2017 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_make_tpg()
2056 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); in sbp_make_tpg()
2104 static void sbp_drop_tport(struct se_wwn *wwn) in sbp_drop_tport() argument
2107 container_of(wwn, struct sbp_tport, tport_wwn); in sbp_drop_tport()
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe_transport.c217 void fcoe_wwn_to_str(u64 wwn, char *buf, int len) in fcoe_wwn_to_str() argument
221 u64_to_wwn(wwn, wwpn); in fcoe_wwn_to_str()
279 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in fcoe_get_wwn() argument
284 return ops->ndo_fcoe_get_wwn(netdev, wwn, type); in fcoe_get_wwn()
Dfcoe_ctlr.c899 struct fip_wwn_desc *wwn; in fcoe_ctlr_parse_adv() local
960 wwn = (struct fip_wwn_desc *)desc; in fcoe_ctlr_parse_adv()
961 fcf->switch_name = get_unaligned_be64(&wwn->fd_wwn); in fcoe_ctlr_parse_adv()
1940 u64 wwn; in fcoe_wwn_from_mac() local
1952 wwn = host_mac | ((u64) scheme << 60); in fcoe_wwn_from_mac()
1959 wwn |= (u64) port << 48; in fcoe_wwn_from_mac()
1966 return wwn; in fcoe_wwn_from_mac()
2241 struct fip_wwn_desc *wwn = NULL; in fcoe_ctlr_vn_parse() local
2315 wwn = (struct fip_wwn_desc *)desc; in fcoe_ctlr_vn_parse()
2316 rdata->ids.node_name = get_unaligned_be64(&wwn->fd_wwn); in fcoe_ctlr_vn_parse()
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_configfs.c1182 struct se_wwn *wwn, in lio_target_tiqn_addtpg() argument
1192 tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); in lio_target_tiqn_addtpg()
1212 ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); in lio_target_tiqn_addtpg()
1310 struct se_wwn *wwn) in lio_target_call_coredeltiqn() argument
1312 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()
/linux-4.4.14/drivers/xen/
Dxen-scsiback.c1326 static void scsiback_drop_tport(struct se_wwn *wwn) in scsiback_drop_tport() argument
1328 struct scsiback_tport *tport = container_of(wwn, in scsiback_drop_tport()
1737 scsiback_make_tpg(struct se_wwn *wwn, in scsiback_make_tpg() argument
1741 struct scsiback_tport *tport = container_of(wwn, in scsiback_make_tpg()
1764 ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); in scsiback_make_tpg()
/linux-4.4.14/drivers/vhost/
Dscsi.c1975 vhost_scsi_make_tpg(struct se_wwn *wwn, in vhost_scsi_make_tpg() argument
1979 struct vhost_scsi_tport *tport = container_of(wwn, in vhost_scsi_make_tpg()
2001 ret = core_tpg_register(wwn, &tpg->se_tpg, tport->tport_proto_id); in vhost_scsi_make_tpg()
2093 static void vhost_scsi_drop_tport(struct se_wwn *wwn) in vhost_scsi_drop_tport() argument
2095 struct vhost_scsi_tport *tport = container_of(wwn, in vhost_scsi_drop_tport()
/linux-4.4.14/net/8021q/
Dvlan_dev.c429 static int vlan_dev_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type) in vlan_dev_fcoe_get_wwn() argument
436 rc = ops->ndo_fcoe_get_wwn(real_dev, wwn, type); in vlan_dev_fcoe_get_wwn()
/linux-4.4.14/drivers/usb/gadget/legacy/
Dtcm_usb_gadget.c1378 struct se_wwn *wwn, in usbg_make_tpg() argument
1382 struct usbg_tport *tport = container_of(wwn, struct usbg_tport, in usbg_make_tpg()
1416 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); in usbg_make_tpg()
1458 static void usbg_drop_tport(struct se_wwn *wwn) in usbg_drop_tport() argument
1460 struct usbg_tport *tport = container_of(wwn, in usbg_drop_tport()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_fcoe.c948 int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in ixgbe_fcoe_get_wwn() argument
967 *wwn = ((u64) prefix << 48) | in ixgbe_fcoe_get_wwn()
Dixgbe.h945 int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type);
/linux-4.4.14/drivers/scsi/
Dscsi_transport_fc.c1821 u8 wwn[8]; in fc_parse_wwn() local
1823 memset(wwn, 0, sizeof(wwn)); in fc_parse_wwn()
1835 wwn[i/2] = j & 0xff; in fc_parse_wwn()
1840 *nm = wwn_to_u64(wwn); in fc_parse_wwn()
Dgdth.h399 char wwn[8]; /* world wide name */ member
Dipr.h927 __be32 wwn[4]; member
Dipr.c2404 be32_to_cpu(error->wwn[0]), be32_to_cpu(error->wwn[1]), in ipr_log_sis64_device_error()
2405 be32_to_cpu(error->wwn[2]), be32_to_cpu(error->wwn[3])); in ipr_log_sis64_device_error()
/linux-4.4.14/drivers/infiniband/ulp/srpt/
Dib_srpt.c3657 static struct se_portal_group *srpt_make_tpg(struct se_wwn *wwn, in srpt_make_tpg() argument
3661 struct srpt_port *sport = container_of(wwn, struct srpt_port, port_wwn); in srpt_make_tpg()
3712 static void srpt_drop_tport(struct se_wwn *wwn) in srpt_drop_tport() argument
3714 struct srpt_port *sport = container_of(wwn, struct srpt_port, port_wwn); in srpt_drop_tport()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.h611 int bnx2x_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type);
Dbnx2x_cmn.c4869 int bnx2x_fcoe_get_wwn(struct net_device *dev, u64 *wwn, int type) in bnx2x_fcoe_get_wwn() argument
4876 *wwn = HILO_U64(cp->fcoe_wwn_node_name_hi, in bnx2x_fcoe_get_wwn()
4880 *wwn = HILO_U64(cp->fcoe_wwn_port_name_hi, in bnx2x_fcoe_get_wwn()
/linux-4.4.14/drivers/scsi/aacraid/
Daachba.c312 module_param_named(wwn, aac_wwn, int, S_IRUGO|S_IWUSR);
313 MODULE_PARM_DESC(wwn, "Select a WWN type for the arrays:\n"
/linux-4.4.14/include/linux/
Dnetdevice.h1159 u64 *wwn, int type);