Home
last modified time | relevance | path

Searched refs:netDeviceImpl (Results 1 – 3 of 3) sorted by relevance

/drivers/hdf_core/adapter/khdf/liteos_m/network/src/
Dnet_device_adapter.c57 static int32_t LiteNetDevInit(struct NetDeviceImpl *netDeviceImpl) in LiteNetDevInit() argument
60 if (netDeviceImpl == NULL) { in LiteNetDevInit()
70 netDeviceImpl->osPrivate = (void *)liteNdPri; in LiteNetDevInit()
75 static int32_t LiteNetDevDeInit(struct NetDeviceImpl *netDeviceImpl) in LiteNetDevDeInit() argument
77 if (netDeviceImpl == NULL) { in LiteNetDevDeInit()
81 if (netDeviceImpl->osPrivate != NULL) { in LiteNetDevDeInit()
82 OsalMemFree(netDeviceImpl->osPrivate); in LiteNetDevDeInit()
83 netDeviceImpl->osPrivate = NULL; in LiteNetDevDeInit()
177 static struct netif *CreateLwipNetIf(const struct NetDeviceImpl *netDeviceImpl, const struct NetDev… in CreateLwipNetIf() argument
192 lwipNf->state = (void *)netDeviceImpl; in CreateLwipNetIf()
[all …]
/drivers/hdf_core/adapter/khdf/liteos/network/src/
Dnet_device_adapter.c82 static int32_t LiteNetDevInit(struct NetDeviceImpl *netDeviceImpl) in LiteNetDevInit() argument
85 if (netDeviceImpl == NULL) { in LiteNetDevInit()
94 netDeviceImpl->osPrivate = (void *)liteNdPri; in LiteNetDevInit()
98 static int32_t LiteNetDevDeInit(struct NetDeviceImpl *netDeviceImpl) in LiteNetDevDeInit() argument
100 if (netDeviceImpl == NULL) { in LiteNetDevDeInit()
104 if (netDeviceImpl->osPrivate != NULL) { in LiteNetDevDeInit()
105 OsalMemFree(netDeviceImpl->osPrivate); in LiteNetDevDeInit()
106 netDeviceImpl->osPrivate = NULL; in LiteNetDevDeInit()
200 static struct netif *CreateLwipNetIf(const struct NetDeviceImpl *netDeviceImpl, const struct NetDev… in CreateLwipNetIf() argument
214 lwipNf->state = (void *)netDeviceImpl; in CreateLwipNetIf()
[all …]
/drivers/hdf_core/framework/model/network/common/netdevice/
Dnet_device.c37 static bool AddNetDeviceImplToTable(uint32_t index, struct NetDeviceImpl *netDeviceImpl) in AddNetDeviceImplToTable() argument
43 g_netDeviceImplTable[index] = netDeviceImpl; in AddNetDeviceImplToTable()
47 static void DeleteNetDeviceImplFromTable(const struct NetDeviceImpl *netDeviceImpl) in DeleteNetDeviceImplFromTable() argument
52 if (g_netDeviceImplTable[i] == netDeviceImpl) { in DeleteNetDeviceImplFromTable()
81 static void DeInitNetDeviceImpl(struct NetDeviceImpl *netDeviceImpl) in DeInitNetDeviceImpl() argument
83 if (netDeviceImpl == NULL) { in DeInitNetDeviceImpl()
89 if (netDeviceImpl->interFace != NULL && netDeviceImpl->interFace->deInit != NULL) { in DeInitNetDeviceImpl()
90 netDeviceImpl->interFace->deInit(netDeviceImpl); in DeInitNetDeviceImpl()
94 if (netDeviceImpl->netDevice != NULL) { in DeInitNetDeviceImpl()
95 UnRegisterNetDeviceImpl(netDeviceImpl); in DeInitNetDeviceImpl()
[all …]