Lines Matching defs:mac

94 	switch (hw->mac.type) {
160 struct e1000_mac_info *mac = &hw->mac;
183 mac->mta_reg_count = 128;
185 mac->rar_entry_count = E1000_RAR_ENTRIES;
190 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
192 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
194 mac->ops.reset_hw = e1000_reset_hw_82540;
196 mac->ops.init_hw = e1000_init_hw_82540;
198 mac->ops.setup_link = e1000_setup_link_generic;
200 mac->ops.setup_physical_interface =
207 mac->ops.check_for_link = e1000_check_for_copper_link_generic;
210 mac->ops.check_for_link = e1000_check_for_fiber_link_generic;
213 mac->ops.check_for_link = e1000_check_for_serdes_link_generic;
221 mac->ops.get_link_up_info =
226 mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
228 mac->ops.write_vfta = e1000_write_vfta_generic;
230 mac->ops.clear_vfta = e1000_clear_vfta_generic;
231 /* read mac address */
232 mac->ops.read_mac_addr = e1000_read_mac_addr_82540;
234 mac->ops.id_led_init = e1000_id_led_init_generic;
236 mac->ops.setup_led = e1000_setup_led_generic;
238 mac->ops.cleanup_led = e1000_cleanup_led_generic;
240 mac->ops.led_on = e1000_led_on_generic;
241 mac->ops.led_off = e1000_led_off_generic;
243 mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_82540;
259 hw->mac.ops.init_params = e1000_init_mac_params_82540;
293 switch (hw->mac.type) {
330 struct e1000_mac_info *mac = &hw->mac;
338 ret_val = mac->ops.id_led_init(hw);
346 if (mac->type < e1000_82545_rev_3)
349 mac->ops.clear_vfta(hw);
352 e1000_init_rx_addrs_generic(hw, mac->rar_entry_count);
356 for (i = 0; i < mac->mta_reg_count; i++) {
369 if (mac->type < e1000_82545_rev_3)
373 ret_val = mac->ops.setup_link(hw);
428 if (hw->mac.type == e1000_82545_rev_3 ||
429 hw->mac.type == e1000_82546_rev_3) {
462 struct e1000_mac_info *mac = &hw->mac;
467 switch (mac->type) {
595 if (hw->mac.type != e1000_82545_rev_3)
705 hw->mac.perm_addr[i] = (u8)(nvm_data & 0xFF);
706 hw->mac.perm_addr[i+1] = (u8)(nvm_data >> 8);
709 /* Flip last bit of mac address if we're on second port */
711 hw->mac.perm_addr[5] ^= 1;
714 hw->mac.addr[i] = hw->mac.perm_addr[i];