• Home
  • Raw
  • Download

Lines Matching refs:tempval

1125 	u32 tempval;  in gfar_mac_reset()  local
1151 tempval = MACCFG2_INIT_SETTINGS; in gfar_mac_reset()
1159 tempval |= MACCFG2_HUGEFRAME | MACCFG2_LENGTHCHECK; in gfar_mac_reset()
1161 gfar_write(&regs->maccfg2, tempval); in gfar_mac_reset()
1476 u32 tempval; in gfar_suspend() local
1492 tempval = gfar_read(&regs->maccfg1); in gfar_suspend()
1494 tempval &= ~MACCFG1_TX_EN; in gfar_suspend()
1497 tempval &= ~MACCFG1_RX_EN; in gfar_suspend()
1499 gfar_write(&regs->maccfg1, tempval); in gfar_suspend()
1511 tempval = gfar_read(&regs->maccfg2); in gfar_suspend()
1512 tempval |= MACCFG2_MPEN; in gfar_suspend()
1513 gfar_write(&regs->maccfg2, tempval); in gfar_suspend()
1528 u32 tempval; in gfar_resume() local
1547 tempval = gfar_read(&regs->maccfg2); in gfar_resume()
1548 tempval &= ~MACCFG2_MPEN; in gfar_resume()
1549 gfar_write(&regs->maccfg2, tempval); in gfar_resume()
1764 u32 tempval; in gfar_halt_nodisable() local
1774 tempval = gfar_read(&regs->dmactrl); in gfar_halt_nodisable()
1775 tempval |= (DMACTRL_GRS | DMACTRL_GTS); in gfar_halt_nodisable()
1776 gfar_write(&regs->dmactrl, tempval); in gfar_halt_nodisable()
1797 u32 tempval; in gfar_halt() local
1808 tempval = gfar_read(&regs->maccfg1); in gfar_halt()
1809 tempval &= ~(MACCFG1_RX_EN | MACCFG1_TX_EN); in gfar_halt()
1810 gfar_write(&regs->maccfg1, tempval); in gfar_halt()
1922 u32 tempval; in gfar_start() local
1930 tempval = gfar_read(&regs->dmactrl); in gfar_start()
1931 tempval |= DMACTRL_INIT_SETTINGS; in gfar_start()
1932 gfar_write(&regs->dmactrl, tempval); in gfar_start()
1935 tempval = gfar_read(&regs->dmactrl); in gfar_start()
1936 tempval &= ~(DMACTRL_GRS | DMACTRL_GTS); in gfar_start()
1937 gfar_write(&regs->dmactrl, tempval); in gfar_start()
1947 tempval = gfar_read(&regs->maccfg1); in gfar_start()
1948 tempval |= (MACCFG1_RX_EN | MACCFG1_TX_EN); in gfar_start()
1949 gfar_write(&regs->maccfg1, tempval); in gfar_start()
3118 u32 tempval; in gfar_set_multi() local
3122 tempval = gfar_read(&regs->rctrl); in gfar_set_multi()
3123 tempval |= RCTRL_PROM; in gfar_set_multi()
3124 gfar_write(&regs->rctrl, tempval); in gfar_set_multi()
3127 tempval = gfar_read(&regs->rctrl); in gfar_set_multi()
3128 tempval &= ~(RCTRL_PROM); in gfar_set_multi()
3129 gfar_write(&regs->rctrl, tempval); in gfar_set_multi()
3228 u32 tempval; in gfar_set_hash_for_addr() local
3236 tempval = gfar_read(priv->hash_regs[whichreg]); in gfar_set_hash_for_addr()
3237 tempval |= value; in gfar_set_hash_for_addr()
3238 gfar_write(priv->hash_regs[whichreg], tempval); in gfar_set_hash_for_addr()
3250 u32 tempval; in gfar_set_mac_for_addr() local
3259 tempval = (addr[5] << 24) | (addr[4] << 16) | in gfar_set_mac_for_addr()
3262 gfar_write(macptr, tempval); in gfar_set_mac_for_addr()
3264 tempval = (addr[1] << 24) | (addr[0] << 16); in gfar_set_mac_for_addr()
3266 gfar_write(macptr+1, tempval); in gfar_set_mac_for_addr()
3395 u32 tempval = gfar_read(&regs->maccfg2); in gfar_update_link_state() local
3400 tempval &= ~(MACCFG2_FULL_DUPLEX); in gfar_update_link_state()
3402 tempval |= MACCFG2_FULL_DUPLEX; in gfar_update_link_state()
3410 tempval = in gfar_update_link_state()
3411 ((tempval & ~(MACCFG2_IF)) | MACCFG2_GMII); in gfar_update_link_state()
3417 tempval = in gfar_update_link_state()
3418 ((tempval & ~(MACCFG2_IF)) | MACCFG2_MII); in gfar_update_link_state()
3442 gfar_write(&regs->maccfg2, tempval); in gfar_update_link_state()