Home
last modified time | relevance | path

Searched refs:ring_index (Results 1 – 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dqla_iocb.c98 req->ring_index++; in qla2x00_prep_cont_type0_iocb()
99 if (req->ring_index == req->length) { in qla2x00_prep_cont_type0_iocb()
100 req->ring_index = 0; in qla2x00_prep_cont_type0_iocb()
127 req->ring_index++; in qla2x00_prep_cont_type1_iocb()
128 if (req->ring_index == req->length) { in qla2x00_prep_cont_type1_iocb()
129 req->ring_index = 0; in qla2x00_prep_cont_type1_iocb()
379 if (req->ring_index < cnt) in qla2x00_start_scsi()
380 req->cnt = cnt - req->ring_index; in qla2x00_start_scsi()
383 (req->ring_index - cnt); in qla2x00_start_scsi()
420 req->ring_index++; in qla2x00_start_scsi()
[all …]
Dqla_nvme.c421 if (req->ring_index < cnt) in qla2x00_start_nvme_mq()
422 req->cnt = cnt - req->ring_index; in qla2x00_start_nvme_mq()
424 req->cnt = req->length - (req->ring_index - cnt); in qla2x00_start_nvme_mq()
519 req->ring_index++; in qla2x00_start_nvme_mq()
520 if (req->ring_index == req->length) { in qla2x00_start_nvme_mq()
521 req->ring_index = 0; in qla2x00_start_nvme_mq()
543 req->ring_index++; in qla2x00_start_nvme_mq()
544 if (req->ring_index == req->length) { in qla2x00_start_nvme_mq()
545 req->ring_index = 0; in qla2x00_start_nvme_mq()
552 wrt_reg_dword(req->req_q_in, req->ring_index); in qla2x00_start_nvme_mq()
Dqla_inline.h359 req->ring_index++; in qla_83xx_start_iocbs()
360 if (req->ring_index == req->length) { in qla_83xx_start_iocbs()
361 req->ring_index = 0; in qla_83xx_start_iocbs()
366 wrt_reg_dword(req->req_q_in, req->ring_index); in qla_83xx_start_iocbs()
Dqla_mr.c1402 rsp->ring_index = 0; in qlafx00_init_response_q_entries()
2698 lreq_q_out = rsp->ring_index; in qlafx00_process_response_queue()
2706 rsp->ring_index++; in qlafx00_process_response_queue()
2708 if (rsp->ring_index == rsp->length) { in qlafx00_process_response_queue()
2710 rsp->ring_index = 0; in qlafx00_process_response_queue()
2759 wrt_reg_dword(rsp->rsp_q_out, rsp->ring_index); in qlafx00_process_response_queue()
2949 req->ring_index++; in qlafx00_prep_cont_type1_iocb()
2950 if (req->ring_index == req->length) { in qlafx00_prep_cont_type1_iocb()
2951 req->ring_index = 0; in qlafx00_prep_cont_type1_iocb()
3091 if (req->ring_index < cnt) in qlafx00_start_scsi()
[all …]
Dqla_isr.c924 rsp_q->ring_index++; in qla27xx_copy_fpin_pkt()
925 if (rsp_q->ring_index == rsp_q->length) { in qla27xx_copy_fpin_pkt()
926 rsp_q->ring_index = 0; in qla27xx_copy_fpin_pkt()
2495 rsp->ring_index++; in qla2x00_process_response_queue()
2496 if (rsp->ring_index == rsp->length) { in qla2x00_process_response_queue()
2497 rsp->ring_index = 0; in qla2x00_process_response_queue()
2516 wrt_reg_word(ISP_RSP_Q_OUT(ha, reg), rsp->ring_index); in qla2x00_process_response_queue()
3438 rsp->ring_index++; in qla24xx_process_response_queue()
3439 if (rsp->ring_index == rsp->length) { in qla24xx_process_response_queue()
3440 rsp->ring_index = 0; in qla24xx_process_response_queue()
[all …]
Dqla_mid.c765 req->ring_index = 0; in qla25xx_create_req_que()
777 req->ring_ptr, req->ring_index, in qla25xx_create_req_que()
782 req->ring_ptr, req->ring_index, req->cnt, in qla25xx_create_req_que()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Dcik_ih.c246 u32 ring_index = ih->rptr >> 2; in cik_ih_decode_iv() local
249 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in cik_ih_decode_iv()
250 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in cik_ih_decode_iv()
251 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in cik_ih_decode_iv()
252 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in cik_ih_decode_iv()
Dsi_ih.c130 u32 ring_index = ih->rptr >> 2; in si_ih_decode_iv() local
133 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in si_ih_decode_iv()
134 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in si_ih_decode_iv()
135 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in si_ih_decode_iv()
136 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in si_ih_decode_iv()
Dcz_ih.c236 u32 ring_index = ih->rptr >> 2; in cz_ih_decode_iv() local
239 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in cz_ih_decode_iv()
240 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in cz_ih_decode_iv()
241 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in cz_ih_decode_iv()
242 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in cz_ih_decode_iv()
Diceland_ih.c235 u32 ring_index = ih->rptr >> 2; in iceland_ih_decode_iv() local
238 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in iceland_ih_decode_iv()
239 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in iceland_ih_decode_iv()
240 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in iceland_ih_decode_iv()
241 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in iceland_ih_decode_iv()
Dvega10_ih.c442 u32 ring_index = ih->rptr >> 2; in vega10_ih_decode_iv() local
445 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in vega10_ih_decode_iv()
446 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in vega10_ih_decode_iv()
447 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in vega10_ih_decode_iv()
448 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in vega10_ih_decode_iv()
449 dw[4] = le32_to_cpu(ih->ring[ring_index + 4]); in vega10_ih_decode_iv()
450 dw[5] = le32_to_cpu(ih->ring[ring_index + 5]); in vega10_ih_decode_iv()
451 dw[6] = le32_to_cpu(ih->ring[ring_index + 6]); in vega10_ih_decode_iv()
452 dw[7] = le32_to_cpu(ih->ring[ring_index + 7]); in vega10_ih_decode_iv()
Dtonga_ih.c238 u32 ring_index = ih->rptr >> 2; in tonga_ih_decode_iv() local
241 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in tonga_ih_decode_iv()
242 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in tonga_ih_decode_iv()
243 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in tonga_ih_decode_iv()
244 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in tonga_ih_decode_iv()
Dnavi10_ih.c512 u32 ring_index = ih->rptr >> 2; in navi10_ih_decode_iv() local
515 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in navi10_ih_decode_iv()
516 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in navi10_ih_decode_iv()
517 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in navi10_ih_decode_iv()
518 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in navi10_ih_decode_iv()
519 dw[4] = le32_to_cpu(ih->ring[ring_index + 4]); in navi10_ih_decode_iv()
520 dw[5] = le32_to_cpu(ih->ring[ring_index + 5]); in navi10_ih_decode_iv()
521 dw[6] = le32_to_cpu(ih->ring[ring_index + 6]); in navi10_ih_decode_iv()
522 dw[7] = le32_to_cpu(ih->ring[ring_index + 7]); in navi10_ih_decode_iv()
Damdgpu_irq.c408 u32 ring_index = ih->rptr >> 2; in amdgpu_irq_dispatch() local
415 entry.iv_entry = (const uint32_t *)&ih->ring[ring_index]; in amdgpu_irq_dispatch()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Drv770_dma.c49 int ring_index = rdev->asic->copy.dma_ring_index; in rv770_copy_dma() local
50 struct radeon_ring *ring = &rdev->ring[ring_index]; in rv770_copy_dma()
Devergreen_dma.c115 int ring_index = rdev->asic->copy.dma_ring_index; in evergreen_copy_dma() local
116 struct radeon_ring *ring = &rdev->ring[ring_index]; in evergreen_copy_dma()
Dsi_dma.c238 int ring_index = rdev->asic->copy.dma_ring_index; in si_copy_dma() local
239 struct radeon_ring *ring = &rdev->ring[ring_index]; in si_copy_dma()
Dr600_dma.c451 int ring_index = rdev->asic->copy.dma_ring_index; in r600_copy_dma() local
452 struct radeon_ring *ring = &rdev->ring[ring_index]; in r600_copy_dma()
Dcik_sdma.c586 int ring_index = rdev->asic->copy.dma_ring_index; in cik_copy_dma() local
587 struct radeon_ring *ring = &rdev->ring[ring_index]; in cik_copy_dma()
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/p54/
Dp54pci.c133 int ring_index, struct p54p_desc *ring, u32 ring_limit, in p54p_refill_rx_ring() argument
140 idx = le32_to_cpu(ring_control->host_idx[ring_index]); in p54p_refill_rx_ring()
181 ring_control->host_idx[ring_index] = cpu_to_le32(idx); in p54p_refill_rx_ring()
185 int ring_index, struct p54p_desc *ring, u32 ring_limit, in p54p_check_rx_ring() argument
194 (*index) = idx = le32_to_cpu(ring_control->device_idx[ring_index]); in p54p_check_rx_ring()
241 p54p_refill_rx_ring(dev, ring_index, ring, ring_limit, rx_buf, *index); in p54p_check_rx_ring()
245 int ring_index, struct p54p_desc *ring, u32 ring_limit, in p54p_check_tx_ring() argument
255 (*index) = idx = le32_to_cpu(ring_control->device_idx[ring_index]); in p54p_check_tx_ring()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c431 u16 index, ring_index, stamp_index; in mlx4_en_process_tx_cq() local
455 ring_index = ring_cons & size_mask; in mlx4_en_process_tx_cq()
456 stamp_index = ring_index; in mlx4_en_process_tx_cq()
482 ring_index = (ring_index + last_nr_txbb) & size_mask; in mlx4_en_process_tx_cq()
484 if (unlikely(ring->tx_info[ring_index].ts_requested)) in mlx4_en_process_tx_cq()
491 priv, ring, ring_index, in mlx4_en_process_tx_cq()
497 stamp_index = ring_index; in mlx4_en_process_tx_cq()
500 bytes += ring->tx_info[ring_index].nr_bytes; in mlx4_en_process_tx_cq()
501 } while ((++done < budget) && (ring_index != new_index)); in mlx4_en_process_tx_cq()
Den_ethtool.c1250 static int mlx4_en_get_rxfh(struct net_device *dev, u32 *ring_index, u8 *key, in mlx4_en_get_rxfh() argument
1261 if (!ring_index) in mlx4_en_get_rxfh()
1263 ring_index[i] = i % rss_rings; in mlx4_en_get_rxfh()
1272 static int mlx4_en_set_rxfh(struct net_device *dev, const u32 *ring_index, in mlx4_en_set_rxfh() argument
1287 if (!ring_index) in mlx4_en_set_rxfh()
1289 if (i > 0 && !ring_index[i] && !rss_rings) in mlx4_en_set_rxfh()
1292 if (ring_index[i] != (i % (rss_rings ?: n))) in mlx4_en_set_rxfh()
1315 if (ring_index) in mlx4_en_set_rxfh()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/
Dtxrx_edma.c422 int ring_index = 0; in wil_ring_free_edma() local
443 ring_index = ring - wil->ring_tx; in wil_ring_free_edma()
446 ring_index, ring->size, ring->va, in wil_ring_free_edma()
1119 int ring_index) in wil_tx_desc_map_edma() argument
1130 d->mac.d[0] = (ring_index << WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS); in wil_tx_desc_map_edma()
1360 int ring_index = ring - wil->ring_tx; in wil_tx_tso_gen_desc() local
1379 len, ring_index); in wil_tx_tso_gen_desc()
1405 int ring_index = ring - wil->ring_tx; in __wil_tx_ring_tso_edma() local
1406 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[ring_index]; in __wil_tx_ring_tso_edma()
1421 ring_index); in __wil_tx_ring_tso_edma()
[all …]
Dtxrx.c2038 int ring_index = ring - wil->ring_tx; in __wil_tx_ring() local
2039 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[ring_index]; in __wil_tx_ring()
2043 bool mcast = (ring_index == vif->bcast_ring); in __wil_tx_ring()
2047 skb->len, ring_index, nr_frags); in __wil_tx_ring()
2055 ring_index, 1 + nr_frags); in __wil_tx_ring()
2062 wil_dbg_txrx(wil, "Tx[%2d] skb %d bytes 0x%p -> %pad\n", ring_index, in __wil_tx_ring()
2072 ring_index); in __wil_tx_ring()
2081 ring_index); in __wil_tx_ring()
2094 wil_dbg_txrx(wil, "Tx[%2d] desc[%4d]\n", ring_index, i); in __wil_tx_ring()
2103 ring_index); in __wil_tx_ring()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/agere/
Det131x.c2128 u8 ring_index = rfd->ringindex; in nic_return_rfd() local
2130 struct fbr_lookup *fbr = rx_local->fbr[ring_index]; in nic_return_rfd()
2140 if (ring_index == 0) in nic_return_rfd()
2190 u8 ring_index; in nic_rx_pkts() local
2217 ring_index = (psr->word1 >> 26) & 0x03; in nic_rx_pkts()
2218 fbr = rx_local->fbr[ring_index]; in nic_rx_pkts()
2233 if (ring_index > 1 || buff_index > fbr->num_entries - 1) { in nic_rx_pkts()
2258 rfd->ringindex = ring_index; in nic_rx_pkts()

12