/openbmc/linux/drivers/net/wireless/zydas/zd1211rw/ |
H A D | zd_mac.c | 125 static void housekeeping_init(struct zd_mac *mac); 126 static void housekeeping_enable(struct zd_mac *mac); 127 static void housekeeping_disable(struct zd_mac *mac); 128 static void beacon_init(struct zd_mac *mac); 129 static void beacon_enable(struct zd_mac *mac); 130 static void beacon_disable(struct zd_mac *mac); 131 static void set_rts_cts(struct zd_mac *mac, unsigned int short_preamble); 152 struct zd_mac *mac = zd_hw_mac(hw); in zd_check_signal() local 154 dev_dbg_f_cond(zd_mac_dev(mac), signal < 0 || signal > 100, in zd_check_signal() 170 struct zd_mac *mac = zd_hw_mac(hw); in zd_mac_preinit_hw() local [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | xgmac.c | 41 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 …]
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-mac.c | 20 static int dpaa2_mac_cmp_ver(struct dpaa2_mac *mac, in dpaa2_mac_cmp_ver() argument 23 if (mac->ver_major == ver_major) in dpaa2_mac_cmp_ver() 24 return mac->ver_minor - ver_minor; in dpaa2_mac_cmp_ver() 25 return mac->ver_major - ver_major; in dpaa2_mac_cmp_ver() 28 static void dpaa2_mac_detect_features(struct dpaa2_mac *mac) in dpaa2_mac_detect_features() argument 30 mac->features = 0; in dpaa2_mac_detect_features() 32 if (dpaa2_mac_cmp_ver(mac, DPMAC_PROTOCOL_CHANGE_VER_MAJOR, in dpaa2_mac_detect_features() 34 mac->features |= DPAA2_MAC_FEATURE_PROTOCOL_CHANGE; in dpaa2_mac_detect_features() 155 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); in dpaa2_mac_select_pcs() local 157 return mac->pcs; in dpaa2_mac_select_pcs() [all …]
|
/openbmc/linux/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 83 static unsigned int read_mac_reg(const struct pasemi_mac *mac, unsigned int reg) in read_mac_reg() argument 85 return pasemi_read_mac_reg(mac->dma_if, reg); in read_mac_reg() 88 static void write_mac_reg(const struct pasemi_mac *mac, unsigned int reg, in write_mac_reg() argument 91 pasemi_write_mac_reg(mac->dma_if, reg, val); in write_mac_reg() 104 static struct pasemi_mac_rxring *rx_ring(const struct pasemi_mac *mac) in rx_ring() argument 106 return mac->rx; in rx_ring() 109 static struct pasemi_mac_txring *tx_ring(const struct pasemi_mac *mac) in tx_ring() argument 111 return mac->tx; in tx_ring() 124 static int mac_to_intf(struct pasemi_mac *mac) in mac_to_intf() argument 126 struct pci_dev *pdev = mac->pdev; in mac_to_intf() [all …]
|
/openbmc/linux/drivers/net/wireless/purelifi/plfxlc/ |
H A D | mac.c | 88 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); in plfxlc_mac_init_hw() local 89 struct plfxlc_chip *chip = &mac->chip; in plfxlc_mac_init_hw() 94 dev_warn(plfxlc_mac_dev(mac), "init hw failed (%d)\n", r); in plfxlc_mac_init_hw() 98 dev_dbg(plfxlc_mac_dev(mac), "irq_disabled (%d)\n", irqs_disabled()); in plfxlc_mac_init_hw() 103 void plfxlc_mac_release(struct plfxlc_mac *mac) in plfxlc_mac_release() argument 105 plfxlc_chip_release(&mac->chip); in plfxlc_mac_release() 106 lockdep_assert_held(&mac->lock); in plfxlc_mac_release() 117 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); in plfxlc_op_stop() local 119 clear_bit(PURELIFI_DEVICE_RUNNING, &mac->flags); in plfxlc_op_stop() 122 int plfxlc_restore_settings(struct plfxlc_mac *mac) in plfxlc_restore_settings() argument [all …]
|
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | core.c | 42 struct qtnf_wmac *mac = NULL; in qtnf_core_get_mac() local 50 mac = bus->mac[macid]; in qtnf_core_get_mac() 52 if (unlikely(!mac)) { in qtnf_core_get_mac() 57 return mac; in qtnf_core_get_mac() 84 queue_work(vif->mac->bus->hprio_workqueue, &vif->high_pri_tx_work); in qtnf_packet_send_hi_pri() 93 struct qtnf_wmac *mac; in qtnf_netdev_hard_start_xmit() local 109 mac = vif->mac; in qtnf_netdev_hard_start_xmit() 110 if (unlikely(!mac)) { in qtnf_netdev_hard_start_xmit() 133 return qtnf_bus_data_tx(mac->bus, skb, mac->macid, vif->vifid); in qtnf_netdev_hard_start_xmit() 141 struct qtnf_wmac *mac; in qtnf_netdev_tx_timeout() local [all …]
|
H A D | cfg80211.c | 78 struct qtnf_wmac *mac; in qtnf_validate_iface_combinations() local 86 mac = wiphy_priv(wiphy); in qtnf_validate_iface_combinations() 87 if (!mac) in qtnf_validate_iface_combinations() 91 vif = &mac->iflist[i]; in qtnf_validate_iface_combinations() 112 vif = qtnf_mac_get_base_vif(mac); in qtnf_validate_iface_combinations() 117 mac->macid); in qtnf_validate_iface_combinations() 137 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf() 146 qtnf_scan_done(vif->mac, true); in qtnf_change_virtual_intf() 151 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf() 170 qtnf_scan_done(vif->mac, true); in qtnf_del_virtual_intf() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | vsc7326.c | 361 static int mac_intr_handler(struct cmac *mac) in mac_intr_handler() argument 366 static int mac_intr_enable(struct cmac *mac) in mac_intr_enable() argument 371 static int mac_intr_disable(struct cmac *mac) in mac_intr_disable() argument 376 static int mac_intr_clear(struct cmac *mac) in mac_intr_clear() argument 382 static int mac_set_address(struct cmac* mac, const u8 addr[6]) in mac_set_address() argument 385 int port = mac->instance->index; in mac_set_address() 387 vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port), in mac_set_address() 389 vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port), in mac_set_address() 392 vsc_read(mac->adapter, REG_ING_FFILT_UM_EN, &val); in mac_set_address() 394 vsc_write(mac->adapter, REG_ING_FFILT_UM_EN, val | (port << 28)); in mac_set_address() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | e1000x_common.h | 29 e1000x_inc_reg_if_not_full(uint32_t *mac, int index) in e1000x_inc_reg_if_not_full() argument 31 if (mac[index] != UINT32_MAX) { in e1000x_inc_reg_if_not_full() 32 mac[index]++; in e1000x_inc_reg_if_not_full() 37 e1000x_grow_8reg_if_not_full(uint32_t *mac, int index, int size) in e1000x_grow_8reg_if_not_full() argument 39 uint64_t sum = mac[index] | (uint64_t)mac[index + 1] << 32; in e1000x_grow_8reg_if_not_full() 46 mac[index] = sum; in e1000x_grow_8reg_if_not_full() 47 mac[index + 1] = sum >> 32; in e1000x_grow_8reg_if_not_full() 51 e1000x_vlan_enabled(uint32_t *mac) in e1000x_vlan_enabled() argument 53 return ((mac[CTRL] & E1000_CTRL_VME) != 0); in e1000x_vlan_enabled() 63 e1000x_vlan_rx_filter_enabled(uint32_t *mac) in e1000x_vlan_rx_filter_enabled() argument [all …]
|
H A D | e1000x_common.c | 37 bool e1000x_rx_ready(PCIDevice *d, uint32_t *mac) in e1000x_rx_ready() argument 39 bool link_up = mac[STATUS] & E1000_STATUS_LU; in e1000x_rx_ready() 40 bool rx_enabled = mac[RCTL] & E1000_RCTL_EN; in e1000x_rx_ready() 61 bool e1000x_rx_vlan_filter(uint32_t *mac, const struct vlan_header *vhdr) in e1000x_rx_vlan_filter() argument 63 if (e1000x_vlan_rx_filter_enabled(mac)) { in e1000x_rx_vlan_filter() 66 ldl_le_p((uint32_t *)(mac + VFTA) + in e1000x_rx_vlan_filter() 79 bool e1000x_rx_group_filter(uint32_t *mac, const struct eth_header *ehdr) in e1000x_rx_group_filter() argument 82 uint32_t f, ra[2], *rp, rctl = mac[RCTL]; in e1000x_rx_group_filter() 98 for (rp = mac + RA; rp < mac + RA + 32; rp += 2) { in e1000x_rx_group_filter() 105 trace_e1000x_rx_flt_ucast_match((int)(rp - mac - RA) / 2, in e1000x_rx_group_filter() [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-ingenic.c | 75 struct ingenic_mac *mac = plat_dat->bsp_priv; in ingenic_mac_init() local 78 if (mac->soc_info->set_mode) { in ingenic_mac_init() 79 ret = mac->soc_info->set_mode(plat_dat); in ingenic_mac_init() 89 struct ingenic_mac *mac = plat_dat->bsp_priv; in jz4775_mac_set_mode() local 96 dev_dbg(mac->dev, "MAC PHY Control Register: PHY_INTERFACE_MODE_MII\n"); in jz4775_mac_set_mode() 102 dev_dbg(mac->dev, "MAC PHY Control Register: PHY_INTERFACE_MODE_GMII\n"); in jz4775_mac_set_mode() 108 dev_dbg(mac->dev, "MAC PHY Control Register: PHY_INTERFACE_MODE_RMII\n"); in jz4775_mac_set_mode() 117 dev_dbg(mac->dev, "MAC PHY Control Register: PHY_INTERFACE_MODE_RGMII\n"); in jz4775_mac_set_mode() 121 dev_err(mac->dev, "Unsupported interface %d", plat_dat->mac_interface); in jz4775_mac_set_mode() 126 return regmap_update_bits(mac->regmap, 0, mac->soc_info->mask, val); in jz4775_mac_set_mode() [all …]
|
H A D | hwif.c | 40 struct mac_device_info *mac = priv->hw; in stmmac_dwmac_mode_quirk() local 45 mac->mode = &chain_mode_ops; in stmmac_dwmac_mode_quirk() 49 mac->mode = &ring_mode_ops; in stmmac_dwmac_mode_quirk() 55 struct mac_device_info *mac = priv->hw; in stmmac_dwmac1_quirks() local 68 mac->desc = &enh_desc_ops; in stmmac_dwmac1_quirks() 71 mac->desc = &ndesc_ops; in stmmac_dwmac1_quirks() 112 const void *mac; member 132 .mac = &dwmac100_ops, 150 .mac = &dwmac1000_ops, 168 .mac = &dwmac4_ops, [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | mac.c | 16 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() local 33 mac->ops.set_lan_id(hw); in e1000e_get_bus_info_pcie() 120 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in e1000e_init_rx_addrs() 125 hw->mac.ops.rar_set(hw, mac_addr, i); in e1000e_init_rx_addrs() 152 if (hw->mac.type == e1000_82573) in e1000_check_alt_mac_addr_generic() 191 hw->mac.ops.rar_set(hw, alt_mac_addr, 0); in e1000_check_alt_mac_addr_generic() 198 return hw->mac.rar_entry_count; in e1000e_rar_get_count_generic() 252 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in e1000_hash_mc_addr() 285 switch (hw->mac.mc_filter_type) { in e1000_hash_mc_addr() 322 memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow)); in e1000e_update_mc_addr_list_generic() [all …]
|
H A D | 82571.c | 62 switch (hw->mac.type) { in e1000_init_phy_params_82571() 90 switch (hw->mac.type) { in e1000_init_phy_params_82571() 143 switch (hw->mac.type) { in e1000_init_nvm_params_82571() 174 switch (hw->mac.type) { in e1000_init_nvm_params_82571() 193 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82571() local 204 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571() 206 mac->ops.check_for_link = e1000e_check_for_fiber_link; in e1000_init_mac_params_82571() 207 mac->ops.get_link_up_info = in e1000_init_mac_params_82571() 215 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571() 217 mac->ops.check_for_link = e1000_check_for_serdes_link_82571; in e1000_init_mac_params_82571() [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_hw.h | 306 #define ENETC_PM_REOCT(mac) (0x8100 + ENETC_PMAC_OFFSET * (mac)) argument 307 #define ENETC_PM_RALN(mac) (0x8110 + ENETC_PMAC_OFFSET * (mac)) argument 308 #define ENETC_PM_RXPF(mac) (0x8118 + ENETC_PMAC_OFFSET * (mac)) argument 309 #define ENETC_PM_RFRM(mac) (0x8120 + ENETC_PMAC_OFFSET * (mac)) argument 310 #define ENETC_PM_RFCS(mac) (0x8128 + ENETC_PMAC_OFFSET * (mac)) argument 311 #define ENETC_PM_RVLAN(mac) (0x8130 + ENETC_PMAC_OFFSET * (mac)) argument 312 #define ENETC_PM_RERR(mac) (0x8138 + ENETC_PMAC_OFFSET * (mac)) argument 313 #define ENETC_PM_RUCA(mac) (0x8140 + ENETC_PMAC_OFFSET * (mac)) argument 314 #define ENETC_PM_RMCA(mac) (0x8148 + ENETC_PMAC_OFFSET * (mac)) argument 315 #define ENETC_PM_RBCA(mac) (0x8150 + ENETC_PMAC_OFFSET * (mac)) argument [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_mdb.c | 16 unsigned char mac[ETH_ALEN]; member 57 const unsigned char *mac, in lan966x_mdb_entry_get() argument 63 if (ether_addr_equal(mdb_entry->mac, mac) && in lan966x_mdb_entry_get() 81 ether_addr_copy(mdb_entry->mac, mdb->addr); in lan966x_mdb_entry_add() 89 static void lan966x_mdb_encode_mac(unsigned char *mac, in lan966x_mdb_encode_mac() argument 93 ether_addr_copy(mac, mdb_entry->mac); in lan966x_mdb_encode_mac() 96 mac[0] = 0; in lan966x_mdb_encode_mac() 97 mac[1] = mdb_entry->ports >> 8; in lan966x_mdb_encode_mac() 98 mac[2] = mdb_entry->ports & 0xff; in lan966x_mdb_encode_mac() 100 mac[0] = mdb_entry->ports >> 8; in lan966x_mdb_encode_mac() [all …]
|
H A D | lan966x_mac.c | 21 unsigned char mac[ETH_ALEN] __aligned(2); member 53 const unsigned char mac[ETH_ALEN], in lan966x_mac_select() 62 mach |= mac[0] << 8; in lan966x_mac_select() 63 mach |= mac[1] << 0; in lan966x_mac_select() 64 macl |= mac[2] << 24; in lan966x_mac_select() 65 macl |= mac[3] << 16; in lan966x_mac_select() 66 macl |= mac[4] << 8; in lan966x_mac_select() 67 macl |= mac[5] << 0; in lan966x_mac_select() 75 const unsigned char mac[ETH_ALEN], in __lan966x_mac_learn_locked() 81 lan966x_mac_select(lan966x, mac, vid); in __lan966x_mac_learn_locked() [all …]
|
/openbmc/u-boot/drivers/net/fm/ |
H A D | tgec.c | 28 static void tgec_init_mac(struct fsl_enet_mac *mac) in tgec_init_mac() argument 30 struct tgec *regs = mac->base; in tgec_init_mac() 39 out_be32(®s->maxfrm, mac->max_rx_len & MAXFRM_MASK); in tgec_init_mac() 55 static void tgec_enable_mac(struct fsl_enet_mac *mac) in tgec_enable_mac() argument 57 struct tgec *regs = mac->base; in tgec_enable_mac() 62 static void tgec_disable_mac(struct fsl_enet_mac *mac) in tgec_disable_mac() argument 64 struct tgec *regs = mac->base; in tgec_disable_mac() 69 static void tgec_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in tgec_set_mac_addr() argument 71 struct tgec *regs = mac->base; in tgec_set_mac_addr() 86 static void tgec_set_interface_mode(struct fsl_enet_mac *mac, in tgec_set_interface_mode() argument [all …]
|
H A D | memac.c | 18 static void memac_init_mac(struct fsl_enet_mac *mac) in memac_init_mac() argument 20 struct memac *regs = mac->base; in memac_init_mac() 29 out_be32(®s->maxfrm, mac->max_rx_len & MAXFRM_MASK); in memac_init_mac() 35 static void memac_enable_mac(struct fsl_enet_mac *mac) in memac_enable_mac() argument 37 struct memac *regs = mac->base; in memac_enable_mac() 43 static void memac_disable_mac(struct fsl_enet_mac *mac) in memac_disable_mac() argument 45 struct memac *regs = mac->base; in memac_disable_mac() 50 static void memac_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in memac_set_mac_addr() argument 52 struct memac *regs = mac->base; in memac_set_mac_addr() 67 static void memac_set_interface_mode(struct fsl_enet_mac *mac, in memac_set_interface_mode() argument [all …]
|
H A D | dtsec.c | 26 static void dtsec_init_mac(struct fsl_enet_mac *mac) in dtsec_init_mac() argument 28 struct dtsec *regs = mac->base; in dtsec_init_mac() 52 out_be32(®s->maxfrm, mac->max_rx_len & MAXFRM_MASK); in dtsec_init_mac() 64 static void dtsec_enable_mac(struct fsl_enet_mac *mac) in dtsec_enable_mac() argument 66 struct dtsec *regs = mac->base; in dtsec_enable_mac() 78 static void dtsec_disable_mac(struct fsl_enet_mac *mac) in dtsec_disable_mac() argument 80 struct dtsec *regs = mac->base; in dtsec_disable_mac() 92 static void dtsec_set_mac_addr(struct fsl_enet_mac *mac, u8 *mac_addr) in dtsec_set_mac_addr() argument 94 struct dtsec *regs = mac->base; in dtsec_set_mac_addr() 109 static void dtsec_set_interface_mode(struct fsl_enet_mac *mac, in dtsec_set_interface_mode() argument [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ep93xx_eth.c | 149 struct mac_regs *mac = GET_REGS(dev); in ep93xx_mac_reset() local 154 value = readl(&mac->selfctl); in ep93xx_mac_reset() 156 writel(value, &mac->selfctl); in ep93xx_mac_reset() 158 while (readl(&mac->selfctl) & SELFCTL_RESET) in ep93xx_mac_reset() 168 struct mac_regs *mac = GET_REGS(dev); in ep93xx_eth_open() local 195 writel((uint32_t)priv->tx_dq.base, &mac->txdq.badd); in ep93xx_eth_open() 196 writel((uint32_t)priv->tx_dq.base, &mac->txdq.curadd); in ep93xx_eth_open() 197 writel(sizeof(struct tx_descriptor) * NUMTXDESC, &mac->txdq.blen); in ep93xx_eth_open() 199 writel((uint32_t)priv->tx_sq.base, &mac->txstsq.badd); in ep93xx_eth_open() 200 writel((uint32_t)priv->tx_sq.base, &mac->txstsq.curadd); in ep93xx_eth_open() [all …]
|
/openbmc/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_param.c | 324 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 328 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options() 329 hw->mac.link_duplex = DUPLEX_HALF; in pch_gbe_check_copper_options() 336 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() 351 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options() 352 hw->mac.link_duplex = DUPLEX_FULL; in pch_gbe_check_copper_options() 359 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/ |
H A D | core.c | 150 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_stop() local 171 mac->link_state = MAC80211_NOLINK; in rtl_op_stop() 172 eth_zero_addr(mac->bssid); in rtl_op_stop() 173 mac->vendor = PEER_UNKNOWN; in rtl_op_stop() 214 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_add_interface() local 218 if (mac->vif) { in rtl_op_add_interface() 220 "vif has been set!! mac->vif = 0x%p\n", mac->vif); in rtl_op_add_interface() 231 mac->p2p = P2P_ROLE_CLIENT; in rtl_op_add_interface() 234 if (mac->beacon_enabled == 1) { in rtl_op_add_interface() 237 mac->beacon_enabled = 0; in rtl_op_add_interface() [all …]
|
/openbmc/linux/drivers/net/ethernet/sunplus/ |
H A D | spl2sw_driver.c | 27 struct spl2sw_mac *mac = netdev_priv(ndev); in spl2sw_ethernet_open() local 28 struct spl2sw_common *comm = mac->comm; in spl2sw_ethernet_open() 31 netdev_dbg(ndev, "Open port = %x\n", mac->lan_port); in spl2sw_ethernet_open() 33 comm->enable |= mac->lan_port; in spl2sw_ethernet_open() 51 struct spl2sw_mac *mac = netdev_priv(ndev); in spl2sw_ethernet_stop() local 52 struct spl2sw_common *comm = mac->comm; in spl2sw_ethernet_stop() 56 comm->enable &= ~mac->lan_port; in spl2sw_ethernet_stop() 68 struct spl2sw_mac *mac = netdev_priv(ndev); in spl2sw_ethernet_start_xmit() local 69 struct spl2sw_common *comm = mac->comm; in spl2sw_ethernet_start_xmit() 110 cmd1 = TXD_OWN | TXD_SOP | TXD_EOP | (mac->to_vlan << 12) | in spl2sw_ethernet_start_xmit() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_mactable.c | 35 unsigned char mac[ETH_ALEN]; member 60 const unsigned char mac[ETH_ALEN], in sparx5_mact_select() 69 mach |= mac[0] << 8; in sparx5_mact_select() 70 mach |= mac[1] << 0; in sparx5_mact_select() 71 macl |= mac[2] << 24; in sparx5_mact_select() 72 macl |= mac[3] << 16; in sparx5_mact_select() 73 macl |= mac[4] << 8; in sparx5_mact_select() 74 macl |= mac[5] << 0; in sparx5_mact_select() 81 const unsigned char mac[ETH_ALEN], u16 vid) in sparx5_mact_learn() 96 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_learn() [all …]
|