Home
last modified time | relevance | path

Searched refs:pring (Results 1 – 17 of 17) sorted by relevance

/linux-4.1.27/drivers/scsi/lpfc/
Dlpfc_sli.c541 lpfc_cmd_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) in lpfc_cmd_iocb() argument
543 return (IOCB_t *) (((char *) pring->sli.sli3.cmdringaddr) + in lpfc_cmd_iocb()
544 pring->sli.sli3.cmdidx * phba->iocb_cmd_size); in lpfc_cmd_iocb()
558 lpfc_resp_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) in lpfc_resp_iocb() argument
560 return (IOCB_t *) (((char *) pring->sli.sli3.rspringaddr) + in lpfc_resp_iocb()
561 pring->sli.sli3.rspidx * phba->iocb_rsp_size); in lpfc_resp_iocb()
1004 struct lpfc_sli_ring *pring = &phba->sli.ring[LPFC_ELS_RING]; in __lpfc_sli_release_iocbq_s4() local
1022 spin_lock_irqsave(&pring->ring_lock, iflag); in __lpfc_sli_release_iocbq_s4()
1027 spin_unlock_irqrestore(&pring->ring_lock, iflag); in __lpfc_sli_release_iocbq_s4()
1030 if (!list_empty(&pring->txq)) in __lpfc_sli_release_iocbq_s4()
[all …]
Dlpfc_mbox.c942 struct lpfc_sli_ring *pring; in lpfc_config_pcb_setup() local
952 pring = &psli->ring[i]; in lpfc_config_pcb_setup()
954 pring->sli.sli3.sizeCiocb = in lpfc_config_pcb_setup()
957 pring->sli.sli3.sizeRiocb = in lpfc_config_pcb_setup()
962 if ((pring->sli.sli3.numCiocb == 0) || in lpfc_config_pcb_setup()
963 (pring->sli.sli3.numRiocb == 0)) { in lpfc_config_pcb_setup()
970 pring->sli.sli3.cmdringaddr = NULL; in lpfc_config_pcb_setup()
971 pring->sli.sli3.rspringaddr = NULL; in lpfc_config_pcb_setup()
975 pring->sli.sli3.cmdringaddr = (void *)&phba->IOCBs[iocbCnt]; in lpfc_config_pcb_setup()
976 pcbp->rdsc[i].cmdEntries = pring->sli.sli3.numCiocb; in lpfc_config_pcb_setup()
[all …]
Dlpfc_els.c1208 struct lpfc_sli_ring *pring; in lpfc_issue_els_flogi() local
1214 pring = &phba->sli.ring[LPFC_ELS_RING]; in lpfc_issue_els_flogi()
1309 struct lpfc_sli_ring *pring; in lpfc_els_abort_flogi() local
1319 pring = &phba->sli.ring[LPFC_ELS_RING]; in lpfc_els_abort_flogi()
1326 list_for_each_entry_safe(iocb, next_iocb, &pring->txcmplq, list) { in lpfc_els_abort_flogi()
1332 lpfc_sli_issue_abort_iotag(phba, pring, iocb); in lpfc_els_abort_flogi()
6258 struct lpfc_sli_ring *pring; in lpfc_els_timeout_handler() local
6270 pring = &phba->sli.ring[LPFC_ELS_RING]; in lpfc_els_timeout_handler()
6275 spin_lock(&pring->ring_lock); in lpfc_els_timeout_handler()
6279 spin_unlock(&pring->ring_lock); in lpfc_els_timeout_handler()
[all …]
Dlpfc_init.c883 struct lpfc_sli_ring *pring; in lpfc_hba_free_post_buf() local
892 pring = &psli->ring[LPFC_ELS_RING]; in lpfc_hba_free_post_buf()
894 list_splice_init(&pring->postbufq, &buflist); in lpfc_hba_free_post_buf()
906 pring->postbufq_cnt -= count; in lpfc_hba_free_post_buf()
925 struct lpfc_sli_ring *pring; in lpfc_hba_clean_txcmplq() local
930 pring = &psli->ring[i]; in lpfc_hba_clean_txcmplq()
932 spin_lock_irq(&pring->ring_lock); in lpfc_hba_clean_txcmplq()
938 list_splice_init(&pring->txcmplq, &completions); in lpfc_hba_clean_txcmplq()
939 pring->txcmplq_cnt = 0; in lpfc_hba_clean_txcmplq()
942 spin_unlock_irq(&pring->ring_lock); in lpfc_hba_clean_txcmplq()
[all …]
Dlpfc_hbadisc.c630 struct lpfc_sli_ring *pring; in lpfc_work_done() local
711 pring = &phba->sli.ring[LPFC_ELS_RING]; in lpfc_work_done()
715 (pring->flag & LPFC_DEFERRED_RING_EVENT) || in lpfc_work_done()
717 if (pring->flag & LPFC_STOP_IOCB_EVENT) { in lpfc_work_done()
718 pring->flag |= LPFC_DEFERRED_RING_EVENT; in lpfc_work_done()
723 pring->flag &= ~LPFC_DEFERRED_RING_EVENT; in lpfc_work_done()
724 lpfc_sli_handle_slow_ring_event(phba, pring, in lpfc_work_done()
730 (!list_empty(&pring->txq))) in lpfc_work_done()
4387 struct lpfc_sli_ring *pring, in lpfc_check_sli_ndlp() argument
4398 if (pring->ringno == LPFC_ELS_RING) { in lpfc_check_sli_ndlp()
[all …]
Dlpfc_nportdisc.c208 struct lpfc_sli_ring *pring = &psli->ring[LPFC_ELS_RING]; in lpfc_els_abort() local
227 spin_lock(&pring->ring_lock); in lpfc_els_abort()
228 list_for_each_entry_safe(iocb, next_iocb, &pring->txcmplq, list) { in lpfc_els_abort()
230 if (lpfc_check_sli_ndlp(phba, pring, iocb, ndlp)) in lpfc_els_abort()
234 spin_unlock(&pring->ring_lock); in lpfc_els_abort()
241 lpfc_sli_issue_abort_iotag(phba, pring, iocb); in lpfc_els_abort()
250 spin_lock(&pring->ring_lock); in lpfc_els_abort()
252 list_for_each_entry_safe(iocb, next_iocb, &pring->txq, list) { in lpfc_els_abort()
254 if (lpfc_check_sli_ndlp(phba, pring, iocb, ndlp)) { in lpfc_els_abort()
261 spin_unlock(&pring->ring_lock); in lpfc_els_abort()
Dlpfc_bsg.c902 lpfc_bsg_ct_unsol_event(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, in lpfc_bsg_ct_unsol_event() argument
942 dmabuf = lpfc_sli_ringpostbuf_get(phba, pring, dma_addr); in lpfc_bsg_ct_unsol_event()
951 lpfc_sli_ringpostbuf_put(phba, pring, dmabuf); in lpfc_bsg_ct_unsol_event()
1026 pring, dma_addr); in lpfc_bsg_ct_unsol_event()
1048 lpfc_sli_ringpostbuf_put(phba, pring, in lpfc_bsg_ct_unsol_event()
1069 pring, in lpfc_bsg_ct_unsol_event()
1077 pring, in lpfc_bsg_ct_unsol_event()
1687 struct lpfc_sli_ring *pring; in lpfc_bsg_diag_mode_enter() local
1694 pring = &psli->ring[LPFC_FCP_RING]; in lpfc_bsg_diag_mode_enter()
1695 if (!pring) in lpfc_bsg_diag_mode_enter()
[all …]
Dlpfc_ct.c89 lpfc_ct_unsol_event(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, in lpfc_ct_unsol_event() argument
101 if (lpfc_bsg_ct_unsol_event(phba, pring, piocbq) == 0) in lpfc_ct_unsol_event()
112 lpfc_post_buffer(phba, pring, 2); in lpfc_ct_unsol_event()
154 mp = lpfc_sli_ringpostbuf_get(phba, pring, in lpfc_ct_unsol_event()
160 lpfc_post_buffer(phba, pring, i); in lpfc_ct_unsol_event()
Dlpfc_debugfs.c456 struct lpfc_sli_ring *pring; in lpfc_debugfs_dumpHostSlim_data() local
489 pring = &psli->ring[i]; in lpfc_debugfs_dumpHostSlim_data()
493 i, pgpp->cmdGetInx, pring->sli.sli3.numCiocb, in lpfc_debugfs_dumpHostSlim_data()
494 pring->sli.sli3.next_cmdidx, in lpfc_debugfs_dumpHostSlim_data()
495 pring->sli.sli3.local_getidx, in lpfc_debugfs_dumpHostSlim_data()
496 pring->flag, pgpp->rspPutInx, in lpfc_debugfs_dumpHostSlim_data()
497 pring->sli.sli3.numRiocb); in lpfc_debugfs_dumpHostSlim_data()
Dlpfc_sli4.h145 struct lpfc_sli_ring *pring; /* ptr to io ring associated with q */ member
Dlpfc.h578 (struct lpfc_hba *phba, struct lpfc_sli_ring *pring,
Dlpfc_attr.c696 struct lpfc_sli_ring *pring; in lpfc_do_offline() local
720 pring = &psli->ring[i]; in lpfc_do_offline()
721 while (!list_empty(&pring->txcmplq)) { in lpfc_do_offline()
Dlpfc_scsi.c559 struct lpfc_sli_ring *pring = &phba->sli.ring[LPFC_ELS_RING]; in lpfc_sli4_fcp_xri_aborted() local
601 if (!list_empty(&pring->txq)) in lpfc_sli4_fcp_xri_aborted()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c49 struct mlx4_en_tx_ring **pring, u32 size, in mlx4_en_create_tx_ring() argument
152 *pring = ring; in mlx4_en_create_tx_ring()
169 *pring = NULL; in mlx4_en_create_tx_ring()
174 struct mlx4_en_tx_ring **pring) in mlx4_en_destroy_tx_ring() argument
177 struct mlx4_en_tx_ring *ring = *pring; in mlx4_en_destroy_tx_ring()
192 *pring = NULL; in mlx4_en_destroy_tx_ring()
Dmlx4_en.h766 struct mlx4_en_tx_ring **pring,
770 struct mlx4_en_tx_ring **pring);
779 struct mlx4_en_rx_ring **pring,
782 struct mlx4_en_rx_ring **pring,
Den_rx.c359 struct mlx4_en_rx_ring **pring, in mlx4_en_create_rx_ring() argument
415 *pring = ring; in mlx4_en_create_rx_ring()
425 *pring = NULL; in mlx4_en_create_rx_ring()
517 struct mlx4_en_rx_ring **pring, in mlx4_en_destroy_rx_ring() argument
521 struct mlx4_en_rx_ring *ring = *pring; in mlx4_en_destroy_rx_ring()
528 *pring = NULL; in mlx4_en_destroy_rx_ring()
/linux-4.1.27/Documentation/scsi/
DChangeLog.lpfc496 * New static function lpfc_sli_next_iocb(phba, pring, &piocb) to