Lines Matching refs:MACREG
154 #define MACREG(mac, mac_reg) ((mac)->instance->mac_base + (mac_reg)) macro
173 (void) t1_tpi_read((mac)->adapter, MACREG(mac, REG_##name), &val); \
236 (void) t1_tpi_write(mac->adapter, MACREG(mac, REG_MACADDR_LOW), addr_lo); in mac_set_address()
237 (void) t1_tpi_write(mac->adapter, MACREG(mac, REG_MACADDR_HIGH), addr_hi); in mac_set_address()
245 (void) t1_tpi_read(mac->adapter, MACREG(mac, REG_MACADDR_LOW), &addr_lo); in mac_get_address()
246 (void) t1_tpi_read(mac->adapter, MACREG(mac, REG_MACADDR_HIGH), &addr_hi); in mac_get_address()
271 (void) t1_tpi_read(adapter, MACREG(mac, REG_RX_FILTER), &val); in mac_set_rx_mode()
279 (void) t1_tpi_write(adapter, MACREG(mac, REG_RX_FILTER), new_mode); in mac_set_rx_mode()
282 (void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_LOW), 0); in mac_set_rx_mode()
283 (void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_HIGH), 0); in mac_set_rx_mode()
290 (void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_LOW), addr_lo); in mac_set_rx_mode()
291 (void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_HIGH), addr_hi); in mac_set_rx_mode()
303 (void) t1_tpi_write(mac->adapter, MACREG(mac, REG_MAX_FRAME_SIZE), in mac_set_mtu()
320 (void) t1_tpi_write(mac->adapter, MACREG(mac, REG_RGMII_SPEED), val); in mac_set_speed_duplex_fc()
323 (void) t1_tpi_read(mac->adapter, MACREG(mac, REG_FC_ENABLE), &val); in mac_set_speed_duplex_fc()
329 (void) t1_tpi_write(mac->adapter, MACREG(mac, REG_FC_ENABLE), val); in mac_set_speed_duplex_fc()
341 (void) t1_tpi_read(mac->adapter, MACREG(mac, REG_RGMII_SPEED), in mac_get_speed_duplex_fc()
346 (void) t1_tpi_read(mac->adapter, MACREG(mac, REG_FC_ENABLE), &val); in mac_get_speed_duplex_fc()
362 (void) t1_tpi_read(adapter, MACREG(mac, REG_DIVERSE_CONFIG), &val); in enable_port()
364 (void) t1_tpi_write(adapter, MACREG(mac, REG_DIVERSE_CONFIG), val); in enable_port()
366 (void) t1_tpi_write(adapter, MACREG(mac, REG_RX_FILTER), 3); in enable_port()
368 (void) t1_tpi_write(adapter, MACREG(mac, REG_RX_FILTER), 2); in enable_port()