Searched refs:wwn (Results 1 - 25 of 41) sorted by relevance

12

/drivers/scsi/lpfc/
H A Dlpfc_vport.c179 lpfc_valid_wwn_format(struct lpfc_hba *phba, struct lpfc_name *wwn, argument
185 if (!((wwn->u.wwn[0] >> 4) == 1 &&
186 ((wwn->u.wwn[0] & 0xf) != 0 || (wwn->u.wwn[1] & 0xf) != 0)))
193 wwn->u.wwn[0], wwn
[all...]
H A Dlpfc_mbox.c886 memcpy(mb->un.varRegVpi.wwn, &vport->fc_portname,
888 mb->un.varRegVpi.wwn[0] = cpu_to_le32(mb->un.varRegVpi.wwn[0]);
889 mb->un.varRegVpi.wwn[1] = cpu_to_le32(mb->un.varRegVpi.wwn[1]);
2126 memcpy(reg_vfi->wwn, &vport->fc_portname, sizeof(struct lpfc_name));
2127 reg_vfi->wwn[0] = cpu_to_le32(reg_vfi->wwn[0]);
2128 reg_vfi->wwn[1] = cpu_to_le32(reg_vfi->wwn[
[all...]
H A Dlpfc_nportdisc.c156 sp->nodeName.u.wwn[0], sp->nodeName.u.wwn[1],
157 sp->nodeName.u.wwn[2], sp->nodeName.u.wwn[3],
158 sp->nodeName.u.wwn[4], sp->nodeName.u.wwn[5],
159 sp->nodeName.u.wwn[6], sp->nodeName.u.wwn[7]);
306 if (wwn_to_u64(sp->portName.u.wwn) == 0) {
315 if (wwn_to_u64(sp->nodeName.u.wwn)
[all...]
H A Dlpfc_ct.c1055 uint8_t *wwn = vport->phba->wwpn; local
1059 wwn[0], wwn[1], wwn[2], wwn[3],
1060 wwn[4], wwn[5], wwn[6], wwn[7]);
H A Dlpfc_attr.c2043 * lpfc_soft_wwn_enable_store - Allows setting of the wwn if the key is valid
2118 * -EINVAL soft wwn not enabled, count is invalid, invalid wwpn byte invalid
2224 * -EINVAL soft wwn not enabled, count is invalid, invalid wwnn byte invalid
3143 ndlp->nlp_portname.u.wwn[0],
3144 ndlp->nlp_portname.u.wwn[1],
3145 ndlp->nlp_portname.u.wwn[2],
3146 ndlp->nlp_portname.u.wwn[3],
3147 ndlp->nlp_portname.u.wwn[4],
3148 ndlp->nlp_portname.u.wwn[5],
3149 ndlp->nlp_portname.u.wwn[
[all...]
/drivers/target/tcm_fc/
H A Dtfc_conf.c64 * so the name and wwn are mapped one-to-one.
66 static ssize_t ft_parse_wwn(const char *name, u64 *wwn, int strict) argument
75 *wwn = 0;
97 *wwn = (*wwn << 4) | val;
106 ssize_t ft_format_wwn(char *buf, size_t len, u64 wwn) argument
110 put_unaligned_be64(wwn, b);
118 u64 *wwn = arg; local
121 len = ft_format_wwn(buf, PAGE_SIZE - 2, *wwn);
129 u64 wwn; local
296 ft_add_tpg( struct se_wwn *wwn, struct config_group *group, const char *name) argument
433 ft_del_lport(struct se_wwn *wwn) argument
[all...]
/drivers/target/
H A Dtarget_core_fabric_configfs.c979 struct se_wwn *wwn = se_tpg->se_tpg_wwn; local
980 struct target_fabric_configfs *tf = wwn->wwn_tf;
1001 struct se_wwn *wwn = container_of(group, struct se_wwn, wwn_group); local
1002 struct target_fabric_configfs *tf = wwn->wwn_tf;
1010 se_tpg = tf->tf_ops.fabric_make_tpg(wwn, group, name);
1064 struct se_wwn *wwn = container_of(to_config_group(item), local
1066 struct target_fabric_configfs *tf = wwn->wwn_tf;
1068 tf->tf_ops.fabric_drop_wwn(wwn);
1102 struct se_wwn *wwn; local
1109 wwn
1133 struct se_wwn *wwn = container_of(to_config_group(item), local
[all...]
H A Dtarget_core_pscsi.c176 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) argument
189 memcpy(&wwn->vendor[0], &buf[8], sizeof(wwn->vendor));
190 memcpy(&wwn->model[0], &buf[16], sizeof(wwn->model));
191 memcpy(&wwn->revision[0], &buf[32], sizeof(wwn->revision));
195 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) argument
216 snprintf(&wwn->unit_serial[0], INQUIRY_VPD_SERIAL_LEN, "%s", &buf[4]);
218 wwn
229 pscsi_get_inquiry_vpd_device_ident(struct scsi_device *sdev, struct t10_wwn *wwn) argument
[all...]
H A Dtarget_core_alua.c734 struct t10_wwn *wwn = &su_dev->t10_wwn; local
748 "/var/target/alua/tpgs_%s/%s", &wwn->unit_serial[0],
998 char path[ALUA_METADATA_PATH_LEN], wwn[ALUA_SECONDARY_METADATA_WWN_LEN]; local
1002 memset(wwn, 0, ALUA_SECONDARY_METADATA_WWN_LEN);
1004 len = snprintf(wwn, ALUA_SECONDARY_METADATA_WWN_LEN, "%s",
1008 snprintf(wwn+len, ALUA_SECONDARY_METADATA_WWN_LEN-len, "+%hu",
1017 se_tpg->se_tpg_tfo->get_fabric_name(), wwn,
H A Dtarget_core_stat.c1155 struct t10_wwn *wwn; local
1165 wwn = &dev->se_sub_dev->t10_wwn;
1169 (strlen(wwn->unit_serial)) ? wwn->unit_serial :
1170 wwn->vendor);
H A Dtarget_core_transport.c1282 struct t10_wwn *wwn = &dev->se_sub_dev->t10_wwn; local
1289 if (wwn->vendor[i] >= 0x20)
1290 buf[i] = wwn->vendor[i];
1297 if (wwn->model[i] >= 0x20)
1298 buf[i] = wwn->model[i];
1305 if (wwn->revision[i] >= 0x20)
1306 buf[i] = wwn->revision[i];
/drivers/scsi/bfa/
H A Dbfa_cs.h328 wwn2str(char *wwn_str, u64 wwn) argument
331 u64 wwn; member in union:__anon4172
335 w.wwn = wwn;
H A Dbfa_fcbuild.h268 u16 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn);
269 u16 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn);
H A Dbfad_drv.h180 wwn_t wwn[BFA_FCS_MAX_LPORTS]; member in union:bfad_tmp_buf
H A Dbfa_fcbuild.c1404 fc_gmal_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) argument
1415 gmal->wwn = wwn;
1424 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn) argument
1435 gfn->wwn = wwn;
H A Dbfa_fcs.h129 wwn_t rem_port_wwn; /* Attached port's wwn */
292 wwn_t bfa_fcs_lport_get_rport(struct bfa_fcs_lport_s *port, wwn_t wwn,
428 wwn_t pwwn; /* port wwn of rport */
429 wwn_t nwwn; /* node wwn of rport */
482 struct bfa_fcs_lport_s *port, wwn_t wwn);
H A Dbfi_ms.h73 * Boot target wwn information for this port. This contains either the stored
77 wwn_t wwn[BFA_BOOT_BOOTLUN_MAX]; member in struct:bfi_iocfc_bootwwns
264 wwn_t nwwn; /* node wwn of physical port */
265 wwn_t pwwn; /* port wwn of physical port */
/drivers/target/loopback/
H A Dtcm_loop.c1131 struct se_wwn *wwn,
1135 struct tcm_loop_hba *tl_hba = container_of(wwn,
1163 wwn, &tl_tpg->tl_se_tpg, tl_tpg,
1170 config_item_name(&wwn->wwn_group.cg_item), tpgt);
1178 struct se_wwn *wwn = se_tpg->se_tpg_wwn; local
1200 config_item_name(&wwn->wwn_group.cg_item), tpgt);
1278 struct se_wwn *wwn)
1280 struct tcm_loop_hba *tl_hba = container_of(wwn,
1130 tcm_loop_make_naa_tpg( struct se_wwn *wwn, struct config_group *group, const char *name) argument
1277 tcm_loop_drop_scsi_hba( struct se_wwn *wwn) argument
/drivers/scsi/fcoe/
H A Dfcoe_transport.c115 void fcoe_wwn_to_str(u64 wwn, char *buf, int len) argument
119 u64_to_wwn(wwn, wwpn);
172 * @wwn: the output WWN
177 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) argument
182 return ops->ndo_fcoe_get_wwn(netdev, wwn, type);
H A Dfcoe_ctlr.c778 struct fip_wwn_desc *wwn; local
839 wwn = (struct fip_wwn_desc *)desc;
840 fcf->switch_name = get_unaligned_be64(&wwn->fd_wwn);
1805 u64 wwn; local
1817 wwn = host_mac | ((u64) scheme << 60);
1824 wwn |= (u64) port << 48;
1831 return wwn;
2096 struct fip_wwn_desc *wwn = NULL; local
2170 wwn = (struct fip_wwn_desc *)desc;
2171 rdata->ids.node_name = get_unaligned_be64(&wwn
[all...]
/drivers/target/iscsi/
H A Discsi_target_configfs.c1192 struct se_wwn *wwn,
1202 tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn);
1222 wwn, &tpg->tpg_se_tpg, tpg,
1322 struct se_wwn *wwn)
1324 struct iscsi_tiqn *tiqn = container_of(wwn, struct iscsi_tiqn, tiqn_wwn);
1191 lio_target_tiqn_addtpg( struct se_wwn *wwn, struct config_group *group, const char *name) argument
1321 lio_target_call_coredeltiqn( struct se_wwn *wwn) argument
H A Discsi_target_stat.c727 struct se_wwn *wwn = acl->se_node_acl.se_tpg->se_tpg_wwn; local
728 struct iscsi_tiqn *tiqn = container_of(wwn,
/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_fcoe.c840 * @wwn : the world wide name
844 * mac address are valid, then the wwn is formed based on the NAA-2 for
849 int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) argument
869 *wwn = ((u64) prefix << 48) |
H A Dixgbe.h653 extern int ixgbe_fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type);
/drivers/scsi/
H A Dscsi_transport_fc.c1803 u8 wwn[8]; local
1805 memset(wwn, 0, sizeof(wwn));
1817 wwn[i/2] = j & 0xff;
1822 *nm = wwn_to_u64(wwn);
2686 * of a remote port. The LLDD provides the unique identifiers (wwpn,wwn)

Completed in 592 milliseconds

12