• 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

879  * there is a vport associated with the ELS command. This function also
895 if (!piocb->vport)
898 mod_timer(&piocb->vport->els_tmofunc,
1736 struct lpfc_vport *vport = pmb->vport;
1770 pmb->vport = vport;
1820 if (pmb->vport) {
1821 lpfc_debugfs_disc_trc(pmb->vport,
1823 "MBOX cmpl vport: cmd:x%x mb:x%x x%x",
1847 pmb->vport ? pmb->vport->vpi : 0,
1865 pmb->vport ? pmb->vport->vpi :0,
1871 pmb->vport->port_state);
1884 pmb->vport ? pmb->vport->vpi : 0,
4141 mboxq->vport ? mboxq->vport->vpi : 0,
4297 struct lpfc_vport *vport = phba->pport;
4397 mboxq->vport ? mboxq->vport->vpi : 0,
4455 rc = lpfc_read_sparam(phba, mboxq, vport->vpi);
4462 mboxq->vport = vport;
4466 memcpy(&vport->fc_sparam, mp->virt, sizeof(struct serv_parm));
4489 vport->fc_sparam.nodeName.u.wwn);
4492 vport->fc_sparam.portName.u.wwn);
4493 memcpy(&vport->fc_nodename, &vport->fc_sparam.nodeName,
4495 memcpy(&vport->fc_portname, &vport->fc_sparam.portName,
4499 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn);
4500 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn);
4561 mod_timer(&vport->els_tmofunc,
4775 if(!pmbox->vport) {
4779 "1806 Mbox x%x failed. No vport\n",
4810 pmbox->vport ? pmbox->vport->vpi : 0,
4821 pmbox->vport ? pmbox->vport->vpi : 0,
4839 pmbox->vport ? pmbox->vport->vpi : 0,
4851 pmbox->vport ? pmbox->vport->vpi : 0,
4866 pmbox->vport ? pmbox->vport->vpi : 0xffffff,
4873 if (pmbox->vport) {
4874 lpfc_debugfs_disc_trc(pmbox->vport,
4876 "MBOX Bsy vport: cmd:x%x mb:x%x x%x",
4903 pmbox->vport ? pmbox->vport->vpi : 0,
4917 pmbox->vport ? pmbox->vport->vpi : 0,
4922 if (pmbox->vport) {
4923 lpfc_debugfs_disc_trc(pmbox->vport,
4925 "MBOX Send vport: cmd:x%x mb:x%x x%x",
5246 mboxq->vport ? mboxq->vport->vpi : 0,
5324 mboxq->vport ? mboxq->vport->vpi : 0,
5370 mboxq->vport ? mboxq->vport->vpi : 0,
5387 mboxq->vport ? mboxq->vport->vpi : 0,
5397 mboxq->vport ? mboxq->vport->vpi : 0,
5412 mboxq->vport ?
5413 mboxq->vport->vpi : 0,
5430 mboxq->vport ? mboxq->vport->vpi : 0,
5445 mboxq->vport ? mboxq->vport->vpi : 0xffffff,
5529 mboxq->vport ? mboxq->vport->vpi : 0, mbx_cmnd,
5534 if (mboxq->vport) {
5535 lpfc_debugfs_disc_trc(mboxq->vport,
5537 "MBOX Send vport: cmd:x%x mb:x%x x%x",
5556 mboxq->vport ? mboxq->vport->vpi : 0,
5716 if (piocb->iocb_cmpl && (!piocb->vport) &&
5721 "1807 IOCB x%x failed. No vport\n",
6149 iocbq->vport->vpi + phba->vpi_base);
6754 * @vport: Pointer to virtual port object.
6757 * associated with a vport before destroying virtual
6765 * vport in txcmplq.
6770 lpfc_sli_host_down(struct lpfc_vport *vport)
6773 struct lpfc_hba *phba = vport->phba;
6781 lpfc_cleanup_discovery_resources(vport);
6798 if (iocb->vport != vport)
6807 if (iocb->vport != vport)
7275 struct lpfc_vport *vport = cmdiocb->vport;
7295 if ((vport->load_flag & FC_UNLOADING) &&
7338 lpfc_printf_vlog(vport, KERN_INFO, LOG_SLI,
7358 * lpfc_sli_validate_fcp_iocb - find commands associated with a vport or LUN
7360 * @vport: Pointer to driver virtual port object.
7370 * given iocb is for the SCSI device specified by vport, tgt_id and
7373 * given iocb is for the SCSI target specified by vport and tgt_id
7376 * given iocb is for the SCSI host associated with the given vport.
7380 lpfc_sli_validate_fcp_iocb(struct lpfc_iocbq *iocbq, struct lpfc_vport *vport,
7390 if (iocbq->vport != vport)
7424 * @vport: Pointer to virtual port.
7429 * This function returns number of FCP commands pending for the vport.
7431 * commands pending on the vport associated with SCSI device specified
7434 * commands pending on the vport associated with SCSI target specified
7437 * commands pending on the vport.
7442 lpfc_sli_sum_iocb(struct lpfc_vport *vport, uint16_t tgt_id, uint64_t lun_id,
7445 struct lpfc_hba *phba = vport->phba;
7452 if (lpfc_sli_validate_fcp_iocb (iocbq, vport, tgt_id, lun_id,
7480 * @vport: Pointer to virtual port.
7500 lpfc_sli_abort_iocb(struct lpfc_vport *vport, struct lpfc_sli_ring *pring,
7503 struct lpfc_hba *phba = vport->phba;
7513 if (lpfc_sli_validate_fcp_iocb(iocbq, vport, tgt_id, lun_id,
7533 abtsiocb->vport = phba->pport;
8072 struct lpfc_vport *vport;
8218 vport = pmb->vport;
8233 (vport ? vport->vpi : 0),
8256 lpfc_debugfs_disc_trc(vport,
8275 vport->vpi,
8282 pmb->vport = vport;
8733 struct lpfc_vport *vport;
8758 vport = pmb->vport;
8775 lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_MBOX_VPORT,
8785 lpfc_unreg_login(phba, vport->vpi,
8790 pmb->vport = vport;
9798 mbox->vport = phba->pport;
10427 mbox->vport = eq->phba->pport;
10482 mbox->vport = cq->phba->pport;
10535 mbox->vport = mq->phba->pport;
10588 mbox->vport = wq->phba->pport;
10641 mbox->vport = hrq->phba->pport;
11152 * lpfc_fc_frame_to_vport - Finds the vport that a frame is destined to
11153 * @phba: Pointer to the HBA structure to search for the vport on
11157 * This function searches the @phba for a vport that matches the content of the
11160 * returns the matching vport pointer or NULL if unable to match frame to a
11161 * vport.
11168 struct lpfc_vport *vport = NULL;
11180 vport = vports[i];
11185 return vport;
11189 * lpfc_update_rcv_time_stamp - Update vport's rcv seq time stamp
11190 * @vport: The vport to work on.
11192 * This function updates the receive sequence time stamp for this vport. The
11199 lpfc_update_rcv_time_stamp(struct lpfc_vport *vport)
11205 h_buf = list_get_first(&vport->rcv_buffer_list,
11210 vport->rcv_buffer_time_stamp = dmabuf->time_stamp;
11215 * @vport: The vport that the received sequences were sent to.
11222 lpfc_cleanup_rcv_buffers(struct lpfc_vport *vport)
11229 list_for_each_entry_safe(h_buf, hnext, &vport->rcv_buffer_list, list) {
11235 lpfc_in_buf_free(vport->phba, d_buf);
11237 lpfc_in_buf_free(vport->phba, &dmabuf->dbuf);
11243 * @vport: The vport that the received sequences were sent to.
11246 * first checking the vport's rcv_buffer_time_stamp. If this time_stamp
11254 lpfc_rcv_seq_check_edtov(struct lpfc_vport *vport)
11262 timeout = (msecs_to_jiffies(vport->phba->fc_edtov) +
11263 vport->rcv_buffer_time_stamp);
11264 if (list_empty(&vport->rcv_buffer_list) ||
11268 list_for_each_entry_safe(h_buf, hnext, &vport->rcv_buffer_list, list) {
11270 timeout = (msecs_to_jiffies(vport->phba->fc_edtov) +
11279 lpfc_in_buf_free(vport->phba, d_buf);
11281 lpfc_in_buf_free(vport->phba, &dmabuf->dbuf);
11284 lpfc_update_rcv_time_stamp(vport);
11288 * lpfc_fc_frame_add - Adds a frame to the vport's list of received sequences
11292 * been sent to this @vport. If the frame matches one of the incomplete
11295 * the function will add the hbuf in the @dmabuf to the @vport's rcv_buffer_list
11300 lpfc_fc_frame_add(struct lpfc_vport *vport, struct hbq_dmabuf *dmabuf)
11313 list_for_each_entry(h_buf, &vport->rcv_buffer_list, list) {
11326 * Queue the buffer on the vport's rcv_buffer_list.
11328 list_add_tail(&dmabuf->hbuf.list, &vport->rcv_buffer_list);
11329 lpfc_update_rcv_time_stamp(vport);
11336 list_add_tail(&dmabuf->hbuf.list, &vport->rcv_buffer_list);
11338 lpfc_update_rcv_time_stamp(vport);
11342 list_move_tail(&seq_dmabuf->hbuf.list, &vport->rcv_buffer_list);
11344 lpfc_update_rcv_time_stamp(vport);
11369 * @vport: pointer to a vitural port
11384 lpfc_sli4_abort_partial_seq(struct lpfc_vport *vport,
11396 list_for_each_entry(h_buf, &vport->rcv_buffer_list, list) {
11412 lpfc_in_buf_free(vport->phba, d_buf);
11494 ctiocb->vport = phba->pport;
11525 * @vport: Pointer to the vport on which this sequence was received
11537 lpfc_sli4_handle_unsol_abort(struct lpfc_vport *vport,
11540 struct lpfc_hba *phba = vport->phba;
11559 abts_par = lpfc_sli4_abort_partial_seq(vport, dmabuf);
11563 lpfc_sli4_send_seq_to_ulp(vport, dmabuf);
11620 * @vport: Pointer to the vport on which this sequence was received
11632 lpfc_prep_seq(struct lpfc_vport *vport, struct hbq_dmabuf *seq_dmabuf)
11643 lpfc_update_rcv_time_stamp(vport);
11647 first_iocbq = lpfc_sli_get_iocbq(vport->phba);
11655 vport->vpi + vport->phba->vpi_base;
11674 lpfc_in_buf_free(vport->phba, d_buf);
11687 iocbq = lpfc_sli_get_iocbq(vport->phba);
11695 lpfc_in_buf_free(vport->phba, d_buf);
11714 lpfc_sli4_send_seq_to_ulp(struct lpfc_vport *vport,
11719 struct lpfc_hba *phba = vport->phba;
11722 iocbq = lpfc_prep_seq(vport, seq_dmabuf);
11768 struct lpfc_vport *vport;
11779 vport = lpfc_fc_frame_to_vport(phba, fc_hdr, fcfi);
11780 if (!vport || !(vport->vpi_state & LPFC_VPI_REGISTERED)) {
11787 lpfc_sli4_handle_unsol_abort(vport, dmabuf);
11792 seq_dmabuf = lpfc_fc_frame_add(vport, dmabuf);
11794 /* unable to add frame to vport - throw it out */
11803 lpfc_sli4_send_seq_to_ulp(vport, seq_dmabuf);
12199 mboxq->vport = phba->pport;
12288 mboxq->vport = phba->pport;
12346 mboxq->vport = phba->pport;
12392 mboxq->vport = phba->pport;
12626 mbox->vport = phba->pport;
12792 * lpfc_cleanup_pending_mbox - Free up vport discovery mailbox commands.
12793 * @vport: pointer to vport data structure.
12796 * and REG_VPI mailbox commands associated with the vport. This function
12797 * is called when driver want to restart discovery of the vport due to
12801 lpfc_cleanup_pending_mbox(struct lpfc_vport *vport)
12803 struct lpfc_hba *phba = vport->phba;
12807 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
12811 if (mb->vport != vport)
12840 if (mb && (mb->vport == vport)) {
12868 * vport counts during node discovery.