Home
last modified time | relevance | path

Searched refs:wwpn (Results 1 – 25 of 52) sorted by relevance

123

/drivers/target/tcm_fc/
Dtfc_conf.c192 u64 wwpn; in ft_init_nodeacl() local
194 if (ft_parse_wwn(name, &wwpn, 1) < 0) in ft_init_nodeacl()
197 acl->node_auth.port_name = wwpn; in ft_init_nodeacl()
324 if (ft_wwn->wwpn == lport->wwpn) in ft_lport_find_tpg()
345 u64 wwpn; in ft_add_wwn() local
348 if (ft_parse_wwn(name, &wwpn, 1) < 0) in ft_add_wwn()
353 ft_wwn->wwpn = wwpn; in ft_add_wwn()
357 if (old_ft_wwn->wwpn == wwpn) { in ft_add_wwn()
364 ft_format_wwn(ft_wwn->name, sizeof(ft_wwn->name), wwpn); in ft_add_wwn()
Dtcm_fc.h30 __u8 wwpn[8]; member
105 u64 wwpn; member
/drivers/s390/scsi/
Dzfcp_aux.c56 static void __init zfcp_init_device_configure(char *busid, u64 wwpn, u64 lun) in zfcp_init_device_configure() argument
73 port = zfcp_get_port_by_wwpn(adapter, wwpn); in zfcp_init_device_configure()
93 u64 wwpn, lun; in zfcp_init_device_setup() local
107 if (!token || kstrtoull(token, 0, (unsigned long long *) &wwpn)) in zfcp_init_device_setup()
115 zfcp_init_device_configure(busid, wwpn, lun); in zfcp_init_device_setup()
185 u64 wwpn) in zfcp_get_port_by_wwpn() argument
192 if (port->wwpn == wwpn) { in zfcp_get_port_by_wwpn()
484 struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn, in zfcp_port_enqueue() argument
492 port = zfcp_get_port_by_wwpn(adapter, wwpn); in zfcp_port_enqueue()
513 port->wwpn = wwpn; in zfcp_port_enqueue()
[all …]
Dzfcp_sysfs.c294 u64 wwpn; in zfcp_sysfs_port_remove_store() local
300 if (kstrtoull(buf, 0, (unsigned long long *) &wwpn)) in zfcp_sysfs_port_remove_store()
303 port = zfcp_get_port_by_wwpn(adapter, wwpn); in zfcp_sysfs_port_remove_store()
494 ZFCP_DEFINE_SCSI_ATTR(wwpn, "0x%016llx\n",
495 (unsigned long long) zfcp_sdev->port->wwpn);
Dzfcp_fc.c289 static void zfcp_fc_incoming_wwpn(struct zfcp_fsf_req *req, u64 wwpn) in zfcp_fc_incoming_wwpn() argument
297 if (port->wwpn == wwpn) { in zfcp_fc_incoming_wwpn()
391 gid_pn_req->gid_pn.fn_wwpn = port->wwpn; in zfcp_fc_ns_gid_pn_request()
475 if (plogi->fl_wwpn != port->wwpn) { in zfcp_fc_plogi_evaluate()
480 (unsigned long long) port->wwpn, in zfcp_fc_plogi_evaluate()
514 if ((port->wwpn != adisc_resp->adisc_wwpn) || in zfcp_fc_adisc_handler()
Dzfcp_def.h208 u64 wwpn; /* WWPN */ member
Dzfcp_erp.c358 tmpport.wwpn = port_name; in zfcp_erp_port_forced_no_port_dbf()
966 if (port->wwpn != adapter->peer_wwpn) { in zfcp_erp_open_ptp_port()
1109 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_erp_strategy_check_lun()
1140 (unsigned long long)port->wwpn); in zfcp_erp_strategy_check_port()
Dzfcp_dbf.h81 u64 wwpn; member
Dzfcp_fsf.c628 fc_host_permanent_port_name(shost) = bottom->wwpn; in zfcp_fsf_exchange_port_evaluate()
1399 (unsigned long long)port->wwpn); in zfcp_fsf_open_port_handler()
1821 (unsigned long long)zfcp_sdev->port->wwpn, in zfcp_fsf_open_lun_handler()
1834 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_open_lun_handler()
2087 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_fcp_handler_common()
2098 (unsigned long long)zfcp_sdev->port->wwpn); in zfcp_fsf_fcp_handler_common()
/drivers/scsi/csiostor/
Dcsio_rnode.c145 csio_rn_lookup_wwpn(struct csio_lnode *ln, uint8_t *wwpn) in csio_rn_lookup_wwpn() argument
153 if (!memcmp(csio_rn_wwpn(rn), wwpn, 8)) in csio_rn_lookup_wwpn()
333 rn = csio_rn_lookup_wwpn(ln, rdevp->wwpn); in csio_confirm_rnode()
352 if (!memcmp(csio_rn_wwpn(match_rn), rdevp->wwpn, 8)) { in csio_confirm_rnode()
359 wwn_to_u64(rdevp->wwpn), in csio_confirm_rnode()
379 if (!memcmp(csio_rn_wwpn(rn), rdevp->wwpn, 8)) in csio_confirm_rnode()
383 match_rn = csio_rn_lookup_wwpn(ln, rdevp->wwpn); in csio_confirm_rnode()
388 wwn_to_u64(rdevp->wwpn), in csio_confirm_rnode()
413 rn, rdev_flowid, wwn_to_u64(rdevp->wwpn)); in csio_confirm_rnode()
429 rn, rdev_flowid, wwn_to_u64(rdevp->wwpn)); in csio_confirm_rnode()
[all …]
Dcsio_attr.c473 ln->ln_sparm.wwpn[0], ln->ln_sparm.wwpn[1], in csio_fcoe_alloc_vnp()
474 ln->ln_sparm.wwpn[2], ln->ln_sparm.wwpn[3], in csio_fcoe_alloc_vnp()
475 ln->ln_sparm.wwpn[4], ln->ln_sparm.wwpn[5], in csio_fcoe_alloc_vnp()
476 ln->ln_sparm.wwpn[6], ln->ln_sparm.wwpn[7]); in csio_fcoe_alloc_vnp()
Dcsio_lnode.h139 uint8_t wwpn[8]; /* WWPN */ member
208 #define csio_ln_wwpn(ln) ((ln)->ln_sparm.wwpn)
Dcsio_rnode.h121 #define csio_rn_wwpn(rn) ((rn)->rn_sparm.wwpn)
/drivers/scsi/fcoe/
Dfcoe_transport.c219 u8 wwpn[8]; in fcoe_wwn_to_str() local
221 u64_to_wwn(wwn, wwpn); in fcoe_wwn_to_str()
223 wwpn[0], wwpn[1], wwpn[2], wwpn[3], in fcoe_wwn_to_str()
224 wwpn[4], wwpn[5], wwpn[6], wwpn[7]); in fcoe_wwn_to_str()
249 if (!memcmp(&n_port->wwpn, &vport->port_name, sizeof(u64))) { in fcoe_validate_vport_create()
258 if (!memcmp(&vn_port->wwpn, &vport->port_name, sizeof(u64))) { in fcoe_validate_vport_create()
Dfcoe_ctlr.c583 put_unaligned_be64(lport->wwpn, &vn->fd_wwpn); in fcoe_ctlr_send_keep_alive()
1463 vn_port->wwpn) in fcoe_ctlr_recv_clr_vlink()
2048 put_unaligned_be64(fip->lp->wwpn, &frame->vn.fd_wwpn); in fcoe_ctlr_vn_send()
2198 port_id = fip->lp->wwpn & 0xffff; in fcoe_ctlr_vn_restart()
2221 prandom_seed_state(&fip->rnd_state, fip->lp->wwpn); in fcoe_ctlr_vn_start()
2395 if (fip->lp->wwpn > rdata->ids.port_name && in fcoe_ctlr_vn_probe_req()
2533 if (new->ids.port_name > fip->lp->wwpn) { in fcoe_ctlr_vn_claim_notify()
/drivers/scsi/lpfc/
Dlpfc_nl.h68 uint8_t wwpn[8]; member
97 uint8_t wwpn[8]; member
120 uint8_t wwpn[8]; member
Dlpfc_attr.c2227 u8 wwpn[WWN_SZ]; in lpfc_soft_wwpn_store() local
2248 rc = lpfc_wwn_set(buf, cnt, wwpn); in lpfc_soft_wwpn_store()
2255 phba->cfg_soft_wwpn = wwn_to_u64(wwpn); in lpfc_soft_wwpn_store()
2389 uint8_t wwpn[WWN_SZ]; in lpfc_oas_tgt_store() local
2399 rc = lpfc_wwn_set(buf, cnt, wwpn); in lpfc_oas_tgt_store()
2403 memcpy(phba->cfg_oas_tgt_wwpn, wwpn, (8 * sizeof(uint8_t))); in lpfc_oas_tgt_store()
2404 memcpy(phba->sli4_hba.oas_next_tgt_wwpn, wwpn, (8 * sizeof(uint8_t))); in lpfc_oas_tgt_store()
2405 if (wwn_to_u64(wwpn) == 0) in lpfc_oas_tgt_store()
2457 uint8_t wwpn[WWN_SZ]; in lpfc_oas_vpt_store() local
2467 rc = lpfc_wwn_set(buf, cnt, wwpn); in lpfc_oas_vpt_store()
[all …]
/drivers/scsi/bfa/
Dbfad_im.c443 wwn_t wwpn; in bfa_fcb_itnim_free() local
459 wwpn = bfa_fcs_itnim_get_pwwn(&itnim_drv->fcs_itnim); in bfa_fcb_itnim_free()
461 wwn2str(wwpn_str, wwpn); in bfa_fcb_itnim_free()
1101 wwn_t wwpn; in bfad_im_itnim_work_handler() local
1114 wwpn = bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim); in bfad_im_itnim_work_handler()
1116 wwn2str(wwpn_str, wwpn); in bfad_im_itnim_work_handler()
1148 wwpn = bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim); in bfad_im_itnim_work_handler()
1150 wwn2str(wwpn_str, wwpn); in bfad_im_itnim_work_handler()
/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c155 u64 *wwpn, in tcm_qla2xxx_npiv_parse_wwn() argument
161 *wwpn = 0; in tcm_qla2xxx_npiv_parse_wwn()
172 rc = tcm_qla2xxx_npiv_extract_wwn(&name[0], wwpn); in tcm_qla2xxx_npiv_parse_wwn()
1529 u64 wwpn; in tcm_qla2xxx_make_lport() local
1532 if (tcm_qla2xxx_parse_wwn(name, &wwpn, 1) < 0) in tcm_qla2xxx_make_lport()
1540 lport->lport_wwpn = wwpn; in tcm_qla2xxx_make_lport()
1542 wwpn); in tcm_qla2xxx_make_lport()
1543 sprintf(lport->lport_naa_name, "naa.%016llx", (unsigned long long) wwpn); in tcm_qla2xxx_make_lport()
1549 ret = qlt_lport_register(lport, wwpn, 0, 0, in tcm_qla2xxx_make_lport()
Dqla_bsg.h162 uint8_t wwpn[8]; member
/drivers/scsi/cxlflash/
Dvlun.h72 u64 wwpn; member
Dmain.c1058 u64 wwpn) in afu_set_wwpn() argument
1072 writeq_be(wwpn, &fc_regs[FC_PNAME / 8]); in afu_set_wwpn()
1412 static int read_vpd(struct cxlflash_cfg *cfg, u64 wwpn[]) in read_vpd() argument
1482 rc = kstrtoul(tmp_buf, WWPN_LEN, (ulong *)&wwpn[k]); in read_vpd()
1542 u64 wwpn[NUM_FC_PORTS]; /* wwpn of AFU ports */ in init_global() local
1547 rc = read_vpd(cfg, &wwpn[0]); in init_global()
1553 pr_debug("%s: wwpn0=0x%llX wwpn1=0x%llX\n", __func__, wwpn[0], wwpn[1]); in init_global()
1588 if (wwpn[i] != 0 && in init_global()
1591 wwpn[i])) { in init_global()
/drivers/scsi/libfc/
Dfc_lport.c368 put_unaligned_be64(lport->wwpn, &flogi->fl_wwpn); in fc_lport_flogi_fill()
500 rp->cid.rnid_wwpn = htonll(lport->wwpn); in fc_lport_recv_rnid_req()
827 if (remote_wwpn == lport->wwpn) { in fc_lport_recv_flogi_req()
841 if (remote_wwpn < lport->wwpn) { in fc_lport_recv_flogi_req()
1872 fc_host_port_name(lport->host) = lport->wwpn; in fc_lport_init()
/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c753 u64 wwnn, wwpn; in bnx2fc_net_config() local
781 if (fcoe_get_wwn(netdev, &wwpn, NETDEV_FCOE_WWPN)) in bnx2fc_net_config()
782 wwpn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in bnx2fc_net_config()
785 BNX2FC_HBA_DBG(lport, "WWPN = 0x%llx\n", wwpn); in bnx2fc_net_config()
786 fc_set_wwpn(lport, wwpn); in bnx2fc_net_config()
2065 wwn_to_u64(npiv_tbl->wwpn[0]) == 0) { in bnx2fc_npiv_create_vports()
2076 vpid.port_name = wwn_to_u64(npiv_tbl->wwpn[i]); in bnx2fc_npiv_create_vports()
/drivers/scsi/ibmvscsi/
Dibmvfc.h329 __be64 wwpn; member
578 volatile __be64 wwpn; member

123