Searched refs:mac_hi (Results 1 – 3 of 3) sorted by relevance
/linux-3.4.99/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_hw.c | 440 u32 mac_hi, mac_lo; in netxen_p2_nic_set_mac_addr() local 449 mac_hi = addr[2] | ((u32)addr[3] << 8) | in netxen_p2_nic_set_mac_addr() 456 if (NXWR32(adapter, reg_lo, mac_lo) || NXWR32(adapter, reg_hi, mac_hi)) in netxen_p2_nic_set_mac_addr() 458 if (NXWR32(adapter, reg_lo, mac_lo) || NXWR32(adapter, reg_hi, mac_hi)) in netxen_p2_nic_set_mac_addr() 1070 uint32_t crbaddr, mac_hi, mac_lo; in netxen_p3_get_mac_addr() local 1077 mac_hi = NXRD32(adapter, crbaddr+4); in netxen_p3_get_mac_addr() 1080 *mac = le64_to_cpu((mac_lo >> 16) | ((u64)mac_hi << 16)); in netxen_p3_get_mac_addr() 1082 *mac = le64_to_cpu((u64)mac_lo | ((u64)mac_hi << 32)); in netxen_p3_get_mac_addr()
|
/linux-3.4.99/drivers/net/ethernet/ti/ |
D | cpsw.c | 351 #define mac_hi(mac) (((mac)[0] << 0) | ((mac)[1] << 8) | \ macro 358 __raw_writel(mac_hi(priv->mac_addr), &slave->regs->sa_hi); in cpsw_set_slave_mac()
|
/linux-3.4.99/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_main.c | 9700 static void __devinit bnx2x_set_mac_buf(u8 *mac_buf, u32 mac_lo, u16 mac_hi) in bnx2x_set_mac_buf() argument 9702 mac_hi = cpu_to_be16(mac_hi); in bnx2x_set_mac_buf() 9704 memcpy(mac_buf, &mac_hi, sizeof(mac_hi)); in bnx2x_set_mac_buf() 9705 memcpy(mac_buf + sizeof(mac_hi), &mac_lo, sizeof(mac_lo)); in bnx2x_set_mac_buf()
|