/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ih.c | 257 u32 ring_index = ih->rptr >> 2; in amdgpu_ih_decode_iv_helper() local 260 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in amdgpu_ih_decode_iv_helper() 261 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in amdgpu_ih_decode_iv_helper() 262 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in amdgpu_ih_decode_iv_helper() 263 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in amdgpu_ih_decode_iv_helper() 264 dw[4] = le32_to_cpu(ih->ring[ring_index + 4]); in amdgpu_ih_decode_iv_helper() 265 dw[5] = le32_to_cpu(ih->ring[ring_index + 5]); in amdgpu_ih_decode_iv_helper() 266 dw[6] = le32_to_cpu(ih->ring[ring_index + 6]); in amdgpu_ih_decode_iv_helper() 267 dw[7] = le32_to_cpu(ih->ring[ring_index + 7]); in amdgpu_ih_decode_iv_helper() 291 uint32_t ring_index; in amdgpu_ih_decode_iv_ts_helper() local [all …]
|
H A D | amdgpu_irq.c | 439 u32 ring_index = ih->rptr >> 2; in amdgpu_irq_dispatch() local 447 entry.iv_entry = (const uint32_t *)&ih->ring[ring_index]; in amdgpu_irq_dispatch()
|
/linux/drivers/scsi/qla2xxx/ |
H A D | qla_iocb.c | 99 req->ring_index++; in qla2x00_prep_cont_type0_iocb() 100 if (req->ring_index == req->length) { in qla2x00_prep_cont_type0_iocb() 101 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() 382 if (req->ring_index < cnt) in qla2x00_start_scsi() 383 req->cnt = cnt - req->ring_index; in qla2x00_start_scsi() 386 (req->ring_index - cnt); in qla2x00_start_scsi() 423 req->ring_index++; in qla2x00_start_scsi() [all …]
|
H A D | qla_nvme.c | 609 if (req->ring_index < cnt) in qla2x00_start_nvme_mq() 610 req->cnt = cnt - req->ring_index; in qla2x00_start_nvme_mq() 612 req->cnt = req->length - (req->ring_index - cnt); in qla2x00_start_nvme_mq() 711 req->ring_index++; in qla2x00_start_nvme_mq() 712 if (req->ring_index == req->length) { in qla2x00_start_nvme_mq() 713 req->ring_index = 0; in qla2x00_start_nvme_mq() 735 req->ring_index++; in qla2x00_start_nvme_mq() 736 if (req->ring_index == req->length) { in qla2x00_start_nvme_mq() 737 req->ring_index = 0; in qla2x00_start_nvme_mq() 748 wrt_reg_dword(req->req_q_in, req->ring_index); in qla2x00_start_nvme_mq()
|
H A D | qla_isr.c | 212 rsp_q->ring_index++; in __qla_consume_iocb() 213 if (rsp_q->ring_index == rsp_q->length) { in __qla_consume_iocb() 214 rsp_q->ring_index = 0; in __qla_consume_iocb() 290 rsp_q->ring_index++; in __qla_copy_purex_to_buffer() 291 if (rsp_q->ring_index == rsp_q->length) { in __qla_copy_purex_to_buffer() 292 rsp_q->ring_index = 0; in __qla_copy_purex_to_buffer() 928 rsp_q->ring_index++; in qla27xx_copy_multiple_pkt() 929 if (rsp_q->ring_index == rsp_q->length) { in qla27xx_copy_multiple_pkt() 930 rsp_q->ring_index = 0; in qla27xx_copy_multiple_pkt() 1208 rsp_q->ring_index++; in qla27xx_copy_fpin_pkt() [all …]
|
H A D | qla_inline.h | 362 req->ring_index++; in qla_83xx_start_iocbs() 363 if (req->ring_index == req->length) { in qla_83xx_start_iocbs() 364 req->ring_index = 0; in qla_83xx_start_iocbs() 369 wrt_reg_dword(req->req_q_in, req->ring_index); in qla_83xx_start_iocbs()
|
H A D | qla_mr.c | 1402 rsp->ring_index = 0; in qlafx00_init_response_q_entries() 2697 lreq_q_out = rsp->ring_index; in qlafx00_process_response_queue() 2705 rsp->ring_index++; in qlafx00_process_response_queue() 2707 if (rsp->ring_index == rsp->length) { in qlafx00_process_response_queue() 2709 rsp->ring_index = 0; in qlafx00_process_response_queue() 2758 wrt_reg_dword(rsp->rsp_q_out, rsp->ring_index); in qlafx00_process_response_queue() 2948 req->ring_index++; in qlafx00_prep_cont_type1_iocb() 2949 if (req->ring_index == req->length) { in qlafx00_prep_cont_type1_iocb() 2950 req->ring_index = 0; in qlafx00_prep_cont_type1_iocb() 3090 if (req->ring_index < cnt) in qlafx00_start_scsi() [all …]
|
H A D | qla_mid.c | 772 req->ring_index = 0; in qla25xx_create_req_que() 784 req->ring_ptr, req->ring_index, in qla25xx_create_req_que() 789 req->ring_ptr, req->ring_index, req->cnt, in qla25xx_create_req_que()
|
H A D | qla_edif.c | 3045 if (req->ring_index < cnt) in qla28xx_start_scsi_edif() 3046 req->cnt = cnt - req->ring_index; in qla28xx_start_scsi_edif() 3049 (req->ring_index - cnt); in qla28xx_start_scsi_edif() 3196 req->ring_index++; in qla28xx_start_scsi_edif() 3197 if (req->ring_index == req->length) { in qla28xx_start_scsi_edif() 3198 req->ring_index = 0; in qla28xx_start_scsi_edif() 3206 wrt_reg_dword(req->req_q_in, req->ring_index); in qla28xx_start_scsi_edif()
|
H A D | qla_nx.c | 2759 req->ring_index++; in qla82xx_start_iocbs() 2760 if (req->ring_index == req->length) { in qla82xx_start_iocbs() 2761 req->ring_index = 0; in qla82xx_start_iocbs() 2768 dbval = dbval | (req->id << 8) | (req->ring_index << 16); in qla82xx_start_iocbs()
|
H A D | qla_target.c | 2527 if (req->ring_index < cnt) in qlt_check_reserve_free_req() 2528 req->cnt = cnt - req->ring_index; in qlt_check_reserve_free_req() 2530 req->cnt = req->length - (req->ring_index - cnt); in qlt_check_reserve_free_req() 2547 req->ring_index++; in qlt_get_req_pkt() 2548 if (req->ring_index == req->length) { in qlt_get_req_pkt() 2549 req->ring_index = 0; in qlt_get_req_pkt()
|
/linux/drivers/gpu/drm/radeon/ |
H A D | rv770_dma.c | 49 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()
|
H A D | evergreen_dma.c | 114 int ring_index = rdev->asic->copy.dma_ring_index; in evergreen_copy_dma() local 115 struct radeon_ring *ring = &rdev->ring[ring_index]; in evergreen_copy_dma()
|
H A D | si_dma.c | 237 int ring_index = rdev->asic->copy.dma_ring_index; in si_copy_dma() local 238 struct radeon_ring *ring = &rdev->ring[ring_index]; in si_copy_dma()
|
H A D | r600_dma.c | 450 int ring_index = rdev->asic->copy.dma_ring_index; in r600_copy_dma() local 451 struct radeon_ring *ring = &rdev->ring[ring_index]; in r600_copy_dma()
|
H A D | cik_sdma.c | 585 int ring_index = rdev->asic->copy.dma_ring_index; in cik_copy_dma() local 586 struct radeon_ring *ring = &rdev->ring[ring_index]; in cik_copy_dma()
|
H A D | r600.c | 2971 int ring_index = rdev->asic->copy.blit_ring_index; in r600_copy_cpdma() local 2972 struct radeon_ring *ring = &rdev->ring[ring_index]; in r600_copy_cpdma() 4097 u32 ring_index; in r600_irq_process() local 4127 ring_index = rptr / 4; in r600_irq_process() 4128 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in r600_irq_process() 4129 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in r600_irq_process()
|
H A D | si.c | 6233 u32 ring_index; in si_irq_process() local 6261 ring_index = rptr / 4; in si_irq_process() 6262 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in si_irq_process() 6263 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in si_irq_process() 6264 ring_id = le32_to_cpu(rdev->ih.ring[ring_index + 2]) & 0xff; in si_irq_process()
|
H A D | cik.c | 3652 int ring_index = rdev->asic->copy.blit_ring_index; in cik_copy_cpdma() local 3653 struct radeon_ring *ring = &rdev->ring[ring_index]; in cik_copy_cpdma() 7546 u32 ring_index; in cik_irq_process() local 7574 ring_index = rptr / 4; in cik_irq_process() 7576 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in cik_irq_process() 7577 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in cik_irq_process() 7578 ring_id = le32_to_cpu(rdev->ih.ring[ring_index + 2]) & 0xff; in cik_irq_process()
|
/linux/drivers/net/wireless/intersil/p54/ |
H A D | p54pci.c | 133 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()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_tx.c | 436 u16 index, ring_index, stamp_index; in mlx4_en_process_tx_cq() local 460 ring_index = ring_cons & size_mask; in mlx4_en_process_tx_cq() 461 stamp_index = ring_index; in mlx4_en_process_tx_cq() 487 ring_index = (ring_index + last_nr_txbb) & size_mask; in mlx4_en_process_tx_cq() 489 if (unlikely(ring->tx_info[ring_index].ts_requested)) in mlx4_en_process_tx_cq() 496 priv, ring, ring_index, in mlx4_en_process_tx_cq() 502 stamp_index = ring_index; in mlx4_en_process_tx_cq() 505 bytes += ring->tx_info[ring_index].nr_bytes; in mlx4_en_process_tx_cq() 506 } while ((++done < budget) && (ring_index != new_index)); in mlx4_en_process_tx_cq()
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A D | txrx.c | 2036 int ring_index = ring - wil->ring_tx; in __wil_tx_ring() local 2037 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[ring_index]; in __wil_tx_ring() 2041 bool mcast = (ring_index == vif->bcast_ring); in __wil_tx_ring() 2045 skb->len, ring_index, nr_frags); in __wil_tx_ring() 2053 ring_index, 1 + nr_frags); in __wil_tx_ring() 2060 wil_dbg_txrx(wil, "Tx[%2d] skb %d bytes 0x%p -> %pad\n", ring_index, in __wil_tx_ring() 2070 ring_index); in __wil_tx_ring() 2079 ring_index); in __wil_tx_ring() 2092 wil_dbg_txrx(wil, "Tx[%2d] desc[%4d]\n", ring_index, i); in __wil_tx_ring() 2101 ring_index); in __wil_tx_ring() [all …]
|
H A D | txrx_edma.c | 422 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() 1121 int ring_index) in wil_tx_desc_map_edma() argument 1132 d->mac.d[0] = (ring_index << WIL_EDMA_DESC_TX_MAC_CFG_0_QID_POS); in wil_tx_desc_map_edma() 1362 int ring_index = ring - wil->ring_tx; in wil_tx_tso_gen_desc() local 1381 len, ring_index); in wil_tx_tso_gen_desc() 1407 int ring_index = ring - wil->ring_tx; in __wil_tx_ring_tso_edma() local 1408 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[ring_index]; in __wil_tx_ring_tso_edma() 1423 ring_index); in __wil_tx_ring_tso_edma() [all …]
|
/linux/drivers/net/ethernet/agere/ |
H A D | et131x.c | 2128 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()
|
/linux/include/uapi/linux/ |
H A D | ethtool.h | 1513 __u32 ring_index[]; member
|