• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/e1000/

Lines Matching defs:mac

95 	switch (hw->mac.type) {
161 struct e1000_mac_info *mac = &hw->mac;
184 mac->mta_reg_count = 128;
186 mac->rar_entry_count = E1000_RAR_ENTRIES;
191 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
193 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
195 mac->ops.reset_hw = e1000_reset_hw_82540;
197 mac->ops.init_hw = e1000_init_hw_82540;
199 mac->ops.setup_link = e1000_setup_link_generic;
201 mac->ops.setup_physical_interface =
208 mac->ops.check_for_link = e1000_check_for_copper_link_generic;
211 mac->ops.check_for_link = e1000_check_for_fiber_link_generic;
214 mac->ops.check_for_link = e1000_check_for_serdes_link_generic;
222 mac->ops.get_link_up_info =
227 mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
229 mac->ops.write_vfta = e1000_write_vfta_generic;
231 mac->ops.clear_vfta = e1000_clear_vfta_generic;
232 /* read mac address */
233 mac->ops.read_mac_addr = e1000_read_mac_addr_82540;
235 mac->ops.id_led_init = e1000_id_led_init_generic;
237 mac->ops.setup_led = e1000_setup_led_generic;
239 mac->ops.cleanup_led = e1000_cleanup_led_generic;
241 mac->ops.led_on = e1000_led_on_generic;
242 mac->ops.led_off = e1000_led_off_generic;
244 mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_82540;
260 hw->mac.ops.init_params = e1000_init_mac_params_82540;
294 switch (hw->mac.type) {
331 struct e1000_mac_info *mac = &hw->mac;
339 ret_val = mac->ops.id_led_init(hw);
347 if (mac->type < e1000_82545_rev_3)
350 mac->ops.clear_vfta(hw);
353 e1000_init_rx_addrs_generic(hw, mac->rar_entry_count);
357 for (i = 0; i < mac->mta_reg_count; i++) {
370 if (mac->type < e1000_82545_rev_3)
374 ret_val = mac->ops.setup_link(hw);
429 if (hw->mac.type == e1000_82545_rev_3 ||
430 hw->mac.type == e1000_82546_rev_3) {
463 struct e1000_mac_info *mac = &hw->mac;
468 switch (mac->type) {
596 if (hw->mac.type != e1000_82545_rev_3)
706 hw->mac.perm_addr[i] = (u8)(nvm_data & 0xFF);
707 hw->mac.perm_addr[i+1] = (u8)(nvm_data >> 8);
710 /* Flip last bit of mac address if we're on second port */
712 hw->mac.perm_addr[5] ^= 1;
715 hw->mac.addr[i] = hw->mac.perm_addr[i];