| /kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/ |
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/chelsio/cxgb3/ |
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/net/wireless/zydas/zd1211rw/ |
| D | zd_mac.c | 137 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/zydas/zd1211rw/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
| D | dpaa2-mac.c | 5 #include "dpaa2-mac.h" 78 static bool dpaa2_mac_phy_mode_mismatch(struct dpaa2_mac *mac, in dpaa2_mac_phy_mode_mismatch() argument 90 return (interface != mac->if_mode); in dpaa2_mac_phy_mode_mismatch() 100 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); in dpaa2_mac_validate() local 104 dpaa2_mac_phy_mode_mismatch(mac, state->interface)) { in dpaa2_mac_validate() 149 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); in dpaa2_mac_config() local 150 struct dpmac_link_state *dpmac_state = &mac->state; in dpaa2_mac_config() 158 err = dpmac_set_link_state(mac->mc_io, 0, in dpaa2_mac_config() 159 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_config() 161 netdev_err(mac->net_dev, "%s: dpmac_set_link_state() = %d\n", in dpaa2_mac_config() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/pasemi/ |
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/pasemi/ |
| D | pasemi_mac.c | 76 MODULE_PARM_DESC(debug, "PA Semi MAC bitmapped debugging message enable value"); 94 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 [all …]
|
| /kernel/linux/linux-4.19/drivers/net/wireless/quantenna/qtnfmac/ |
| D | core.c | 41 struct qtnf_wmac *mac = NULL; in qtnf_core_get_mac() local 44 pr_err("invalid MAC index %u\n", macid); in qtnf_core_get_mac() 48 mac = bus->mac[macid]; in qtnf_core_get_mac() 50 if (unlikely(!mac)) { in qtnf_core_get_mac() 51 pr_err("MAC%u: not initialized\n", macid); in qtnf_core_get_mac() 55 return mac; in qtnf_core_get_mac() 83 struct qtnf_wmac *mac; in qtnf_netdev_hard_start_xmit() local 99 mac = vif->mac; in qtnf_netdev_hard_start_xmit() 100 if (unlikely(!mac)) { in qtnf_netdev_hard_start_xmit() 101 pr_err_ratelimited("%s: NULL mac pointer", ndev->name); in qtnf_netdev_hard_start_xmit() [all …]
|
| D | cfg80211.c | 88 struct qtnf_wmac *mac; in qtnf_validate_iface_combinations() local 96 mac = wiphy_priv(wiphy); in qtnf_validate_iface_combinations() 97 if (!mac) in qtnf_validate_iface_combinations() 101 vif = &mac->iflist[i]; in qtnf_validate_iface_combinations() 131 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf() 140 qtnf_scan_done(vif->mac, true); in qtnf_change_virtual_intf() 145 vif->mac->macid, vif->vifid, ret); in qtnf_change_virtual_intf() 163 qtnf_scan_done(vif->mac, true); in qtnf_del_virtual_intf() 174 pr_err("VIF%u.%u: failed to delete VIF\n", vif->mac->macid, in qtnf_del_virtual_intf() 190 struct qtnf_wmac *mac; in qtnf_add_virtual_intf() local [all …]
|
| D | commands.c | 37 pr_warn("VIF%u.%u CMD%x: bad MAC in response: %u\n", in qtnf_cmd_check_reply_header() 218 vif->mac->macid, vif->vifid, len); in qtnf_cmd_start_ap_can_fit() 238 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_start_ap() 331 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_start_ap() 333 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb, &res_code); in qtnf_cmd_send_start_ap() 339 pr_err("VIF%u.%u: CMD failed: %u\n", vif->mac->macid, in qtnf_cmd_send_start_ap() 348 qtnf_bus_unlock(vif->mac->bus); in qtnf_cmd_send_start_ap() 358 cmd_skb = qtnf_cmd_alloc_new_cmdskb(vif->mac->macid, vif->vifid, in qtnf_cmd_send_stop_ap() 364 qtnf_bus_lock(vif->mac->bus); in qtnf_cmd_send_stop_ap() 366 ret = qtnf_cmd_send(vif->mac->bus, cmd_skb, &res_code); in qtnf_cmd_send_stop_ap() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/ |
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/staging/mt7621-eth/ |
| D | ethtool.c | 48 struct mtk_mac *mac = netdev_priv(dev); in mtk_get_link_ksettings() local 51 if (!mac->phy_dev) in mtk_get_link_ksettings() 54 if (mac->phy_flags == MTK_PHY_FLAG_ATTACH) { in mtk_get_link_ksettings() 55 err = phy_read_status(mac->phy_dev); in mtk_get_link_ksettings() 60 phy_ethtool_ksettings_get(mac->phy_dev, cmd); in mtk_get_link_ksettings() 67 struct mtk_mac *mac = netdev_priv(dev); in mtk_set_link_ksettings() local 69 if (!mac->phy_dev) in mtk_set_link_ksettings() 72 if (cmd->base.phy_address != mac->phy_dev->mdio.addr) { in mtk_set_link_ksettings() 73 if (mac->hw->phy->phy_node[cmd->base.phy_address]) { in mtk_set_link_ksettings() 74 mac->phy_dev = mac->hw->phy->phy[cmd->base.phy_address]; in mtk_set_link_ksettings() [all …]
|
| /kernel/linux/linux-5.10/arch/m68k/include/uapi/asm/ |
| 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 …]
|
| /kernel/linux/linux-4.19/arch/m68k/include/uapi/asm/ |
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/chelsio/cxgb/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/staging/netlogic/ |
| D | platform_net.c | 67 int mac; in gmac_controller2_init() local 92 for (mac = 0; mac < 4; mac++) { in gmac_controller2_init() 93 ndata1.tx_stnid[mac] = FMN_STNID_GMAC1_TX0 + mac; in gmac_controller2_init() 94 ndata1.phy_addr[mac] = mac + 4 + 0x10; in gmac_controller2_init() 96 xlr_resource_init(&xlr_net1_res[mac * 2], in gmac_controller2_init() 97 xlr_gmac_offsets[mac + 4], in gmac_controller2_init() 98 xlr_gmac_irqs[mac + 4]); in gmac_controller2_init() 107 int mac; in xls_gmac_init() local 155 for (mac = 0; mac < 4; mac++) { in xls_gmac_init() 156 ndata0.tx_stnid[mac] = FMN_STNID_GMAC0_TX0 + mac; in xls_gmac_init() [all …]
|
| /kernel/linux/linux-4.19/drivers/of/ |
| D | of_net.c | 52 * Search the device tree for the best MAC address to use. 'mac-address' is 53 * checked first, because that is supposed to contain to "most recent" MAC 54 * address. If that isn't set, then 'local-mac-address' is checked next, 60 * MAC address. 62 * All-zero MAC addresses are rejected, because those could be properties that 64 * DTS could define 'mac-address' and 'local-mac-address', with zero MAC 65 * addresses. Some older U-Boots only initialized 'local-mac-address'. In 66 * this case, the real MAC is in 'local-mac-address', and 'mac-address' exists 73 addr = of_get_mac_addr(np, "mac-address"); in of_get_mac_address() 77 addr = of_get_mac_addr(np, "local-mac-address"); in of_get_mac_address() [all …]
|
| /kernel/linux/linux-4.19/drivers/staging/netlogic/ |
| D | platform_net.c | 96 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 …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/stmicro/stmmac/ |
| D | hwif.c | 28 struct mac_device_info *mac = priv->hw; in stmmac_dwmac_mode_quirk() local 33 mac->mode = &chain_mode_ops; in stmmac_dwmac_mode_quirk() 37 mac->mode = &ring_mode_ops; in stmmac_dwmac_mode_quirk() 43 struct mac_device_info *mac = priv->hw; in stmmac_dwmac1_quirks() local 56 mac->desc = &enh_desc_ops; in stmmac_dwmac1_quirks() 59 mac->desc = &ndesc_ops; in stmmac_dwmac1_quirks() 80 const void *mac; member 99 .mac = &dwmac100_ops, 116 .mac = &dwmac1000_ops, 133 .mac = &dwmac4_ops, [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
| 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() 99 const void *mac; member 119 .mac = &dwmac100_ops, 137 .mac = &dwmac1000_ops, 155 .mac = &dwmac4_ops, [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/rtl8188eu/include/ |
| D | rtw_cmd.h | 209 * mac[0] == 0 212 * mac[1] == mac[4], mac[2] == mac[3], mac[0]=mac[5]= 0; 216 * mac[0] == 1 221 * mac[0] = mac[5]; 222 * mac[1] = mac[4]; 223 * mac[2] = mac[3]; 224 * mac[3] = mac[2]; 225 * mac[4] = mac[1]; 226 * mac[5] = mac[0]; 235 * mac[0] == 2 [all …]
|
| /kernel/linux/linux-4.19/drivers/staging/rtl8188eu/include/ |
| D | rtw_cmd.h | 209 * mac[0] == 0 212 * mac[1] == mac[4], mac[2] == mac[3], mac[0]=mac[5]= 0; 216 * mac[0] == 1 221 * mac[0] = mac[5]; 222 * mac[1] = mac[4]; 223 * mac[2] = mac[3]; 224 * mac[3] = mac[2]; 225 * mac[4] = mac[1]; 226 * mac[5] = mac[0]; 235 * mac[0] == 2 [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/ |
| 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 …]
|