Home
last modified time | relevance | path

Searched refs:netBuf (Results 1 – 4 of 4) sorted by relevance

/device/soc/hisilicon/common/platform/hieth-sf/src/
Dctrl.c327 int32_t HiethXmitGso(struct HiethNetdevLocal *ld, const HiethPriv *priv, NetBuf *netBuf) in HiethXmitGso() argument
333 if (netBuf == NULL) { in HiethXmitGso()
338 sendPktLen = NetBufGetDataLen(netBuf); in HiethXmitGso()
345 pbInfo->dmaInfo[sgLen] = (void *)NetBufGetAddress(netBuf, E_DATA_BUF); in HiethXmitGso()
348 pbInfo->buf = netBuf; in HiethXmitGso()
358 NetDmaCacheClean((void *)NetBufGetAddress(netBuf, E_DATA_BUF), sendPktLen); in HiethXmitGso()
359 txqCur->txAddr = (uintptr_t)NetBufGetAddress(netBuf, E_DATA_BUF); in HiethXmitGso()
362 NetBufFree(netBuf); in HiethXmitGso()
379 NetBuf *netBuf = NULL; in HiethFeedHw() local
393netBuf = NetBufAlloc(ALIGN(HIETH_MAX_FRAME_SIZE + ETH_PAD_SIZE + CACHE_ALIGNED_SIZE, CACHE_ALIGNED… in HiethFeedHw()
[all …]
Dinterface.c107 static void EthDrvRecv(struct EthDevice *ethDevice, NetBuf *netBuf) in EthDrvRecv() argument
116 NetDmaCacheInv(NetBufGetAddress(netBuf, E_DATA_BUF), netBuf->len); in EthDrvRecv()
117 NetBufPush(netBuf, E_DATA_BUF, netBuf->len); in EthDrvRecv()
118 NetIfRxNi(ethDevice->netdev, netBuf); in EthDrvRecv()
246 static void HiethSend(struct EthDevice *ethDevice, NetBuf *netBuf) in HiethSend() argument
254 HiethXmitGso(ld, priv, netBuf); in HiethSend()
268 NetBuf *netBuf = NULL; in HiethDeliver() local
296 netBuf = priv->ram->rxNetbuf[priv->rxRelease]; in HiethDeliver()
297 netBuf->len = rlen; in HiethDeliver()
299 EthDrvRecv(ethDevice, netBuf); in HiethDeliver()
[all …]
/device/soc/hisilicon/common/platform/hieth-sf/include/internal/
Deth_drv.h34 typedef void (*EthSend)(struct EthDevice *ethDevice, NetBuf *netBuf);
35 typedef void (*EthRecv)(struct EthDevice *ethDevice, NetBuf *netBuf);
70 void EthDrvSend(struct EthDevice *ethDevice, NetBuf *netBuf);
Dctrl.h317 int32_t HiethXmitGso(struct HiethNetdevLocal *ld, const HiethPriv *priv, NetBuf *netBuf);