Home
last modified time | relevance | path

Searched refs:ring_cfg (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_ring2.c14 u32 *ring_cfg = ring->state; in xgene_enet_ring_init() local
19 ring_cfg[3] |= SET_BIT(X2_DEQINTEN); in xgene_enet_ring_init()
21 ring_cfg[0] |= SET_VAL(X2_CFGCRID, 2); in xgene_enet_ring_init()
27 ring_cfg[3] |= SET_VAL(RINGSIZE, ring->cfgsize) in xgene_enet_ring_init()
30 ring_cfg[4] |= SET_VAL(X2_SELTHRSH, 1); in xgene_enet_ring_init()
36 u32 *ring_cfg = ring->state; in xgene_enet_ring_set_type() local
42 ring_cfg[4] |= SET_VAL(X2_RINGTYPE, val); in xgene_enet_ring_set_type()
44 ring_cfg[3] |= SET_VAL(RINGMODE, BUFPOOL_MODE); in xgene_enet_ring_set_type()
49 u32 *ring_cfg = ring->state; in xgene_enet_ring_set_recombbuf() local
51 ring_cfg[3] |= RECOMBBUF; in xgene_enet_ring_set_recombbuf()
[all …]
H A Dxgene_enet_hw.c15 u32 *ring_cfg = ring->state; in xgene_enet_ring_init() local
19 ring_cfg[4] |= (1 << SELTHRSH_POS) & in xgene_enet_ring_init()
21 ring_cfg[3] |= ACCEPTLERR; in xgene_enet_ring_init()
22 ring_cfg[2] |= QCOHERENT; in xgene_enet_ring_init()
25 ring_cfg[2] |= (addr << RINGADDRL_POS) & in xgene_enet_ring_init()
29 ring_cfg[3] |= ((u32)cfgsize << RINGSIZE_POS) & in xgene_enet_ring_init()
35 u32 *ring_cfg = ring->state; in xgene_enet_ring_set_type() local
41 ring_cfg[4] |= (val << RINGTYPE_POS) & in xgene_enet_ring_set_type()
52 u32 *ring_cfg = ring->state; in xgene_enet_ring_set_recombbuf() local
54 ring_cfg[3] |= RECOMBBUF; in xgene_enet_ring_set_recombbuf()
[all …]
/openbmc/linux/drivers/soc/ti/
H A Dk3-ringacc.c469 ring_cfg.nav_id = ringacc->tisci_dev_id; in k3_ringacc_ring_reset_sci()
470 ring_cfg.index = ring->ring_id; in k3_ringacc_ring_reset_sci()
472 ring_cfg.count = ring->size; in k3_ringacc_ring_reset_sci()
499 ring_cfg.index = ring->ring_id; in k3_ringacc_ring_reconfig_qmode_sci()
501 ring_cfg.mode = mode; in k3_ringacc_ring_reconfig_qmode_sci()
575 ring_cfg.index = ring->ring_id; in k3_ringacc_ring_free_sci()
682 ring_cfg.index = ring->ring_id; in k3_ringacc_ring_cfg_sci()
686 ring_cfg.count = ring->size; in k3_ringacc_ring_cfg_sci()
687 ring_cfg.mode = ring->mode; in k3_ringacc_ring_cfg_sci()
688 ring_cfg.size = ring->elm_size; in k3_ringacc_ring_cfg_sci()
[all …]
/openbmc/linux/drivers/dma/
H A Dxgene-dma.c1051 void *ring_cfg = ring->state; in xgene_dma_setup_ring() local
1061 XGENE_DMA_RING_TYPE_SET(ring_cfg, XGENE_DMA_RING_TYPE_REGULAR); in xgene_dma_setup_ring()
1065 XGENE_DMA_RING_RECOMBBUF_SET(ring_cfg); in xgene_dma_setup_ring()
1066 XGENE_DMA_RING_RECOMTIMEOUTL_SET(ring_cfg); in xgene_dma_setup_ring()
1067 XGENE_DMA_RING_RECOMTIMEOUTH_SET(ring_cfg); in xgene_dma_setup_ring()
1071 XGENE_DMA_RING_SELTHRSH_SET(ring_cfg); in xgene_dma_setup_ring()
1072 XGENE_DMA_RING_ACCEPTLERR_SET(ring_cfg); in xgene_dma_setup_ring()
1073 XGENE_DMA_RING_COHERENT_SET(ring_cfg); in xgene_dma_setup_ring()
1074 XGENE_DMA_RING_ADDRL_SET(ring_cfg, addr); in xgene_dma_setup_ring()
1075 XGENE_DMA_RING_ADDRH_SET(ring_cfg, addr); in xgene_dma_setup_ring()
[all …]
/openbmc/linux/drivers/dma/ti/
H A Dk3-udma.c1619 struct k3_ring_cfg ring_cfg; in bcdma_alloc_bchan_resources() local
1635 memset(&ring_cfg, 0, sizeof(ring_cfg)); in bcdma_alloc_bchan_resources()
1636 ring_cfg.size = K3_UDMA_DEFAULT_RING_SIZE; in bcdma_alloc_bchan_resources()
1641 ring_cfg.asel = ud->asel; in bcdma_alloc_bchan_resources()
1677 struct k3_ring_cfg ring_cfg; in udma_alloc_tx_resources() local
1700 memset(&ring_cfg, 0, sizeof(ring_cfg)); in udma_alloc_tx_resources()
1709 ring_cfg.asel = uc->config.asel; in udma_alloc_tx_resources()
1754 struct k3_ring_cfg ring_cfg; in udma_alloc_rx_resources() local
1791 memset(&ring_cfg, 0, sizeof(ring_cfg)); in udma_alloc_rx_resources()
1796 ring_cfg.size = SG_MAX_SEGMENTS; in udma_alloc_rx_resources()
[all …]
/openbmc/linux/drivers/net/wireless/ath/wil6210/
H A Dwmi.c3724 .ring_cfg = { in wil_wmi_tx_sring_cfg()
3736 cmd.ring_cfg.ring_id = ring_id; in wil_wmi_tx_sring_cfg()
3738 cmd.ring_cfg.ring_mem_base = cpu_to_le64(sring->pa); in wil_wmi_tx_sring_cfg()
3801 .ring_cfg = { in wil_wmi_rx_sring_add()
3817 cmd.ring_cfg.ring_mem_base = cpu_to_le64(sring->pa); in wil_wmi_rx_sring_add()
3844 .ring_cfg = { in wil_wmi_rx_desc_ring_add()
3858 cmd.ring_cfg.ring_mem_base = cpu_to_le64(ring->pa); in wil_wmi_rx_desc_ring_add()
3888 .ring_cfg = { in wil_wmi_tx_desc_ring_add()
3909 cmd.ring_cfg.ring_mem_base = cpu_to_le64(ring->pa); in wil_wmi_tx_desc_ring_add()
3939 .ring_cfg = { in wil_wmi_bcast_desc_ring_add()
[all …]
H A Dwmi.h1010 struct wmi_edma_ring_cfg ring_cfg; member
1018 struct wmi_edma_ring_cfg ring_cfg; member
1038 struct wmi_edma_ring_cfg ring_cfg; member
1056 struct wmi_edma_ring_cfg ring_cfg; member
1065 struct wmi_edma_ring_cfg ring_cfg; member
/openbmc/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c2812 u32 dma_ctrl, ring_cfg; in bcmgenet_init_tx_queues() local
2821 ring_cfg = 0; in bcmgenet_init_tx_queues()
2831 ring_cfg |= (1 << i); in bcmgenet_init_tx_queues()
2842 ring_cfg |= (1 << DESC_INDEX); in bcmgenet_init_tx_queues()
2854 bcmgenet_tdma_writel(priv, ring_cfg, DMA_RING_CFG); in bcmgenet_init_tx_queues()
2921 u32 ring_cfg; in bcmgenet_init_rx_queues() local
2930 ring_cfg = 0; in bcmgenet_init_rx_queues()
2942 ring_cfg |= (1 << i); in bcmgenet_init_rx_queues()
2954 ring_cfg |= (1 << DESC_INDEX); in bcmgenet_init_rx_queues()
2958 bcmgenet_rdma_writel(priv, ring_cfg, DMA_RING_CFG); in bcmgenet_init_rx_queues()
/openbmc/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_prueth.c259 static const struct k3_ring_cfg ring_cfg = { in prueth_init_tx_chns() local
281 tx_cfg.tx_cfg = ring_cfg; in prueth_init_tx_chns()
282 tx_cfg.txcq_cfg = ring_cfg; in prueth_init_tx_chns()
/openbmc/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.c1700 struct k3_ring_cfg ring_cfg = { in am65_cpsw_nuss_init_tx_chns() local
1712 tx_cfg.tx_cfg = ring_cfg; in am65_cpsw_nuss_init_tx_chns()
1713 tx_cfg.txcq_cfg = ring_cfg; in am65_cpsw_nuss_init_tx_chns()