/drivers/infiniband/hw/usnic/ |
H A D | usnic_common_util.h | 23 usnic_mac_to_gid(const char *const mac, char *raw_gid) argument 28 raw_gid[8] = mac[0]^2; 29 raw_gid[9] = mac[1]; 30 raw_gid[10] = mac[2]; 33 raw_gid[13] = mac[3]; 34 raw_gid[14] = mac[4]; 35 raw_gid[15] = mac[5]; 39 usnic_mac_ip_to_gid(const char *const mac, const __be32 inaddr, char *raw_gid) argument 45 raw_gid[8] = mac[0]^2; 46 raw_gid[9] = mac[ 56 usnic_write_gid_if_id_from_mac(char *mac, char *raw_gid) argument [all...] |
/drivers/net/wireless/zd1211rw/ |
H A 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); local 166 dev_dbg_f_cond(zd_mac_dev(mac), signal < 0 || signal > 100, 182 struct zd_mac *mac local 196 struct zd_mac *mac = zd_hw_mac(hw); local 234 zd_mac_clear(struct zd_mac *mac) argument 242 set_rx_filter(struct zd_mac *mac) argument 255 set_mac_and_bssid(struct zd_mac *mac) argument 275 set_mc_hash(struct zd_mac *mac) argument 284 struct zd_mac *mac = zd_hw_mac(hw); local 344 struct zd_mac *mac = zd_hw_mac(hw); local 370 zd_restore_settings(struct zd_mac *mac) argument 502 struct zd_mac *mac = zd_hw_mac(hw); local 585 struct zd_mac *mac = zd_hw_mac(hw); local 656 cs_set_control(struct zd_mac *mac, struct zd_ctrlset *cs, struct ieee80211_hdr *header, struct ieee80211_tx_info *info) argument 689 zd_mac_match_cur_beacon(struct zd_mac *mac, struct sk_buff *beacon) argument 700 zd_mac_free_cur_beacon_locked(struct zd_mac *mac) argument 708 zd_mac_free_cur_beacon(struct zd_mac *mac) argument 718 struct zd_mac *mac = zd_hw_mac(hw); local 863 fill_ctrlset(struct zd_mac *mac, struct sk_buff *skb) argument 942 struct zd_mac *mac = zd_hw_mac(hw); local 978 struct zd_mac *mac = zd_hw_mac(hw); local 1032 struct zd_mac *mac = zd_hw_mac(hw); local 1116 struct zd_mac *mac = zd_hw_mac(hw); local 1142 struct zd_mac *mac = zd_hw_mac(hw); local 1153 struct zd_mac *mac = zd_hw_mac(hw); local 1163 zd_beacon_done(struct zd_mac *mac) argument 1198 struct zd_mac *mac = container_of(work, struct zd_mac, process_intr); local 1218 struct zd_mac *mac = zd_hw_mac(hw); local 1244 struct zd_mac *mac = zd_hw_mac(hw); local 1286 set_rts_cts(struct zd_mac *mac, unsigned int short_preamble) argument 1298 struct zd_mac *mac = zd_hw_mac(hw); local 1355 struct zd_mac *mac = zd_hw_mac(hw); local 1374 struct zd_mac *mac; local 1437 struct zd_mac *mac = local 1484 beacon_init(struct zd_mac *mac) argument 1489 beacon_enable(struct zd_mac *mac) argument 1498 beacon_disable(struct zd_mac *mac) argument 1510 struct zd_mac *mac = local 1533 housekeeping_init(struct zd_mac *mac) argument 1538 housekeeping_enable(struct zd_mac *mac) argument 1545 housekeeping_disable(struct zd_mac *mac) argument [all...] |
/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 99 static unsigned int read_mac_reg(const struct pasemi_mac *mac, unsigned int reg) argument 101 return pasemi_read_mac_reg(mac->dma_if, reg); 104 static void write_mac_reg(const struct pasemi_mac *mac, unsigned int reg, argument 107 pasemi_write_mac_reg(mac->dma_if, reg, val); 120 static struct pasemi_mac_rxring *rx_ring(const struct pasemi_mac *mac) argument 122 return mac->rx; 125 static struct pasemi_mac_txring *tx_ring(const struct pasemi_mac *mac) argument 127 return mac->tx; 140 static int mac_to_intf(struct pasemi_mac *mac) argument 142 struct pci_dev *pdev = mac 168 pasemi_mac_intf_disable(struct pasemi_mac *mac) argument 177 pasemi_mac_intf_enable(struct pasemi_mac *mac) argument 186 pasemi_get_mac_addr(struct pasemi_mac *mac) argument 235 struct pasemi_mac *mac = netdev_priv(dev); local 291 pasemi_mac_unmap_tx_skb(struct pasemi_mac *mac, const int nfrags, struct sk_buff *skb, const dma_addr_t *dmas) argument 314 pasemi_mac_setup_csring(struct pasemi_mac *mac) argument 388 pasemi_mac_setup_csrings(struct pasemi_mac *mac) argument 415 struct pasemi_mac *mac = netdev_priv(dev); local 495 struct pasemi_mac *mac = netdev_priv(dev); local 554 pasemi_mac_free_tx_resources(struct pasemi_mac *mac) argument 589 pasemi_mac_free_rx_buffers(struct pasemi_mac *mac) argument 612 pasemi_mac_free_rx_resources(struct pasemi_mac *mac) argument 627 const struct pasemi_mac *mac = netdev_priv(dev); local 673 pasemi_mac_restart_rx_intr(const struct pasemi_mac *mac) argument 691 pasemi_mac_restart_tx_intr(const struct pasemi_mac *mac) argument 704 pasemi_mac_rx_error(const struct pasemi_mac *mac, const u64 macrx) argument 723 pasemi_mac_tx_error(const struct pasemi_mac *mac, const u64 mactx) argument 744 struct pasemi_mac *mac = rx->mac; local 866 struct pasemi_mac *mac = txring->mac; local 958 struct pasemi_mac *mac = rxring->mac; local 987 struct pasemi_mac *mac = txring->mac; local 1000 struct pasemi_mac *mac = txring->mac; local 1025 struct pasemi_mac *mac = netdev_priv(dev); local 1088 struct pasemi_mac *mac = netdev_priv(dev); local 1116 struct pasemi_mac *mac = netdev_priv(dev); local 1266 pasemi_mac_pause_txchan(struct pasemi_mac *mac) argument 1288 pasemi_mac_pause_rxchan(struct pasemi_mac *mac) argument 1308 pasemi_mac_pause_rxint(struct pasemi_mac *mac) argument 1329 struct pasemi_mac *mac = netdev_priv(dev); local 1479 struct pasemi_mac * const mac = netdev_priv(dev); local 1596 const struct pasemi_mac *mac = netdev_priv(dev); local 1613 struct pasemi_mac *mac = container_of(napi, struct pasemi_mac, napi); local 1636 const struct pasemi_mac *mac = netdev_priv(dev); local 1650 struct pasemi_mac *mac = netdev_priv(dev); local 1733 struct pasemi_mac *mac; local 1855 struct pasemi_mac *mac; local [all...] |
H A D | pasemi_mac_ethtool.c | 70 struct pasemi_mac *mac = netdev_priv(netdev); local 71 struct phy_device *phydev = mac->phydev; 83 struct pasemi_mac *mac = netdev_priv(netdev); local 84 struct phy_device *phydev = mac->phydev; 95 struct pasemi_mac *mac = netdev_priv(netdev); local 96 return mac->msg_enable; 103 struct pasemi_mac *mac = netdev_priv(netdev); local 104 mac->msg_enable = level; 112 struct pasemi_mac *mac = netdev_priv(netdev); local 115 ering->tx_pending = RING_USED(mac 133 struct pasemi_mac *mac = netdev_priv(netdev); local [all...] |
/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | xgmac.c | 41 static inline int macidx(const struct cmac *mac) argument 43 return mac->offset / (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR); 46 static void xaui_serdes_reset(struct cmac *mac) argument 54 struct adapter *adap = mac->adapter; 55 u32 ctrl = A_XGM_SERDES_CTRL0 + mac->offset; 57 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | 70 void t3b_pcs_reset(struct cmac *mac) argument 72 t3_set_reg_field(mac->adapter, A_XGM_RESET_CTRL + mac->offset, 75 t3_set_reg_field(mac 79 t3_mac_reset(struct cmac *mac) argument 150 t3b2_mac_reset(struct cmac *mac) argument 230 set_addr_filter(struct cmac *mac, int idx, const u8 * addr) argument 243 t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]) argument 256 t3_mac_set_num_ucast(struct cmac *mac, int n) argument 264 t3_mac_disable_exact_filters(struct cmac *mac) argument 275 t3_mac_enable_exact_filters(struct cmac *mac) argument 300 t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev) argument 345 t3_mac_set_mtu(struct cmac *mac, unsigned int mtu) argument 428 t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) argument 467 t3_mac_enable(struct cmac *mac, int which) argument 506 t3_mac_disable(struct cmac *mac, int which) argument 532 t3b2_mac_watchdog_task(struct cmac *mac) argument 598 t3_mac_update_stats(struct cmac *mac) argument [all...] |
/drivers/net/ethernet/freescale/fs_enet/ |
H A D | Makefile | 7 fs_enet-$(CONFIG_FS_ENET_HAS_SCC) += mac-scc.o 8 fs_enet-$(CONFIG_FS_ENET_HAS_FEC) += mac-fec.o 9 fs_enet-$(CONFIG_FS_ENET_HAS_FCC) += mac-fcc.o
|
/drivers/net/ethernet/chelsio/cxgb/ |
H A D | vsc7326.c | 85 val |= 0x1; /* Enable mac MAC itself */ 362 static int mac_intr_handler(struct cmac *mac) argument 367 static int mac_intr_enable(struct cmac *mac) argument 372 static int mac_intr_disable(struct cmac *mac) argument 377 static int mac_intr_clear(struct cmac *mac) argument 383 static int mac_set_address(struct cmac* mac, u8 addr[6]) argument 386 int port = mac->instance->index; 388 vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port), 390 vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port), 393 vsc_read(mac 406 mac_get_address(struct cmac *mac, u8 addr[6]) argument 424 mac_reset(struct cmac *mac) argument 434 mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm) argument 451 mac_set_mtu(struct cmac *mac, int mtu) argument 463 mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) argument 532 mac_enable(struct cmac *mac, int which) argument 549 mac_disable(struct cmac *mac, int which) argument 575 rmon_update(struct cmac *mac, unsigned int addr, u64 *stat) argument 590 port_stats_update(struct cmac *mac) argument 643 mac_update_statistics(struct cmac *mac, int flag) argument 664 mac_destroy(struct cmac *mac) argument 688 struct cmac *mac; local [all...] |
/drivers/staging/netlogic/ |
H A D | platform_net.c | 96 int mac; local 120 for (mac = 0; mac < 4; mac++) { 121 ndata1.tx_stnid[mac] = FMN_STNID_GMAC1_TX0 + mac; 122 ndata1.phy_addr[mac] = mac + 4 + 0x10; 124 xlr_resource_init(&xlr_net1_res[mac * 2], 125 xlr_gmac_offsets[mac 135 int mac; local 199 int mac; local [all...] |
/drivers/net/ethernet/intel/e1000e/ |
H A D | mac.c | 34 struct e1000_mac_info *mac = &hw->mac; local 51 mac->ops.set_lan_id(hw); 138 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); 143 hw->mac.ops.rar_set(hw, mac_addr, i); 170 if (hw->mac.type == e1000_82573) 209 hw->mac.ops.rar_set(hw, alt_mac_addr, 0); 216 return hw->mac.rar_entry_count; 270 hash_mask = (hw->mac 416 struct e1000_mac_info *mac = &hw->mac; local 479 struct e1000_mac_info *mac = &hw->mac; local 544 struct e1000_mac_info *mac = &hw->mac; local 741 struct e1000_mac_info *mac = &hw->mac; local 807 struct e1000_mac_info *mac = &hw->mac; local 1021 struct e1000_mac_info *mac = &hw->mac; local 1486 struct e1000_mac_info *mac = &hw->mac; local 1747 struct e1000_mac_info *mac = &hw->mac; local 1773 struct e1000_mac_info *mac = &hw->mac; local [all...] |
H A D | 82571.c | 80 switch (hw->mac.type) { 108 switch (hw->mac.type) { 161 switch (hw->mac.type) { 193 switch (hw->mac.type) { 212 struct e1000_mac_info *mac = &hw->mac; local 223 mac->ops.setup_physical_interface = 225 mac->ops.check_for_link = e1000e_check_for_fiber_link; 226 mac->ops.get_link_up_info = 234 mac 1084 struct e1000_mac_info *mac = &hw->mac; local 1514 struct e1000_mac_info *mac = &hw->mac; local 1817 struct e1000_mac_info *mac = &hw->mac; local [all...] |
H A D | Makefile | 35 mac.o manage.o nvm.o phy.o \
|
/drivers/uwb/i1480/dfu/ |
H A D | Makefile | 5 mac.o \
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_param.c | 335 hw->mac.autoneg = hw->mac.fc_autoneg = 1; 339 hw->mac.link_speed = SPEED_10; 340 hw->mac.link_duplex = DUPLEX_HALF; 347 hw->mac.autoneg = hw->mac.fc_autoneg = 1; 350 hw->mac.link_speed = SPEED_10; 351 hw->mac.link_duplex = DUPLEX_HALF; 358 hw->mac.autoneg = hw->mac [all...] |
/drivers/net/ethernet/intel/igbvf/ |
H A D | vf.c | 49 struct e1000_mac_info *mac = &hw->mac; local 52 mac->mta_reg_count = 128; 54 mac->rar_entry_count = 1; 58 mac->ops.reset_hw = e1000_reset_hw_vf; 60 mac->ops.init_hw = e1000_init_hw_vf; 62 mac->ops.check_for_link = e1000_check_for_link_vf; 64 mac->ops.get_link_up_info = e1000_get_link_up_info_vf; 66 mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_vf; 67 /* set mac addres 353 struct e1000_mac_info *mac = &hw->mac; local [all...] |
/drivers/net/wireless/rtlwifi/ |
H A D | core.c | 156 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 177 mac->link_state = MAC80211_NOLINK; 178 memset(mac->bssid, 0, 6); 179 mac->vendor = PEER_UNKNOWN; 219 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 222 if (mac->vif) { 224 "vif has been set!! mac->vif = 0x%p\n", mac->vif); 235 mac->p2p = P2P_ROLE_CLIENT; 238 if (mac 318 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 416 struct rtl_mac *mac = &rtlpriv->mac80211; local 553 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 578 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 790 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 869 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 960 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 986 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 1294 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 1367 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local 1402 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); local [all...] |
/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac100_core.c | 8 This only implements the mac core functions for this chip. 178 struct mac_device_info *mac; local 180 mac = kzalloc(sizeof(const struct mac_device_info), GFP_KERNEL); 181 if (!mac) 186 mac->pcsr = ioaddr; 187 mac->mac = &dwmac100_ops; 188 mac->dma = &dwmac100_dma_ops; 190 mac->link.port = MAC_CONTROL_PS; 191 mac [all...] |
/drivers/media/common/b2c2/ |
H A D | flexcop-eeprom.c | 61 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[ [all...] |
/drivers/net/wireless/iwlegacy/ |
H A D | Makefile | 9 iwl4965-objs := 4965.o 4965-mac.o 4965-rs.o 4965-calib.o 14 iwl3945-objs := 3945-mac.o 3945.o 3945-rs.o
|
/drivers/net/ethernet/intel/ixgbevf/ |
H A D | vf.c | 57 s32 status = hw->mac.ops.start_hw(hw); 59 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); 80 hw->mac.ops.stop_adapter(hw); 107 * on the mac address in word 3 */ 120 memcpy(hw->mac.perm_addr, addr, ETH_ALEN); 121 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; 148 number_of_queues = hw->mac.max_rx_queues; 166 number_of_queues = hw->mac.max_tx_queues; 194 switch (hw->mac 420 struct ixgbe_mac_info *mac = &hw->mac; local [all...] |
/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_vf.c | 30 u8 *perm_addr = hw->mac.perm_addr; 54 for (i = 0; i < hw->mac.max_queues; i++) { 125 hw->mac.max_queues = i; 210 ether_addr_copy(hw->mac.perm_addr, perm_addr); 211 hw->mac.default_vid = vid & (FM10K_VLAN_TABLE_VID_MAX - 1); 212 hw->mac.vlan_override = !!(vid & FM10K_VLAN_CLEAR); 248 ether_addr_copy(hw->mac.perm_addr, perm_addr); 249 ether_addr_copy(hw->mac.addr, perm_addr); 258 * @mac: MAC address to add/remove from table 267 const u8 *mac, u1 266 fm10k_update_uc_addr_vf(struct fm10k_hw *hw, u16 glort, const u8 *mac, u16 vid, bool add, u8 flags) argument 308 fm10k_update_mc_addr_vf(struct fm10k_hw *hw, u16 glort, const u8 *mac, u16 vid, bool add) argument [all...] |
/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_x540.c | 57 struct ixgbe_mac_info *mac = &hw->mac; local 62 mac->mcft_size = IXGBE_X540_MC_TBL_SIZE; 63 mac->vft_size = IXGBE_X540_VFT_TBL_SIZE; 64 mac->num_rar_entries = IXGBE_X540_RAR_ENTRIES; 65 mac->rx_pb_size = IXGBE_X540_RX_PB_SIZE; 66 mac->max_rx_queues = IXGBE_X540_MAX_RX_QUEUES; 67 mac->max_tx_queues = IXGBE_X540_MAX_TX_QUEUES; 68 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); 101 status = hw->mac [all...] |
/drivers/media/pci/cx23885/ |
H A D | netup-eeprom.h | 25 u8 mac[6];/* card MAC address */ member in struct:netup_port_info
|
/drivers/net/wireless/ath/carl9170/ |
H A D | Makefile | 1 carl9170-objs := main.o usb.o cmd.o mac.o phy.o led.o fw.o tx.o rx.o
|
/drivers/net/wireless/rtlwifi/rtl8192cu/ |
H A D | Makefile | 5 mac.o \
|
/drivers/staging/rtl8712/ |
H A D | sta_info.h | 119 static inline u32 wifi_mac_hash(u8 *mac) argument 123 x = mac[0]; 124 x = (x << 2) ^ mac[1]; 125 x = (x << 2) ^ mac[2]; 126 x = (x << 2) ^ mac[3]; 127 x = (x << 2) ^ mac[4]; 128 x = (x << 2) ^ mac[5];
|