Lines Matching refs:addr
130 void NetDmaCacheInv(void *addr, uint32_t size)
132 uint32_t start = (uintptr_t)addr & ~(CACHE_ALIGNED_SIZE - 1);
133 uint32_t end = (uintptr_t)addr + size;
139 void NetDmaCacheClean(void *addr, uint32_t size)
141 uint32_t start = (uintptr_t)addr & ~(CACHE_ALIGNED_SIZE - 1);
142 uint32_t end = (uintptr_t)addr + size;
196 static uint32_t ScanPhyId(struct HiethNetdevLocal *ld, int32_t addr)
200 val = (uint32_t)HiethMdioRead(ld, addr, PHY_ID1);
202 val = (uint32_t)HiethMdioRead(ld, addr, PHY_ID2);
414 uint8_t HiethSetHwaddr(struct EthDevice *ethDevice, uint8_t *addr, uint8_t len)
418 if (IsMulticastEtherAddr(addr)) {
428 HiethHwSetMacAddress(&(g_stHiethPlatformData[priv->index].stNetdevLocal), 1, addr);
453 int32_t addr;
477 HDF_LOGE("hisi_eth: User set phy addr=%d", priv->phy->phyAddr);
486 HDF_LOGE("hisi_eth: User did not set phy addr, auto scan...");
488 for (addr = MAX_PHY_ADDR; addr >= 0; addr--) {
489 id = ScanPhyId(ld, addr);
496 if (addr < 0) {
502 priv->phy->phyAddr = addr;
510 HDF_LOGE("Detected phy addr %d, phyid: 0x%x.", priv->phy->phyAddr, ld->phyId);