Searched refs:mac_hi (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/drivers/net/netxen/ |
D | netxen_nic_hw.c | 441 u32 mac_hi, mac_lo; in netxen_p2_nic_set_mac_addr() local 450 mac_hi = addr[2] | ((u32)addr[3] << 8) | in netxen_p2_nic_set_mac_addr() 457 if (NXWR32(adapter, reg_lo, mac_lo) || NXWR32(adapter, reg_hi, mac_hi)) in netxen_p2_nic_set_mac_addr() 459 if (NXWR32(adapter, reg_lo, mac_lo) || NXWR32(adapter, reg_hi, mac_hi)) in netxen_p2_nic_set_mac_addr() 1065 uint32_t crbaddr, mac_hi, mac_lo; in netxen_p3_get_mac_addr() local 1072 mac_hi = NXRD32(adapter, crbaddr+4); in netxen_p3_get_mac_addr() 1075 *mac = le64_to_cpu((mac_lo >> 16) | ((u64)mac_hi << 16)); in netxen_p3_get_mac_addr() 1077 *mac = le64_to_cpu((u64)mac_lo | ((u64)mac_hi << 32)); in netxen_p3_get_mac_addr()
|
/linux-2.6.39/drivers/net/bnx2x/ |
D | bnx2x_main.c | 8426 static void __devinit bnx2x_set_mac_buf(u8 *mac_buf, u32 mac_lo, u16 mac_hi) in bnx2x_set_mac_buf() argument 8428 mac_hi = cpu_to_be16(mac_hi); in bnx2x_set_mac_buf() 8430 memcpy(mac_buf, &mac_hi, sizeof(mac_hi)); in bnx2x_set_mac_buf() 8431 memcpy(mac_buf + sizeof(mac_hi), &mac_lo, sizeof(mac_lo)); in bnx2x_set_mac_buf()
|