Home
last modified time | relevance | path

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

/linux-4.1.27/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()
129 req->ring_index++; in qla2x00_prep_cont_type1_iocb()
130 if (req->ring_index == req->length) { in qla2x00_prep_cont_type1_iocb()
131 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_mr.c1423 rsp->ring_index = 0; in qlafx00_init_response_q_entries()
2720 lreq_q_out = rsp->ring_index; in qlafx00_process_response_queue()
2728 rsp->ring_index++; in qlafx00_process_response_queue()
2730 if (rsp->ring_index == rsp->length) { in qlafx00_process_response_queue()
2732 rsp->ring_index = 0; in qlafx00_process_response_queue()
2779 WRT_REG_DWORD(rsp->rsp_q_out, rsp->ring_index); in qlafx00_process_response_queue()
2970 req->ring_index++; in qlafx00_prep_cont_type1_iocb()
2971 if (req->ring_index == req->length) { in qlafx00_prep_cont_type1_iocb()
2972 req->ring_index = 0; in qlafx00_prep_cont_type1_iocb()
3128 if (req->ring_index < cnt) in qlafx00_start_scsi()
[all …]
Dqla_mid.c704 req->ring_index = 0; in qla25xx_create_req_que()
716 req->ring_ptr, req->ring_index, in qla25xx_create_req_que()
721 req->ring_ptr, req->ring_index, req->cnt, in qla25xx_create_req_que()
Dqla_isr.c1616 rsp->ring_index++; in qla2x00_process_response_queue()
1617 if (rsp->ring_index == rsp->length) { in qla2x00_process_response_queue()
1618 rsp->ring_index = 0; in qla2x00_process_response_queue()
1672 WRT_REG_WORD(ISP_RSP_Q_OUT(ha, reg), rsp->ring_index); in qla2x00_process_response_queue()
2522 rsp->ring_index++; in qla24xx_process_response_queue()
2523 if (rsp->ring_index == rsp->length) { in qla24xx_process_response_queue()
2524 rsp->ring_index = 0; in qla24xx_process_response_queue()
2596 WRT_REG_DWORD(&reg->rsp_q_out[0], rsp->ring_index); in qla24xx_process_response_queue()
2598 WRT_REG_DWORD(rsp->rsp_q_out, rsp->ring_index); in qla24xx_process_response_queue()
Dqla_nx.c2796 req->ring_index++; in qla82xx_start_iocbs()
2797 if (req->ring_index == req->length) { in qla82xx_start_iocbs()
2798 req->ring_index = 0; in qla82xx_start_iocbs()
2806 dbval = dbval | (req->id << 8) | (req->ring_index << 16); in qla82xx_start_iocbs()
Dqla_target.c1694 if (vha->req->ring_index < cnt) in qlt_check_reserve_free_req()
1695 vha->req->cnt = cnt - vha->req->ring_index; in qlt_check_reserve_free_req()
1698 (vha->req->ring_index - cnt); in qlt_check_reserve_free_req()
1704 vha->vp_idx, vha->req->ring_index, in qlt_check_reserve_free_req()
1719 vha->req->ring_index++; in qlt_get_req_pkt()
1720 if (vha->req->ring_index == vha->req->length) { in qlt_get_req_pkt()
1721 vha->req->ring_index = 0; in qlt_get_req_pkt()
Dqla_def.h2813 uint16_t ring_index; member
2840 uint16_t ring_index; member
Dqla_init.c1950 rsp->ring_index = 0; in qla2x00_init_response_q_entries()
2208 req->ring_index = 0; in qla2x00_init_rings()
/linux-4.1.27/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.c2921 int ring_index = rdev->asic->copy.blit_ring_index; in r600_copy_cpdma() local
2922 struct radeon_ring *ring = &rdev->ring[ring_index]; in r600_copy_cpdma()
4004 u32 ring_index; in r600_irq_process() local
4034 ring_index = rptr / 4; in r600_irq_process()
4035 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in r600_irq_process()
4036 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in r600_irq_process()
Dcik.c4049 int ring_index = rdev->asic->copy.blit_ring_index; in cik_copy_cpdma() local
4050 struct radeon_ring *ring = &rdev->ring[ring_index]; in cik_copy_cpdma()
7901 u32 ring_index; in cik_irq_process() local
7929 ring_index = rptr / 4; in cik_irq_process()
7932 (const void *) &rdev->ih.ring[ring_index]); in cik_irq_process()
7934 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in cik_irq_process()
7935 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in cik_irq_process()
7936 ring_id = le32_to_cpu(rdev->ih.ring[ring_index + 2]) & 0xff; in cik_irq_process()
Dsi.c6433 u32 ring_index; in si_irq_process() local
6460 ring_index = rptr / 4; in si_irq_process()
6461 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in si_irq_process()
6462 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in si_irq_process()
6463 ring_id = le32_to_cpu(rdev->ih.ring[ring_index + 2]) & 0xff; in si_irq_process()
Devergreen.c4992 u32 ring_index; in evergreen_irq_process() local
5020 ring_index = rptr / 4; in evergreen_irq_process()
5021 src_id = le32_to_cpu(rdev->ih.ring[ring_index]) & 0xff; in evergreen_irq_process()
5022 src_data = le32_to_cpu(rdev->ih.ring[ring_index + 1]) & 0xfffffff; in evergreen_irq_process()
/linux-4.1.27/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()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c393 u16 new_index, ring_index, stamp_index; in mlx4_en_process_tx_cq() local
418 ring_index = ring_cons & size_mask; in mlx4_en_process_tx_cq()
419 stamp_index = ring_index; in mlx4_en_process_tx_cq()
444 ring_index = (ring_index + last_nr_txbb) & size_mask; in mlx4_en_process_tx_cq()
445 if (ring->tx_info[ring_index].ts_requested) in mlx4_en_process_tx_cq()
450 priv, ring, ring_index, in mlx4_en_process_tx_cq()
457 stamp_index = ring_index; in mlx4_en_process_tx_cq()
460 bytes += ring->tx_info[ring_index].nr_bytes; in mlx4_en_process_tx_cq()
461 } while ((++done < budget) && (ring_index != new_index)); in mlx4_en_process_tx_cq()
Den_ethtool.c1122 static int mlx4_en_get_rxfh(struct net_device *dev, u32 *ring_index, u8 *key, in mlx4_en_get_rxfh() argument
1135 if (!ring_index) in mlx4_en_get_rxfh()
1137 ring_index[n] = rss_map->qps[n % rss_rings].qpn - in mlx4_en_get_rxfh()
1147 static int mlx4_en_set_rxfh(struct net_device *dev, const u32 *ring_index, in mlx4_en_set_rxfh() argument
1161 if (!ring_index) in mlx4_en_set_rxfh()
1163 if (i > 0 && !ring_index[i] && !rss_rings) in mlx4_en_set_rxfh()
1166 if (ring_index[i] != (i % (rss_rings ?: priv->rx_ring_num))) in mlx4_en_set_rxfh()
1189 if (ring_index) in mlx4_en_set_rxfh()
/linux-4.1.27/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()
/linux-4.1.27/include/uapi/linux/
Dethtool.h877 __u32 ring_index[0]; member
/linux-4.1.27/net/core/
Dethtool.c639 offsetof(struct ethtool_rxfh_indir, ring_index[0]), in ethtool_get_rxfh_indir()
656 u32 ringidx_offset = offsetof(struct ethtool_rxfh_indir, ring_index[0]); in ethtool_set_rxfh_indir()