/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-mac.c | 10 #include "dpaa2-mac.h" 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 [all …]
|
/openbmc/openbmc-test-automation/redfish/managers/ |
H A D | test_bmc_network_mac.robot | 16 # AA:AA:AA:AA:AA:AA series is a valid MAC and does not exist in 17 # our network, so this is chosen to avoid MAC conflict. 23 # There will be 6 bytes in MAC address (e.g. xx.xx.xx.xx.xx.xx). 29 # MAC address with special characters. 34 Configure Valid MAC And Verify 35 [Documentation] Configure valid MAC via Redfish and verify. 38 Configure MAC Settings ${valid_mac} 40 # Verify whether new MAC is configured on BMC and FW_Env. 41 Validate MAC On BMC ${valid_mac} 42 Verify MAC Address Via FW_Env ${valid_mac} [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/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/pasemi/ |
H A D | pasemi_mac.c | 65 MODULE_PARM_DESC(debug, "PA Semi MAC bitmapped debugging message enable value"); 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 [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 45 pr_err("invalid MAC index %u\n", macid); in qtnf_core_get_mac() 50 mac = bus->mac[macid]; in qtnf_core_get_mac() 52 if (unlikely(!mac)) { in qtnf_core_get_mac() 53 pr_err("MAC%u: not initialized\n", macid); 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() [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() 116 pr_err("MAC%u invalid combination: AP as primary repeater interface is not supported\n", 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() [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() 125 /* Update MAC PHY control register */ 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/wireless/purelifi/plfxlc/ |
H A D | mac.c | 15 #include "mac.h" 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() [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 …]
|
H A D | e1000e_core.c | 94 e1000x_inc_reg_if_not_full(core->mac, IAC); in e1000e_raise_legacy_irq() 108 int64_t delay_ns = (int64_t) timer->core->mac[timer->delay_reg] * in e1000e_intrmgr_rearm_timer() 160 if (timer->core->mac[IMS] & timer->core->mac[ICR]) { in e1000e_intrmgr_on_throttling_timer() 258 uint32_t rdtr = core->mac[RDTR]; in e1000e_intrmgr_delay_rx_causes() 259 uint32_t radv = core->mac[RADV]; in e1000e_intrmgr_delay_rx_causes() 260 uint32_t raid = core->mac[RAID]; in e1000e_intrmgr_delay_rx_causes() 270 if (!(core->mac[RFCTL] & E1000_RFCTL_ACK_DIS)) { in e1000e_intrmgr_delay_rx_causes() 332 if (!core->tadv.running && (core->mac[TADV] != 0)) { in e1000e_intrmgr_delay_tx_causes() 437 return (core->mac[RXCSUM] & E1000_RXCSUM_PCSD) ? false : true; in e1000e_rx_csum_enabled() 443 return (core->mac[RFCTL] & E1000_RFCTL_EXTEN) ? false : true; in e1000e_rx_use_legacy_descriptor() [all …]
|
/openbmc/linux/arch/m68k/include/uapi/asm/ |
H A D | bootinfo-mac.h | 3 ** asm/bootinfo-mac.h -- Macintosh-specific boot information definitions 14 #define BI_MAC_MODEL 0x8000 /* Mac Gestalt ID (model type) */ 15 #define BI_MAC_VADDR 0x8001 /* Mac video base address */ 16 #define BI_MAC_VDEPTH 0x8002 /* Mac video depth */ 17 #define BI_MAC_VROW 0x8003 /* Mac video rowbytes */ 18 #define BI_MAC_VDIM 0x8004 /* Mac video dimensions */ 19 #define BI_MAC_VLOGICAL 0x8005 /* Mac video logical base */ 20 #define BI_MAC_SCCBASE 0x8006 /* Mac SCC base address */ 21 #define BI_MAC_BTIME 0x8007 /* Mac boot time */ 22 #define BI_MAC_GMTBIAS 0x8008 /* Mac GMT timezone offset */ [all …]
|
/openbmc/qemu/include/standard-headers/asm-m68k/ |
H A D | bootinfo-mac.h | 3 ** asm/bootinfo-mac.h -- Macintosh-specific boot information definitions 14 #define BI_MAC_MODEL 0x8000 /* Mac Gestalt ID (model type) */ 15 #define BI_MAC_VADDR 0x8001 /* Mac video base address */ 16 #define BI_MAC_VDEPTH 0x8002 /* Mac video depth */ 17 #define BI_MAC_VROW 0x8003 /* Mac video rowbytes */ 18 #define BI_MAC_VDIM 0x8004 /* Mac video dimensions */ 19 #define BI_MAC_VLOGICAL 0x8005 /* Mac video logical base */ 20 #define BI_MAC_SCCBASE 0x8006 /* Mac SCC base address */ 21 #define BI_MAC_BTIME 0x8007 /* Mac boot time */ 22 #define BI_MAC_GMTBIAS 0x8008 /* Mac GMT timezone offset */ [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | vsc7326.c | 4 /* Driver for Vitesse VSC7326 (Schaumburg) MAC */ 16 * interface is down (MAC port disabled). This is a workaround 17 * for disabling the T2/MAC flow-control. When the interface is 50 pr_err("Invalid tpi read from MAC, breaking loop.\n"); in vsc_read() 74 /* Hard reset the MAC. This wipes out *all* configuration. */ 84 val |= 0x1; /* Enable mac MAC itself */ in vsc7326_full_reset() 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 [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() 58 /* Set the MAC address to handle and the vlan associated in a format 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() [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 | 14 /* Commands for Mac Table Command register */ 18 #define MAC_CMD_READ 3 /* Read entry at Mac Table Index */ 19 #define MAC_CMD_WRITE 4 /* Write entry at Mac Table Index */ 35 unsigned char mac[ETH_ALEN]; member 60 const unsigned char mac[ETH_ALEN], in sparx5_mact_select() 65 /* Set the MAC address to handle and the vlan associated in a format 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() [all …]
|
/openbmc/linux/net/core/ |
H A D | of_net.c | 65 const void *mac; in of_get_mac_address_nvmem() local 78 cell = of_nvmem_cell_get(np, "mac-address"); in of_get_mac_address_nvmem() 82 mac = nvmem_cell_read(cell, &len); in of_get_mac_address_nvmem() 85 if (IS_ERR(mac)) in of_get_mac_address_nvmem() 86 return PTR_ERR(mac); in of_get_mac_address_nvmem() 88 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) { in of_get_mac_address_nvmem() 89 kfree(mac); in of_get_mac_address_nvmem() 93 memcpy(addr, mac, ETH_ALEN); in of_get_mac_address_nvmem() 94 kfree(mac); in of_get_mac_address_nvmem() 105 * Search the device tree for the best MAC address to use. 'mac-address' is [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_hw.h | 303 /* Port MAC counters: Port MAC 0 corresponds to the eMAC and 304 * Port MAC 1 to the pMAC. 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 [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ep93xx_eth.c | 3 * Cirrus Logic EP93xx ethernet MAC / MII driver. 144 * Reset the EP93xx MAC by twiddling the soft reset bit and spinning until 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 174 /* Reset the MAC */ in ep93xx_eth_open() 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() [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() 42 * 1588 disable, insert second mac disable payload length check 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() [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() 34 /* clear soft reset, Rx/Tx MAC disable */ 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() 68 /* enable Rx/Tx MAC */ 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() 88 /* disable Rx/Tx MAC */ in dtsec_disable_mac() [all …]
|