Home
last modified time | relevance | path

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

12

/drivers/scsi/qla2xxx/
Dqla_iocb.c100 req->ring_index++; in qla2x00_prep_cont_type0_iocb()
101 if (req->ring_index == req->length) { in qla2x00_prep_cont_type0_iocb()
102 req->ring_index = 0; in qla2x00_prep_cont_type0_iocb()
128 req->ring_index++; in qla2x00_prep_cont_type1_iocb()
129 if (req->ring_index == req->length) { in qla2x00_prep_cont_type1_iocb()
130 req->ring_index = 0; in qla2x00_prep_cont_type1_iocb()
376 if (req->ring_index < cnt) in qla2x00_start_scsi()
377 req->cnt = cnt - req->ring_index; in qla2x00_start_scsi()
380 (req->ring_index - cnt); in qla2x00_start_scsi()
417 req->ring_index++; in qla2x00_start_scsi()
[all …]
Dqla_mr.c1400 rsp->ring_index = 0; in qlafx00_init_response_q_entries()
2695 lreq_q_out = rsp->ring_index; in qlafx00_process_response_queue()
2703 rsp->ring_index++; in qlafx00_process_response_queue()
2705 if (rsp->ring_index == rsp->length) { in qlafx00_process_response_queue()
2707 rsp->ring_index = 0; in qlafx00_process_response_queue()
2754 WRT_REG_DWORD(rsp->rsp_q_out, rsp->ring_index); in qlafx00_process_response_queue()
2945 req->ring_index++; in qlafx00_prep_cont_type1_iocb()
2946 if (req->ring_index == req->length) { in qlafx00_prep_cont_type1_iocb()
2947 req->ring_index = 0; in qlafx00_prep_cont_type1_iocb()
3101 if (req->ring_index < cnt) in qlafx00_start_scsi()
[all …]
Dqla_mid.c703 req->ring_index = 0; in qla25xx_create_req_que()
715 req->ring_ptr, req->ring_index, in qla25xx_create_req_que()
720 req->ring_ptr, req->ring_index, req->cnt, in qla25xx_create_req_que()
Dqla_isr.c1641 rsp->ring_index++; in qla2x00_process_response_queue()
1642 if (rsp->ring_index == rsp->length) { in qla2x00_process_response_queue()
1643 rsp->ring_index = 0; in qla2x00_process_response_queue()
1697 WRT_REG_WORD(ISP_RSP_Q_OUT(ha, reg), rsp->ring_index); in qla2x00_process_response_queue()
2550 rsp->ring_index++; in qla24xx_process_response_queue()
2551 if (rsp->ring_index == rsp->length) { in qla24xx_process_response_queue()
2552 rsp->ring_index = 0; in qla24xx_process_response_queue()
2624 WRT_REG_DWORD(&reg->rsp_q_out[0], rsp->ring_index); in qla24xx_process_response_queue()
2626 WRT_REG_DWORD(rsp->rsp_q_out, rsp->ring_index); in qla24xx_process_response_queue()
Dqla_nx.c2794 req->ring_index++; in qla82xx_start_iocbs()
2795 if (req->ring_index == req->length) { in qla82xx_start_iocbs()
2796 req->ring_index = 0; in qla82xx_start_iocbs()
2803 dbval = dbval | (req->id << 8) | (req->ring_index << 16); in qla82xx_start_iocbs()
Dqla_target.c1698 if (vha->req->ring_index < cnt) in qlt_check_reserve_free_req()
1699 vha->req->cnt = cnt - vha->req->ring_index; in qlt_check_reserve_free_req()
1702 (vha->req->ring_index - cnt); in qlt_check_reserve_free_req()
1708 vha->vp_idx, vha->req->ring_index, in qlt_check_reserve_free_req()
1723 vha->req->ring_index++; in qlt_get_req_pkt()
1724 if (vha->req->ring_index == vha->req->length) { in qlt_get_req_pkt()
1725 vha->req->ring_index = 0; in qlt_get_req_pkt()
Dqla_def.h2813 uint16_t ring_index; member
2840 uint16_t ring_index; member
/drivers/gpu/drm/amd/amdgpu/
Dcik_ih.c244 u32 ring_index = adev->irq.ih.rptr >> 2; in cik_ih_decode_iv() local
247 dw[0] = le32_to_cpu(adev->irq.ih.ring[ring_index + 0]); in cik_ih_decode_iv()
248 dw[1] = le32_to_cpu(adev->irq.ih.ring[ring_index + 1]); in cik_ih_decode_iv()
249 dw[2] = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]); in cik_ih_decode_iv()
250 dw[3] = le32_to_cpu(adev->irq.ih.ring[ring_index + 3]); in cik_ih_decode_iv()
Dcz_ih.c223 u32 ring_index = adev->irq.ih.rptr >> 2; in cz_ih_decode_iv() local
226 dw[0] = le32_to_cpu(adev->irq.ih.ring[ring_index + 0]); in cz_ih_decode_iv()
227 dw[1] = le32_to_cpu(adev->irq.ih.ring[ring_index + 1]); in cz_ih_decode_iv()
228 dw[2] = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]); in cz_ih_decode_iv()
229 dw[3] = le32_to_cpu(adev->irq.ih.ring[ring_index + 3]); in cz_ih_decode_iv()
Diceland_ih.c223 u32 ring_index = adev->irq.ih.rptr >> 2; in iceland_ih_decode_iv() local
226 dw[0] = le32_to_cpu(adev->irq.ih.ring[ring_index + 0]); in iceland_ih_decode_iv()
227 dw[1] = le32_to_cpu(adev->irq.ih.ring[ring_index + 1]); in iceland_ih_decode_iv()
228 dw[2] = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]); in iceland_ih_decode_iv()
229 dw[3] = le32_to_cpu(adev->irq.ih.ring[ring_index + 3]); in iceland_ih_decode_iv()
Dtonga_ih.c234 u32 ring_index = adev->irq.ih.rptr >> 2; in tonga_ih_decode_iv() local
237 dw[0] = le32_to_cpu(adev->irq.ih.ring[ring_index + 0]); in tonga_ih_decode_iv()
238 dw[1] = le32_to_cpu(adev->irq.ih.ring[ring_index + 1]); in tonga_ih_decode_iv()
239 dw[2] = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]); in tonga_ih_decode_iv()
240 dw[3] = le32_to_cpu(adev->irq.ih.ring[ring_index + 3]); in tonga_ih_decode_iv()
Damdgpu_ih.c197 u32 ring_index = adev->irq.ih.rptr >> 2; in amdgpu_ih_process() local
201 (const void *) &adev->irq.ih.ring[ring_index]); in amdgpu_ih_process()
204 &adev->irq.ih.ring[ring_index]; in amdgpu_ih_process()
/drivers/net/wireless/p54/
Dp54pci.c136 int ring_index, struct p54p_desc *ring, u32 ring_limit, in p54p_refill_rx_ring() argument
143 idx = le32_to_cpu(ring_control->host_idx[ring_index]); in p54p_refill_rx_ring()
184 ring_control->host_idx[ring_index] = cpu_to_le32(idx); in p54p_refill_rx_ring()
188 int ring_index, struct p54p_desc *ring, u32 ring_limit, in p54p_check_rx_ring() argument
197 (*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()
/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.c446 int ring_index = rdev->asic->copy.dma_ring_index; in r600_copy_dma() local
447 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()
Dr600.c2968 int ring_index = rdev->asic->copy.blit_ring_index; in r600_copy_cpdma() local
2969 struct radeon_ring *ring = &rdev->ring[ring_index]; in r600_copy_cpdma()
4051 u32 ring_index; in r600_irq_process() local
4081 ring_index = rptr / 4; in r600_irq_process()
4082 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in r600_irq_process()
4083 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in r600_irq_process()
Dcik.c4047 int ring_index = rdev->asic->copy.blit_ring_index; in cik_copy_cpdma() local
4048 struct radeon_ring *ring = &rdev->ring[ring_index]; in cik_copy_cpdma()
7895 u32 ring_index; in cik_irq_process() local
7923 ring_index = rptr / 4; in cik_irq_process()
7926 (const void *) &rdev->ih.ring[ring_index]); in cik_irq_process()
7928 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in cik_irq_process()
7929 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in cik_irq_process()
7930 ring_id = le32_to_cpu(rdev->ih.ring[ring_index + 2]) & 0xff; in cik_irq_process()
Dsi.c6436 u32 ring_index; in si_irq_process() local
6463 ring_index = rptr / 4; in si_irq_process()
6464 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in si_irq_process()
6465 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in si_irq_process()
6466 ring_id = le32_to_cpu(rdev->ih.ring[ring_index + 2]) & 0xff; in si_irq_process()
Devergreen.c5040 u32 ring_index; in evergreen_irq_process() local
5068 ring_index = rptr / 4; in evergreen_irq_process()
5069 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in evergreen_irq_process()
5070 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in evergreen_irq_process()
/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c393 u16 new_index, ring_index, stamp_index; in mlx4_en_process_tx_cq() local
417 ring_index = ring_cons & size_mask; in mlx4_en_process_tx_cq()
418 stamp_index = ring_index; in mlx4_en_process_tx_cq()
445 ring_index = (ring_index + last_nr_txbb) & size_mask; in mlx4_en_process_tx_cq()
447 if (unlikely(ring->tx_info[ring_index].ts_requested)) in mlx4_en_process_tx_cq()
452 priv, ring, ring_index, in mlx4_en_process_tx_cq()
459 stamp_index = ring_index; in mlx4_en_process_tx_cq()
462 bytes += ring->tx_info[ring_index].nr_bytes; in mlx4_en_process_tx_cq()
463 } while ((++done < budget) && (ring_index != new_index)); in mlx4_en_process_tx_cq()
Den_ethtool.c1153 static int mlx4_en_get_rxfh(struct net_device *dev, u32 *ring_index, u8 *key, in mlx4_en_get_rxfh() argument
1166 if (!ring_index) in mlx4_en_get_rxfh()
1168 ring_index[n] = rss_map->qps[n % rss_rings].qpn - in mlx4_en_get_rxfh()
1178 static int mlx4_en_set_rxfh(struct net_device *dev, const u32 *ring_index, in mlx4_en_set_rxfh() argument
1192 if (!ring_index) in mlx4_en_set_rxfh()
1194 if (i > 0 && !ring_index[i] && !rss_rings) in mlx4_en_set_rxfh()
1197 if (ring_index[i] != (i % (rss_rings ?: priv->rx_ring_num))) in mlx4_en_set_rxfh()
1220 if (ring_index) in mlx4_en_set_rxfh()
/drivers/net/ethernet/agere/
Det131x.c2131 u8 ring_index = rfd->ringindex; in nic_return_rfd() local
2133 struct fbr_lookup *fbr = rx_local->fbr[ring_index]; in nic_return_rfd()
2143 if (ring_index == 0) in nic_return_rfd()
2193 u8 ring_index; in nic_rx_pkts() local
2220 ring_index = (psr->word1 >> 26) & 0x03; in nic_rx_pkts()
2221 fbr = rx_local->fbr[ring_index]; in nic_rx_pkts()
2236 if (ring_index > 1 || buff_index > fbr->num_entries - 1) { in nic_rx_pkts()
2261 rfd->ringindex = ring_index; in nic_rx_pkts()

12