Lines Matching refs:mac
1003 u8 *mac = ða->mac_addr[0]; in rswitch_etha_read_mac_address() local
1005 mac[0] = (mrmac0 >> 8) & 0xFF; in rswitch_etha_read_mac_address()
1006 mac[1] = (mrmac0 >> 0) & 0xFF; in rswitch_etha_read_mac_address()
1007 mac[2] = (mrmac1 >> 24) & 0xFF; in rswitch_etha_read_mac_address()
1008 mac[3] = (mrmac1 >> 16) & 0xFF; in rswitch_etha_read_mac_address()
1009 mac[4] = (mrmac1 >> 8) & 0xFF; in rswitch_etha_read_mac_address()
1010 mac[5] = (mrmac1 >> 0) & 0xFF; in rswitch_etha_read_mac_address()
1013 static void rswitch_etha_write_mac_address(struct rswitch_etha *etha, const u8 *mac) in rswitch_etha_write_mac_address() argument
1015 iowrite32((mac[0] << 8) | mac[1], etha->addr + MRMAC0); in rswitch_etha_write_mac_address()
1016 iowrite32((mac[2] << 24) | (mac[3] << 16) | (mac[4] << 8) | mac[5], in rswitch_etha_write_mac_address()
1027 static void rswitch_rmac_setting(struct rswitch_etha *etha, const u8 *mac) in rswitch_rmac_setting() argument
1031 rswitch_etha_write_mac_address(etha, mac); in rswitch_rmac_setting()
1057 static int rswitch_etha_hw_init(struct rswitch_etha *etha, const u8 *mac) in rswitch_etha_hw_init() argument
1069 rswitch_rmac_setting(etha, mac); in rswitch_etha_hw_init()