Home
last modified time | relevance | path

Searched refs:ethDevice (Results 1 - 7 of 7) sorted by relevance

/device/soc/hisilicon/common/platform/hieth-sf/src/
H A Dinterface.c52 static bool IsLinkUp(struct EthDevice *ethDevice) in IsLinkUp() argument
56 if (NetIfGetLinkStatus(ethDevice->netdev, &status) != 0) { in IsLinkUp()
79 struct EthDevice *ethDevice = (struct EthDevice *)arg; in PhyStateMachine() local
80 struct EthDrvSc *drvSc = (struct EthDrvSc *)ethDevice->priv; in PhyStateMachine()
86 if (IsLinkUp(ethDevice) && !linkStatus) { in PhyStateMachine()
87 NetIfSetLinkStatus(ethDevice->netdev, NETIF_LINK_DOWN); in PhyStateMachine()
88 } else if (!IsLinkUp(ethDevice) && linkStatus) { in PhyStateMachine()
89 NetIfSetLinkStatus(ethDevice->netdev, NETIF_LINK_UP); in PhyStateMachine()
95 struct EthDevice *ethDevice = (struct EthDevice *)arg; in HiethMonitorFunc() local
96 struct EthDrvSc *drvSc = (struct EthDrvSc *)ethDevice in HiethMonitorFunc()
107 EthDrvRecv(struct EthDevice *ethDevice, NetBuf *netBuf) EthDrvRecv() argument
121 UnRegisterTimerFunction(struct EthDevice *ethDevice) UnRegisterTimerFunction() argument
162 struct EthDevice *ethDevice = (struct EthDevice *)arg; HisiEthDsr() local
176 CreateEthIrqThread(struct EthDevice *ethDevice) CreateEthIrqThread() argument
207 HiethCanSend(struct EthDevice *ethDevice) HiethCanSend() argument
246 HiethSend(struct EthDevice *ethDevice, NetBuf *netBuf) HiethSend() argument
259 HiethDeliver(struct EthDevice *ethDevice) HiethDeliver() argument
332 HiethIntVector(struct EthDevice *ethDevice) HiethIntVector() argument
337 EthDrvSend(struct EthDevice *ethDevice, NetBuf *netBuf) EthDrvSend() argument
367 HiethLinkStatusChanged(struct EthDevice *ethDevice) HiethLinkStatusChanged() argument
414 HiethSetHwaddr(struct EthDevice *ethDevice, uint8_t *addr, uint8_t len) HiethSetHwaddr() argument
446 HiethHwInit(struct EthDevice *ethDevice) HiethHwInit() argument
528 RegisterHiethData(struct EthDevice *ethDevice) RegisterHiethData() argument
584 HiethInit(struct EthDevice *ethDevice) HiethInit() argument
617 GetHiethNetDevLocal(struct EthDevice *ethDevice) GetHiethNetDevLocal() argument
634 ethnet_hieth_init(struct EthDevice *ethDevice) ethnet_hieth_init() argument
[all...]
/device/soc/hisilicon/common/platform/hieth-sf/include/internal/
H A Deth_drv.h33 typedef int32_t (*EthCanSend)(struct EthDevice *ethDevice);
34 typedef void (*EthSend)(struct EthDevice *ethDevice, NetBuf *netBuf);
35 typedef void (*EthRecv)(struct EthDevice *ethDevice, NetBuf *netBuf);
36 typedef void (*EthDeliver)(struct EthDevice *ethDevice);
37 typedef int32_t (*EthIntVector)(struct EthDevice *ethDevice);
64 void HiethLinkStatusChanged(struct EthDevice *ethDevice);
65 uint8_t HiethSetHwaddr(struct EthDevice *ethDevice, uint8_t *addr, uint8_t len);
70 void EthDrvSend(struct EthDevice *ethDevice, NetBuf *netBuf);
72 void UnRegisterTimerFunction(struct EthDevice *ethDevice);
H A Dctrl.h319 void RegisterHiethData(struct EthDevice *ethDevice);
/device/soc/hisilicon/common/platform/hieth-sf/adapter/
H A Dhieth_phy.c80 int32_t InitHiethDriver(struct EthDevice *ethDevice) in InitHiethDriver() argument
84 if (ethDevice == NULL) { in InitHiethDriver()
88 ret = EthernetInitNetdev(ethDevice->netdev); in InitHiethDriver()
115 ethDevice->priv = pstDrvInfo; in InitHiethDriver()
116 ret = HiethInit(ethDevice); in InitHiethDriver()
124 int32_t DeinitHiethDriver(struct EthDevice *ethDevice) in DeinitHiethDriver() argument
126 if (ethDevice == NULL) { in DeinitHiethDriver()
127 HDF_LOGE("%s input ethDevice is NULL!", __func__); in DeinitHiethDriver()
131 struct EthDrvSc *drvInfo = (struct EthDrvSc *)(ethDevice->priv); in DeinitHiethDriver()
140 UnRegisterTimerFunction(ethDevice); in DeinitHiethDriver()
[all...]
H A Dhieth_phy.h29 int32_t InitHiethDriver(struct EthDevice *ethDevice);
30 int32_t DeinitHiethDriver(struct EthDevice *ethDevice);
31 bool HiethHwInit(struct EthDevice *ethDevice);
33 int32_t HiethInit(struct EthDevice *ethDevice);
H A Dhieth_mac.c41 int32_t HiethPortReset(struct EthDevice *ethDevice) in HiethPortReset() argument
43 struct HiethNetdevLocal *ld = GetHiethNetDevLocal(ethDevice); in HiethPortReset()
72 int32_t HiethPortInit(struct EthDevice *ethDevice) in HiethPortInit() argument
74 struct HiethNetdevLocal *ld = GetHiethNetDevLocal(ethDevice); in HiethPortInit()
105 RegisterHiethData(ethDevice); in HiethPortInit()
/device/soc/hisilicon/common/platform/hieth-sf/include/
H A Dhieth.h105 struct HiethNetdevLocal *GetHiethNetDevLocal(struct EthDevice *ethDevice);

Completed in 4 milliseconds