• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/lpfc/

Lines Matching defs:vport

327 	struct lpfc_vport *vport = phba->pport;
328 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
360 pmb->vport = vport;
376 memcpy(&vport->fc_sparam, mp->virt, sizeof (struct serv_parm));
383 vport->fc_sparam.nodeName.u.wwn);
386 vport->fc_sparam.portName.u.wwn);
387 memcpy(&vport->fc_nodename, &vport->fc_sparam.nodeName,
389 memcpy(&vport->fc_portname, &vport->fc_sparam.portName,
393 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn);
394 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn);
402 outptr = &vport->fc_nodename.u.s.IEEE[0];
424 pmb->vport = vport;
529 mod_timer(&vport->els_tmofunc, jiffies + HZ * timeout);
587 pmb->vport = phba->pport;
609 pmb->vport = phba->pport;
638 struct lpfc_vport *vport = phba->pport;
649 pmb->vport = vport;
1048 pmboxq->vport = phba->pport;
1252 struct lpfc_vport *vport = phba->pport;
1350 shost = lpfc_shost_from_vport(vport);
1370 struct lpfc_vport *vport = phba->pport;
1394 shost = lpfc_shost_from_vport(vport);
1429 struct lpfc_vport *vport = phba->pport;
1460 pmb->vport = vport;
2123 * lpfc_cleanup - Performs vport cleanups before deleting a vport
2124 * @vport: pointer to a virtual N_Port data structure.
2126 * This routine performs the necessary cleanups before deleting the @vport.
2128 * transitions and to release the ndlps associated with the @vport. Note,
2129 * the physical port is treated as @vport 0.
2132 lpfc_cleanup(struct lpfc_vport *vport)
2134 struct lpfc_hba *phba = vport->phba;
2139 lpfc_port_link_failure(vport);
2141 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
2143 ndlp = lpfc_enable_node(vport, ndlp,
2164 if (vport->port_type != LPFC_PHYSICAL_PORT &&
2172 lpfc_disc_state_machine(vport, ndlp, NULL,
2175 lpfc_disc_state_machine(vport, ndlp, NULL,
2184 while (!list_empty(&vport->fc_nodes)) {
2186 lpfc_printf_vlog(vport, KERN_ERR, LOG_DISCOVERY,
2189 &vport->fc_nodes, nlp_listp) {
2190 lpfc_printf_vlog(ndlp->vport, KERN_ERR,
2208 * lpfc_stop_vport_timers - Stop all the timers associated with a vport
2209 * @vport: pointer to a virtual N_Port data structure.
2211 * This routine stops all the timers associated with a @vport. This function
2212 * is invoked before disabling or deleting a @vport. Note that the physical
2213 * port is treated as @vport 0.
2216 lpfc_stop_vport_timers(struct lpfc_vport *vport)
2218 del_timer_sync(&vport->els_tmofunc);
2219 del_timer_sync(&vport->fc_fdmitmo);
2220 lpfc_can_disctmo(vport);
2356 struct lpfc_vport *vport;
2362 vport = phba->pport;
2364 if (!(vport->fc_flag & FC_OFFLINE_MODE))
2440 struct lpfc_vport *vport = phba->pport;
2446 if (vport->fc_flag & FC_OFFLINE_MODE)
2589 * @vport - pointer to the virtual N_Port data structure.
2595 struct lpfc_vport *vport;
2608 vport = (struct lpfc_vport *) shost->hostdata;
2609 vport->phba = phba;
2610 vport->load_flag |= FC_LOADING;
2611 vport->fc_flag |= FC_VPORT_NEEDS_REG_VPI;
2612 vport->fc_rscn_flush = 0;
2614 lpfc_get_vport_cfgparam(vport);
2617 shost->max_lun = vport->cfg_max_luns;
2634 vport->port_type = LPFC_NPIV_PORT;
2637 vport->port_type = LPFC_PHYSICAL_PORT;
2641 INIT_LIST_HEAD(&vport->fc_nodes);
2642 INIT_LIST_HEAD(&vport->rcv_buffer_list);
2643 spin_lock_init(&vport->work_port_lock);
2645 init_timer(&vport->fc_disctmo);
2646 vport->fc_disctmo.function = lpfc_disc_timeout;
2647 vport->fc_disctmo.data = (unsigned long)vport;
2649 init_timer(&vport->fc_fdmitmo);
2650 vport->fc_fdmitmo.function = lpfc_fdmi_tmo;
2651 vport->fc_fdmitmo.data = (unsigned long)vport;
2653 init_timer(&vport->els_tmofunc);
2654 vport->els_tmofunc.function = lpfc_els_timeout;
2655 vport->els_tmofunc.data = (unsigned long)vport;
2661 list_add_tail(&vport->listentry, &phba->port_list);
2663 return vport;
2673 * @vport: pointer to an lpfc virtual N_Port data structure.
2679 destroy_port(struct lpfc_vport *vport)
2681 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
2682 struct lpfc_hba *phba = vport->phba;
2684 lpfc_debugfs_terminate(vport);
2689 list_del_init(&vport->listentry);
2692 lpfc_cleanup(vport);
2736 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
2737 struct lpfc_hba *phba = vport->phba;
2742 if (vport->load_flag & FC_UNLOADING) {
2761 if (vport->port_state != LPFC_VPORT_READY)
2763 if (vport->num_disc_nodes || vport->fc_prli_sent)
2765 if (vport->fc_map_cnt == 0 && time < 2 * HZ)
2786 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
2787 struct lpfc_hba *phba = vport->phba;
2792 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn);
2793 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn);
2801 lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost),
2817 (((uint32_t) vport->fc_sparam.cmn.bbRcvSizeMsb & 0x0F) << 8) |
2818 (uint32_t) vport->fc_sparam.cmn.bbRcvSizeLsb;
2828 vport->load_flag &= ~FC_LOADING;
3219 pmb->vport = phba->pport;
3265 * lpfc_sli4_perform_vport_cvl - Perform clear virtual link on a vport
3266 * @vport: pointer to vport data structure.
3268 * This routine is to perform Clear Virtual Link (CVL) on a vport in
3271 * Return the pointer to the ndlp with the vport if successful, otherwise
3275 lpfc_sli4_perform_vport_cvl(struct lpfc_vport *vport)
3281 if (!vport)
3283 phba = vport->phba;
3286 ndlp = lpfc_findnode_did(vport, Fabric_DID);
3292 lpfc_nlp_init(vport, ndlp, Fabric_DID);
3296 lpfc_enqueue_node(vport, ndlp);
3299 ndlp = lpfc_enable_node(vport, ndlp, NLP_STE_UNUSED_NODE);
3306 if ((vport != phba->pport) && (vport->port_state < LPFC_FDISC))
3308 shost = lpfc_shost_from_vport(vport);
3311 lpfc_linkdown_port(vport);
3312 lpfc_cleanup_pending_mbox(vport);
3314 vport->fc_flag |= FC_VPORT_CVL_RCVD;
3322 * @vport: pointer to lpfc hba data structure.
3353 struct lpfc_vport *vport;
3500 vport = lpfc_find_vport_by_vpid(phba,
3502 ndlp = lpfc_sli4_perform_vport_cvl(vport);
3527 shost = lpfc_shost_from_vport(vport);
3532 vport->port_state = LPFC_FDISC;
4949 struct lpfc_vport *vport;
4959 vport = lpfc_create_port(phba, phba->brd_no, &phba->pcidev->dev);
4960 if (!vport)
4963 shost = lpfc_shost_from_vport(vport);
4964 phba->pport = vport;
4965 lpfc_debugfs_initialize(vport);
4982 struct lpfc_vport *vport = phba->pport;
4985 destroy_port(vport);
7336 struct lpfc_vport *vport = phba->pport;
7337 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
7340 vport->load_flag |= FC_UNLOADING;
7366 struct lpfc_vport *vport = phba->pport;
7367 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
7370 vport->load_flag |= FC_UNLOADING;
7528 struct lpfc_vport *vport = NULL;
7600 vport = phba->pport;
7601 error = lpfc_alloc_sysfs_attr(vport);
7608 shost = lpfc_shost_from_vport(vport); /* save shost for error cleanup */
7662 lpfc_free_sysfs_attr(vport);
7695 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
7697 struct lpfc_hba *phba = vport->phba;
7702 vport->load_flag |= FC_UNLOADING;
7705 lpfc_free_sysfs_attr(vport);
7717 lpfc_cleanup(vport);
7734 list_del_init(&vport->listentry);
7737 lpfc_debugfs_terminate(vport);
8152 struct lpfc_vport *vport = NULL;
8230 vport = phba->pport;
8231 error = lpfc_alloc_sysfs_attr(vport);
8238 shost = lpfc_shost_from_vport(vport); /* save shost for error cleanup */
8299 lpfc_free_sysfs_attr(vport);
8332 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
8334 struct lpfc_hba *phba = vport->phba;
8339 vport->load_flag |= FC_UNLOADING;
8343 lpfc_free_sysfs_attr(vport);
8357 lpfc_cleanup(vport);
8364 lpfc_debugfs_terminate(vport);
8368 list_del_init(&vport->listentry);