Lines Matching refs:tempval

327 	u32 tempval;  in gfar_set_hash_for_addr()  local
335 tempval = gfar_read(priv->hash_regs[whichreg]); in gfar_set_hash_for_addr()
336 tempval |= value; in gfar_set_hash_for_addr()
337 gfar_write(priv->hash_regs[whichreg], tempval); in gfar_set_hash_for_addr()
348 u32 tempval; in gfar_set_mac_for_addr() local
357 tempval = (addr[5] << 24) | (addr[4] << 16) | in gfar_set_mac_for_addr()
360 gfar_write(macptr, tempval); in gfar_set_mac_for_addr()
362 tempval = (addr[1] << 24) | (addr[0] << 16); in gfar_set_mac_for_addr()
364 gfar_write(macptr+1, tempval); in gfar_set_mac_for_addr()
1037 u32 tempval; in gfar_halt_nodisable() local
1047 tempval = gfar_read(&regs->dmactrl); in gfar_halt_nodisable()
1048 tempval |= (DMACTRL_GRS | DMACTRL_GTS); in gfar_halt_nodisable()
1049 gfar_write(&regs->dmactrl, tempval); in gfar_halt_nodisable()
1070 u32 tempval; in gfar_halt() local
1081 tempval = gfar_read(&regs->maccfg1); in gfar_halt()
1082 tempval &= ~(MACCFG1_RX_EN | MACCFG1_TX_EN); in gfar_halt()
1083 gfar_write(&regs->maccfg1, tempval); in gfar_halt()
1201 u32 tempval; in gfar_start() local
1209 tempval = gfar_read(&regs->dmactrl); in gfar_start()
1210 tempval |= DMACTRL_INIT_SETTINGS; in gfar_start()
1211 gfar_write(&regs->dmactrl, tempval); in gfar_start()
1214 tempval = gfar_read(&regs->dmactrl); in gfar_start()
1215 tempval &= ~(DMACTRL_GRS | DMACTRL_GTS); in gfar_start()
1216 gfar_write(&regs->dmactrl, tempval); in gfar_start()
1226 tempval = gfar_read(&regs->maccfg1); in gfar_start()
1227 tempval |= (MACCFG1_RX_EN | MACCFG1_TX_EN); in gfar_start()
1228 gfar_write(&regs->maccfg1, tempval); in gfar_start()
1521 u32 tempval = gfar_read(&regs->maccfg2); in gfar_update_link_state() local
1527 tempval &= ~(MACCFG2_FULL_DUPLEX); in gfar_update_link_state()
1529 tempval |= MACCFG2_FULL_DUPLEX; in gfar_update_link_state()
1537 tempval = in gfar_update_link_state()
1538 ((tempval & ~(MACCFG2_IF)) | MACCFG2_GMII); in gfar_update_link_state()
1544 tempval = in gfar_update_link_state()
1545 ((tempval & ~(MACCFG2_IF)) | MACCFG2_MII); in gfar_update_link_state()
1585 gfar_write(&regs->maccfg2, tempval); in gfar_update_link_state()
3067 u32 tempval; in gfar_set_multi() local
3071 tempval = gfar_read(&regs->rctrl); in gfar_set_multi()
3072 tempval |= RCTRL_PROM; in gfar_set_multi()
3073 gfar_write(&regs->rctrl, tempval); in gfar_set_multi()
3076 tempval = gfar_read(&regs->rctrl); in gfar_set_multi()
3077 tempval &= ~(RCTRL_PROM); in gfar_set_multi()
3078 gfar_write(&regs->rctrl, tempval); in gfar_set_multi()
3151 u32 tempval; in gfar_mac_reset() local
3176 tempval = MACCFG2_INIT_SETTINGS; in gfar_mac_reset()
3183 tempval |= MACCFG2_HUGEFRAME | MACCFG2_LENGTHCHECK; in gfar_mac_reset()
3185 gfar_write(&regs->maccfg2, tempval); in gfar_mac_reset()
3569 u32 tempval; in gfar_start_wol_filer() local
3576 tempval = gfar_read(&regs->dmactrl); in gfar_start_wol_filer()
3577 tempval |= DMACTRL_INIT_SETTINGS; in gfar_start_wol_filer()
3578 gfar_write(&regs->dmactrl, tempval); in gfar_start_wol_filer()
3581 tempval = gfar_read(&regs->dmactrl); in gfar_start_wol_filer()
3582 tempval &= ~DMACTRL_GRS; in gfar_start_wol_filer()
3583 gfar_write(&regs->dmactrl, tempval); in gfar_start_wol_filer()
3594 tempval = gfar_read(&regs->maccfg1); in gfar_start_wol_filer()
3595 tempval |= MACCFG1_RX_EN; in gfar_start_wol_filer()
3596 gfar_write(&regs->maccfg1, tempval); in gfar_start_wol_filer()
3604 u32 tempval; in gfar_suspend() local
3622 tempval = gfar_read(&regs->maccfg2); in gfar_suspend()
3623 tempval |= MACCFG2_MPEN; in gfar_suspend()
3624 gfar_write(&regs->maccfg2, tempval); in gfar_suspend()
3627 tempval = gfar_read(&regs->maccfg1); in gfar_suspend()
3628 tempval |= MACCFG1_RX_EN; in gfar_suspend()
3629 gfar_write(&regs->maccfg1, tempval); in gfar_suspend()
3647 u32 tempval; in gfar_resume() local
3655 tempval = gfar_read(&regs->maccfg2); in gfar_resume()
3656 tempval &= ~MACCFG2_MPEN; in gfar_resume()
3657 gfar_write(&regs->maccfg2, tempval); in gfar_resume()