| /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 | 608 if (req->ring_index < cnt) in qla2x00_start_nvme_mq() 609 req->cnt = cnt - req->ring_index; in qla2x00_start_nvme_mq() 611 req->cnt = req->length - (req->ring_index - cnt); in qla2x00_start_nvme_mq() 710 req->ring_index++; in qla2x00_start_nvme_mq() 711 if (req->ring_index == req->length) { in qla2x00_start_nvme_mq() 712 req->ring_index = 0; in qla2x00_start_nvme_mq() 734 req->ring_index++; in qla2x00_start_nvme_mq() 735 if (req->ring_index == req->length) { in qla2x00_start_nvme_mq() 736 req->ring_index = 0; in qla2x00_start_nvme_mq() 747 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() 931 rsp_q->ring_index++; in qla27xx_copy_multiple_pkt() 932 if (rsp_q->ring_index == rsp_q->length) { in qla27xx_copy_multiple_pkt() 933 rsp_q->ring_index = 0; in qla27xx_copy_multiple_pkt() 1215 rsp_q->ring_index++; in qla27xx_copy_fpin_pkt() [all …]
|
| 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 | 3046 if (req->ring_index < cnt) in qla28xx_start_scsi_edif() 3047 req->cnt = cnt - req->ring_index; in qla28xx_start_scsi_edif() 3050 (req->ring_index - cnt); in qla28xx_start_scsi_edif() 3197 req->ring_index++; in qla28xx_start_scsi_edif() 3198 if (req->ring_index == req->length) { in qla28xx_start_scsi_edif() 3199 req->ring_index = 0; in qla28xx_start_scsi_edif() 3207 wrt_reg_dword(req->req_q_in, req->ring_index); in qla28xx_start_scsi_edif()
|
| H A D | qla_nx.c | 2735 req->ring_index++; in qla82xx_start_iocbs() 2736 if (req->ring_index == req->length) { in qla82xx_start_iocbs() 2737 req->ring_index = 0; in qla82xx_start_iocbs() 2744 dbval = dbval | (req->id << 8) | (req->ring_index << 16); in qla82xx_start_iocbs()
|
| H A D | qla_target.c | 2476 if (req->ring_index < cnt) in qlt_check_reserve_free_req() 2477 req->cnt = cnt - req->ring_index; in qlt_check_reserve_free_req() 2479 req->cnt = req->length - (req->ring_index - cnt); in qlt_check_reserve_free_req() 2496 req->ring_index++; in qlt_get_req_pkt() 2497 if (req->ring_index == req->length) { in qlt_get_req_pkt() 2498 req->ring_index = 0; in qlt_get_req_pkt()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | si_ih.c | 145 u32 ring_index = ih->rptr >> 2; in si_ih_decode_iv() local 148 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in si_ih_decode_iv() 149 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in si_ih_decode_iv() 150 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in si_ih_decode_iv() 151 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in si_ih_decode_iv()
|
| H A D | cik_ih.c | 261 u32 ring_index = ih->rptr >> 2; in cik_ih_decode_iv() local 264 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in cik_ih_decode_iv() 265 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in cik_ih_decode_iv() 266 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in cik_ih_decode_iv() 267 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in cik_ih_decode_iv()
|
| H A D | iceland_ih.c | 249 u32 ring_index = ih->rptr >> 2; in iceland_ih_decode_iv() local 252 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in iceland_ih_decode_iv() 253 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in iceland_ih_decode_iv() 254 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in iceland_ih_decode_iv() 255 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in iceland_ih_decode_iv()
|
| H A D | cz_ih.c | 250 u32 ring_index = ih->rptr >> 2; in cz_ih_decode_iv() local 253 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in cz_ih_decode_iv() 254 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in cz_ih_decode_iv() 255 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in cz_ih_decode_iv() 256 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in cz_ih_decode_iv()
|
| H A D | tonga_ih.c | 253 u32 ring_index = ih->rptr >> 2; in tonga_ih_decode_iv() local 256 dw[0] = le32_to_cpu(ih->ring[ring_index + 0]); in tonga_ih_decode_iv() 257 dw[1] = le32_to_cpu(ih->ring[ring_index + 1]); in tonga_ih_decode_iv() 258 dw[2] = le32_to_cpu(ih->ring[ring_index + 2]); in tonga_ih_decode_iv() 259 dw[3] = le32_to_cpu(ih->ring[ring_index + 3]); in tonga_ih_decode_iv()
|
| H A D | amdgpu_irq.c | 473 u32 ring_index = ih->rptr >> 2; in amdgpu_irq_dispatch() local 481 entry.iv_entry = (const uint32_t *)&ih->ring[ring_index]; in amdgpu_irq_dispatch()
|
| H A D | amdgpu_dev_coredump.c | 320 ring_idx = coredump->rings[i].ring_index; in amdgpu_devcoredump_format() 563 coredump->rings[idx].ring_index = ring->idx; in amdgpu_coredump()
|
| /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()
|
| /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/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 | 420 int ring_index = 0; in wil_ring_free_edma() local 441 ring_index = ring - wil->ring_tx; in wil_ring_free_edma() 444 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 …]
|
| /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()
|