Searched refs:ring_cfg (Results 1 – 9 of 9) sorted by relevance
/Linux-v6.1/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_ring2.c | 14 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 …]
|
D | xgene_enet_hw.c | 15 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 …]
|
/Linux-v6.1/drivers/soc/ti/ |
D | k3-ringacc.c | 452 struct ti_sci_msg_rm_ring_cfg ring_cfg = { 0 }; in k3_ringacc_ring_reset_sci() local 456 ring_cfg.nav_id = ringacc->tisci_dev_id; in k3_ringacc_ring_reset_sci() 457 ring_cfg.index = ring->ring_id; in k3_ringacc_ring_reset_sci() 458 ring_cfg.valid_params = TI_SCI_MSG_VALUE_RM_RING_COUNT_VALID; in k3_ringacc_ring_reset_sci() 459 ring_cfg.count = ring->size; in k3_ringacc_ring_reset_sci() 461 ret = ringacc->tisci_ring_ops->set_cfg(ringacc->tisci, &ring_cfg); in k3_ringacc_ring_reset_sci() 481 struct ti_sci_msg_rm_ring_cfg ring_cfg = { 0 }; in k3_ringacc_ring_reconfig_qmode_sci() local 485 ring_cfg.nav_id = ringacc->tisci_dev_id; in k3_ringacc_ring_reconfig_qmode_sci() 486 ring_cfg.index = ring->ring_id; in k3_ringacc_ring_reconfig_qmode_sci() 487 ring_cfg.valid_params = TI_SCI_MSG_VALUE_RM_RING_MODE_VALID; in k3_ringacc_ring_reconfig_qmode_sci() [all …]
|
/Linux-v6.1/drivers/dma/ |
D | xgene-dma.c | 1050 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 …]
|
/Linux-v6.1/drivers/dma/ti/ |
D | k3-udma.c | 1615 struct k3_ring_cfg ring_cfg; in bcdma_alloc_bchan_resources() local 1631 memset(&ring_cfg, 0, sizeof(ring_cfg)); in bcdma_alloc_bchan_resources() 1632 ring_cfg.size = K3_UDMA_DEFAULT_RING_SIZE; in bcdma_alloc_bchan_resources() 1633 ring_cfg.elm_size = K3_RINGACC_RING_ELSIZE_8; in bcdma_alloc_bchan_resources() 1634 ring_cfg.mode = K3_RINGACC_RING_MODE_RING; in bcdma_alloc_bchan_resources() 1637 ring_cfg.asel = ud->asel; in bcdma_alloc_bchan_resources() 1638 ring_cfg.dma_dev = dmaengine_get_dma_device(&uc->vc.chan); in bcdma_alloc_bchan_resources() 1640 ret = k3_ringacc_ring_cfg(uc->bchan->t_ring, &ring_cfg); in bcdma_alloc_bchan_resources() 1673 struct k3_ring_cfg ring_cfg; in udma_alloc_tx_resources() local 1696 memset(&ring_cfg, 0, sizeof(ring_cfg)); in udma_alloc_tx_resources() [all …]
|
/Linux-v6.1/drivers/net/wireless/ath/wil6210/ |
D | wmi.c | 3724 .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 …]
|
D | wmi.h | 1010 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-v6.1/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet.c | 2798 u32 dma_ctrl, ring_cfg; in bcmgenet_init_tx_queues() local 2807 ring_cfg = 0; in bcmgenet_init_tx_queues() 2817 ring_cfg |= (1 << i); in bcmgenet_init_tx_queues() 2828 ring_cfg |= (1 << DESC_INDEX); in bcmgenet_init_tx_queues() 2840 bcmgenet_tdma_writel(priv, ring_cfg, DMA_RING_CFG); in bcmgenet_init_tx_queues() 2907 u32 ring_cfg; in bcmgenet_init_rx_queues() local 2916 ring_cfg = 0; in bcmgenet_init_rx_queues() 2928 ring_cfg |= (1 << i); in bcmgenet_init_rx_queues() 2940 ring_cfg |= (1 << DESC_INDEX); in bcmgenet_init_rx_queues() 2944 bcmgenet_rdma_writel(priv, ring_cfg, DMA_RING_CFG); in bcmgenet_init_rx_queues()
|
/Linux-v6.1/drivers/net/ethernet/ti/ |
D | am65-cpsw-nuss.c | 1550 struct k3_ring_cfg ring_cfg = { in am65_cpsw_nuss_init_tx_chns() local 1562 tx_cfg.tx_cfg = ring_cfg; in am65_cpsw_nuss_init_tx_chns() 1563 tx_cfg.txcq_cfg = ring_cfg; in am65_cpsw_nuss_init_tx_chns()
|