/linux-master/drivers/scsi/lpfc/ |
H A D | lpfc_vport.c | 180 lpfc_valid_wwn_format(struct lpfc_hba *phba, struct lpfc_name *wwn, argument 186 if (!((wwn->u.wwn[0] >> 4) == 1 && 187 ((wwn->u.wwn[0] & 0xf) != 0 || (wwn->u.wwn[1] & 0xf) != 0))) 194 wwn->u.wwn[0], wwn [all...] |
H A D | lpfc_mbox.c | 954 memcpy(mb->un.varRegVpi.wwn, &vport->fc_portname, 956 mb->un.varRegVpi.wwn[0] = cpu_to_le32(mb->un.varRegVpi.wwn[0]); 957 mb->un.varRegVpi.wwn[1] = cpu_to_le32(mb->un.varRegVpi.wwn[1]); 2225 memcpy(reg_vfi->wwn, &vport->fc_portname, sizeof(struct lpfc_name)); 2226 reg_vfi->wwn[0] = cpu_to_le32(reg_vfi->wwn[0]); 2227 reg_vfi->wwn[1] = cpu_to_le32(reg_vfi->wwn[ [all...] |
H A D | lpfc_scsi.c | 1005 * wwn[0] should be a non-zero NAA in a good WWPN. 1007 if (phba->lpfc_injerr_wwpn.u.wwn[0] && 5274 ndlp->nlp_nodename.u.wwn[0], 5275 ndlp->nlp_nodename.u.wwn[1], 5276 ndlp->nlp_nodename.u.wwn[2], 5277 ndlp->nlp_nodename.u.wwn[3], 5278 ndlp->nlp_nodename.u.wwn[4], 5279 ndlp->nlp_nodename.u.wwn[5], 5280 ndlp->nlp_nodename.u.wwn[6], 5281 ndlp->nlp_nodename.u.wwn[ [all...] |
H A D | lpfc_nportdisc.c | 160 sp->nodeName.u.wwn[0], sp->nodeName.u.wwn[1], 161 sp->nodeName.u.wwn[2], sp->nodeName.u.wwn[3], 162 sp->nodeName.u.wwn[4], sp->nodeName.u.wwn[5], 163 sp->nodeName.u.wwn[6], sp->nodeName.u.wwn[7]); 348 if (wwn_to_u64(sp->portName.u.wwn) == 0) { 357 if (wwn_to_u64(sp->nodeName.u.wwn) [all...] |
/linux-master/drivers/target/ |
H A D | target_core_fabric_configfs.c | 809 struct se_wwn *wwn = se_tpg->se_tpg_wwn; local 810 struct target_fabric_configfs *tf = wwn->wwn_tf; 930 struct se_wwn *wwn = container_of(group, struct se_wwn, wwn_group); local 931 struct target_fabric_configfs *tf = wwn->wwn_tf; 939 se_tpg = tf->tf_ops->fabric_make_tpg(wwn, name); 992 struct se_wwn *wwn = container_of(to_config_group(item), local 994 struct target_fabric_configfs *tf = wwn->wwn_tf; 996 configfs_remove_default_groups(&wwn->fabric_stat_group); 997 configfs_remove_default_groups(&wwn->param_group); 998 tf->tf_ops->fabric_drop_wwn(wwn); 1028 struct se_wwn *wwn = container_of(to_config_group(item), struct se_wwn, local 1039 struct se_wwn *wwn = container_of(to_config_group(item), struct se_wwn, local 1072 struct se_wwn *wwn = container_of(to_config_group(item), struct se_wwn, local 1083 struct se_wwn *wwn = container_of(to_config_group(item), struct se_wwn, local 1107 struct se_wwn *wwn; local 1140 struct se_wwn *wwn = container_of(to_config_group(item), local [all...] |
H A D | target_core_pscsi.c | 163 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) argument 170 BUILD_BUG_ON(sizeof(wwn->vendor) != INQUIRY_VENDOR_LEN + 1); 171 snprintf(wwn->vendor, sizeof(wwn->vendor), 173 BUILD_BUG_ON(sizeof(wwn->model) != INQUIRY_MODEL_LEN + 1); 174 snprintf(wwn->model, sizeof(wwn->model), 176 BUILD_BUG_ON(sizeof(wwn->revision) != INQUIRY_REVISION_LEN + 1); 177 snprintf(wwn->revision, sizeof(wwn 182 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) argument 215 pscsi_get_inquiry_vpd_device_ident(struct scsi_device *sdev, struct t10_wwn *wwn) argument [all...] |
H A D | target_core_device.c | 668 struct t10_wwn *wwn = &dev->t10_wwn; local 675 wwn->vendor); 677 wwn->model); 679 wwn->revision);
|
H A D | target_core_stat.c | 765 struct t10_wwn *wwn; local 771 wwn = &dev->t10_wwn; 775 (strlen(wwn->unit_serial)) ? wwn->unit_serial : 776 wwn->vendor);
|
/linux-master/drivers/target/tcm_fc/ |
H A D | tfc_conf.c | 47 * so the name and wwn are mapped one-to-one. 49 static ssize_t ft_parse_wwn(const char *name, u64 *wwn, int strict) argument 58 *wwn = 0; 80 *wwn = (*wwn << 4) | val; 89 ssize_t ft_format_wwn(char *buf, size_t len, u64 wwn) argument 93 put_unaligned_be64(wwn, b); 101 u64 *wwn = arg; local 104 len = ft_format_wwn(buf, PAGE_SIZE - 2, *wwn); 112 u64 wwn; local 218 ft_add_tpg(struct se_wwn *wwn, const char *name) argument 356 ft_del_wwn(struct se_wwn *wwn) argument [all...] |
/linux-master/drivers/target/tcm_remote/ |
H A D | tcm_remote.c | 88 struct se_wwn *wwn, 91 struct tcm_remote_hba *remote_hba = container_of(wwn, 115 ret = core_tpg_register(wwn, &remote_tpg->remote_se_tpg, 122 config_item_name(&wwn->wwn_group.cg_item), tpgt); 128 struct se_wwn *wwn = se_tpg->se_tpg_wwn; local 147 config_item_name(&wwn->wwn_group.cg_item), tpgt); 210 static void tcm_remote_drop_wwn(struct se_wwn *wwn) argument 212 struct tcm_remote_hba *remote_hba = container_of(wwn, 87 tcm_remote_make_tpg( struct se_wwn *wwn, const char *name) argument
|
/linux-master/drivers/scsi/bfa/ |
H A D | bfa_cs.h | 277 wwn2str(char *wwn_str, u64 wwn) argument 280 u64 wwn; member in union:__anon413 284 w.wwn = wwn;
|
H A D | bfa_fcbuild.h | 262 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);
|
H A D | bfad_drv.h | 175 wwn_t wwn[BFA_FCS_MAX_LPORTS]; member in union:bfad_tmp_buf
|
H A D | bfa_fcbuild.c | 1314 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) argument 1325 gmal->wwn = wwn; 1334 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) argument 1345 gfn->wwn = wwn;
|
/linux-master/drivers/scsi/csiostor/ |
H A D | csio_attr.c | 558 uint8_t wwn[8]; local 566 u64_to_wwn(fc_vport->node_name, wwn); 568 if (!CSIO_VALID_WWN(wwn)) { 573 memcpy(csio_ln_wwnn(ln), wwn, 8); local 577 u64_to_wwn(fc_vport->port_name, wwn); 579 if (!CSIO_VALID_WWN(wwn)) { 585 if (csio_lnode_lookup_by_wwpn(hw, wwn)) { 590 memcpy(csio_ln_wwpn(ln), wwn, 8); local
|
/linux-master/drivers/scsi/qla2xxx/ |
H A D | tcm_qla2xxx.c | 42 * so the name and wwn are mapped one-to-one. 44 static ssize_t tcm_qla2xxx_parse_wwn(const char *name, u64 *wwn, int strict) argument 53 *wwn = 0; 78 *wwn = (*wwn << 4) | nibble; 87 static ssize_t tcm_qla2xxx_format_wwn(char *buf, size_t len, u64 wwn) argument 91 put_unaligned_be64(wwn, b); 103 u8 wwn[8]; local 105 memset(wwn, 0, sizeof(wwn)); 983 tcm_qla2xxx_make_tpg(struct se_wwn *wwn, const char *name) argument 1079 tcm_qla2xxx_npiv_make_tpg(struct se_wwn *wwn, const char *name) argument 1622 tcm_qla2xxx_drop_lport(struct se_wwn *wwn) argument 1747 tcm_qla2xxx_npiv_drop_lport(struct se_wwn *wwn) argument [all...] |
/linux-master/include/scsi/ |
H A D | libfcoe.h | 259 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type); 262 void fcoe_wwn_to_str(u64 wwn, char *buf, int len);
|
H A D | scsi_transport_fc.h | 806 static inline u64 wwn_to_u64(const u8 *wwn) argument 808 return get_unaligned_be64(wwn); 811 static inline void u64_to_wwn(u64 inm, u8 *wwn) argument 813 put_unaligned_be64(inm, wwn);
|
/linux-master/drivers/target/loopback/ |
H A D | tcm_loop.c | 913 static struct se_portal_group *tcm_loop_make_naa_tpg(struct se_wwn *wwn, argument 916 struct tcm_loop_hba *tl_hba = container_of(wwn, 940 ret = core_tpg_register(wwn, &tl_tpg->tl_se_tpg, tl_hba->tl_proto_id); 946 config_item_name(&wwn->wwn_group.cg_item), tpgt); 953 struct se_wwn *wwn = se_tpg->se_tpg_wwn; local 975 config_item_name(&wwn->wwn_group.cg_item), tpgt); 1049 struct se_wwn *wwn) 1051 struct tcm_loop_hba *tl_hba = container_of(wwn, 1048 tcm_loop_drop_scsi_hba( struct se_wwn *wwn) argument
|
/linux-master/drivers/scsi/elx/efct/ |
H A D | efct_lio.c | 20 efct_format_wwn(char *str, size_t len, const char *pre, u64 wwn) argument 24 put_unaligned_be64(wwn, a); 844 efct_lio_drop_nport(struct se_wwn *wwn) argument 847 container_of(wwn, struct efct_lio_nport, nport_wwn); 858 efct_lio_npiv_drop_nport(struct se_wwn *wwn) argument 861 container_of(wwn, struct efct_lio_vport, vport_wwn); 884 efct_lio_make_tpg(struct se_wwn *wwn, const char *name) argument 887 container_of(wwn, struct efct_lio_nport, nport_wwn); 912 ret = core_tpg_register(wwn, &tpg->tpg, SCSI_PROTOCOL_FCP); 941 efct_lio_npiv_make_tpg(struct se_wwn *wwn, cons argument [all...] |
/linux-master/drivers/infiniband/ulp/srpt/ |
H A D | ib_srpt.h | 382 * @wwn: WWN associated with the RDMA port name. 391 struct se_wwn wwn; member in struct:srpt_port_id
|
H A D | ib_srpt.c | 3315 static struct srpt_port_id *srpt_wwn_to_sport_id(struct se_wwn *wwn) argument 3317 struct srpt_port *sport = wwn->priv; 3319 if (sport->guid_id && &sport->guid_id->wwn == wwn) 3321 if (sport->gid_id && &sport->gid_id->wwn == wwn) 3728 * @wwn: Corresponds to $driver/$port. 3731 static struct se_portal_group *srpt_make_tpg(struct se_wwn *wwn, argument 3734 struct srpt_port_id *sport_id = srpt_wwn_to_sport_id(wwn); 3742 res = core_tpg_register(wwn, 3815 srpt_drop_tport(struct se_wwn *wwn) argument [all...] |
/linux-master/drivers/target/iscsi/ |
H A D | iscsi_target_configfs.c | 1040 static struct se_portal_group *lio_target_tiqn_addtpg(struct se_wwn *wwn, argument 1049 tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); 1069 ret = core_tpg_register(wwn, &tpg->tpg_se_tpg, SCSI_PROTOCOL_ISCSI); 1202 static void lio_target_add_wwn_groups(struct se_wwn *wwn) argument 1204 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); 1233 struct se_wwn *wwn) 1235 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn); 1232 lio_target_call_coredeltiqn( struct se_wwn *wwn) argument
|
/linux-master/drivers/target/sbp/ |
H A D | sbp_target.c | 1884 static ssize_t sbp_parse_wwn(const char *name, u64 *wwn) argument 1890 *wwn = 0; 1908 *wwn = (*wwn << 4) | nibble; 1918 static ssize_t sbp_format_wwn(char *buf, size_t len, u64 wwn) argument 1920 return snprintf(buf, len, "%016llx", wwn); 1957 static struct se_portal_group *sbp_make_tpg(struct se_wwn *wwn, argument 1961 container_of(wwn, struct sbp_tport, tport_wwn); 1998 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SBP); 2044 static void sbp_drop_tport(struct se_wwn *wwn) argument [all...] |
/linux-master/drivers/scsi/fcoe/ |
H A D | fcoe_transport.c | 229 void fcoe_wwn_to_str(u64 wwn, char *buf, int len) argument 233 u64_to_wwn(wwn, wwpn); 286 * @wwn: the output WWN 291 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) argument 296 return ops->ndo_fcoe_get_wwn(netdev, wwn, type);
|