Home
last modified time | relevance | path

Searched refs:ring (Results 1 – 25 of 62) sorted by relevance

123

/hal_nxp-latest/mcux/mcux-sdk/drivers/netc/netc_hw/
Dfsl_netc_hw_si.c9 status_t NETC_SIConfigTxBDR(ENETC_SI_Type *base, uint8_t ring, const netc_tx_bdr_config_t *bdrConfi… in NETC_SIConfigTxBDR() argument
14 base->SIMSITRVR[ring] = bdrConfig->msixEntryIdx; in NETC_SIConfigTxBDR()
23 base->BDR[ring].TBBAR0 = NETC_ADDR_LOW_32BIT(address); in NETC_SIConfigTxBDR()
24 base->BDR[ring].TBBAR1 = NETC_ADDR_HIGH_32BIT(address); in NETC_SIConfigTxBDR()
25 base->BDR[ring].TBPIR = 0; in NETC_SIConfigTxBDR()
26 base->BDR[ring].TBCIR = 0; in NETC_SIConfigTxBDR()
27 base->BDR[ring].TBLENR = ENETC_SI_TBLENR_LENGTH((uint32_t)bdrConfig->len / 8U); in NETC_SIConfigTxBDR()
28 …base->BDR[ring].TBIER = ENETC_SI_TBIER_TXFIE(bdrConfig->enIntr) | ENETC_SI_TBIER_TXTIE(bdrConfig-… in NETC_SIConfigTxBDR()
29 base->BDR[ring].TBMR = ENETC_SI_TBMR_EN_MASK | ENETC_SI_TBMR_WRR(bdrConfig->wrrWeight) | in NETC_SIConfigTxBDR()
35 status_t NETC_SIConfigRxBDR(ENETC_SI_Type *base, uint8_t ring, const netc_rx_bdr_config_t *bdrConfi… in NETC_SIConfigRxBDR() argument
[all …]
Dfsl_netc_hw_si.h102 static inline void NETC_SIRxRingEnable(ENETC_SI_Type *base, uint8_t ring, bool enable) in NETC_SIRxRingEnable() argument
106 base->BDR[ring].RBMR |= ENETC_SI_RBMR_EN_MASK; in NETC_SIRxRingEnable()
110 base->BDR[ring].RBMR &= ~ENETC_SI_RBMR_EN_MASK; in NETC_SIRxRingEnable()
140 static inline void NETC_SISetTxProducer(ENETC_SI_Type *base, uint8_t ring, uint16_t producer) in NETC_SISetTxProducer() argument
142 base->BDR[ring].TBPIR = producer; in NETC_SISetTxProducer()
152 static inline uint16_t NETC_SIGetTxConsumer(ENETC_SI_Type *base, uint8_t ring) in NETC_SIGetTxConsumer() argument
154 return (uint16_t)base->BDR[ring].TBCIR; in NETC_SIGetTxConsumer()
164 static inline void NETC_SISetRxConsumer(ENETC_SI_Type *base, uint8_t ring, uint16_t consumer) in NETC_SISetRxConsumer() argument
166 base->BDR[ring].RBCIR = consumer; in NETC_SISetRxConsumer()
176 static inline uint16_t NETC_SIGetRxProducer(ENETC_SI_Type *base, uint8_t ring) in NETC_SIGetRxProducer() argument
[all …]
/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-multicore/rpmsg_lite/lib/virtio/
Dvirtqueue.c61 struct vring_alloc_info *ring, in virtqueue_create_static() argument
72 VQ_PARAM_CHK(ring == VQ_NULL, status, ERROR_VQUEUE_INVLD_PARAM); in virtqueue_create_static()
73 VQ_PARAM_CHK(ring->num_descs == 0U, status, ERROR_VQUEUE_INVLD_PARAM); in virtqueue_create_static()
74 VQ_PARAM_CHK(ring->num_descs & (ring->num_descs - 1U), status, ERROR_VRING_ALIGN); in virtqueue_create_static()
85 vq->vq_alignment = (int32_t)(ring->align); in virtqueue_create_static()
86 vq->vq_nentries = ring->num_descs; in virtqueue_create_static()
91 vq->vq_ring_size = vring_size(ring->num_descs, ring->align); in virtqueue_create_static()
92 vq->vq_ring_mem = (void *)ring->phy_addr; in virtqueue_create_static()
118 struct vring_alloc_info *ring, in virtqueue_create() argument
127 VQ_PARAM_CHK(ring == VQ_NULL, status, ERROR_VQUEUE_INVLD_PARAM); in virtqueue_create()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/netc/
Dfsl_netc_endpoint.c77 uint8_t ring; in EP_RxBufferFreeAll() local
81 for (ring = 0U; ring < handle->cfg.rxRingUse; ring++) in EP_RxBufferFreeAll()
83 rxBdRing = &handle->rxBdRing[ring]; in EP_RxBufferFreeAll()
91 … handle->cfg.rxBuffFree(handle, ring, (void *)(uint8_t *)(uintptr_t)rxBdRing->buffArray[index], in EP_RxBufferFreeAll()
114 uint8_t ring; in EP_RxBufferAllocAll() local
116 for (ring = 0U; ring < config->siConfig.rxRingUse; ring++) in EP_RxBufferAllocAll()
118 rxRingConfig = &bdrConfig->rxBdrConfig[ring]; in EP_RxBufferAllocAll()
122 handle->rxBdRing[ring].buffArray = rxRingConfig->buffAddrArray; in EP_RxBufferAllocAll()
141 buffAddr = handle->rxBdRing[ring].buffArray[buffIdx]; in EP_RxBufferAllocAll()
147 handle, ring, handle->rxBdRing[ring].buffSize, handle->cfg.userData); in EP_RxBufferAllocAll()
[all …]
Dfsl_netc_endpoint.h238 typedef status_t (*ep_reclaim_cb_t)(ep_handle_t *handle, uint8_t ring, netc_tx_frame_info_t *frameI…
241 typedef void *(*ep_rx_alloc_cb_t)(ep_handle_t *handle, uint8_t ring, uint32_t length, void *userDat…
244 typedef void (*ep_rx_free_cb_t)(ep_handle_t *handle, uint8_t ring, void *address, void *userData);
1101 static inline status_t EP_RxMapIpvToRing(ep_handle_t *handle, uint8_t ipv, uint8_t ring) in EP_RxMapIpvToRing() argument
1103 if ((ipv > 7U) || (ring >= handle->cfg.ringPerBdrGroup)) in EP_RxMapIpvToRing()
1109 NETC_SIMapIpvToRing(handle->hw.si, ipv, ring); in EP_RxMapIpvToRing()
1370 status_t EP_SendFrame(ep_handle_t *handle, uint8_t ring, netc_frame_struct_t *frame, void *context,…
1380 static inline void EP_WaitUnitilTxComplete(ep_handle_t *handle, uint8_t ring) in EP_WaitUnitilTxComplete() argument
1382 uint8_t hwRing = ring; in EP_WaitUnitilTxComplete()
1389 while (handle->hw.si->BDR[hwRing].TBCIR != handle->txBdRing[ring].producerIndex) in EP_WaitUnitilTxComplete()
[all …]
Dfsl_netc_switch.h247 uint8_t ring; /*!< Tx ring index, use for Switch Port masquerading Tx option */ member
428 status_t SWT_CmdBDRInit(swt_handle_t *handle, netc_hw_swt_cbdr_idx_t ring, const netc_cmd_bdr_confi…
437 status_t SWT_CmdBDRDeinit(swt_handle_t *handle, netc_hw_swt_cbdr_idx_t ring);
1998 static inline void SWT_WaitUnitilTxComplete(swt_handle_t *handle, bool enMasquerade, uint8_t ring) in SWT_WaitUnitilTxComplete() argument
2002 …while (handle->epHandle->hw.si->BDR[ring + 1U].TBCIR != handle->epHandle->txBdRing[ring].producerI… in SWT_WaitUnitilTxComplete()
2027 void SWT_ReclaimTxDescriptor(swt_handle_t *handle, bool enMasquerade, uint8_t ring);
Dfsl_netc_switch.c712 hwRing = ringOrQueue.ring + 1U; in SWT_SendFrame()
716 hwRing = ringOrQueue.ring; in SWT_SendFrame()
719 txBdRing = &handle->epHandle->txBdRing[ringOrQueue.ring]; in SWT_SendFrame()
766 void SWT_ReclaimTxDescriptor(swt_handle_t *handle, bool enMasquerade, uint8_t ring) in SWT_ReclaimTxDescriptor() argument
775 … frameInfo = EP_ReclaimTxDescCommon(handle->epHandle, &handle->epHandle->txBdRing[ring], ring + 1U, in SWT_ReclaimTxDescriptor()
789 (void)handle->epHandle->cfg.reclaimCallback(handle->epHandle, ring, frameInfo, in SWT_ReclaimTxDescriptor()
1047 status_t SWT_CmdBDRInit(swt_handle_t *handle, netc_hw_swt_cbdr_idx_t ring, const netc_cmd_bdr_confi… in SWT_CmdBDRInit() argument
1050 …return NETC_CmdBDRInit((netc_cbdr_hw_t *)(uintptr_t)&handle->hw.base->NUM_CBDR[ring].CBDRMR, confi… in SWT_CmdBDRInit()
1053 status_t SWT_CmdBDRDeinit(swt_handle_t *handle, netc_hw_swt_cbdr_idx_t ring) in SWT_CmdBDRDeinit() argument
1056 return NETC_CmdBDRDeinit((netc_cbdr_hw_t *)(uintptr_t)&handle->hw.base->NUM_CBDR[ring].CBDRMR); in SWT_CmdBDRDeinit()
/hal_nxp-latest/s32/drivers/s32ze/Eth_NETC/src/
DNetc_Eth_Ip.c799 uint8 ring,
816 uint8 ring,
832 uint8 ring,
856 uint8 ring,
4494 uint8 ring, argument
4514 LastDescrCheckIndex= Netc_Eth_Ip_apxState[ctrlIndex]->lastTxDataBuffAddrIdx[ring];
4517 (uint32)Netc_Eth_Ip_apxState[ctrlIndex]->TxRingSize[ring] );
4526 if (buff == Netc_Eth_Ip_apxState[ctrlIndex]->TxDataBuffAddr[ring][LastDescrCheckIndex])
4529 … ((boolean)TRUE == Netc_Eth_Ip_apxState[ctrlIndex]->LockTxBuffDescr[ring][LastDescrCheckIndex]))
4532 …xBDRType *)((uint32)(Netc_Eth_Ip_apxState[ctrlIndex]->FirstTxRingDescAddr[ring]) + (((uint32)(Last…
[all …]
/hal_nxp-latest/s32/drivers/s32ze/Eth_NETC/include/
DNetc_Eth_Ip.h476 uint8 ring,
504 uint8 ring,
535 uint8 ring,
564 uint8 ring,
593 uint8 ring,
633 uint8 ring,
667 uint8 ring
691 uint8 ring,
1008 uint8 ring,
/hal_nxp-latest/mcux/middleware/mcux-sdk-middleware-multicore/rpmsg_lite/lib/include/
Dvirtio_ring.h70 uint16_t ring[1]; member
86 struct vring_used_elem ring[1]; member
128 #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num])
129 #define vring_avail_event(vr) ((vr)->used->ring[(vr)->num].id)
147 …vr->used = (struct vring_used *)(((uintptr_t)&vr->avail->ring[num] + align - 1UL) & ~(align - 1UL… in vring_init()
Dvirtqueue.h210 struct vring_alloc_info *ring,
218 struct vring_alloc_info *ring,
/hal_nxp-latest/mcux/mcux-sdk/components/log/
Dcomponent_log_backend_ringbuffer.cmake1 #Description: Component log backend ring buffer; user_visible: True
/hal_nxp-latest/s32/drivers/s32k3/Eth_GMAC/src/
DGmac_Ip.c1456 uint8 ring, in Gmac_Ip_GetTxMultiBuff() argument
1470 GMAC_DEV_ASSERT(ring < Gmac_apxState[Instance]->TxRingCount); in Gmac_Ip_GetTxMultiBuff()
1472 ChBase = Gmac_apxChBases[Instance][ring]; in Gmac_Ip_GetTxMultiBuff()
1473 Bd = Gmac_apxState[Instance]->TxCurrentDesc[ring]; in Gmac_Ip_GetTxMultiBuff()
1503 *buffId = (uint16)((sint32)(Gmac_apxState[Instance]->TxCurrentDesc[ring] - ListBd)); in Gmac_Ip_GetTxMultiBuff()
/hal_nxp-latest/s32/drivers/s32k3/Eth_GMAC/include/
DGmac_Ip.h274 uint8 ring,
/hal_nxp-latest/mcux/mcux-sdk/devices/LPC802/
Dall_lib_device.cmake70 # # description: Component log backend ring buffer
/hal_nxp-latest/mcux/mcux-sdk/devices/MKE02Z4/
Dall_lib_device.cmake85 # # description: Component log backend ring buffer
/hal_nxp-latest/mcux/mcux-sdk/devices/MKM34ZA5/
Dall_lib_device.cmake85 # # description: Component log backend ring buffer
/hal_nxp-latest/mcux/mcux-sdk/devices/MKE17Z9/
Dall_lib_device.cmake113 # # description: Component log backend ring buffer
/hal_nxp-latest/mcux/mcux-sdk/devices/MKE17Z7/
Dall_lib_device.cmake91 # # description: Component log backend ring buffer
/hal_nxp-latest/mcux/mcux-sdk/devices/MKM34Z7/
Dall_lib_device.cmake88 # # description: Component log backend ring buffer
/hal_nxp-latest/mcux/mcux-sdk/devices/MKE16Z4/
Dall_lib_device.cmake118 # # description: Component log backend ring buffer
/hal_nxp-latest/mcux/mcux-sdk/devices/MKM35Z7/
Dall_lib_device.cmake88 # # description: Component log backend ring buffer
/hal_nxp-latest/mcux/mcux-sdk/devices/MCXC041/
Dall_lib_device.cmake124 # # description: Component log backend ring buffer
/hal_nxp-latest/mcux/mcux-sdk/devices/MKE15Z7/
Dall_lib_device.cmake136 # # description: Component log backend ring buffer
/hal_nxp-latest/mcux/mcux-sdk/devices/LPC51U68/
Dall_lib_device.cmake166 # # description: Component log backend ring buffer

123