Home
last modified time | relevance | path

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

/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 …]
/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 …]
/linux/drivers/net/ethernet/marvell/octeon_ep_vf/
H A Doctep_vf_config.h70 #define CFG_GET_PORTS_ACTIVE_IO_RINGS(cfg) ((cfg)->ring_cfg.active_io_rings)
71 #define CFG_GET_PORTS_MAX_IO_RINGS(cfg) ((cfg)->ring_cfg.max_io_rings)
158 struct octep_vf_ring_config ring_cfg; member
H A Doctep_vf_cn9k.c142 conf->ring_cfg.max_io_rings = (reg_val >> CN93_VF_R_IN_CTL_RPVF_POS) & in octep_vf_init_config_cn93_vf()
144 conf->ring_cfg.active_io_rings = conf->ring_cfg.max_io_rings; in octep_vf_init_config_cn93_vf()
157 conf->msix_cfg.ioq_msix = conf->ring_cfg.active_io_rings; in octep_vf_init_config_cn93_vf()
H A Doctep_vf_cnxk.c144 conf->ring_cfg.max_io_rings = (reg_val >> CNXK_VF_R_IN_CTL_RPVF_POS) & in octep_vf_init_config_cnxk_vf()
146 conf->ring_cfg.active_io_rings = conf->ring_cfg.max_io_rings; in octep_vf_init_config_cnxk_vf()
160 conf->msix_cfg.ioq_msix = conf->ring_cfg.active_io_rings; in octep_vf_init_config_cnxk_vf()
/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 …]
/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 …]
/linux/drivers/net/wireless/ath/wil6210/
H A Dwmi.c3722 .ring_cfg = { in wil_wmi_tx_sring_cfg()
3734 cmd.ring_cfg.ring_id = ring_id; in wil_wmi_tx_sring_cfg()
3736 cmd.ring_cfg.ring_mem_base = cpu_to_le64(sring->pa); in wil_wmi_tx_sring_cfg()
3799 .ring_cfg = { in wil_wmi_rx_sring_add()
3815 cmd.ring_cfg.ring_mem_base = cpu_to_le64(sring->pa); in wil_wmi_rx_sring_add()
3842 .ring_cfg = { in wil_wmi_rx_desc_ring_add()
3856 cmd.ring_cfg.ring_mem_base = cpu_to_le64(ring->pa); in wil_wmi_rx_desc_ring_add()
3886 .ring_cfg = { in wil_wmi_tx_desc_ring_add()
3907 cmd.ring_cfg.ring_mem_base = cpu_to_le64(ring->pa); in wil_wmi_tx_desc_ring_add()
3937 .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
/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c2810 u32 dma_ctrl, ring_cfg; in bcmgenet_init_tx_queues() local
2819 ring_cfg = 0; in bcmgenet_init_tx_queues()
2829 ring_cfg |= (1 << i); in bcmgenet_init_tx_queues()
2840 ring_cfg |= (1 << DESC_INDEX); in bcmgenet_init_tx_queues()
2852 bcmgenet_tdma_writel(priv, ring_cfg, DMA_RING_CFG); in bcmgenet_init_tx_queues()
2919 u32 ring_cfg; in bcmgenet_init_rx_queues() local
2928 ring_cfg = 0; in bcmgenet_init_rx_queues()
2940 ring_cfg |= (1 << i); in bcmgenet_init_rx_queues()
2952 ring_cfg |= (1 << DESC_INDEX); in bcmgenet_init_rx_queues()
2956 bcmgenet_rdma_writel(priv, ring_cfg, DMA_RING_CFG); in bcmgenet_init_rx_queues()
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_common.c275 static const struct k3_ring_cfg ring_cfg = { in prueth_init_tx_chns() local
297 tx_cfg.tx_cfg = ring_cfg; in prueth_init_tx_chns()
298 tx_cfg.txcq_cfg = ring_cfg; in prueth_init_tx_chns()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.c2262 struct k3_ring_cfg ring_cfg = { in am65_cpsw_nuss_init_tx_chns() local
2274 tx_cfg.tx_cfg = ring_cfg; in am65_cpsw_nuss_init_tx_chns()
2275 tx_cfg.txcq_cfg = ring_cfg; in am65_cpsw_nuss_init_tx_chns()