/kernel/linux/linux-6.6/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 | iceland_ih.c | 243 u32 ring_index = ih->rptr >> 2; in iceland_ih_decode_iv() local 246 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in iceland_ih_decode_iv() 247 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in iceland_ih_decode_iv() 248 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in iceland_ih_decode_iv() 249 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in iceland_ih_decode_iv()
|
H A D | cik_ih.c | 253 u32 ring_index = ih->rptr >> 2; in cik_ih_decode_iv() local 256 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in cik_ih_decode_iv() 257 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in cik_ih_decode_iv() 258 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in cik_ih_decode_iv() 259 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in cik_ih_decode_iv()
|
H A D | cz_ih.c | 244 u32 ring_index = ih->rptr >> 2; in cz_ih_decode_iv() local 247 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in cz_ih_decode_iv() 248 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in cz_ih_decode_iv() 249 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in cz_ih_decode_iv() 250 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in cz_ih_decode_iv()
|
H A D | si_ih.c | 136 u32 ring_index = ih->rptr >> 2; in si_ih_decode_iv() local 139 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in si_ih_decode_iv() 140 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in si_ih_decode_iv() 141 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in si_ih_decode_iv() 142 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in si_ih_decode_iv()
|
H A D | tonga_ih.c | 247 u32 ring_index = ih->rptr >> 2; in tonga_ih_decode_iv() local 250 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in tonga_ih_decode_iv() 251 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in tonga_ih_decode_iv() 252 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in tonga_ih_decode_iv() 253 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in tonga_ih_decode_iv()
|
/kernel/linux/linux-6.6/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 | 606 if (req->ring_index < cnt) in qla2x00_start_nvme_mq() 607 req->cnt = cnt - req->ring_index; in qla2x00_start_nvme_mq() 609 req->cnt = req->length - (req->ring_index - cnt); in qla2x00_start_nvme_mq() 708 req->ring_index++; in qla2x00_start_nvme_mq() 709 if (req->ring_index == req->length) { in qla2x00_start_nvme_mq() 710 req->ring_index = 0; in qla2x00_start_nvme_mq() 732 req->ring_index++; in qla2x00_start_nvme_mq() 733 if (req->ring_index == req->length) { in qla2x00_start_nvme_mq() 734 req->ring_index = 0; in qla2x00_start_nvme_mq() 745 wrt_reg_dword(req->req_q_in, req->ring_index); in qla2x00_start_nvme_mq() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
H A D | qla_iocb.c | 98 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...] |
H A D | qla_nvme.c | 411 if (req->ring_index < cnt) in qla2x00_start_nvme_mq() 412 req->cnt = cnt - req->ring_index; in qla2x00_start_nvme_mq() 414 req->cnt = req->length - (req->ring_index - cnt); in qla2x00_start_nvme_mq() 509 req->ring_index++; in qla2x00_start_nvme_mq() 510 if (req->ring_index == req->length) { in qla2x00_start_nvme_mq() 511 req->ring_index = 0; in qla2x00_start_nvme_mq() 533 req->ring_index++; in qla2x00_start_nvme_mq() 534 if (req->ring_index == req->length) { in qla2x00_start_nvme_mq() 535 req->ring_index = 0; in qla2x00_start_nvme_mq() 542 wrt_reg_dword(req->req_q_in, req->ring_index); in qla2x00_start_nvme_mq() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | vega10_ih.c | 442 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()
|
H A D | iceland_ih.c | 235 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()
|
H A D | cz_ih.c | 236 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()
|
H A D | cik_ih.c | 246 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()
|
H A D | tonga_ih.c | 238 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()
|
H A D | si_ih.c | 130 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()
|
H A D | navi10_ih.c | 512 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()
|
/kernel/linux/linux-5.10/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 | 115 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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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() 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() 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() 255 (*index) = idx = le32_to_cpu(ring_control->device_idx[ring_index]); in p54p_check_tx_ring() 132 p54p_refill_rx_ring(struct ieee80211_hw *dev, int ring_index, struct p54p_desc *ring, u32 ring_limit, struct sk_buff **rx_buf, u32 index) p54p_refill_rx_ring() argument 184 p54p_check_rx_ring(struct ieee80211_hw *dev, u32 *index, int ring_index, struct p54p_desc *ring, u32 ring_limit, struct sk_buff **rx_buf) p54p_check_rx_ring() argument 244 p54p_check_tx_ring(struct ieee80211_hw *dev, u32 *index, int ring_index, struct p54p_desc *ring, u32 ring_limit, struct sk_buff **tx_buf) p54p_check_tx_ring() argument
|
/kernel/linux/linux-6.6/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() 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() 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() 255 (*index) = idx = le32_to_cpu(ring_control->device_idx[ring_index]); in p54p_check_tx_ring() 132 p54p_refill_rx_ring(struct ieee80211_hw *dev, int ring_index, struct p54p_desc *ring, u32 ring_limit, struct sk_buff **rx_buf, u32 index) p54p_refill_rx_ring() argument 184 p54p_check_rx_ring(struct ieee80211_hw *dev, u32 *index, int ring_index, struct p54p_desc *ring, u32 ring_limit, struct sk_buff **rx_buf) p54p_check_rx_ring() argument 244 p54p_check_tx_ring(struct ieee80211_hw *dev, u32 *index, int ring_index, struct p54p_desc *ring, u32 ring_limit, struct sk_buff **tx_buf) p54p_check_tx_ring() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_tx.c | 431 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 ! in mlx4_en_process_tx_cq() [all...] |
/kernel/linux/linux-6.6/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 ! in mlx4_en_process_tx_cq() [all...] |