• Home
  • Raw
  • Download

Lines Matching refs:tempval

1144 	u32 tempval;  in gfar_mac_reset()  local
1169 tempval = MACCFG2_INIT_SETTINGS; in gfar_mac_reset()
1176 tempval |= MACCFG2_HUGEFRAME | MACCFG2_LENGTHCHECK; in gfar_mac_reset()
1178 gfar_write(&regs->maccfg2, tempval); in gfar_mac_reset()
1581 u32 tempval; in gfar_start_wol_filer() local
1588 tempval = gfar_read(&regs->dmactrl); in gfar_start_wol_filer()
1589 tempval |= DMACTRL_INIT_SETTINGS; in gfar_start_wol_filer()
1590 gfar_write(&regs->dmactrl, tempval); in gfar_start_wol_filer()
1593 tempval = gfar_read(&regs->dmactrl); in gfar_start_wol_filer()
1594 tempval &= ~DMACTRL_GRS; in gfar_start_wol_filer()
1595 gfar_write(&regs->dmactrl, tempval); in gfar_start_wol_filer()
1606 tempval = gfar_read(&regs->maccfg1); in gfar_start_wol_filer()
1607 tempval |= MACCFG1_RX_EN; in gfar_start_wol_filer()
1608 gfar_write(&regs->maccfg1, tempval); in gfar_start_wol_filer()
1616 u32 tempval; in gfar_suspend() local
1634 tempval = gfar_read(&regs->maccfg2); in gfar_suspend()
1635 tempval |= MACCFG2_MPEN; in gfar_suspend()
1636 gfar_write(&regs->maccfg2, tempval); in gfar_suspend()
1639 tempval = gfar_read(&regs->maccfg1); in gfar_suspend()
1640 tempval |= MACCFG1_RX_EN; in gfar_suspend()
1641 gfar_write(&regs->maccfg1, tempval); in gfar_suspend()
1659 u32 tempval; in gfar_resume() local
1667 tempval = gfar_read(&regs->maccfg2); in gfar_resume()
1668 tempval &= ~MACCFG2_MPEN; in gfar_resume()
1669 gfar_write(&regs->maccfg2, tempval); in gfar_resume()
1899 u32 tempval; in gfar_halt_nodisable() local
1909 tempval = gfar_read(&regs->dmactrl); in gfar_halt_nodisable()
1910 tempval |= (DMACTRL_GRS | DMACTRL_GTS); in gfar_halt_nodisable()
1911 gfar_write(&regs->dmactrl, tempval); in gfar_halt_nodisable()
1932 u32 tempval; in gfar_halt() local
1943 tempval = gfar_read(&regs->maccfg1); in gfar_halt()
1944 tempval &= ~(MACCFG1_RX_EN | MACCFG1_TX_EN); in gfar_halt()
1945 gfar_write(&regs->maccfg1, tempval); in gfar_halt()
2064 u32 tempval; in gfar_start() local
2072 tempval = gfar_read(&regs->dmactrl); in gfar_start()
2073 tempval |= DMACTRL_INIT_SETTINGS; in gfar_start()
2074 gfar_write(&regs->dmactrl, tempval); in gfar_start()
2077 tempval = gfar_read(&regs->dmactrl); in gfar_start()
2078 tempval &= ~(DMACTRL_GRS | DMACTRL_GTS); in gfar_start()
2079 gfar_write(&regs->dmactrl, tempval); in gfar_start()
2089 tempval = gfar_read(&regs->maccfg1); in gfar_start()
2090 tempval |= (MACCFG1_RX_EN | MACCFG1_TX_EN); in gfar_start()
2091 gfar_write(&regs->maccfg1, tempval); in gfar_start()
3424 u32 tempval; in gfar_set_multi() local
3428 tempval = gfar_read(&regs->rctrl); in gfar_set_multi()
3429 tempval |= RCTRL_PROM; in gfar_set_multi()
3430 gfar_write(&regs->rctrl, tempval); in gfar_set_multi()
3433 tempval = gfar_read(&regs->rctrl); in gfar_set_multi()
3434 tempval &= ~(RCTRL_PROM); in gfar_set_multi()
3435 gfar_write(&regs->rctrl, tempval); in gfar_set_multi()
3534 u32 tempval; in gfar_set_hash_for_addr() local
3542 tempval = gfar_read(priv->hash_regs[whichreg]); in gfar_set_hash_for_addr()
3543 tempval |= value; in gfar_set_hash_for_addr()
3544 gfar_write(priv->hash_regs[whichreg], tempval); in gfar_set_hash_for_addr()
3556 u32 tempval; in gfar_set_mac_for_addr() local
3565 tempval = (addr[5] << 24) | (addr[4] << 16) | in gfar_set_mac_for_addr()
3568 gfar_write(macptr, tempval); in gfar_set_mac_for_addr()
3570 tempval = (addr[1] << 24) | (addr[0] << 16); in gfar_set_mac_for_addr()
3572 gfar_write(macptr+1, tempval); in gfar_set_mac_for_addr()
3698 u32 tempval = gfar_read(&regs->maccfg2); in gfar_update_link_state() local
3704 tempval &= ~(MACCFG2_FULL_DUPLEX); in gfar_update_link_state()
3706 tempval |= MACCFG2_FULL_DUPLEX; in gfar_update_link_state()
3714 tempval = in gfar_update_link_state()
3715 ((tempval & ~(MACCFG2_IF)) | MACCFG2_GMII); in gfar_update_link_state()
3721 tempval = in gfar_update_link_state()
3722 ((tempval & ~(MACCFG2_IF)) | MACCFG2_MII); in gfar_update_link_state()
3762 gfar_write(&regs->maccfg2, tempval); in gfar_update_link_state()