Home
last modified time | relevance | path

Searched refs:mac (Results 1 – 25 of 610) sorted by relevance

12345678910>>...25

/drivers/net/wireless/zydas/zd1211rw/
Dzd_mac.c137 static void housekeeping_init(struct zd_mac *mac);
138 static void housekeeping_enable(struct zd_mac *mac);
139 static void housekeeping_disable(struct zd_mac *mac);
140 static void beacon_init(struct zd_mac *mac);
141 static void beacon_enable(struct zd_mac *mac);
142 static void beacon_disable(struct zd_mac *mac);
143 static void set_rts_cts(struct zd_mac *mac, unsigned int short_preamble);
164 struct zd_mac *mac = zd_hw_mac(hw); in zd_check_signal() local
166 dev_dbg_f_cond(zd_mac_dev(mac), signal < 0 || signal > 100, in zd_check_signal()
182 struct zd_mac *mac = zd_hw_mac(hw); in zd_mac_preinit_hw() local
[all …]
/drivers/net/ethernet/chelsio/cxgb3/
Dxgmac.c41 static inline int macidx(const struct cmac *mac) in macidx() argument
43 return mac->offset / (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR); in macidx()
46 static void xaui_serdes_reset(struct cmac *mac) in xaui_serdes_reset() argument
54 struct adapter *adap = mac->adapter; in xaui_serdes_reset()
55 u32 ctrl = A_XGM_SERDES_CTRL0 + mac->offset; in xaui_serdes_reset()
57 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | in xaui_serdes_reset()
70 void t3b_pcs_reset(struct cmac *mac) in t3b_pcs_reset() argument
72 t3_set_reg_field(mac->adapter, A_XGM_RESET_CTRL + mac->offset, in t3b_pcs_reset()
75 t3_set_reg_field(mac->adapter, A_XGM_RESET_CTRL + mac->offset, 0, in t3b_pcs_reset()
79 int t3_mac_reset(struct cmac *mac) in t3_mac_reset() argument
[all …]
/drivers/net/ethernet/pasemi/
Dpasemi_mac.c94 static unsigned int read_mac_reg(const struct pasemi_mac *mac, unsigned int reg) in read_mac_reg() argument
96 return pasemi_read_mac_reg(mac->dma_if, reg); in read_mac_reg()
99 static void write_mac_reg(const struct pasemi_mac *mac, unsigned int reg, in write_mac_reg() argument
102 pasemi_write_mac_reg(mac->dma_if, reg, val); in write_mac_reg()
115 static struct pasemi_mac_rxring *rx_ring(const struct pasemi_mac *mac) in rx_ring() argument
117 return mac->rx; in rx_ring()
120 static struct pasemi_mac_txring *tx_ring(const struct pasemi_mac *mac) in tx_ring() argument
122 return mac->tx; in tx_ring()
135 static int mac_to_intf(struct pasemi_mac *mac) in mac_to_intf() argument
137 struct pci_dev *pdev = mac->pdev; in mac_to_intf()
[all …]
Dpasemi_mac_ethtool.c68 struct pasemi_mac *mac = netdev_priv(netdev); in pasemi_mac_ethtool_get_msglevel() local
69 return mac->msg_enable; in pasemi_mac_ethtool_get_msglevel()
76 struct pasemi_mac *mac = netdev_priv(netdev); in pasemi_mac_ethtool_set_msglevel() local
77 mac->msg_enable = level; in pasemi_mac_ethtool_set_msglevel()
85 struct pasemi_mac *mac = netdev_priv(netdev); in pasemi_mac_ethtool_get_ringparam() local
88 ering->tx_pending = RING_USED(mac->tx)/2; in pasemi_mac_ethtool_get_ringparam()
90 ering->rx_pending = RING_USED(mac->rx)/4; in pasemi_mac_ethtool_get_ringparam()
106 struct pasemi_mac *mac = netdev_priv(netdev); in pasemi_mac_get_ethtool_stats() local
109 data[0] = pasemi_read_dma_reg(PAS_DMA_RXINT_RCMDSTA(mac->dma_if)) in pasemi_mac_get_ethtool_stats()
112 data[1+i] = pasemi_read_mac_reg(mac->dma_if, PAS_MAC_RMON(i)); in pasemi_mac_get_ethtool_stats()
/drivers/net/ethernet/chelsio/cxgb/
Dvsc7326.c362 static int mac_intr_handler(struct cmac *mac) in mac_intr_handler() argument
367 static int mac_intr_enable(struct cmac *mac) in mac_intr_enable() argument
372 static int mac_intr_disable(struct cmac *mac) in mac_intr_disable() argument
377 static int mac_intr_clear(struct cmac *mac) in mac_intr_clear() argument
383 static int mac_set_address(struct cmac* mac, u8 addr[6]) in mac_set_address() argument
386 int port = mac->instance->index; in mac_set_address()
388 vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port), in mac_set_address()
390 vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port), in mac_set_address()
393 vsc_read(mac->adapter, REG_ING_FFILT_UM_EN, &val); in mac_set_address()
395 vsc_write(mac->adapter, REG_ING_FFILT_UM_EN, val | (port << 28)); in mac_set_address()
[all …]
Dpm3393.c433 #define RMON_UPDATE(mac, name, stat_name) \ argument
435 t1_tpi_read((mac)->adapter, OFFSET(name), &val0); \
436 t1_tpi_read((mac)->adapter, OFFSET((name)+1), &val1); \
437 t1_tpi_read((mac)->adapter, OFFSET((name)+2), &val2); \
438 (mac)->stats.stat_name = (u64)(val0 & 0xffff) | \
441 ((mac)->stats.stat_name & \
445 (mac)->stats.stat_name += 1ULL << 40; \
448 static const struct cmac_statistics *pm3393_update_statistics(struct cmac *mac, in pm3393_update_statistics() argument
455 pmwrite(mac, SUNI1x10GEXP_REG_MSTAT_CONTROL, in pm3393_update_statistics()
459 pmread(mac, SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_0, &val0); in pm3393_update_statistics()
[all …]
/drivers/infiniband/hw/usnic/
Dusnic_common_util.h38 usnic_mac_to_gid(const char *const mac, char *raw_gid) in usnic_mac_to_gid() argument
43 raw_gid[8] = mac[0]^2; in usnic_mac_to_gid()
44 raw_gid[9] = mac[1]; in usnic_mac_to_gid()
45 raw_gid[10] = mac[2]; in usnic_mac_to_gid()
48 raw_gid[13] = mac[3]; in usnic_mac_to_gid()
49 raw_gid[14] = mac[4]; in usnic_mac_to_gid()
50 raw_gid[15] = mac[5]; in usnic_mac_to_gid()
54 usnic_mac_ip_to_gid(const char *const mac, const __be32 inaddr, char *raw_gid) in usnic_mac_ip_to_gid() argument
60 raw_gid[8] = mac[0]^2; in usnic_mac_ip_to_gid()
61 raw_gid[9] = mac[1]; in usnic_mac_ip_to_gid()
[all …]
/drivers/staging/netlogic/
Dplatform_net.c96 int mac; in gmac_controller2_init() local
120 for (mac = 0; mac < 4; mac++) { in gmac_controller2_init()
121 ndata1.tx_stnid[mac] = FMN_STNID_GMAC1_TX0 + mac; in gmac_controller2_init()
122 ndata1.phy_addr[mac] = mac + 4 + 0x10; in gmac_controller2_init()
124 xlr_resource_init(&xlr_net1_res[mac * 2], in gmac_controller2_init()
125 xlr_gmac_offsets[mac + 4], in gmac_controller2_init()
126 xlr_gmac_irqs[mac + 4]); in gmac_controller2_init()
135 int mac; in xls_gmac_init() local
181 for (mac = 0; mac < 4; mac++) { in xls_gmac_init()
182 ndata0.tx_stnid[mac] = FMN_STNID_GMAC0_TX0 + mac; in xls_gmac_init()
[all …]
/drivers/net/ethernet/intel/e1000e/
Dmac.c34 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() local
51 mac->ops.set_lan_id(hw); in e1000e_get_bus_info_pcie()
138 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in e1000e_init_rx_addrs()
143 hw->mac.ops.rar_set(hw, mac_addr, i); in e1000e_init_rx_addrs()
170 if (hw->mac.type == e1000_82573) in e1000_check_alt_mac_addr_generic()
209 hw->mac.ops.rar_set(hw, alt_mac_addr, 0); in e1000_check_alt_mac_addr_generic()
216 return hw->mac.rar_entry_count; in e1000e_rar_get_count_generic()
270 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in e1000_hash_mc_addr()
303 switch (hw->mac.mc_filter_type) { in e1000_hash_mc_addr()
340 memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow)); in e1000e_update_mc_addr_list_generic()
[all …]
D82571.c80 switch (hw->mac.type) { in e1000_init_phy_params_82571()
108 switch (hw->mac.type) { in e1000_init_phy_params_82571()
161 switch (hw->mac.type) { in e1000_init_nvm_params_82571()
193 switch (hw->mac.type) { in e1000_init_nvm_params_82571()
212 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82571() local
223 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571()
225 mac->ops.check_for_link = e1000e_check_for_fiber_link; in e1000_init_mac_params_82571()
226 mac->ops.get_link_up_info = in e1000_init_mac_params_82571()
234 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571()
236 mac->ops.check_for_link = e1000_check_for_serdes_link_82571; in e1000_init_mac_params_82571()
[all …]
Dich8lan.c229 if (hw->mac.type < e1000_pch_lpt) { in e1000_phy_is_accessible_pchlan()
240 if ((hw->mac.type == e1000_pch_lpt) || (hw->mac.type == e1000_pch_spt)) { in e1000_phy_is_accessible_pchlan()
286 if (hw->mac.type < e1000_pch_lpt) { in e1000_toggle_lanphypc_pch_lpt()
333 switch (hw->mac.type) { in e1000_init_phy_workarounds_pchlan()
359 if ((hw->mac.type == e1000_pchlan) && in e1000_init_phy_workarounds_pchlan()
371 if (hw->mac.type >= e1000_pch_lpt) { in e1000_init_phy_workarounds_pchlan()
423 if ((hw->mac.type == e1000_pch2lan) && in e1000_init_phy_workarounds_pchlan()
466 switch (hw->mac.type) { in e1000_init_phy_params_pchlan()
610 if (hw->mac.type == e1000_pch_spt) { in e1000_init_nvm_params_ich8lan()
675 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_ich8lan() local
[all …]
/drivers/net/wireless/realtek/rtlwifi/
Dcore.c172 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_stop() local
193 mac->link_state = MAC80211_NOLINK; in rtl_op_stop()
194 eth_zero_addr(mac->bssid); in rtl_op_stop()
195 mac->vendor = PEER_UNKNOWN; in rtl_op_stop()
235 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_add_interface() local
238 if (mac->vif) { in rtl_op_add_interface()
240 "vif has been set!! mac->vif = 0x%p\n", mac->vif); in rtl_op_add_interface()
251 mac->p2p = P2P_ROLE_CLIENT; in rtl_op_add_interface()
254 if (mac->beacon_enabled == 1) { in rtl_op_add_interface()
257 mac->beacon_enabled = 0; in rtl_op_add_interface()
[all …]
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_param.c335 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options()
339 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
340 hw->mac.link_duplex = DUPLEX_HALF; in pch_gbe_check_copper_options()
347 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options()
350 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
351 hw->mac.link_duplex = DUPLEX_HALF; in pch_gbe_check_copper_options()
358 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options()
362 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options()
363 hw->mac.link_duplex = DUPLEX_FULL; in pch_gbe_check_copper_options()
370 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options()
[all …]
/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c167 struct mtk_mac *mac = netdev_priv(dev); in mtk_phy_link_adjust() local
175 if (unlikely(test_bit(MTK_RESETTING, &mac->hw->state))) in mtk_phy_link_adjust()
187 if (mac->id == 0 && !mac->trgmii) in mtk_phy_link_adjust()
188 mtk_gmac0_rgmii_adjust(mac->hw, dev->phydev->speed); in mtk_phy_link_adjust()
213 netif_dbg(mac->hw, link, dev, "rx pause %s, tx pause %s\n", in mtk_phy_link_adjust()
218 mtk_w32(mac->hw, mcr, MTK_MAC_MCR(mac->id)); in mtk_phy_link_adjust()
226 static int mtk_phy_connect_node(struct mtk_eth *eth, struct mtk_mac *mac, in mtk_phy_connect_node() argument
238 phydev = of_phy_connect(eth->netdev[mac->id], phy_node, in mtk_phy_connect_node()
247 mac->id, phydev_name(phydev), phydev->phy_id, in mtk_phy_connect_node()
255 struct mtk_mac *mac = netdev_priv(dev); in mtk_phy_connect() local
[all …]
/drivers/net/ethernet/intel/ixgbevf/
Dvf.c74 s32 status = hw->mac.ops.start_hw(hw); in ixgbevf_init_hw_vf()
76 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbevf_init_hw_vf()
97 hw->mac.ops.stop_adapter(hw); in ixgbevf_reset_hw_vf()
139 ether_addr_copy(hw->mac.perm_addr, addr); in ixgbevf_reset_hw_vf()
141 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; in ixgbevf_reset_hw_vf()
159 &hw->mac.perm_addr[i]); in ixgbevf_hv_reset_hw_vf()
188 number_of_queues = hw->mac.max_rx_queues; in ixgbevf_stop_hw_vf()
206 number_of_queues = hw->mac.max_tx_queues; in ixgbevf_stop_hw_vf()
234 switch (hw->mac.mc_filter_type) { in ixgbevf_mta_vector()
263 ether_addr_copy(mac_addr, hw->mac.perm_addr); in ixgbevf_get_mac_addr_vf()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_82599.c90 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_82599() local
95 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && in ixgbe_init_mac_link_ops_82599()
97 mac->ops.disable_tx_laser = in ixgbe_init_mac_link_ops_82599()
99 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599()
101 mac->ops.flap_tx_laser = &ixgbe_flap_tx_laser_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
103 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
104 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
105 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
110 mac->ops.setup_link = &ixgbe_setup_mac_link_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
111 mac->ops.setup_mac_link = ixgbe_setup_mac_link_82599; in ixgbe_init_mac_link_ops_82599()
[all …]
Dixgbe_x540.c56 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X540() local
62 mac->mcft_size = IXGBE_X540_MC_TBL_SIZE; in ixgbe_get_invariants_X540()
63 mac->vft_size = IXGBE_X540_VFT_TBL_SIZE; in ixgbe_get_invariants_X540()
64 mac->num_rar_entries = IXGBE_X540_RAR_ENTRIES; in ixgbe_get_invariants_X540()
65 mac->rx_pb_size = IXGBE_X540_RX_PB_SIZE; in ixgbe_get_invariants_X540()
66 mac->max_rx_queues = IXGBE_X540_MAX_RX_QUEUES; in ixgbe_get_invariants_X540()
67 mac->max_tx_queues = IXGBE_X540_MAX_TX_QUEUES; in ixgbe_get_invariants_X540()
68 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_get_invariants_X540()
100 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X540()
133 if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) { in ixgbe_reset_hw_X540()
[all …]
Dixgbe_82598.c96 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_82598() local
101 mac->mcft_size = IXGBE_82598_MC_TBL_SIZE; in ixgbe_get_invariants_82598()
102 mac->vft_size = IXGBE_82598_VFT_TBL_SIZE; in ixgbe_get_invariants_82598()
103 mac->num_rar_entries = IXGBE_82598_RAR_ENTRIES; in ixgbe_get_invariants_82598()
104 mac->rx_pb_size = IXGBE_82598_RX_PB_SIZE; in ixgbe_get_invariants_82598()
105 mac->max_rx_queues = IXGBE_82598_MAX_RX_QUEUES; in ixgbe_get_invariants_82598()
106 mac->max_tx_queues = IXGBE_82598_MAX_TX_QUEUES; in ixgbe_get_invariants_82598()
107 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_get_invariants_82598()
123 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_phy_ops_82598() local
132 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) { in ixgbe_init_phy_ops_82598()
[all …]
/drivers/net/ethernet/intel/igbvf/
Dvf.c47 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() local
50 mac->mta_reg_count = 128; in e1000_init_mac_params_vf()
52 mac->rar_entry_count = 1; in e1000_init_mac_params_vf()
56 mac->ops.reset_hw = e1000_reset_hw_vf; in e1000_init_mac_params_vf()
58 mac->ops.init_hw = e1000_init_hw_vf; in e1000_init_mac_params_vf()
60 mac->ops.check_for_link = e1000_check_for_link_vf; in e1000_init_mac_params_vf()
62 mac->ops.get_link_up_info = e1000_get_link_up_info_vf; in e1000_init_mac_params_vf()
64 mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_vf; in e1000_init_mac_params_vf()
66 mac->ops.rar_set = e1000_rar_set_vf; in e1000_init_mac_params_vf()
68 mac->ops.read_mac_addr = e1000_read_mac_addr_vf; in e1000_init_mac_params_vf()
[all …]
/drivers/net/ethernet/intel/fm10k/
Dfm10k_vf.c30 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf()
52 tdlen = hw->mac.itr_scale << FM10K_TDLEN_ITR_SCALE_SHIFT; in fm10k_stop_hw_vf()
57 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf()
87 hw->mac.reset_while_pending++; in fm10k_reset_hw_vf()
143 hw->mac.max_queues = i; in fm10k_init_hw_vf()
146 hw->mac.default_vid = (fm10k_read_reg(hw, FM10K_TXQCTL(0)) & in fm10k_init_hw_vf()
152 hw->mac.itr_scale = (fm10k_read_reg(hw, FM10K_TDLEN(0)) & in fm10k_init_hw_vf()
159 hw->mac.max_queues = 0; in fm10k_init_hw_vf()
231 ether_addr_copy(hw->mac.perm_addr, perm_addr); in fm10k_msg_mac_vlan_vf()
232 hw->mac.default_vid = vid & (FM10K_VLAN_TABLE_VID_MAX - 1); in fm10k_msg_mac_vlan_vf()
[all …]
Dfm10k_pf.c55 hw->mac.reset_while_pending++; in fm10k_reset_hw_pf()
134 (hw->mac.default_vid << FM10K_TXQCTL_VID_SHIFT); in fm10k_init_hw_pf()
162 hw->mac.itr_scale = FM10K_TDLEN_ITR_SCALE_GEN1; in fm10k_init_hw_pf()
166 hw->mac.itr_scale = FM10K_TDLEN_ITR_SCALE_GEN2; in fm10k_init_hw_pf()
170 hw->mac.itr_scale = FM10K_TDLEN_ITR_SCALE_GEN3; in fm10k_init_hw_pf()
175 hw->mac.itr_scale = FM10K_TDLEN_ITR_SCALE_GEN3; in fm10k_init_hw_pf()
195 hw->mac.max_queues = FM10K_MAX_QUEUES_PF; in fm10k_init_hw_pf()
293 ether_addr_copy(hw->mac.perm_addr, perm_addr); in fm10k_read_mac_addr_pf()
294 ether_addr_copy(hw->mac.addr, perm_addr); in fm10k_read_mac_addr_pf()
308 glort &= hw->mac.dglort_map >> FM10K_DGLORTMAP_MASK_SHIFT; in fm10k_glort_valid_pf()
[all …]
/drivers/net/ethernet/intel/igb/
De1000_mac.c96 hw->mac.ops.write_vfta(hw, offset, 0); in igb_clear_vfta()
135 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in igb_init_rx_addrs()
140 hw->mac.ops.rar_set(hw, mac_addr, i); in igb_init_rx_addrs()
259 hw->mac.ops.write_vfta(hw, regidx, vfta); in igb_vfta_set()
290 hw->mac.ops.write_vfta(hw, regidx, vfta); in igb_vfta_set()
316 if (hw->mac.type >= e1000_82580) in igb_check_alt_mac_addr()
360 hw->mac.ops.rar_set(hw, alt_mac_addr, 0); in igb_check_alt_mac_addr()
425 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_mta_set()
451 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in igb_hash_mc_addr()
484 switch (hw->mac.mc_filter_type) { in igb_hash_mc_addr()
[all …]
/drivers/media/common/b2c2/
Dflexcop-eeprom.c61 static char eeprom_set_mac_addr(struct adapter *adapter, char type, u8 *mac)
66 tmp[0] = mac[0];
67 tmp[1] = mac[1];
68 tmp[2] = mac[2];
69 tmp[3] = mac[5];
70 tmp[4] = mac[6];
71 tmp[5] = mac[7];
73 tmp[0] = mac[0];
74 tmp[1] = mac[1];
75 tmp[2] = mac[2];
[all …]
/drivers/staging/rtl8712/
Dusb_intf.c425 u8 mac[6]; in r871xu_drv_init() local
474 if (!r8712_initmac || !mac_pton(r8712_initmac, mac)) { in r871xu_drv_init()
478 ether_addr_copy(mac, &pdata[0x12]); in r871xu_drv_init()
572 if (((mac[0] == 0xff) && (mac[1] == 0xff) && in r871xu_drv_init()
573 (mac[2] == 0xff) && (mac[3] == 0xff) && in r871xu_drv_init()
574 (mac[4] == 0xff) && (mac[5] == 0xff)) || in r871xu_drv_init()
575 ((mac[0] == 0x00) && (mac[1] == 0x00) && in r871xu_drv_init()
576 (mac[2] == 0x00) && (mac[3] == 0x00) && in r871xu_drv_init()
577 (mac[4] == 0x00) && (mac[5] == 0x00)) || in r871xu_drv_init()
579 mac[0] = 0x00; in r871xu_drv_init()
[all …]
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac100_core.c178 struct mac_device_info *mac; in dwmac100_setup() local
180 mac = kzalloc(sizeof(const struct mac_device_info), GFP_KERNEL); in dwmac100_setup()
181 if (!mac) in dwmac100_setup()
186 mac->pcsr = ioaddr; in dwmac100_setup()
187 mac->mac = &dwmac100_ops; in dwmac100_setup()
188 mac->dma = &dwmac100_dma_ops; in dwmac100_setup()
190 mac->link.port = MAC_CONTROL_PS; in dwmac100_setup()
191 mac->link.duplex = MAC_CONTROL_F; in dwmac100_setup()
192 mac->link.speed = 0; in dwmac100_setup()
193 mac->mii.addr = MAC_MII_ADDR; in dwmac100_setup()
[all …]

12345678910>>...25