Lines Matching refs:tempval
333 u32 tempval; in gfar_set_hash_for_addr() local
341 tempval = gfar_read(priv->hash_regs[whichreg]); in gfar_set_hash_for_addr()
342 tempval |= value; in gfar_set_hash_for_addr()
343 gfar_write(priv->hash_regs[whichreg], tempval); in gfar_set_hash_for_addr()
354 u32 tempval; in gfar_set_mac_for_addr() local
363 tempval = (addr[5] << 24) | (addr[4] << 16) | in gfar_set_mac_for_addr()
366 gfar_write(macptr, tempval); in gfar_set_mac_for_addr()
368 tempval = (addr[1] << 24) | (addr[0] << 16); in gfar_set_mac_for_addr()
370 gfar_write(macptr+1, tempval); in gfar_set_mac_for_addr()
1015 u32 tempval; in gfar_halt_nodisable() local
1025 tempval = gfar_read(®s->dmactrl); in gfar_halt_nodisable()
1026 tempval |= (DMACTRL_GRS | DMACTRL_GTS); in gfar_halt_nodisable()
1027 gfar_write(®s->dmactrl, tempval); in gfar_halt_nodisable()
1048 u32 tempval; in gfar_halt() local
1059 tempval = gfar_read(®s->maccfg1); in gfar_halt()
1060 tempval &= ~(MACCFG1_RX_EN | MACCFG1_TX_EN); in gfar_halt()
1061 gfar_write(®s->maccfg1, tempval); in gfar_halt()
1179 u32 tempval; in gfar_start() local
1187 tempval = gfar_read(®s->dmactrl); in gfar_start()
1188 tempval |= DMACTRL_INIT_SETTINGS; in gfar_start()
1189 gfar_write(®s->dmactrl, tempval); in gfar_start()
1192 tempval = gfar_read(®s->dmactrl); in gfar_start()
1193 tempval &= ~(DMACTRL_GRS | DMACTRL_GTS); in gfar_start()
1194 gfar_write(®s->dmactrl, tempval); in gfar_start()
1204 tempval = gfar_read(®s->maccfg1); in gfar_start()
1205 tempval |= (MACCFG1_RX_EN | MACCFG1_TX_EN); in gfar_start()
1206 gfar_write(®s->maccfg1, tempval); in gfar_start()
1499 u32 tempval = gfar_read(®s->maccfg2); in gfar_update_link_state() local
1505 tempval &= ~(MACCFG2_FULL_DUPLEX); in gfar_update_link_state()
1507 tempval |= MACCFG2_FULL_DUPLEX; in gfar_update_link_state()
1515 tempval = in gfar_update_link_state()
1516 ((tempval & ~(MACCFG2_IF)) | MACCFG2_GMII); in gfar_update_link_state()
1522 tempval = in gfar_update_link_state()
1523 ((tempval & ~(MACCFG2_IF)) | MACCFG2_MII); in gfar_update_link_state()
1563 gfar_write(®s->maccfg2, tempval); in gfar_update_link_state()
2965 u32 tempval; in gfar_set_multi() local
2969 tempval = gfar_read(®s->rctrl); in gfar_set_multi()
2970 tempval |= RCTRL_PROM; in gfar_set_multi()
2971 gfar_write(®s->rctrl, tempval); in gfar_set_multi()
2974 tempval = gfar_read(®s->rctrl); in gfar_set_multi()
2975 tempval &= ~(RCTRL_PROM); in gfar_set_multi()
2976 gfar_write(®s->rctrl, tempval); in gfar_set_multi()
3049 u32 tempval; in gfar_mac_reset() local
3074 tempval = MACCFG2_INIT_SETTINGS; in gfar_mac_reset()
3081 tempval |= MACCFG2_HUGEFRAME | MACCFG2_LENGTHCHECK; in gfar_mac_reset()
3083 gfar_write(®s->maccfg2, tempval); in gfar_mac_reset()
3469 u32 tempval; in gfar_start_wol_filer() local
3476 tempval = gfar_read(®s->dmactrl); in gfar_start_wol_filer()
3477 tempval |= DMACTRL_INIT_SETTINGS; in gfar_start_wol_filer()
3478 gfar_write(®s->dmactrl, tempval); in gfar_start_wol_filer()
3481 tempval = gfar_read(®s->dmactrl); in gfar_start_wol_filer()
3482 tempval &= ~DMACTRL_GRS; in gfar_start_wol_filer()
3483 gfar_write(®s->dmactrl, tempval); in gfar_start_wol_filer()
3494 tempval = gfar_read(®s->maccfg1); in gfar_start_wol_filer()
3495 tempval |= MACCFG1_RX_EN; in gfar_start_wol_filer()
3496 gfar_write(®s->maccfg1, tempval); in gfar_start_wol_filer()
3504 u32 tempval; in gfar_suspend() local
3522 tempval = gfar_read(®s->maccfg2); in gfar_suspend()
3523 tempval |= MACCFG2_MPEN; in gfar_suspend()
3524 gfar_write(®s->maccfg2, tempval); in gfar_suspend()
3527 tempval = gfar_read(®s->maccfg1); in gfar_suspend()
3528 tempval |= MACCFG1_RX_EN; in gfar_suspend()
3529 gfar_write(®s->maccfg1, tempval); in gfar_suspend()
3547 u32 tempval; in gfar_resume() local
3555 tempval = gfar_read(®s->maccfg2); in gfar_resume()
3556 tempval &= ~MACCFG2_MPEN; in gfar_resume()
3557 gfar_write(®s->maccfg2, tempval); in gfar_resume()