Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/apm/xgene/
Dxgene_enet_ring2.c14 u32 *ring_cfg = ring->state; in xgene_enet_ring_init() local
18 ring_cfg[0] |= SET_VAL(X2_INTLINE, ring->id & RING_BUFNUM_MASK); in xgene_enet_ring_init()
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()
24 ring_cfg[2] |= QCOHERENT | SET_VAL(RINGADDRL, addr); 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()
31 ring_cfg[5] |= SET_BIT(X2_QBASE_AM) | SET_BIT(X2_MSG_AM); 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()
[all …]
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()
28 ring_cfg[3] |= addr & CREATE_MASK_ULL(RINGADDRH_POS, RINGADDRH_LEN); 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()
45 ring_cfg[3] |= (BUFPOOL_MODE << RINGMODE_POS) & in xgene_enet_ring_set_type()
[all …]
/kernel/linux/linux-5.10/drivers/dma/
Dxgene-dma.c1050 void *ring_cfg = ring->state; in xgene_dma_setup_ring() local
1060 XGENE_DMA_RING_TYPE_SET(ring_cfg, XGENE_DMA_RING_TYPE_REGULAR); in xgene_dma_setup_ring()
1064 XGENE_DMA_RING_RECOMBBUF_SET(ring_cfg); in xgene_dma_setup_ring()
1065 XGENE_DMA_RING_RECOMTIMEOUTL_SET(ring_cfg); in xgene_dma_setup_ring()
1066 XGENE_DMA_RING_RECOMTIMEOUTH_SET(ring_cfg); in xgene_dma_setup_ring()
1070 XGENE_DMA_RING_SELTHRSH_SET(ring_cfg); in xgene_dma_setup_ring()
1071 XGENE_DMA_RING_ACCEPTLERR_SET(ring_cfg); in xgene_dma_setup_ring()
1072 XGENE_DMA_RING_COHERENT_SET(ring_cfg); in xgene_dma_setup_ring()
1073 XGENE_DMA_RING_ADDRL_SET(ring_cfg, addr); in xgene_dma_setup_ring()
1074 XGENE_DMA_RING_ADDRH_SET(ring_cfg, addr); in xgene_dma_setup_ring()
[all …]
/kernel/linux/linux-5.10/drivers/dma/ti/
Dk3-udma.c1380 struct k3_ring_cfg ring_cfg; in udma_alloc_tx_resources() local
1396 memset(&ring_cfg, 0, sizeof(ring_cfg)); in udma_alloc_tx_resources()
1397 ring_cfg.size = K3_UDMA_DEFAULT_RING_SIZE; in udma_alloc_tx_resources()
1398 ring_cfg.elm_size = K3_RINGACC_RING_ELSIZE_8; in udma_alloc_tx_resources()
1399 ring_cfg.mode = K3_RINGACC_RING_MODE_MESSAGE; in udma_alloc_tx_resources()
1401 ret = k3_ringacc_ring_cfg(uc->tchan->t_ring, &ring_cfg); in udma_alloc_tx_resources()
1402 ret |= k3_ringacc_ring_cfg(uc->tchan->tc_ring, &ring_cfg); in udma_alloc_tx_resources()
1442 struct k3_ring_cfg ring_cfg; in udma_alloc_rx_resources() local
1470 memset(&ring_cfg, 0, sizeof(ring_cfg)); in udma_alloc_rx_resources()
1473 ring_cfg.size = SG_MAX_SEGMENTS; in udma_alloc_rx_resources()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/
Dwmi.c3723 .ring_cfg = { in wil_wmi_tx_sring_cfg()
3735 cmd.ring_cfg.ring_id = ring_id; in wil_wmi_tx_sring_cfg()
3737 cmd.ring_cfg.ring_mem_base = cpu_to_le64(sring->pa); in wil_wmi_tx_sring_cfg()
3800 .ring_cfg = { in wil_wmi_rx_sring_add()
3816 cmd.ring_cfg.ring_mem_base = cpu_to_le64(sring->pa); in wil_wmi_rx_sring_add()
3843 .ring_cfg = { in wil_wmi_rx_desc_ring_add()
3857 cmd.ring_cfg.ring_mem_base = cpu_to_le64(ring->pa); in wil_wmi_rx_desc_ring_add()
3887 .ring_cfg = { in wil_wmi_tx_desc_ring_add()
3908 cmd.ring_cfg.ring_mem_base = cpu_to_le64(ring->pa); in wil_wmi_tx_desc_ring_add()
3938 .ring_cfg = { in wil_wmi_bcast_desc_ring_add()
[all …]
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
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c2752 u32 dma_ctrl, ring_cfg; in bcmgenet_init_tx_queues() local
2761 ring_cfg = 0; in bcmgenet_init_tx_queues()
2771 ring_cfg |= (1 << i); in bcmgenet_init_tx_queues()
2782 ring_cfg |= (1 << DESC_INDEX); in bcmgenet_init_tx_queues()
2794 bcmgenet_tdma_writel(priv, ring_cfg, DMA_RING_CFG); in bcmgenet_init_tx_queues()
2861 u32 ring_cfg; in bcmgenet_init_rx_queues() local
2870 ring_cfg = 0; in bcmgenet_init_rx_queues()
2882 ring_cfg |= (1 << i); in bcmgenet_init_rx_queues()
2894 ring_cfg |= (1 << DESC_INDEX); in bcmgenet_init_rx_queues()
2898 bcmgenet_rdma_writel(priv, ring_cfg, DMA_RING_CFG); in bcmgenet_init_rx_queues()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.c1476 struct k3_ring_cfg ring_cfg = { in am65_cpsw_nuss_init_tx_chns() local
1488 tx_cfg.tx_cfg = ring_cfg; in am65_cpsw_nuss_init_tx_chns()
1489 tx_cfg.txcq_cfg = ring_cfg; in am65_cpsw_nuss_init_tx_chns()