Home
last modified time | relevance | path

Searched refs:num_rings (Results 1 – 25 of 35) sorted by relevance

12

/drivers/soc/ti/
Dk3-ringacc.c211 u32 num_rings; /* number of rings in Ringacc module */ member
420 *compl_ring = &ringacc->rings[fwd_id + ringacc->num_rings]; in k3_dmaring_request_dual_ring()
755 reverse_ring = &ringacc->rings[ring->ring_id + ringacc->num_rings]; in k3_dmaring_cfg()
1317 ret = of_property_read_u32(node, "ti,num-rings", &ringacc->num_rings); in k3_ringacc_probe_dt()
1411 ringacc->num_rings, in k3_ringacc_init()
1413 ringacc->rings_inuse = devm_bitmap_zalloc(dev, ringacc->num_rings, in k3_ringacc_init()
1421 for (i = 0; i < ringacc->num_rings; i++) { in k3_ringacc_init()
1434 ringacc->num_rings, in k3_ringacc_init()
1477 ringacc->num_rings = data->num_rings; in k3_ringacc_dmarings_init()
1489 ringacc->num_rings * 2, in k3_ringacc_dmarings_init()
[all …]
/drivers/net/ethernet/marvell/octeon_ep/
Doctep_cn9k_pf.c561 int srn, num_rings, i; in octep_enable_interrupts_cn93_pf() local
564 num_rings = CFG_GET_PORTS_ACTIVE_IO_RINGS(oct->conf); in octep_enable_interrupts_cn93_pf()
566 for (i = 0; i < num_rings; i++) in octep_enable_interrupts_cn93_pf()
580 int srn, num_rings, i; in octep_disable_interrupts_cn93_pf() local
583 num_rings = CFG_GET_PORTS_ACTIVE_IO_RINGS(oct->conf); in octep_disable_interrupts_cn93_pf()
585 for (i = 0; i < num_rings; i++) in octep_disable_interrupts_cn93_pf()
699 u8 srn, num_rings, q; in octep_dump_registers_cn93_pf() local
702 num_rings = CFG_GET_PORTS_ACTIVE_IO_RINGS(oct->conf); in octep_dump_registers_cn93_pf()
704 for (q = srn; q < srn + num_rings; q++) in octep_dump_registers_cn93_pf()
/drivers/net/ethernet/freescale/enetc/
Denetc_pf.c471 int num_rings, i; in enetc_port_si_configure() local
475 num_rings = min(ENETC_PCAPR0_RXBDR(val), ENETC_PCAPR0_TXBDR(val)); in enetc_port_si_configure()
480 if (unlikely(num_rings < ENETC_PF_NUM_RINGS)) { in enetc_port_si_configure()
481 val = ENETC_PSICFGR0_SET_TXBDR(num_rings); in enetc_port_si_configure()
482 val |= ENETC_PSICFGR0_SET_RXBDR(num_rings); in enetc_port_si_configure()
485 num_rings, ENETC_PF_NUM_RINGS); in enetc_port_si_configure()
487 num_rings = 0; in enetc_port_si_configure()
495 if (num_rings) in enetc_port_si_configure()
496 num_rings -= ENETC_PF_NUM_RINGS; in enetc_port_si_configure()
502 if (num_rings) { in enetc_port_si_configure()
[all …]
/drivers/mailbox/
Dbcm-flexrm-mailbox.c284 u32 num_rings; member
930 for (i = 0; i < mbox->num_rings; i++) { in flexrm_write_config_in_seqfile()
958 for (i = 0; i < mbox->num_rings; i++) { in flexrm_write_stats_in_seqfile()
1287 val = ring->mbox->num_rings; in flexrm_startup()
1516 mbox->num_rings = 0; in flexrm_mbox_probe()
1519 mbox->num_rings++; in flexrm_mbox_probe()
1521 if (!mbox->num_rings) { in flexrm_mbox_probe()
1527 ring = devm_kcalloc(dev, mbox->num_rings, sizeof(*ring), GFP_KERNEL); in flexrm_mbox_probe()
1536 for (index = 0; index < mbox->num_rings; index++) { in flexrm_mbox_probe()
1590 ret = platform_msi_domain_alloc_irqs(dev, mbox->num_rings, in flexrm_mbox_probe()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_kms.c368 unsigned int num_rings = 0; in amdgpu_hw_ip_info() local
379 ++num_rings; in amdgpu_hw_ip_info()
387 ++num_rings; in amdgpu_hw_ip_info()
395 ++num_rings; in amdgpu_hw_ip_info()
406 ++num_rings; in amdgpu_hw_ip_info()
413 for (i = 0; i < adev->vce.num_rings; i++) in amdgpu_hw_ip_info()
415 ++num_rings; in amdgpu_hw_ip_info()
427 ++num_rings; in amdgpu_hw_ip_info()
439 ++num_rings; in amdgpu_hw_ip_info()
452 ++num_rings; in amdgpu_hw_ip_info()
[all …]
Dvce_v2_0.c405 adev->vce.num_rings = 2; in vce_v2_0_early_init()
433 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v2_0_sw_init()
469 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v2_0_hw_init()
659 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v2_0_set_ring_funcs()
Dvce_v3_0.c410 adev->vce.num_rings = 3; in vce_v3_0_early_init()
436 adev->vce.num_rings = 2; in vce_v3_0_sw_init()
442 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v3_0_sw_init()
479 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v3_0_hw_init()
976 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v3_0_set_ring_funcs()
982 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v3_0_set_ring_funcs()
Damdgpu_vce.h53 unsigned num_rings; member
Dvce_v4_0.c415 adev->vce.num_rings = 1; in vce_v4_0_early_init()
417 adev->vce.num_rings = 3; in vce_v4_0_early_init()
465 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v4_0_sw_init()
533 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v4_0_hw_init()
1137 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v4_0_set_ring_funcs()
Damdgpu_ring.c219 if (adev->num_rings >= AMDGPU_MAX_RINGS) in amdgpu_ring_init()
228 ring->idx = adev->num_rings++; in amdgpu_ring_init()
Damdgpu_ib.c411 for (i = 0; i < adev->num_rings; ++i) { in amdgpu_ib_ring_tests()
Damdgpu_vce.c220 for (i = 0; i < adev->vce.num_rings; i++) in amdgpu_vce_sw_fini()
337 for (i = 0; i < adev->vce.num_rings; i++) in amdgpu_vce_idle_work_handler()
Daqua_vanjaram.c163 for (i = 0; i < adev->num_rings; i++) { in aqua_vanjaram_update_partition_sched_list()
Damdgpu_gmc.c554 for (i = 0; i < adev->num_rings; ++i) { in amdgpu_gmc_allocate_vm_inv_eng()
/drivers/gpu/drm/radeon/
Dradeon_fence.c599 unsigned i, num_rings = 0; in radeon_fence_wait_any() local
610 ++num_rings; in radeon_fence_wait_any()
614 if (num_rings == 0) in radeon_fence_wait_any()
/drivers/net/ethernet/google/gve/
Dgve_tx.c304 int gve_tx_alloc_rings(struct gve_priv *priv, int start_id, int num_rings) in gve_tx_alloc_rings() argument
309 for (i = start_id; i < start_id + num_rings; i++) { in gve_tx_alloc_rings()
328 void gve_tx_free_rings_gqi(struct gve_priv *priv, int start_id, int num_rings) in gve_tx_free_rings_gqi() argument
332 for (i = start_id; i < start_id + num_rings; i++) in gve_tx_free_rings_gqi()
Dgve.h1048 int gve_tx_alloc_rings(struct gve_priv *priv, int start_id, int num_rings);
1049 void gve_tx_free_rings_gqi(struct gve_priv *priv, int start_id, int num_rings);
/drivers/gpu/drm/virtio/
Dvirtgpu_ioctl.c635 vfpriv->num_rings = value; in virtio_gpu_context_init_ioctl()
653 for (i = 0; i < vfpriv->num_rings; i++) in virtio_gpu_context_init_ioctl()
Dvirtgpu_drv.h273 uint32_t num_rings; member
Dvirtgpu_submit.c491 if (exbuf->ring_idx >= vfpriv->num_rings) in virtio_gpu_execbuffer_ioctl()
/drivers/scsi/lpfc/
Dlpfc_sli.h350 uint32_t num_rings; member
Dlpfc_mbox.c1023 pcbp->maxRing = (psli->num_rings - 1); in lpfc_config_pcb_setup()
1025 for (i = 0; i < psli->num_rings; i++) { in lpfc_config_pcb_setup()
1469 for (i = 0; i < phba->sli.num_rings; i++) { in lpfc_config_port()
/drivers/net/wireless/ath/ath10k/
Dhtt_tx.c847 cmd->rx_setup_32.hdr.num_rings = 1; in ath10k_htt_send_rx_ring_cfg_32()
919 cmd->rx_setup_64.hdr.num_rings = 1; in ath10k_htt_send_rx_ring_cfg_64()
988 cmd->rx_setup_32.hdr.num_rings = 1; in ath10k_htt_send_rx_ring_cfg_hl()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c626 int num_rings, max_rings = QLCNIC_MAX_SDS_RINGS; in qlcnic_max_rings() local
633 num_rings = rounddown_pow_of_two(min_t(int, num_online_cpus(), in qlcnic_max_rings()
636 if (ring_cnt > num_rings) in qlcnic_max_rings()
637 return num_rings; in qlcnic_max_rings()
/drivers/net/ethernet/broadcom/
Dbnx2.c5194 u32 buf_size, int num_rings) in bnx2_init_rxbd_rings() argument
5199 for (i = 0; i < num_rings; i++) { in bnx2_init_rxbd_rings()
5207 if (i == (num_rings - 1)) in bnx2_init_rxbd_rings()
5351 u32 max, num_rings = 1; in bnx2_find_max_ring() local
5355 num_rings++; in bnx2_find_max_ring()
5359 while ((max & num_rings) == 0) in bnx2_find_max_ring()
5362 if (num_rings != max) in bnx2_find_max_ring()

12