Home
last modified time | relevance | path

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

12

/openbmc/qemu/hw/9pfs/
H A Dxen-9p-backend.c64 int num_rings; member
144 xen_9pfs_in_sg(&xen_9pfs->rings[pdu->tag % xen_9pfs->num_rings], in xen_9pfs_pdu_vmarshal()
168 xen_9pfs_out_sg(&xen_9pfs->rings[pdu->tag % xen_9pfs->num_rings], in xen_9pfs_pdu_vunmarshal()
187 Xen9pfsRing *ring = &xen_9pfs->rings[pdu->tag % xen_9pfs->num_rings]; in xen_9pfs_init_out_iov_from_pdu()
204 Xen9pfsRing *ring = &xen_9pfs->rings[pdu->tag % xen_9pfs->num_rings]; in xen_9pfs_init_in_iov_from_pdu()
234 Xen9pfsRing *ring = &priv->rings[pdu->tag % priv->num_rings]; in xen_9pfs_push_and_notify()
344 for (i = 0; i < xen_9pdev->num_rings; i++) { in xen_9pfs_disconnect()
401 &xen_9pdev->num_rings) == -1 || in xen_9pfs_connect()
402 xen_9pdev->num_rings > MAX_RINGS || xen_9pdev->num_rings < 1) { in xen_9pfs_connect()
406 xen_9pdev->rings = g_new0(Xen9pfsRing, xen_9pdev->num_rings); in xen_9pfs_connect()
[all …]
/openbmc/linux/net/9p/
H A Dtrans_xen.c57 int num_rings; member
134 num = p9_req->tc.tag % priv->num_rings; in p9_xen_request()
282 for (i = 0; i < priv->num_rings; i++) { in xen_9pfs_front_free()
411 priv->num_rings = XEN_9PFS_NUM_RINGS; in xen_9pfs_front_init()
412 priv->rings = kcalloc(priv->num_rings, sizeof(*priv->rings), in xen_9pfs_front_init()
419 for (i = 0; i < priv->num_rings; i++) { in xen_9pfs_front_init()
437 priv->num_rings); in xen_9pfs_front_init()
440 for (i = 0; i < priv->num_rings; i++) { in xen_9pfs_front_init()
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/
H A 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()
/openbmc/linux/drivers/soc/ti/
H A 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 …]
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A 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 …]
/openbmc/linux/drivers/mailbox/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_kms.c369 unsigned int num_rings = 0; in amdgpu_hw_ip_info() local
380 ++num_rings; in amdgpu_hw_ip_info()
388 ++num_rings; in amdgpu_hw_ip_info()
396 ++num_rings; in amdgpu_hw_ip_info()
407 ++num_rings; in amdgpu_hw_ip_info()
414 for (i = 0; i < adev->vce.num_rings; i++) in amdgpu_hw_ip_info()
416 ++num_rings; in amdgpu_hw_ip_info()
428 ++num_rings; in amdgpu_hw_ip_info()
440 ++num_rings; in amdgpu_hw_ip_info()
453 ++num_rings; in amdgpu_hw_ip_info()
[all …]
H A 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()
H A 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()
H A Damdgpu_vce.h53 unsigned num_rings; member
H A 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()
H A Damdgpu_ring.c219 if (adev->num_rings >= AMDGPU_MAX_RINGS) in amdgpu_ring_init()
228 ring->idx = adev->num_rings++; in amdgpu_ring_init()
H A Damdgpu_ib.c411 for (i = 0; i < adev->num_rings; ++i) { in amdgpu_ib_ring_tests()
H A Damdgpu_vce.c217 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()
H A Daqua_vanjaram.c163 for (i = 0; i < adev->num_rings; i++) { in aqua_vanjaram_update_partition_sched_list()
H A Damdgpu_gmc.c554 for (i = 0; i < adev->num_rings; ++i) { in amdgpu_gmc_allocate_vm_inv_eng()
/openbmc/linux/include/linux/soc/ti/
H A Dk3-ringacc.h264 u32 num_rings; member
/openbmc/linux/drivers/gpu/drm/radeon/
H A 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()
/openbmc/linux/drivers/net/ethernet/google/gve/
H A 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()
H A Dgve.h1058 int gve_tx_alloc_rings(struct gve_priv *priv, int start_id, int num_rings);
1059 void gve_tx_free_rings_gqi(struct gve_priv *priv, int start_id, int num_rings);
/openbmc/linux/drivers/gpu/drm/virtio/
H A 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()
H A Dvirtgpu_drv.h280 uint32_t num_rings; member
H A Dvirtgpu_submit.c491 if (exbuf->ring_idx >= vfpriv->num_rings) in virtio_gpu_execbuffer_ioctl()
/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_sli.h350 uint32_t num_rings; member
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dhtt_tx.c848 cmd->rx_setup_32.hdr.num_rings = 1; in ath10k_htt_send_rx_ring_cfg_32()
920 cmd->rx_setup_64.hdr.num_rings = 1; in ath10k_htt_send_rx_ring_cfg_64()
989 cmd->rx_setup_32.hdr.num_rings = 1; in ath10k_htt_send_rx_ring_cfg_hl()

12