Home
last modified time | relevance | path

Searched refs:pbuf (Results 1 - 8 of 8) sorted by relevance

/drivers/hdf_core/adapter/khdf/liteos/network/include/
H A Dnetbuf_adapter.h50 #include "lwip/pbuf.h"
131 * @brief Converts the <b>pbuf</b> structure of Lightweight TCP/IP Stack (lwIP) to a network data buffer.
144 NetBuf *Pbuf2NetBuf(const struct NetDevice *netdev, struct pbuf *lwipBuf);
147 * @brief Converts a network data buffer to the <b>pbuf</b> structure of Lightweight TCP/IP Stack (lwIP).
151 * @return Returns the pointer to the <b>pbuf</b> structure if the operation is successful;
156 struct pbuf *NetBuf2Pbuf(const NetBuf *nb);
/drivers/hdf_core/adapter/khdf/liteos_m/network/include/
H A Dnetbuf_adapter.h50 #include "lwip/pbuf.h"
131 * @brief Converts the <b>pbuf</b> structure of Lightweight TCP/IP Stack (lwIP) to a network data buffer.
144 NetBuf *Pbuf2NetBuf(const struct NetDevice *netdev, struct pbuf *lwipBuf);
147 * @brief Converts a network data buffer to the <b>pbuf</b> structure of Lightweight TCP/IP Stack (lwIP).
151 * @return Returns the pointer to the <b>pbuf</b> structure if the operation is successful;
156 struct pbuf *NetBuf2Pbuf(const NetBuf *nb);
/drivers/hdf_core/adapter/khdf/liteos_m/network/src/
H A Dnet_device_adapter.c34 #include <lwip/pbuf.h>
88 static struct NetBuf *ConverPbuffToNetBuf(const NetDevice *netDev, struct pbuf *lwipBuf) in ConverPbuffToNetBuf()
97 static struct pbuf *ConverNetBufToPBuf(const struct NetBuf *netBuff) in ConverNetBufToPBuf()
106 static int32_t LwipSendCheck(struct netif *netif, const struct pbuf *lwipBuf) in LwipSendCheck()
120 static void LwipSend(struct netif *netif, struct pbuf *lwipBuf) in LwipSend()
416 struct pbuf *pBuff = ConverNetBufToPBuf(buff); in LiteNetDevDataReceive()
H A Dnetbuf_adapter.c622 * Convert net buffer to LWIP pbuf.
625 * @return : pbuf for lwip
627 struct pbuf *NetBuf2Pbuf(const NetBuf *nb) in NetBuf2Pbuf()
629 struct pbuf *p = NULL; in NetBuf2Pbuf()
633 HDF_LOGE("%s netbuf len exceeds the maximum length of the pbuf!", __func__); in NetBuf2Pbuf()
651 * Convert LWIP pbuf to net buffer.
657 NetBuf *Pbuf2NetBuf(const NetDevice *netdev, struct pbuf *lwipBuf) in Pbuf2NetBuf()
660 struct pbuf *tmp = NULL; in Pbuf2NetBuf()
/drivers/liteos/hievent/src/
H A Dhiview_hievent.c78 static int HiviewHieventConvertString(struct HiviewHievent *event, char **pbuf);
384 static int HiviewHieventFillPayload(struct HiviewHievent *event, char **pbuf, in HiviewHieventFillPayload() argument
430 static int HiviewHieventConvertString(struct HiviewHievent *event, char **pbuf) in HiviewHieventConvertString() argument
439 *pbuf = NULL; in HiviewHieventConvertString()
467 len = HiviewHieventFillPayload(event, pbuf, tmp, len); in HiviewHieventConvertString()
468 *pbuf = buf; in HiviewHieventConvertString()
/drivers/hdf_core/adapter/khdf/liteos/network/src/
H A Dnet_device_adapter.c35 #include <lwip/pbuf.h>
111 static struct NetBuf *ConverPbuffToNetBuf(const NetDevice *netDev, struct pbuf *lwipBuf) in ConverPbuffToNetBuf()
120 static struct pbuf *ConverNetBufToPBuf(const struct NetBuf *netBuff) in ConverNetBufToPBuf()
129 static int32_t LwipSendCheck(struct netif *netif, const struct pbuf *lwipBuf) in LwipSendCheck()
143 static void LwipSend(struct netif *netif, struct pbuf *lwipBuf) in LwipSend()
455 struct pbuf *pBuff = ConverNetBufToPBuf(buff); in LiteNetDevDataReceive()
H A Dnetbuf_adapter.c620 * Convert net buffer to LWIP pbuf.
623 * @return : pbuf for lwip
625 struct pbuf *NetBuf2Pbuf(const NetBuf *nb) in NetBuf2Pbuf()
627 struct pbuf *p = NULL; in NetBuf2Pbuf()
631 HDF_LOGE("%s netbuf len exceeds the maximum length of the pbuf!", __func__); in NetBuf2Pbuf()
651 * Convert LWIP pbuf to net buffer.
657 NetBuf *Pbuf2NetBuf(const NetDevice *netdev, struct pbuf *lwipBuf) in Pbuf2NetBuf()
660 struct pbuf *tmp = NULL; in Pbuf2NetBuf()
/drivers/hdf_core/framework/test/unittest/model/network/wifi/unittest/net/
H A Dhdf_netbuf_test.c407 struct pbuf *lwipBuf = NULL;
436 struct pbuf *lwipBuf = NULL;

Completed in 6 milliseconds