Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ctx.c126 unsigned num_rings = 0; in amdgpu_ctx_init() local
132 num_rings = 1; in amdgpu_ctx_init()
137 num_rings = adev->gfx.num_compute_rings; in amdgpu_ctx_init()
142 num_rings = adev->sdma.num_instances; in amdgpu_ctx_init()
146 num_rings = 1; in amdgpu_ctx_init()
150 num_rings = 1; in amdgpu_ctx_init()
154 num_rings = 1; in amdgpu_ctx_init()
160 rings[num_rings++] = &adev->vcn.inst[j].ring_dec; in amdgpu_ctx_init()
168 rings[num_rings++] = &adev->vcn.inst[j].ring_enc[k]; in amdgpu_ctx_init()
175 rings[num_rings++] = &adev->vcn.inst[j].ring_jpeg; in amdgpu_ctx_init()
[all …]
Damdgpu_kms.c309 unsigned int num_rings = 0; in amdgpu_hw_ip_info() local
320 ++num_rings; in amdgpu_hw_ip_info()
328 ++num_rings; in amdgpu_hw_ip_info()
336 ++num_rings; in amdgpu_hw_ip_info()
347 ++num_rings; in amdgpu_hw_ip_info()
354 for (i = 0; i < adev->vce.num_rings; i++) in amdgpu_hw_ip_info()
356 ++num_rings; in amdgpu_hw_ip_info()
368 ++num_rings; in amdgpu_hw_ip_info()
380 ++num_rings; in amdgpu_hw_ip_info()
393 ++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()
467 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v2_0_hw_init()
629 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()
476 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v3_0_hw_init()
948 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v3_0_set_ring_funcs()
954 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.c414 adev->vce.num_rings = 1; in vce_v4_0_early_init()
416 adev->vce.num_rings = 3; in vce_v4_0_early_init()
464 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v4_0_sw_init()
528 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v4_0_hw_init()
552 for (i = 0; i < adev->vce.num_rings; i++) in vce_v4_0_hw_fini()
1104 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v4_0_set_ring_funcs()
Damdgpu_ring.c256 if (adev->num_rings >= AMDGPU_MAX_RINGS) in amdgpu_ring_init()
260 ring->idx = adev->num_rings++; in amdgpu_ring_init()
Damdgpu_ib.c357 for (i = 0; i < adev->num_rings; ++i) { in amdgpu_ib_ring_tests()
Damdgpu_vce.c219 for (i = 0; i < adev->vce.num_rings; i++) in amdgpu_vce_sw_fini()
331 for (i = 0; i < adev->vce.num_rings; i++) in amdgpu_vce_idle_work_handler()
Dgmc_v10_0.c499 for(i = 0; i < adev->num_rings; ++i) { in gmc_v10_0_late_init()
Dgmc_v9_0.c744 for (i = 0; i < adev->num_rings; ++i) { in gmc_v9_0_allocate_vm_inv_eng()
Damdgpu.h904 unsigned num_rings; member
Damdgpu_vm.c965 for (i = 0; i < adev->num_rings; i++) { in amdgpu_vm_check_compute_bug()
/Linux-v5.4/net/9p/
Dtrans_xen.c80 int num_rings; member
157 num = p9_req->tc.tag % priv->num_rings; in p9_xen_request()
292 for (i = 0; i < priv->num_rings; i++) { in xen_9pfs_front_free()
415 priv->num_rings = XEN_9PFS_NUM_RINGS; in xen_9pfs_front_probe()
416 priv->rings = kcalloc(priv->num_rings, sizeof(*priv->rings), in xen_9pfs_front_probe()
423 for (i = 0; i < priv->num_rings; i++) { in xen_9pfs_front_probe()
440 priv->num_rings); in xen_9pfs_front_probe()
443 for (i = 0; i < priv->num_rings; i++) { in xen_9pfs_front_probe()
/Linux-v5.4/drivers/net/ethernet/freescale/enetc/
Denetc_pf.c463 int num_rings, i; in enetc_port_si_configure() local
467 num_rings = min(ENETC_PCAPR0_RXBDR(val), ENETC_PCAPR0_TXBDR(val)); in enetc_port_si_configure()
472 if (unlikely(num_rings < ENETC_PF_NUM_RINGS)) { in enetc_port_si_configure()
473 val = ENETC_PSICFGR0_SET_TXBDR(num_rings); in enetc_port_si_configure()
474 val |= ENETC_PSICFGR0_SET_RXBDR(num_rings); in enetc_port_si_configure()
477 num_rings, ENETC_PF_NUM_RINGS); in enetc_port_si_configure()
479 num_rings = 0; in enetc_port_si_configure()
487 if (num_rings) in enetc_port_si_configure()
488 num_rings -= ENETC_PF_NUM_RINGS; in enetc_port_si_configure()
494 if (num_rings) { in enetc_port_si_configure()
[all …]
/Linux-v5.4/drivers/mailbox/
Dbcm-flexrm-mailbox.c294 u32 num_rings; member
940 for (i = 0; i < mbox->num_rings; i++) { in flexrm_write_config_in_seqfile()
968 for (i = 0; i < mbox->num_rings; i++) { in flexrm_write_stats_in_seqfile()
1297 val = ring->mbox->num_rings; in flexrm_startup()
1532 mbox->num_rings = 0; in flexrm_mbox_probe()
1535 mbox->num_rings++; in flexrm_mbox_probe()
1537 if (!mbox->num_rings) { in flexrm_mbox_probe()
1543 ring = devm_kcalloc(dev, mbox->num_rings, sizeof(*ring), GFP_KERNEL); in flexrm_mbox_probe()
1552 for (index = 0; index < mbox->num_rings; index++) { in flexrm_mbox_probe()
1605 ret = platform_msi_domain_alloc_irqs(dev, mbox->num_rings, in flexrm_mbox_probe()
[all …]
/Linux-v5.4/drivers/gpu/drm/radeon/
Dradeon_fence.c616 unsigned i, num_rings = 0; in radeon_fence_wait_any() local
627 ++num_rings; in radeon_fence_wait_any()
631 if (num_rings == 0) in radeon_fence_wait_any()
/Linux-v5.4/drivers/scsi/lpfc/
Dlpfc_sli.h318 uint32_t num_rings; member
Dlpfc_mbox.c965 pcbp->maxRing = (psli->num_rings - 1); in lpfc_config_pcb_setup()
967 for (i = 0; i < psli->num_rings; i++) { in lpfc_config_pcb_setup()
1412 for (i = 0; i < phba->sli.num_rings; i++) { in lpfc_config_port()
Dlpfc_init.c574 if (psli->num_rings > 0) in lpfc_config_port_post()
576 if (psli->num_rings > 1) in lpfc_config_port_post()
578 if (psli->num_rings > 2) in lpfc_config_port_post()
580 if (psli->num_rings > 3) in lpfc_config_port_post()
967 for (i = 0; i < psli->num_rings; i++) { in lpfc_hba_clean_txcmplq()
Dlpfc_sli.c1547 for (i = 0; i < psli->num_rings; i++) { in lpfc_sli_ring_map()
4443 for (i = 0; i < psli->num_rings; i++) { in lpfc_sli_brdreset()
10352 psli->num_rings = MAX_SLI3_CONFIGURED_RINGS; in lpfc_sli_setup()
10359 for (i = 0; i < psli->num_rings; i++) { in lpfc_sli_setup()
10537 for (i = 0; i < psli->num_rings; i++) { in lpfc_sli_queue_init()
10647 for (i = 0; i < psli->num_rings; i++) { in lpfc_sli_host_down()
10749 for (i = 0; i < psli->num_rings; i++) { in lpfc_sli_hba_down()
11284 for (i = 0; i < psli->num_rings; i++) { in lpfc_sli_hba_iocb_abort()
/Linux-v5.4/drivers/net/wireless/ath/ath10k/
Dhtt_tx.c820 cmd->rx_setup_32.hdr.num_rings = 1; in ath10k_htt_send_rx_ring_cfg_32()
891 cmd->rx_setup_64.hdr.num_rings = 1; in ath10k_htt_send_rx_ring_cfg_64()
960 cmd->rx_setup_32.hdr.num_rings = 1; in ath10k_htt_send_rx_ring_cfg_hl()
Dhtt.h276 u8 num_rings; /* supported values: 1, 2 */ member
/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c650 int num_rings, max_rings = QLCNIC_MAX_SDS_RINGS; in qlcnic_max_rings() local
657 num_rings = rounddown_pow_of_two(min_t(int, num_online_cpus(), in qlcnic_max_rings()
660 if (ring_cnt > num_rings) in qlcnic_max_rings()
661 return num_rings; in qlcnic_max_rings()
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbnx2.c5217 u32 buf_size, int num_rings) in bnx2_init_rxbd_rings() argument
5222 for (i = 0; i < num_rings; i++) { in bnx2_init_rxbd_rings()
5230 if (i == (num_rings - 1)) in bnx2_init_rxbd_rings()
5374 u32 max, num_rings = 1; in bnx2_find_max_ring() local
5378 num_rings++; in bnx2_find_max_ring()
5382 while ((max & num_rings) == 0) in bnx2_find_max_ring()
5385 if (num_rings != max) in bnx2_find_max_ring()

12