Lines Matching refs:adap_ewrap
84 static volatile ewrap_regs *adap_ewrap = (ewrap_regs *)EMAC_WRAPPER_BASE_ADDR; variable
429 writel(1, &adap_ewrap->softrst); in davinci_eth_open()
430 while (readl(&adap_ewrap->softrst) != 0) in davinci_eth_open()
433 writel(0, &adap_ewrap->EWCTL); in davinci_eth_open()
435 clkdiv = readl(&adap_ewrap->EWCTL); in davinci_eth_open()
441 adap_ewrap->c0rxen = adap_ewrap->c1rxen = adap_ewrap->c2rxen = 0; in davinci_eth_open()
442 adap_ewrap->c0txen = adap_ewrap->c1txen = adap_ewrap->c2txen = 0; in davinci_eth_open()
443 adap_ewrap->c0miscen = adap_ewrap->c1miscen = adap_ewrap->c2miscen = 0; in davinci_eth_open()
602 writel(1, &adap_ewrap->softrst); in davinci_eth_close()
604 writel(0, &adap_ewrap->EWCTL); in davinci_eth_close()
609 adap_ewrap->c0rxen = adap_ewrap->c1rxen = adap_ewrap->c2rxen = 0; in davinci_eth_close()
610 adap_ewrap->c0txen = adap_ewrap->c1txen = adap_ewrap->c2txen = 0; in davinci_eth_close()
611 adap_ewrap->c0miscen = adap_ewrap->c1miscen = adap_ewrap->c2miscen = 0; in davinci_eth_close()