Lines Matching refs:frame
745 netc_frame_struct_t *frame, in EP_SendFrameCommon() argument
750 assert((frame != NULL) && (frame->buffArray != NULL)); in EP_SendFrameCommon()
753 netc_buffer_struct_t *txBuff = frame->buffArray; in EP_SendFrameCommon()
754 uint32_t totBdNum = frame->length; in EP_SendFrameCommon()
761 if ((frame->buffArray[0].length < NETC_ENETC_TXFRAME_LEN_MIN) || (frame->length == 0U)) in EP_SendFrameCommon()
775 totBdNum = (uint32_t)frame->length + 1U; in EP_SendFrameCommon()
779 totBdNum = frame->length; in EP_SendFrameCommon()
794 txBuff = frame->buffArray; in EP_SendFrameCommon()
882 status_t EP_SendFrame(ep_handle_t *handle, uint8_t ring, netc_frame_struct_t *frame, void *context,… in EP_SendFrame() argument
929 return EP_SendFrameCommon(handle, &handle->txBdRing[ring], hwRing, frame, context, &txDesc[0], in EP_SendFrame()
1318 netc_frame_struct_t *frame, in EP_ReceiveFrameCommon() argument
1351 newBuff = frame->buffArray[index].buffer; in EP_ReceiveFrameCommon()
1352 frame->buffArray[index].buffer = (void *)(uint8_t *)(uintptr_t)rxDmaBuff; in EP_ReceiveFrameCommon()
1353 frame->buffArray[index].length = rxDesc->writeback.bufLen; in EP_ReceiveFrameCommon()
1393 frame->length = index; in EP_ReceiveFrameCommon()
1402 status_t EP_ReceiveFrame(ep_handle_t *handle, uint8_t ring, netc_frame_struct_t *frame, netc_frame_… in EP_ReceiveFrame() argument
1404 assert((handle != NULL) && (frame != NULL) && (handle->cfg.rxZeroCopy)); in EP_ReceiveFrame()
1425 frame->length = 0; in EP_ReceiveFrame()
1469 if (buffNum > frame->length) in EP_ReceiveFrame()
1483 … handle->cfg.rxBuffFree(handle, ring, frame->buffArray[index].buffer, handle->cfg.userData); in EP_ReceiveFrame()
1491 frame->buffArray[index].buffer = newBuff; in EP_ReceiveFrame()
1499 frame->length = 0; in EP_ReceiveFrame()
1504 return EP_ReceiveFrameCommon(handle, rxBdRing, ring, frame, attr, handle->cfg.rxCacheMaintain); in EP_ReceiveFrame()