/linux-6.1.9/drivers/scsi/lpfc/ |
D | lpfc_sli.c | 883 lpfc_cmd_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) in lpfc_cmd_iocb() argument 885 return (IOCB_t *) (((char *) pring->sli.sli3.cmdringaddr) + in lpfc_cmd_iocb() 886 pring->sli.sli3.cmdidx * phba->iocb_cmd_size); in lpfc_cmd_iocb() 900 lpfc_resp_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring) in lpfc_resp_iocb() argument 902 return (IOCB_t *) (((char *) pring->sli.sli3.rspringaddr) + in lpfc_resp_iocb() 903 pring->sli.sli3.rspidx * phba->iocb_rsp_size); in lpfc_resp_iocb() 1378 struct lpfc_sli_ring *pring; in __lpfc_sli_release_iocbq_s4() local 1422 pring = lpfc_phba_elsring(phba); in __lpfc_sli_release_iocbq_s4() 1424 if (pring && (!list_empty(&pring->txq))) in __lpfc_sli_release_iocbq_s4() 1721 lpfc_sli_ringtxcmpl_put(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, in lpfc_sli_ringtxcmpl_put() argument [all …]
|
D | lpfc_mbox.c | 1016 struct lpfc_sli_ring *pring; in lpfc_config_pcb_setup() local 1026 pring = &psli->sli3_ring[i]; in lpfc_config_pcb_setup() 1028 pring->sli.sli3.sizeCiocb = in lpfc_config_pcb_setup() 1031 pring->sli.sli3.sizeRiocb = in lpfc_config_pcb_setup() 1036 if ((pring->sli.sli3.numCiocb == 0) || in lpfc_config_pcb_setup() 1037 (pring->sli.sli3.numRiocb == 0)) { in lpfc_config_pcb_setup() 1044 pring->sli.sli3.cmdringaddr = NULL; in lpfc_config_pcb_setup() 1045 pring->sli.sli3.rspringaddr = NULL; in lpfc_config_pcb_setup() 1049 pring->sli.sli3.cmdringaddr = (void *)&phba->IOCBs[iocbCnt]; in lpfc_config_pcb_setup() 1050 pcbp->rdsc[i].cmdEntries = pring->sli.sli3.numCiocb; in lpfc_config_pcb_setup() [all …]
|
D | lpfc_nvme.c | 708 struct lpfc_sli_ring *pring; in __lpfc_nvme_ls_abort() local 731 pring = phba->sli4_hba.nvmels_wq->pring; in __lpfc_nvme_ls_abort() 733 spin_lock(&pring->ring_lock); in __lpfc_nvme_ls_abort() 734 list_for_each_entry_safe(wqe, next_wqe, &pring->txcmplq, list) { in __lpfc_nvme_ls_abort() 741 spin_unlock(&pring->ring_lock); in __lpfc_nvme_ls_abort() 744 lpfc_sli_issue_abort_iotag(phba, pring, wqe, NULL); in __lpfc_nvme_ls_abort() 2238 struct lpfc_sli_ring *pring; in lpfc_nvme_lport_unreg_wait() local 2259 pring = qp->io_wq->pring; in lpfc_nvme_lport_unreg_wait() 2260 if (!pring) in lpfc_nvme_lport_unreg_wait() 2262 pending += pring->txcmplq_cnt; in lpfc_nvme_lport_unreg_wait() [all …]
|
D | lpfc_nvmet.c | 1018 struct lpfc_sli_ring *pring; in lpfc_nvmet_xmt_fcp_op() local 1104 pring = wq->pring; in lpfc_nvmet_xmt_fcp_op() 1105 spin_lock_irqsave(&pring->ring_lock, iflags); in lpfc_nvmet_xmt_fcp_op() 1108 spin_unlock_irqrestore(&pring->ring_lock, iflags); in lpfc_nvmet_xmt_fcp_op() 2006 struct lpfc_sli_ring *pring; in lpfc_nvmet_wqfull_flush() local 2013 pring = wq->pring; in lpfc_nvmet_wqfull_flush() 2021 spin_lock_irqsave(&pring->ring_lock, iflags); in lpfc_nvmet_wqfull_flush() 2028 spin_unlock_irqrestore(&pring->ring_lock, in lpfc_nvmet_wqfull_flush() 2040 spin_unlock_irqrestore(&pring->ring_lock, iflags); in lpfc_nvmet_wqfull_flush() 2043 spin_lock_irqsave(&pring->ring_lock, iflags); in lpfc_nvmet_wqfull_flush() [all …]
|
D | lpfc_hbadisc.c | 888 struct lpfc_sli_ring *pring; in lpfc_work_done() local 993 pring = lpfc_phba_elsring(phba); in lpfc_work_done() 996 if (pring && (status & HA_RXMASK || in lpfc_work_done() 997 pring->flag & LPFC_DEFERRED_RING_EVENT || in lpfc_work_done() 999 if (pring->flag & LPFC_STOP_IOCB_EVENT) { in lpfc_work_done() 1000 pring->flag |= LPFC_DEFERRED_RING_EVENT; in lpfc_work_done() 1010 pring->flag &= ~LPFC_DEFERRED_RING_EVENT; in lpfc_work_done() 1011 lpfc_sli_handle_slow_ring_event(phba, pring, in lpfc_work_done() 3730 struct lpfc_sli_ring *pring; in lpfc_mbx_cmpl_read_topology() local 3737 pring = lpfc_phba_elsring(phba); in lpfc_mbx_cmpl_read_topology() [all …]
|
D | lpfc_bsg.c | 888 lpfc_bsg_ct_unsol_event(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, in lpfc_bsg_ct_unsol_event() argument 997 pring, dma_addr); in lpfc_bsg_ct_unsol_event() 1019 lpfc_sli_ringpostbuf_put(phba, pring, in lpfc_bsg_ct_unsol_event() 1040 pring, in lpfc_bsg_ct_unsol_event() 1048 pring, in lpfc_bsg_ct_unsol_event() 1652 struct lpfc_sli_ring *pring; in lpfc_bsg_diag_mode_enter() local 1678 pring = &psli->sli3_ring[LPFC_FCP_RING]; in lpfc_bsg_diag_mode_enter() 1679 lpfc_emptyq_wait(phba, &pring->txcmplq, &phba->hbalock); in lpfc_bsg_diag_mode_enter() 1683 pring = qp->pring; in lpfc_bsg_diag_mode_enter() 1684 if (!pring || (pring->ringno != LPFC_FCP_RING)) in lpfc_bsg_diag_mode_enter() [all …]
|
D | lpfc_nportdisc.c | 216 struct lpfc_sli_ring *pring; in lpfc_els_abort() local 219 pring = lpfc_phba_elsring(phba); in lpfc_els_abort() 222 if (unlikely(!pring)) in lpfc_els_abort() 241 spin_lock(&pring->ring_lock); in lpfc_els_abort() 242 list_for_each_entry_safe(iocb, next_iocb, &pring->txcmplq, list) { in lpfc_els_abort() 244 if (lpfc_check_sli_ndlp(phba, pring, iocb, ndlp)) in lpfc_els_abort() 248 spin_unlock(&pring->ring_lock); in lpfc_els_abort() 255 lpfc_sli_issue_abort_iotag(phba, pring, iocb, NULL); in lpfc_els_abort() 266 spin_lock(&pring->ring_lock); in lpfc_els_abort() 268 list_for_each_entry_safe(iocb, next_iocb, &pring->txq, list) { in lpfc_els_abort() [all …]
|
D | lpfc_els.c | 1445 struct lpfc_sli_ring *pring; in lpfc_els_abort_flogi() local 1455 pring = lpfc_phba_elsring(phba); in lpfc_els_abort_flogi() 1456 if (unlikely(!pring)) in lpfc_els_abort_flogi() 1464 list_for_each_entry_safe(iocb, next_iocb, &pring->txcmplq, list) { in lpfc_els_abort_flogi() 1473 lpfc_sli_issue_abort_iotag(phba, pring, iocb, in lpfc_els_abort_flogi() 9295 struct lpfc_sli_ring *pring; in lpfc_els_timeout_handler() local 9308 pring = lpfc_phba_elsring(phba); in lpfc_els_timeout_handler() 9309 if (unlikely(!pring)) in lpfc_els_timeout_handler() 9317 spin_lock(&pring->ring_lock); in lpfc_els_timeout_handler() 9319 list_for_each_entry_safe(piocb, tmp_iocb, &pring->txcmplq, list) { in lpfc_els_timeout_handler() [all …]
|
D | lpfc_init.c | 966 struct lpfc_sli_ring *pring; in lpfc_hba_free_post_buf() local 975 pring = &psli->sli3_ring[LPFC_ELS_RING]; in lpfc_hba_free_post_buf() 977 list_splice_init(&pring->postbufq, &buflist); in lpfc_hba_free_post_buf() 989 pring->postbufq_cnt -= count; in lpfc_hba_free_post_buf() 1009 struct lpfc_sli_ring *pring; in lpfc_hba_clean_txcmplq() local 1016 pring = &psli->sli3_ring[i]; in lpfc_hba_clean_txcmplq() 1022 list_splice_init(&pring->txcmplq, &completions); in lpfc_hba_clean_txcmplq() 1023 pring->txcmplq_cnt = 0; in lpfc_hba_clean_txcmplq() 1026 lpfc_sli_abort_iocb_ring(phba, pring); in lpfc_hba_clean_txcmplq() 1034 pring = qp->pring; in lpfc_hba_clean_txcmplq() [all …]
|
D | lpfc_attr.c | 1377 struct lpfc_sli_ring *pring; in lpfc_do_offline() local 1415 pring = &psli->sli3_ring[i]; in lpfc_do_offline() 1416 if (!lpfc_emptyq_wait(phba, &pring->txcmplq, in lpfc_do_offline() 1422 pring = qp->pring; in lpfc_do_offline() 1423 if (!pring) in lpfc_do_offline() 1425 if (!lpfc_emptyq_wait(phba, &pring->txcmplq, in lpfc_do_offline() 1426 &pring->ring_lock)) in lpfc_do_offline() 3488 struct lpfc_sli_ring *pring = lpfc_phba_elsring(phba); in lpfc_txq_hw_show() local 3491 pring ? pring->txq_max : 0); in lpfc_txq_hw_show() 3502 struct lpfc_sli_ring *pring = lpfc_phba_elsring(phba); in lpfc_txcmplq_hw_show() local [all …]
|
D | lpfc.h | 944 (struct lpfc_hba *phba, struct lpfc_sli_ring *pring, 1715 return phba->sli4_hba.els_wq->pring; in lpfc_phba_elsring()
|
D | lpfc_ct.c | 337 lpfc_ct_unsol_event(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, in lpfc_ct_unsol_event() argument 374 lpfc_sli3_post_buffer(phba, pring, 2); in lpfc_ct_unsol_event() 394 if (!lpfc_bsg_ct_unsol_event(phba, pring, ctiocbq)) in lpfc_ct_unsol_event() 440 mp = lpfc_sli_ringpostbuf_get(phba, pring, in lpfc_ct_unsol_event() 446 lpfc_sli3_post_buffer(phba, pring, i); in lpfc_ct_unsol_event()
|
D | lpfc_debugfs.c | 532 txcmplq_cnt = qp->io_wq->pring->txcmplq_cnt; in lpfc_debugfs_multixripools_data() 730 struct lpfc_sli_ring *pring; in lpfc_debugfs_dumpHostSlim_data() local 764 pring = &psli->sli3_ring[i]; in lpfc_debugfs_dumpHostSlim_data() 771 pring->sli.sli3.numCiocb, in lpfc_debugfs_dumpHostSlim_data() 772 pring->sli.sli3.next_cmdidx, in lpfc_debugfs_dumpHostSlim_data() 773 pring->sli.sli3.local_getidx, in lpfc_debugfs_dumpHostSlim_data() 774 pring->flag, pgpp->rspPutInx, in lpfc_debugfs_dumpHostSlim_data() 775 pring->sli.sli3.numRiocb); in lpfc_debugfs_dumpHostSlim_data()
|
D | lpfc_scsi.c | 441 struct lpfc_sli_ring *pring = phba->sli4_hba.els_wq->pring; in lpfc_sli4_io_xri_aborted() local 540 if (!list_empty(&pring->txq)) in lpfc_sli4_io_xri_aborted() 5540 struct lpfc_sli_ring *pring = NULL; in lpfc_abort_handler() local 5576 pring_s4 = phba->sli4_hba.hdwq[iocb->hba_wqidx].io_wq->pring; in lpfc_abort_handler() 5623 pring = &phba->sli.sli3_ring[LPFC_FCP_RING]; in lpfc_abort_handler() 5624 ret_val = lpfc_sli_issue_abort_iotag(phba, pring, iocb, in lpfc_abort_handler()
|
D | lpfc_sli4.h | 220 struct lpfc_sli_ring *pring; /* ptr to io ring associated with q */ member
|
D | lpfc_crtn.h | 227 int lpfc_sli3_post_buffer(struct lpfc_hba *phba, struct lpfc_sli_ring *pring, int cnt);
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | mlx4_en.h | 702 struct mlx4_en_tx_ring **pring, 706 struct mlx4_en_tx_ring **pring); 717 struct mlx4_en_rx_ring **pring, 720 struct mlx4_en_rx_ring **pring,
|
D | en_tx.c | 51 struct mlx4_en_tx_ring **pring, u32 size, in mlx4_en_create_tx_ring() argument 143 *pring = ring; in mlx4_en_create_tx_ring() 158 *pring = NULL; in mlx4_en_create_tx_ring() 163 struct mlx4_en_tx_ring **pring) in mlx4_en_destroy_tx_ring() argument 166 struct mlx4_en_tx_ring *ring = *pring; in mlx4_en_destroy_tx_ring() 180 *pring = NULL; in mlx4_en_destroy_tx_ring()
|
D | en_rx.c | 264 struct mlx4_en_rx_ring **pring, in mlx4_en_create_rx_ring() argument 311 *pring = ring; in mlx4_en_create_rx_ring() 321 *pring = NULL; in mlx4_en_create_rx_ring() 430 struct mlx4_en_rx_ring **pring, in mlx4_en_destroy_rx_ring() argument 434 struct mlx4_en_rx_ring *ring = *pring; in mlx4_en_destroy_rx_ring() 447 *pring = NULL; in mlx4_en_destroy_rx_ring()
|
/linux-6.1.9/drivers/infiniband/hw/irdma/ |
D | uk.c | 1051 struct irdma_ring *pring = NULL; in irdma_uk_cq_poll_cmpl() local 1198 pring = &qp->rq_ring; in irdma_uk_cq_poll_cmpl() 1258 pring = &qp->sq_ring; in irdma_uk_cq_poll_cmpl() 1265 if (pring && IRDMA_RING_MORE_WORK(*pring)) in irdma_uk_cq_poll_cmpl() 1286 qword3 |= FIELD_PREP(IRDMA_CQ_WQEIDX, pring->tail); in irdma_uk_cq_poll_cmpl()
|
/linux-6.1.9/Documentation/scsi/ |
D | ChangeLog.lpfc | 496 * New static function lpfc_sli_next_iocb(phba, pring, &piocb) to
|