Lines Matching refs:v

436 	u32 v;  in mac_set_rx_mode()  local
439 vsc_read(mac->adapter, REG_ING_FFILT_UM_EN, &v); in mac_set_rx_mode()
440 v |= 1 << 12; in mac_set_rx_mode()
443 v &= ~(1 << (port + 16)); in mac_set_rx_mode()
445 v |= 1 << (port + 16); in mac_set_rx_mode()
447 vsc_write(mac->adapter, REG_ING_FFILT_UM_EN, v); in mac_set_rx_mode()
466 u32 v; in mac_set_speed_duplex_fc() local
476 vsc_read(mac->adapter, REG_MODE_CFG(port), &v); in mac_set_speed_duplex_fc()
477 enable = v & 3; /* save tx/rx enables */ in mac_set_speed_duplex_fc()
478 v &= ~0xf; in mac_set_speed_duplex_fc()
479 v |= 4; /* full duplex */ in mac_set_speed_duplex_fc()
481 v |= 8; /* GigE */ in mac_set_speed_duplex_fc()
482 enable |= v; in mac_set_speed_duplex_fc()
483 vsc_write(mac->adapter, REG_MODE_CFG(port), v); in mac_set_speed_duplex_fc()
486 v = 0x82; in mac_set_speed_duplex_fc()
488 v = 0x84; in mac_set_speed_duplex_fc()
490 v = 0x86; in mac_set_speed_duplex_fc()
491 vsc_write(mac->adapter, REG_DEV_SETUP(port), v | 1); /* reset */ in mac_set_speed_duplex_fc()
492 vsc_write(mac->adapter, REG_DEV_SETUP(port), v); in mac_set_speed_duplex_fc()
493 vsc_read(mac->adapter, REG_DBG(port), &v); in mac_set_speed_duplex_fc()
494 v &= ~0xff00; in mac_set_speed_duplex_fc()
496 v |= 0x400; in mac_set_speed_duplex_fc()
498 v |= 0x2000; in mac_set_speed_duplex_fc()
500 v |= 0xff00; in mac_set_speed_duplex_fc()
501 vsc_write(mac->adapter, REG_DBG(port), v); in mac_set_speed_duplex_fc()
519 vsc_read(mac->adapter, REG_PAUSE_CFG(port), &v); in mac_set_speed_duplex_fc()
520 v &= 0xfff0ffff; in mac_set_speed_duplex_fc()
521 v |= 0x20000; /* xon/xoff */ in mac_set_speed_duplex_fc()
523 v |= 0x40000; in mac_set_speed_duplex_fc()
525 v |= 0x80000; in mac_set_speed_duplex_fc()
527 v |= 0x10000; in mac_set_speed_duplex_fc()
528 vsc_write(mac->adapter, REG_PAUSE_CFG(port), v); in mac_set_speed_duplex_fc()
577 u32 v, lo; in rmon_update() local
579 vsc_read(mac->adapter, addr, &v); in rmon_update()
581 *stat = *stat - lo + v; in rmon_update()
583 if (v == 0) in rmon_update()
586 if (v < lo) in rmon_update()