/linux-4.1.27/drivers/net/wireless/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 …]
|
D | zd_mac.h | 152 u8 mac[ETH_ALEN]; member 300 static inline u8 *zd_mac_get_perm_addr(struct zd_mac *mac) in zd_mac_get_perm_addr() argument 302 return mac->hw->wiphy->perm_addr; in zd_mac_get_perm_addr() 305 #define zd_mac_dev(mac) (zd_chip_dev(&(mac)->chip)) argument 308 void zd_mac_clear(struct zd_mac *mac); 319 int zd_restore_settings(struct zd_mac *mac);
|
D | zd_usb.c | 396 struct zd_mac *mac = zd_hw_mac(zd_usb_to_hw(urb->context)); in handle_regs_int() local 397 spin_lock(&mac->lock); in handle_regs_int() 398 memcpy(&mac->intr_buffer, urb->transfer_buffer, in handle_regs_int() 400 spin_unlock(&mac->lock); in handle_regs_int() 401 schedule_work(&mac->process_intr); in handle_regs_int() 1143 struct zd_mac *mac = zd_usb_to_mac(usb); in zd_rx_idle_timer_handler() local 1145 if (!test_bit(ZD_DEVICE_RUNNING, &mac->flags)) in zd_rx_idle_timer_handler() 1327 struct zd_mac *mac = zd_usb_to_mac(usb); in zd_usb_init_hw() local 1345 r = zd_mac_init_hw(mac->hw); in zd_usb_init_hw() 1424 struct zd_mac *mac; in disconnect() local [all …]
|
/linux-4.1.27/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 …]
|
D | common.h | 677 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc); 705 int t3_mac_reset(struct cmac *mac); 706 void t3b_pcs_reset(struct cmac *mac); 707 void t3_mac_disable_exact_filters(struct cmac *mac); 708 void t3_mac_enable_exact_filters(struct cmac *mac); 709 int t3_mac_enable(struct cmac *mac, int which); 710 int t3_mac_disable(struct cmac *mac, int which); 711 int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu); 712 int t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev); 713 int t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]); [all …]
|
D | cxgb3_main.c | 185 t3_set_reg_field(adapter, A_XGM_TXFIFO_CFG + pi->mac.offset, 0, in enable_tx_fifo_drain() 187 t3_write_reg(adapter, A_XGM_RX_CTRL + pi->mac.offset, 0); in enable_tx_fifo_drain() 188 t3_write_reg(adapter, A_XGM_TX_CTRL + pi->mac.offset, F_TXEN); in enable_tx_fifo_drain() 189 t3_write_reg(adapter, A_XGM_RX_CTRL + pi->mac.offset, F_RXEN); in enable_tx_fifo_drain() 195 t3_set_reg_field(adapter, A_XGM_TXFIFO_CFG + pi->mac.offset, in disable_tx_fifo_drain() 208 struct cmac *mac = &pi->mac; in t3_os_link_fault() local 217 pi->mac.offset); in t3_os_link_fault() 219 A_XGM_INT_CAUSE + pi->mac.offset, in t3_os_link_fault() 224 pi->mac.offset, in t3_os_link_fault() 228 t3_mac_enable(mac, MAC_DIRECTION_TX); in t3_os_link_fault() [all …]
|
D | t3_hw.c | 1164 static void t3_gate_rx_traffic(struct cmac *mac, u32 *rx_cfg, in t3_gate_rx_traffic() argument 1168 t3_mac_disable_exact_filters(mac); in t3_gate_rx_traffic() 1171 *rx_cfg = t3_read_reg(mac->adapter, A_XGM_RX_CFG); in t3_gate_rx_traffic() 1172 t3_set_reg_field(mac->adapter, A_XGM_RX_CFG, in t3_gate_rx_traffic() 1176 *rx_hash_high = t3_read_reg(mac->adapter, A_XGM_RX_HASH_HIGH); in t3_gate_rx_traffic() 1177 t3_write_reg(mac->adapter, A_XGM_RX_HASH_HIGH, 0); in t3_gate_rx_traffic() 1179 *rx_hash_low = t3_read_reg(mac->adapter, A_XGM_RX_HASH_LOW); in t3_gate_rx_traffic() 1180 t3_write_reg(mac->adapter, A_XGM_RX_HASH_LOW, 0); in t3_gate_rx_traffic() 1186 static void t3_open_rx_traffic(struct cmac *mac, u32 rx_cfg, in t3_open_rx_traffic() argument 1189 t3_mac_enable_exact_filters(mac); in t3_open_rx_traffic() [all …]
|
/linux-4.1.27/drivers/net/ethernet/pasemi/ |
D | pasemi_mac.c | 99 static unsigned int read_mac_reg(const struct pasemi_mac *mac, unsigned int reg) in read_mac_reg() argument 101 return pasemi_read_mac_reg(mac->dma_if, reg); in read_mac_reg() 104 static void write_mac_reg(const struct pasemi_mac *mac, unsigned int reg, in write_mac_reg() argument 107 pasemi_write_mac_reg(mac->dma_if, reg, val); in write_mac_reg() 120 static struct pasemi_mac_rxring *rx_ring(const struct pasemi_mac *mac) in rx_ring() argument 122 return mac->rx; in rx_ring() 125 static struct pasemi_mac_txring *tx_ring(const struct pasemi_mac *mac) in tx_ring() argument 127 return mac->tx; in tx_ring() 140 static int mac_to_intf(struct pasemi_mac *mac) in mac_to_intf() argument 142 struct pci_dev *pdev = mac->pdev; in mac_to_intf() [all …]
|
D | pasemi_mac_ethtool.c | 70 struct pasemi_mac *mac = netdev_priv(netdev); in pasemi_mac_ethtool_get_settings() local 71 struct phy_device *phydev = mac->phydev; in pasemi_mac_ethtool_get_settings() 83 struct pasemi_mac *mac = netdev_priv(netdev); in pasemi_mac_ethtool_set_settings() local 84 struct phy_device *phydev = mac->phydev; in pasemi_mac_ethtool_set_settings() 95 struct pasemi_mac *mac = netdev_priv(netdev); in pasemi_mac_ethtool_get_msglevel() local 96 return mac->msg_enable; in pasemi_mac_ethtool_get_msglevel() 103 struct pasemi_mac *mac = netdev_priv(netdev); in pasemi_mac_ethtool_set_msglevel() local 104 mac->msg_enable = level; in pasemi_mac_ethtool_set_msglevel() 112 struct pasemi_mac *mac = netdev_priv(netdev); in pasemi_mac_ethtool_get_ringparam() local 115 ering->tx_pending = RING_USED(mac->tx)/2; in pasemi_mac_ethtool_get_ringparam() [all …]
|
/linux-4.1.27/drivers/infiniband/hw/usnic/ |
D | usnic_common_util.h | 23 usnic_mac_to_gid(const char *const mac, char *raw_gid) in usnic_mac_to_gid() argument 28 raw_gid[8] = mac[0]^2; in usnic_mac_to_gid() 29 raw_gid[9] = mac[1]; in usnic_mac_to_gid() 30 raw_gid[10] = mac[2]; in usnic_mac_to_gid() 33 raw_gid[13] = mac[3]; in usnic_mac_to_gid() 34 raw_gid[14] = mac[4]; in usnic_mac_to_gid() 35 raw_gid[15] = mac[5]; in usnic_mac_to_gid() 39 usnic_mac_ip_to_gid(const char *const mac, const __be32 inaddr, char *raw_gid) in usnic_mac_ip_to_gid() argument 45 raw_gid[8] = mac[0]^2; in usnic_mac_ip_to_gid() 46 raw_gid[9] = mac[1]; in usnic_mac_ip_to_gid() [all …]
|
D | usnic_fwd.h | 41 char mac[ETH_ALEN]; member 61 void usnic_fwd_set_mac(struct usnic_fwd_dev *ufdev, char mac[ETH_ALEN]);
|
D | usnic_fwd.c | 91 void usnic_fwd_set_mac(struct usnic_fwd_dev *ufdev, char mac[ETH_ALEN]) in usnic_fwd_set_mac() 94 memcpy(&ufdev->mac, mac, sizeof(ufdev->mac)); in usnic_fwd_set_mac()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/ |
D | vsc7326.c | 362 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 …]
|
D | pm3393.c | 433 #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 …]
|
D | subr.c | 165 struct cmac *mac = adapter->port[port_id].mac; in t1_link_changed() local 167 mac->ops->set_speed_duplex_fc(mac, speed, duplex, fc); in t1_link_changed() 623 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() argument 631 (mac->adapter->params.nports < 2))) in t1_link_start() 645 mac->ops->set_speed_duplex_fc(mac, lc->speed, in t1_link_start() 657 mac->ops->set_speed_duplex_fc(mac, -1, -1, fc); in t1_link_start() 735 struct cmac *mac = adapter->port[0].mac; in t1_elmer0_ext_intr_handler() local 737 mac->ops->interrupt_handler(mac); in t1_elmer0_ext_intr_handler() 770 adapter->port[i].mac->ops->interrupt_enable(adapter->port[i].mac); in t1_interrupts_enable() 800 adapter->port[i].mac->ops->interrupt_disable(adapter->port[i].mac); in t1_interrupts_disable() [all …]
|
D | cxgb2.c | 122 struct cmac *mac = adapter->port[dev->if_port].mac; in t1_set_rxmode() local 126 mac->ops->set_rx_mode(mac, &rm); in t1_set_rxmode() 181 struct cmac *mac = p->mac; in link_start() local 183 mac->ops->reset(mac); in link_start() 184 if (mac->ops->macaddress_set) in link_start() 185 mac->ops->macaddress_set(mac, p->dev->dev_addr); in link_start() 187 t1_link_start(p->phy, mac, &p->link_config); in link_start() 188 mac->ops->enable(mac, MAC_DIRECTION_RX | MAC_DIRECTION_TX); in link_start() 273 struct cmac *mac = p->mac; in cxgb_close() local 277 mac->ops->disable(mac, MAC_DIRECTION_TX | MAC_DIRECTION_RX); in cxgb_close() [all …]
|
/linux-4.1.27/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 …]
|
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/ |
D | mac.c | 34 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 …]
|
D | 82571.c | 80 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 …]
|
D | manage.c | 61 if (!hw->mac.arc_subsystem_valid) { in e1000_mng_enable_host_if() 118 hw->mac.tx_pkt_filtering = true; in e1000e_enable_tx_pkt_filtering() 121 if (!hw->mac.ops.check_mng_mode(hw)) { in e1000e_enable_tx_pkt_filtering() 122 hw->mac.tx_pkt_filtering = false; in e1000e_enable_tx_pkt_filtering() 123 return hw->mac.tx_pkt_filtering; in e1000e_enable_tx_pkt_filtering() 131 hw->mac.tx_pkt_filtering = false; in e1000e_enable_tx_pkt_filtering() 132 return hw->mac.tx_pkt_filtering; in e1000e_enable_tx_pkt_filtering() 150 hw->mac.tx_pkt_filtering = true; in e1000e_enable_tx_pkt_filtering() 151 return hw->mac.tx_pkt_filtering; in e1000e_enable_tx_pkt_filtering() 156 hw->mac.tx_pkt_filtering = false; in e1000e_enable_tx_pkt_filtering() [all …]
|
D | ich8lan.c | 229 if (hw->mac.type < e1000_pch_lpt) { in e1000_phy_is_accessible_pchlan() 240 if ((hw->mac.type == e1000_pch_lpt) || in e1000_phy_is_accessible_pchlan() 241 (hw->mac.type == e1000_pch_spt)) { in e1000_phy_is_accessible_pchlan() 284 if (hw->mac.type < e1000_pch_lpt) { in e1000_toggle_lanphypc_pch_lpt() 331 switch (hw->mac.type) { in e1000_init_phy_workarounds_pchlan() 357 if ((hw->mac.type == e1000_pchlan) && in e1000_init_phy_workarounds_pchlan() 369 if (hw->mac.type >= e1000_pch_lpt) { in e1000_init_phy_workarounds_pchlan() 421 if ((hw->mac.type == e1000_pch2lan) && in e1000_init_phy_workarounds_pchlan() 464 switch (hw->mac.type) { in e1000_init_phy_params_pchlan() 608 if (hw->mac.type == e1000_pch_spt) { in e1000_init_nvm_params_ich8lan() [all …]
|
D | 80003es2lan.c | 135 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_80003es2lan() local 141 mac->ops.check_for_link = e1000e_check_for_serdes_link; in e1000_init_mac_params_80003es2lan() 142 mac->ops.setup_physical_interface = in e1000_init_mac_params_80003es2lan() 147 mac->ops.check_for_link = e1000e_check_for_copper_link; in e1000_init_mac_params_80003es2lan() 148 mac->ops.setup_physical_interface = in e1000_init_mac_params_80003es2lan() 154 mac->mta_reg_count = 128; in e1000_init_mac_params_80003es2lan() 156 mac->rar_entry_count = E1000_RAR_ENTRIES; in e1000_init_mac_params_80003es2lan() 158 mac->has_fwsm = true; in e1000_init_mac_params_80003es2lan() 160 mac->arc_subsystem_valid = !!(er32(FWSM) & E1000_FWSM_MODE_MASK); in e1000_init_mac_params_80003es2lan() 162 mac->adaptive_ifs = false; in e1000_init_mac_params_80003es2lan() [all …]
|
D | ethtool.c | 139 if (hw->mac.autoneg == 1) { in e1000_get_settings() 190 hw->mac.autoneg) ? AUTONEG_ENABLE : AUTONEG_DISABLE; in e1000_get_settings() 209 struct e1000_mac_info *mac = &adapter->hw.mac; in e1000_set_spd_dplx() local 211 mac->autoneg = 0; in e1000_set_spd_dplx() 227 mac->forced_speed_duplex = ADVERTISE_10_HALF; in e1000_set_spd_dplx() 230 mac->forced_speed_duplex = ADVERTISE_10_FULL; in e1000_set_spd_dplx() 233 mac->forced_speed_duplex = ADVERTISE_100_HALF; in e1000_set_spd_dplx() 236 mac->forced_speed_duplex = ADVERTISE_100_FULL; in e1000_set_spd_dplx() 239 mac->autoneg = 1; in e1000_set_spd_dplx() 298 hw->mac.autoneg = 1; in e1000_set_settings() [all …]
|
D | netdev.c | 1166 if ((hw->mac.type == e1000_pchlan) && (er32(CTRL) & E1000_CTRL_TFCE)) in e1000_print_hw_hang() 1774 hw->mac.get_link_status = true; in e1000_intr_msi() 1800 if ((icr & E1000_ICR_ECCER) && ((hw->mac.type == e1000_pch_lpt) || in e1000_intr_msi() 1801 (hw->mac.type == e1000_pch_spt))) { in e1000_intr_msi() 1855 hw->mac.get_link_status = true; in e1000_intr() 1881 if ((icr & E1000_ICR_ECCER) && ((hw->mac.type == e1000_pch_lpt) || in e1000_intr() 1882 (hw->mac.type == e1000_pch_spt))) { in e1000_intr() 1928 hw->mac.get_link_status = true; in e1000_msix_other() 1998 if (hw->mac.type == e1000_82574) { in e1000_configure_msix() 2263 } else if ((hw->mac.type == e1000_pch_lpt) || in e1000_irq_enable() [all …]
|
D | ptp.c | 220 switch (hw->mac.type) { in e1000e_ptp_init() 224 if (((hw->mac.type != e1000_pch_lpt) && in e1000e_ptp_init() 225 (hw->mac.type != e1000_pch_spt)) || in e1000e_ptp_init()
|
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_param.c | 335 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 …]
|
D | pch_gbe_ethtool.c | 128 hw->mac.link_speed = speed; in pch_gbe_set_settings() 129 hw->mac.link_duplex = ecmd->duplex; in pch_gbe_set_settings() 131 hw->mac.autoneg = ecmd->autoneg; in pch_gbe_set_settings() 384 ((hw->mac.fc_autoneg) ? AUTONEG_ENABLE : AUTONEG_DISABLE); in pch_gbe_get_pauseparam() 386 if (hw->mac.fc == PCH_GBE_FC_RX_PAUSE) { in pch_gbe_get_pauseparam() 388 } else if (hw->mac.fc == PCH_GBE_FC_TX_PAUSE) { in pch_gbe_get_pauseparam() 390 } else if (hw->mac.fc == PCH_GBE_FC_FULL) { in pch_gbe_get_pauseparam() 411 hw->mac.fc_autoneg = pause->autoneg; in pch_gbe_set_pauseparam() 413 hw->mac.fc = PCH_GBE_FC_FULL; in pch_gbe_set_pauseparam() 415 hw->mac.fc = PCH_GBE_FC_RX_PAUSE; in pch_gbe_set_pauseparam() [all …]
|
D | pch_gbe_main.c | 301 hw->mac.addr[0] = (u8)(adr1a & 0xFF); in pch_gbe_mac_read_mac_addr() 302 hw->mac.addr[1] = (u8)((adr1a >> 8) & 0xFF); in pch_gbe_mac_read_mac_addr() 303 hw->mac.addr[2] = (u8)((adr1a >> 16) & 0xFF); in pch_gbe_mac_read_mac_addr() 304 hw->mac.addr[3] = (u8)((adr1a >> 24) & 0xFF); in pch_gbe_mac_read_mac_addr() 305 hw->mac.addr[4] = (u8)(adr1b & 0xFF); in pch_gbe_mac_read_mac_addr() 306 hw->mac.addr[5] = (u8)((adr1b >> 8) & 0xFF); in pch_gbe_mac_read_mac_addr() 308 netdev_dbg(adapter->netdev, "hw->mac.addr : %pM\n", hw->mac.addr); in pch_gbe_mac_read_mac_addr() 377 pch_gbe_mac_mar_set(hw, hw->mac.addr, 0); in pch_gbe_mac_reset_hw() 407 pch_gbe_mac_mar_set(hw, hw->mac.addr, 0); in pch_gbe_mac_init_rx_addrs() 467 struct pch_gbe_mac_info *mac = &hw->mac; in pch_gbe_mac_force_mac_fc() local [all …]
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/ |
D | core.c | 176 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_stop() local 197 mac->link_state = MAC80211_NOLINK; in rtl_op_stop() 198 eth_zero_addr(mac->bssid); in rtl_op_stop() 199 mac->vendor = PEER_UNKNOWN; in rtl_op_stop() 239 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_add_interface() local 242 if (mac->vif) { in rtl_op_add_interface() 244 "vif has been set!! mac->vif = 0x%p\n", mac->vif); in rtl_op_add_interface() 255 mac->p2p = P2P_ROLE_CLIENT; in rtl_op_add_interface() 258 if (mac->beacon_enabled == 1) { in rtl_op_add_interface() 261 mac->beacon_enabled = 0; in rtl_op_add_interface() [all …]
|
D | base.c | 587 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_init_rx_config() local 589 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_RCR, (u8 *) (&mac->rx_conf)); in rtl_init_rx_config() 621 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_query_shortgi() local 640 if (mac->opmode == NL80211_IFTYPE_STATION) { in _rtl_query_shortgi() 641 bw_40 = mac->bw_40; in _rtl_query_shortgi() 642 bw_80 = mac->bw_80; in _rtl_query_shortgi() 643 } else if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_query_shortgi() 644 mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl_query_shortgi() 645 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in _rtl_query_shortgi() 698 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl_txrate_selectmode() local [all …]
|
D | rc.c | 100 struct rtl_mac *mac = rtl_mac(rtlpriv); in _rtl_rc_rate_set_series() local 121 if (mac->opmode == NL80211_IFTYPE_AP || in _rtl_rc_rate_set_series() 122 mac->opmode == NL80211_IFTYPE_ADHOC) { in _rtl_rc_rate_set_series() 129 if (mac->bw_40) in _rtl_rc_rate_set_series() 131 if (mac->bw_80) in _rtl_rc_rate_set_series() 175 struct rtl_mac *mac = rtl_mac(rtlpriv); in _rtl_tx_aggr_check() local 177 if (mac->act_scanning) in _rtl_tx_aggr_check() 180 if (mac->opmode == NL80211_IFTYPE_STATION && in _rtl_tx_aggr_check() 181 mac->cnt_after_linked < 3) in _rtl_tx_aggr_check() 197 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl_tx_status() local [all …]
|
D | ps.c | 215 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_ips_nic_off_wq_callback() local 219 if (mac->opmode != NL80211_IFTYPE_STATION) { in rtl_ips_nic_off_wq_callback() 225 if (mac->p2p_in_use) in rtl_ips_nic_off_wq_callback() 228 if (mac->link_state > MAC80211_NOLINK) in rtl_ips_nic_off_wq_callback() 255 (mac->link_state == MAC80211_NOLINK) && in rtl_ips_nic_off_wq_callback() 256 !mac->act_scanning) { in rtl_ips_nic_off_wq_callback() 328 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_get_fwlps_doze() local 341 if (mac->link_state != MAC80211_LINKED) in rtl_get_fwlps_doze() 344 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl_get_fwlps_doze() 354 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_lps_set_psmode() local [all …]
|
/linux-4.1.27/arch/tile/gxio/ |
D | iorpc_trio.c | 113 unsigned int mac; member 119 unsigned int pio_region, unsigned int mac, in gxio_trio_init_pio_region_aux() argument 126 params->mac = mac; in gxio_trio_init_pio_region_aux() 142 unsigned int mac; member 151 unsigned int mac, uint64_t bus_address, in gxio_trio_init_memory_map_mmu_aux() argument 162 params->mac = mac; in gxio_trio_init_memory_map_mmu_aux() 197 unsigned int mac; member 203 unsigned int mac, unsigned int intx) in gxio_trio_config_legacy_intr() argument 212 params->mac = mac; in gxio_trio_config_legacy_intr() 223 unsigned int mac; member [all …]
|
D | iorpc_mpipe_info.c | 38 _gxio_mpipe_link_mac_t mac; member 44 _gxio_mpipe_link_mac_t *mac) in gxio_mpipe_info_enumerate_aux() argument 55 *mac = params->mac; in gxio_mpipe_info_enumerate_aux()
|
D | mpipe.c | 554 _gxio_mpipe_link_mac_t mac; in gxio_mpipe_link_enumerate_mac() local 560 rv = gxio_mpipe_info_enumerate_aux(context, idx, &name, &mac); in gxio_mpipe_link_enumerate_mac() 564 memcpy(link_mac, mac.mac, sizeof(mac.mac)); in gxio_mpipe_link_enumerate_mac() 588 link->mac = rv & 0xFF; in gxio_mpipe_link_open() 597 return gxio_mpipe_link_close_aux(link->context, link->mac); in gxio_mpipe_link_close() 605 return gxio_mpipe_link_set_attr_aux(link->context, link->mac, attr, in gxio_mpipe_link_set_attr()
|
D | iorpc_mpipe.c | 374 int mac; member 377 int gxio_mpipe_link_close_aux(gxio_mpipe_context_t *context, int mac) in gxio_mpipe_link_close_aux() argument 382 params->mac = mac; in gxio_mpipe_link_close_aux() 391 int mac; member 396 int gxio_mpipe_link_set_attr_aux(gxio_mpipe_context_t *context, int mac, in gxio_mpipe_link_set_attr_aux() argument 402 params->mac = mac; in gxio_mpipe_link_set_attr_aux()
|
/linux-4.1.27/arch/tile/kernel/ |
D | pci_gx.c | 151 int mac; in tile_pcie_open() local 215 for (mac = 0; mac < TILEGX_TRIO_PCIES; mac++) { in tile_pcie_open() 220 if (!pcie_ports[trio_index].ports[mac].allow_rc && in tile_pcie_open() 221 !pcie_ports[trio_index].ports[mac].allow_ep) in tile_pcie_open() 229 (mac << TRIO_CFG_REGION_ADDR__MAC_SEL_SHIFT); in tile_pcie_open() 242 pcie_ports[trio_index].ports[mac].allow_ep = 1; in tile_pcie_open() 312 int mac = controller->mac; in trio_handle_level_irq() local 326 (mac << TRIO_CFG_REGION_ADDR__MAC_SEL_SHIFT); in trio_handle_level_irq() 365 irq, controller->mac, i); in tile_init_irqs() 392 strapped_for_rc(gxio_trio_context_t *trio_context, int mac) in strapped_for_rc() argument [all …]
|
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/ |
D | vf.c | 47 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 …]
|
D | netdev.c | 68 .mac = e1000_vfadapt, 75 .mac = e1000_vfadapt_i350, 879 hw->mac.get_link_status = 1; in igbvf_msix_other() 1246 if (hw->mac.ops.set_vfta(hw, vid, true)) { in igbvf_vlan_rx_add_vid() 1260 if (hw->mac.ops.set_vfta(hw, vid, false)) { in igbvf_vlan_rx_kill_vid() 1432 hw->mac.ops.update_mc_addr_list(hw, mta_list, i, 0, 0); in igbvf_set_multi() 1463 struct e1000_mac_info *mac = &adapter->hw.mac; in igbvf_reset() local 1468 if (mac->ops.reset_hw(hw)) in igbvf_reset() 1471 mac->ops.init_hw(hw); in igbvf_reset() 1473 if (is_valid_ether_addr(adapter->hw.mac.addr)) { in igbvf_reset() [all …]
|
/linux-4.1.27/drivers/net/ethernet/intel/igb/ |
D | e1000_mac.c | 177 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in igb_init_rx_addrs() 182 hw->mac.ops.rar_set(hw, mac_addr, i); in igb_init_rx_addrs() 213 if ((hw->mac.type == e1000_i350) || (hw->mac.type == e1000_i354)) in igb_vfta_set() 243 if (hw->mac.type >= e1000_82580) in igb_check_alt_mac_addr() 287 hw->mac.ops.rar_set(hw, alt_mac_addr, 0); in igb_check_alt_mac_addr() 352 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_mta_set() 378 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in igb_hash_mc_addr() 411 switch (hw->mac.mc_filter_type) { in igb_hash_mc_addr() 448 memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow)); in igb_update_mc_addr_list() 454 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_update_mc_addr_list() [all …]
|
D | e1000_82575.c | 88 switch (hw->mac.type) { in igb_sgmii_uses_mdio_82575() 196 switch (hw->mac.type) { in igb_init_phy_params_82575() 258 hw->mac.ops.check_for_link = in igb_init_phy_params_82575() 358 switch (hw->mac.type) { in igb_init_nvm_params_82575() 381 struct e1000_mac_info *mac = &hw->mac; in igb_init_mac_params_82575() local 385 mac->mta_reg_count = 128; in igb_init_mac_params_82575() 387 switch (mac->type) { in igb_init_mac_params_82575() 389 mac->rar_entry_count = E1000_RAR_ENTRIES_82576; in igb_init_mac_params_82575() 392 mac->rar_entry_count = E1000_RAR_ENTRIES_82580; in igb_init_mac_params_82575() 396 mac->rar_entry_count = E1000_RAR_ENTRIES_I350; in igb_init_mac_params_82575() [all …]
|
D | igb_hwmon.c | 62 igb_attr->hw->mac.ops.get_thermal_sensor_data(igb_attr->hw); in igb_hwmon_show_temp() 147 &adapter->hw.mac.thermal_sensor_data.sensor[offset]; in igb_add_hwmon_attr() 181 if (adapter->hw.mac.ops.init_thermal_sensor_thresh == NULL) in igb_sysfs_init() 185 rc = (adapter->hw.mac.ops.init_thermal_sensor_thresh(&adapter->hw)); in igb_sysfs_init() 202 if (adapter->hw.mac.thermal_sensor_data.sensor[i].location == 0) in igb_sysfs_init()
|
D | igb_main.c | 169 static int igb_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac); 715 switch (adapter->hw.mac.type) { in igb_cache_ring_register() 806 switch (hw->mac.type) { in igb_assign_vector() 887 switch (hw->mac.type) { in igb_configure_msix() 1260 if (adapter->hw.mac.type == e1000_82575) in igb_alloc_q_vector() 1289 if (adapter->hw.mac.type >= e1000_82576) in igb_alloc_q_vector() 1295 if (adapter->hw.mac.type >= e1000_i350) in igb_alloc_q_vector() 1758 hw->mac.get_link_status = 1; in igb_up() 1874 struct e1000_mac_info *mac = &hw->mac; in igb_reset() local 1881 switch (mac->type) { in igb_reset() [all …]
|
D | igb_ptp.c | 173 switch (adapter->hw.mac.type) { in igb_ptp_systim_to_hwtstamp() 654 if (hw->mac.type != e1000_82576) in igb_ptp_rx_hang() 858 if (hw->mac.type != e1000_82576) { in igb_ptp_set_timestamp_mode() 869 if (hw->mac.type == e1000_82575) { in igb_ptp_set_timestamp_mode() 879 if ((hw->mac.type >= e1000_82580) && tsync_rx_ctl) { in igb_ptp_set_timestamp_mode() 886 if ((hw->mac.type == e1000_i210) || in igb_ptp_set_timestamp_mode() 887 (hw->mac.type == e1000_i211)) { in igb_ptp_set_timestamp_mode() 929 if (hw->mac.type == e1000_82576) { in igb_ptp_set_timestamp_mode() 982 switch (hw->mac.type) { in igb_ptp_init() 1058 if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) { in igb_ptp_init() [all …]
|
D | igb_ethtool.c | 159 if (hw->mac.autoneg == 1) { in igb_get_settings() 175 if (hw->mac.type == e1000_i354) { in igb_get_settings() 191 if (hw->mac.autoneg == 1) in igb_get_settings() 197 if (hw->mac.autoneg != 1) in igb_get_settings() 238 hw->mac.autoneg) in igb_get_settings() 291 hw->mac.autoneg = 1; in igb_set_settings() 354 struct e1000_mac_info *mac = &adapter->hw.mac; in igb_get_link() local 363 mac->get_link_status = 1; in igb_get_link() 665 if (hw->mac.type > e1000_82580) { in igb_get_regs() 672 if (hw->mac.type != e1000_82576) in igb_get_regs() [all …]
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_x540.c | 56 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X540() local 58 mac->mcft_size = IXGBE_X540_MC_TBL_SIZE; in ixgbe_get_invariants_X540() 59 mac->vft_size = IXGBE_X540_VFT_TBL_SIZE; in ixgbe_get_invariants_X540() 60 mac->num_rar_entries = IXGBE_X540_RAR_ENTRIES; in ixgbe_get_invariants_X540() 61 mac->rx_pb_size = IXGBE_X540_RX_PB_SIZE; in ixgbe_get_invariants_X540() 62 mac->max_rx_queues = IXGBE_X540_MAX_RX_QUEUES; in ixgbe_get_invariants_X540() 63 mac->max_tx_queues = IXGBE_X540_MAX_TX_QUEUES; in ixgbe_get_invariants_X540() 64 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_get_invariants_X540() 96 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X540() 128 if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) { in ixgbe_reset_hw_X540() [all …]
|
D | ixgbe_82599.c | 91 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_82599() local 96 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && in ixgbe_init_mac_link_ops_82599() 98 mac->ops.disable_tx_laser = in ixgbe_init_mac_link_ops_82599() 100 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599() 102 mac->ops.flap_tx_laser = &ixgbe_flap_tx_laser_multispeed_fiber; in ixgbe_init_mac_link_ops_82599() 104 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599() 105 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599() 106 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599() 111 mac->ops.setup_link = &ixgbe_setup_mac_link_multispeed_fiber; in ixgbe_init_mac_link_ops_82599() 113 if ((mac->ops.get_media_type(hw) == in ixgbe_init_mac_link_ops_82599() [all …]
|
D | ixgbe_82598.c | 96 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 …]
|
D | ixgbe_common.c | 77 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_device_supports_autoneg_fc() 143 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, ®_bp); in ixgbe_setup_fc() 219 if (hw->mac.type != ixgbe_mac_X540) { in ixgbe_setup_fc() 245 ret_val = hw->mac.ops.prot_autoc_write(hw, reg_bp, locked); in ixgbe_setup_fc() 274 hw->phy.media_type = hw->mac.ops.get_media_type(hw); in ixgbe_start_hw_generic() 280 hw->mac.ops.clear_vfta(hw); in ixgbe_start_hw_generic() 283 hw->mac.ops.clear_hw_cntrs(hw); in ixgbe_start_hw_generic() 317 for (i = 0; i < hw->mac.max_tx_queues; i++) { in ixgbe_start_hw_gen2() 325 for (i = 0; i < hw->mac.max_tx_queues; i++) { in ixgbe_start_hw_gen2() 333 for (i = 0; i < hw->mac.max_rx_queues; i++) { in ixgbe_start_hw_gen2() [all …]
|
D | ixgbe_fcoe.c | 95 if (hw->mac.type == ixgbe_mac_X550) { in ixgbe_fcoe_ddp_put() 312 if (hw->mac.type == ixgbe_mac_X550) { in ixgbe_fcoe_ddp_setup() 441 if (adapter->hw.mac.type == ixgbe_mac_X550) in ixgbe_fcoe_ddp() 686 if (adapter->hw.mac.type == ixgbe_mac_X550) in ixgbe_configure_fcoe() 690 if (adapter->hw.mac.type == ixgbe_mac_X550) { in ixgbe_configure_fcoe() 745 if (adapter->hw.mac.type == ixgbe_mac_X550) in ixgbe_free_fcoe_ddp_resources() 829 if (adapter->hw.mac.type == ixgbe_mac_X550) in ixgbe_fcoe_ddp_enable() 952 struct ixgbe_mac_info *mac = &adapter->hw.mac; in ixgbe_fcoe_get_wwn() local 956 prefix = mac->wwnn_prefix; in ixgbe_fcoe_get_wwn() 959 prefix = mac->wwpn_prefix; in ixgbe_fcoe_get_wwn() [all …]
|
D | ixgbe_main.c | 841 switch (hw->mac.type) { in ixgbe_set_ivar() 885 switch (adapter->hw.mac.type) { in ixgbe_irq_rearm_queues() 937 switch (hw->mac.type) { in ixgbe_update_xoff_rx_lfc() 976 switch (hw->mac.type) { in ixgbe_update_xoff_received() 1237 switch (hw->mac.type) { in ixgbe_update_tx_dca() 1272 switch (hw->mac.type) { in ixgbe_update_rx_dca() 2173 switch (adapter->hw.mac.type) { in ixgbe_configure_msix() 2284 switch (adapter->hw.mac.type) { in ixgbe_write_eitr() 2373 if (!(eicr & IXGBE_EICR_LSC) && hw->mac.ops.check_link) { in ixgbe_check_overtemp_subtask() 2377 hw->mac.ops.check_link(hw, &speed, &link_up, false); in ixgbe_check_overtemp_subtask() [all …]
|
D | ixgbe_x550.c | 207 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_read_ee_hostif_buffer_X550() 255 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_read_ee_hostif_buffer_X550() 428 if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) == 0) { in ixgbe_read_ee_hostif_X550() 430 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_read_ee_hostif_X550() 528 if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) == 0) { in ixgbe_write_ee_hostif_X550() 530 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_X550() 576 hw->mac.set_lben = true; in ixgbe_disable_rx_x550() 578 hw->mac.set_lben = false; in ixgbe_disable_rx_x550() 656 status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550() 671 hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM); in ixgbe_write_ee_hostif_buffer_X550() [all …]
|
D | ixgbe_sysfs.c | 61 ixgbe_attr->hw->mac.ops.get_thermal_sensor_data(ixgbe_attr->hw); in ixgbe_hwmon_show_temp() 146 &adapter->hw.mac.thermal_sensor_data.sensor[offset]; in ixgbe_add_hwmon_attr() 179 if (adapter->hw.mac.ops.init_thermal_sensor_thresh == NULL) { in ixgbe_sysfs_init() 184 if (adapter->hw.mac.ops.init_thermal_sensor_thresh(&adapter->hw)) in ixgbe_sysfs_init() 200 if (adapter->hw.mac.thermal_sensor_data.sensor[i].location == 0) in ixgbe_sysfs_init()
|
D | ixgbe_sriov.c | 64 num_vf_macvlans = hw->mac.num_rar_entries - in __ixgbe_enable_sriov() 93 if ((adapter->hw.mac.type == ixgbe_mac_82599EB) && in __ixgbe_enable_sriov() 407 return adapter->hw.mac.ops.set_vfta(&adapter->hw, vid, vf, (bool)add); in ixgbe_set_vf_vlan() 423 if (adapter->hw.mac.type == ixgbe_mac_82599EB) { in ixgbe_set_vf_lpe() 537 hw->mac.ops.set_vlan_anti_spoofing(hw, true, vf); in ixgbe_vf_reset_event() 689 if (adapter->hw.mac.type == ixgbe_mac_82599EB) { in ixgbe_vf_reset_msg() 737 msgbuf[3] = hw->mac.mc_filter_type; in ixgbe_vf_reset_msg() 821 hw->mac.ops.set_vlan_anti_spoofing(hw, true, vf); in ixgbe_set_vf_vlan_msg() 1141 int ixgbe_ndo_set_vf_mac(struct net_device *netdev, int vf, u8 *mac) in ixgbe_ndo_set_vf_mac() argument 1144 if (!is_valid_ether_addr(mac) || (vf >= adapter->num_vfs)) in ixgbe_ndo_set_vf_mac() [all …]
|
D | ixgbe_phy.c | 127 if (hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)) in ixgbe_read_i2c_combined_generic() 160 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_read_i2c_combined_generic() 166 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_read_i2c_combined_generic() 301 if (hw->mac.type == ixgbe_mac_82598EB) in ixgbe_check_reset_blocked() 511 if (hw->mac.ops.acquire_swfw_sync(hw, gssr) == 0) { in ixgbe_read_phy_reg_generic() 514 hw->mac.ops.release_swfw_sync(hw, gssr); in ixgbe_read_phy_reg_generic() 614 if (hw->mac.ops.acquire_swfw_sync(hw, gssr) == 0) { in ixgbe_write_phy_reg_generic() 617 hw->mac.ops.release_swfw_sync(hw, gssr); in ixgbe_write_phy_reg_generic() 766 if (hw->mac.type == ixgbe_mac_X550EM_x) in ixgbe_get_copper_link_capabilities_generic() 1046 switch (hw->mac.ops.get_media_type(hw)) { in ixgbe_identify_module_generic() [all …]
|
D | ixgbe_mbx.c | 303 switch (hw->mac.type) { in ixgbe_check_for_rst_pf() 430 if (hw->mac.type != ixgbe_mac_82599EB && in ixgbe_init_mbx_params_pf() 431 hw->mac.type != ixgbe_mac_X550 && in ixgbe_init_mbx_params_pf() 432 hw->mac.type != ixgbe_mac_X550EM_x && in ixgbe_init_mbx_params_pf() 433 hw->mac.type != ixgbe_mac_X540) in ixgbe_init_mbx_params_pf()
|
D | ixgbe_dcb.c | 162 if ((hw->mac.type == ixgbe_mac_82598EB) && in ixgbe_dcb_calculate_tc_credits() 283 switch (hw->mac.type) { in ixgbe_dcb_hw_config() 302 switch (hw->mac.type) { in ixgbe_dcb_hw_pfc_config() 353 switch (hw->mac.type) { in ixgbe_dcb_hw_ets_config() 391 switch (hw->mac.type) { in ixgbe_dcb_read_rtrup2tc()
|
D | ixgbe_ethtool.c | 164 hw->mac.ops.get_link_capabilities(hw, &supported_link, &autoneg); in ixgbe_get_settings() 282 hw->mac.ops.check_link(hw, &link_speed, &link_up, false); in ixgbe_get_settings() 348 hw->mac.autotry_restart = true; in ixgbe_set_settings() 349 err = hw->mac.ops.setup_link(hw, advertised, true); in ixgbe_set_settings() 352 hw->mac.ops.setup_link(hw, old, true); in ixgbe_set_settings() 397 if ((hw->mac.type == ixgbe_mac_82598EB) && in ixgbe_set_pauseparam() 459 regs->version = hw->mac.type << 24 | hw->revision_id << 16 | in ixgbe_get_regs() 507 switch (hw->mac.type) { in ixgbe_get_regs() 608 switch (hw->mac.type) { in ixgbe_get_regs() 1259 hw->mac.ops.check_link(hw, &link_speed, &link_up, true); in ixgbe_link_test() [all …]
|
D | ixgbe_ptp.c | 127 (hw->mac.type == ixgbe_mac_X540)) { in ixgbe_ptp_setup_sdp() 236 switch (hw->mac.type) { in ixgbe_ptp_adjfreq() 347 switch (adapter->hw.mac.type) { in ixgbe_ptp_feature_enable() 386 switch (hw->mac.type) { in ixgbe_ptp_check_pps_event() 648 if (hw->mac.type == ixgbe_mac_82598EB) { in ixgbe_ptp_set_timestamp_mode() 768 switch (hw->mac.type) { in ixgbe_ptp_start_cyclecounter() 861 switch (adapter->hw.mac.type) { in ixgbe_ptp_create_clock()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/ |
D | vf.c | 56 s32 status = hw->mac.ops.start_hw(hw); in ixgbevf_init_hw_vf() 58 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbevf_init_hw_vf() 79 hw->mac.ops.stop_adapter(hw); in ixgbevf_reset_hw_vf() 120 ether_addr_copy(hw->mac.perm_addr, addr); in ixgbevf_reset_hw_vf() 121 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; in ixgbevf_reset_hw_vf() 147 number_of_queues = hw->mac.max_rx_queues; in ixgbevf_stop_hw_vf() 165 number_of_queues = hw->mac.max_tx_queues; in ixgbevf_stop_hw_vf() 193 switch (hw->mac.mc_filter_type) { in ixgbevf_mta_vector() 222 ether_addr_copy(mac_addr, hw->mac.perm_addr); in ixgbevf_get_mac_addr_vf() 289 hw->mac.type >= ixgbe_mac_X550_vf) in ixgbevf_get_reta_locked() [all …]
|
D | ixgbevf_main.c | 1270 hw->mac.get_link_status = 1; in ixgbevf_msix_other() 1785 if (hw->mac.type >= ixgbe_mac_X550_vf) in ixgbevf_configure_rx() 1808 err = hw->mac.ops.set_vfta(hw, vid, 0, true); in ixgbevf_vlan_rx_add_vid() 1834 err = hw->mac.ops.set_vfta(hw, vid, 0, false); in ixgbevf_vlan_rx_kill_vid() 1867 hw->mac.ops.set_uc_addr(hw, ++count, ha->addr); in ixgbevf_write_uc_addr_list() 1874 hw->mac.ops.set_uc_addr(hw, 0, NULL); in ixgbevf_write_uc_addr_list() 1897 hw->mac.ops.update_mc_addr_list(hw, netdev); in ixgbevf_set_rx_mode() 2060 if (is_valid_ether_addr(hw->mac.addr)) in ixgbevf_up_complete() 2061 hw->mac.ops.set_rar(hw, 0, hw->mac.addr, 0); in ixgbevf_up_complete() 2063 hw->mac.ops.set_rar(hw, 0, hw->mac.perm_addr, 0); in ixgbevf_up_complete() [all …]
|
/linux-4.1.27/drivers/media/common/b2c2/ |
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[2]; [all …]
|
D | flexcop-hw-filter.c | 24 void flexcop_set_mac_filter(struct flexcop_device *fc, u8 mac[6]) in flexcop_set_mac_filter() 29 v418.mac_address_418.MAC1 = mac[0]; in flexcop_set_mac_filter() 30 v418.mac_address_418.MAC2 = mac[1]; in flexcop_set_mac_filter() 31 v418.mac_address_418.MAC3 = mac[2]; in flexcop_set_mac_filter() 32 v418.mac_address_418.MAC6 = mac[3]; in flexcop_set_mac_filter() 33 v41c.mac_address_41c.MAC7 = mac[4]; in flexcop_set_mac_filter() 34 v41c.mac_address_41c.MAC8 = mac[5]; in flexcop_set_mac_filter()
|
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac100_core.c | 178 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 …]
|
D | dwmac1000_core.c | 421 struct mac_device_info *mac; in dwmac1000_setup() local 424 mac = kzalloc(sizeof(const struct mac_device_info), GFP_KERNEL); in dwmac1000_setup() 425 if (!mac) in dwmac1000_setup() 428 mac->pcsr = ioaddr; in dwmac1000_setup() 429 mac->multicast_filter_bins = mcbins; in dwmac1000_setup() 430 mac->unicast_filter_entries = perfect_uc_entries; in dwmac1000_setup() 431 mac->mcast_bits_log2 = 0; in dwmac1000_setup() 433 if (mac->multicast_filter_bins) in dwmac1000_setup() 434 mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins); in dwmac1000_setup() 436 mac->mac = &dwmac1000_ops; in dwmac1000_setup() [all …]
|
D | stmmac_platform.c | 127 const char **mac) in stmmac_probe_config_dt() argument 157 *mac = of_get_mac_address(np); in stmmac_probe_config_dt() 258 const char **mac) in stmmac_probe_config_dt() argument 279 const char *mac = NULL; in stmmac_pltfr_probe() local 335 ret = stmmac_probe_config_dt(pdev, plat_dat, &mac); in stmmac_pltfr_probe() 368 if (mac) in stmmac_pltfr_probe() 369 memcpy(priv->dev->dev_addr, mac, ETH_ALEN); in stmmac_pltfr_probe()
|
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_vf.c | 30 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf() 54 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf() 125 hw->mac.max_queues = i; in fm10k_init_hw_vf() 128 hw->mac.default_vid = (fm10k_read_reg(hw, FM10K_TXQCTL(0)) & in fm10k_init_hw_vf() 214 ether_addr_copy(hw->mac.perm_addr, perm_addr); in fm10k_msg_mac_vlan_vf() 215 hw->mac.default_vid = vid & (FM10K_VLAN_TABLE_VID_MAX - 1); in fm10k_msg_mac_vlan_vf() 216 hw->mac.vlan_override = !!(vid & FM10K_VLAN_CLEAR); in fm10k_msg_mac_vlan_vf() 252 ether_addr_copy(hw->mac.perm_addr, perm_addr); in fm10k_read_mac_addr_vf() 253 ether_addr_copy(hw->mac.addr, perm_addr); in fm10k_read_mac_addr_vf() 271 const u8 *mac, u16 vid, bool add, u8 flags) in fm10k_update_uc_addr_vf() argument [all …]
|
D | fm10k_netdev.c | 364 u16 mask = (~hw->mac.dglort_map) >> FM10K_DGLORTMAP_MASK_SHIFT; in fm10k_request_glort_range() 367 interface->glort = hw->mac.dglort_map & FM10K_DGLORTMAP_NONE; in fm10k_request_glort_range() 371 if (hw->mac.dglort_map == FM10K_DGLORTMAP_NONE) in fm10k_request_glort_range() 425 if (hw->mac.type != fm10k_mac_pf) in fm10k_restore_vxlan_port() 455 if (interface->hw.mac.type != fm10k_mac_pf) in fm10k_add_vxlan_port() 497 if (interface->hw.mac.type != fm10k_mac_pf) in fm10k_del_vxlan_port() 727 err = hw->mac.ops.update_uc_addr(hw, glort, uc_addr, vid, set, 0); in fm10k_uc_vlan_unsync() 748 err = hw->mac.ops.update_mc_addr(hw, glort, mc_addr, vid, set); in fm10k_mc_vlan_unsync() 770 if (hw->mac.vlan_override) in fm10k_update_vid() 779 if (vid == hw->mac.default_vid) in fm10k_update_vid() [all …]
|
D | fm10k_pf.c | 125 (hw->mac.default_vid << FM10K_TXQCTL_VID_SHIFT); in fm10k_init_hw_pf() 179 hw->mac.max_queues = FM10K_MAX_QUEUES_PF; in fm10k_init_hw_pf() 292 hw->mac.perm_addr[i] = perm_addr[i]; in fm10k_read_mac_addr_pf() 293 hw->mac.addr[i] = perm_addr[i]; in fm10k_read_mac_addr_pf() 308 glort &= hw->mac.dglort_map >> FM10K_DGLORTMAP_MASK_SHIFT; in fm10k_glort_valid_pf() 310 return glort == (hw->mac.dglort_map & FM10K_DGLORTMAP_NONE); in fm10k_glort_valid_pf() 326 const u8 *mac, u16 vid, bool add, u8 flags) in fm10k_update_xc_addr_pf() argument 340 mac_update.mac_lower = cpu_to_le32(((u32)mac[2] << 24) | in fm10k_update_xc_addr_pf() 341 ((u32)mac[3] << 16) | in fm10k_update_xc_addr_pf() 342 ((u32)mac[4] << 8) | in fm10k_update_xc_addr_pf() [all …]
|
D | fm10k_common.c | 170 struct fm10k_mac_info *mac = &hw->mac; in fm10k_get_invariants_generic() local 173 mac->dglort_map = FM10K_DGLORTMAP_NONE; in fm10k_get_invariants_generic() 176 mac->max_msix_vectors = fm10k_get_pcie_msix_count_generic(hw); in fm10k_get_invariants_generic() 191 hw->mac.tx_ready = true; in fm10k_start_hw_generic() 208 hw->mac.tx_ready = false; in fm10k_disable_queues_generic() 255 return fm10k_disable_queues_generic(hw, hw->mac.max_queues); in fm10k_stop_hw_generic() 490 struct fm10k_mac_info *mac = &hw->mac; in fm10k_get_host_state_generic() local 499 mac->get_host_state = true; in fm10k_get_host_state_generic() 502 if (!mac->get_host_state || !(~txdctl)) in fm10k_get_host_state_generic() 506 if (hw->mac.tx_ready && !(txdctl & FM10K_TXDCTL_ENABLE)) { in fm10k_get_host_state_generic() [all …]
|
D | fm10k_pci.c | 166 err = hw->mac.ops.reset_hw(hw) ? : hw->mac.ops.init_hw(hw); in fm10k_reinit() 214 if (hw->mac.type != fm10k_mac_pf) in fm10k_configure_swpri_map() 249 err = hw->mac.ops.get_host_state(hw, &interface->host_ready); in fm10k_watchdog_update_host_state() 360 hw->mac.ops.update_hw_stats(hw, &interface->stats); in fm10k_update_stats() 362 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_update_stats() 664 ring->vid = hw->mac.default_vid; in fm10k_configure_rx_ring() 750 hw->mac.ops.configure_dglort_map(hw, &dglort); in fm10k_configure_dglort() 759 hw->mac.ops.configure_dglort_map(hw, &dglort); in fm10k_configure_dglort() 772 hw->mac.ops.configure_dglort_map(hw, &dglort); in fm10k_configure_dglort() 835 hw->mac.get_host_state = 1; in fm10k_msix_mbx_vf() [all …]
|
D | fm10k_iov.c | 209 dglort.glort = hw->mac.dglort_map & FM10K_DGLORTMAP_NONE; in fm10k_iov_resume() 217 hw->mac.ops.configure_dglort_map(hw, &dglort); in fm10k_iov_resume() 224 if (i == ((~hw->mac.dglort_map) >> FM10K_DGLORTMAP_MASK_SHIFT)) in fm10k_iov_resume() 232 vf_info->sw_vid = hw->mac.default_vid; in fm10k_iov_resume() 249 u16 vf_idx = (glort - hw->mac.dglort_map) & FM10K_DGLORTMAP_NONE; in fm10k_iov_update_pvid() 403 int fm10k_ndo_set_vf_mac(struct net_device *netdev, int vf_idx, u8 *mac) in fm10k_ndo_set_vf_mac() argument 415 if (!is_zero_ether_addr(mac) && !is_valid_ether_addr(mac)) in fm10k_ndo_set_vf_mac() 420 ether_addr_copy(vf_info->mac, mac); in fm10k_ndo_set_vf_mac() 462 hw->mac.ops.update_vlan(hw, FM10K_VLAN_ALL, vf_info->vsi, false); in fm10k_ndo_set_vf_vlan() 512 ether_addr_copy(ivi->mac, vf_info->mac); in fm10k_ndo_get_vf_config()
|
D | fm10k_ethtool.c | 76 FM10K_STAT("mac_rules_used", hw.swapi.mac.used), 77 FM10K_STAT("mac_rules_avail", hw.swapi.mac.avail), 146 if (interface->hw.mac.type != fm10k_mac_vf) in fm10k_get_strings() 153 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_strings() 177 stats_len += FM10K_QUEUE_STATS_LEN(hw->mac.max_queues); in fm10k_get_sset_count() 179 if (hw->mac.type != fm10k_mac_vf) in fm10k_get_sset_count() 213 if (interface->hw.mac.type != fm10k_mac_vf) in fm10k_get_ethtool_stats() 221 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_ethtool_stats() 305 switch (hw->mac.type) { in fm10k_get_regs() 355 if (i < hw->mac.max_queues) in fm10k_get_regs() [all …]
|
/linux-4.1.27/arch/arm64/crypto/ |
D | aes-ce-ccm-glue.c | 33 asmlinkage void ce_aes_ccm_auth_data(u8 mac[], u8 const in[], u32 abytes, 37 u32 const rk[], u32 rounds, u8 mac[], 41 u32 const rk[], u32 rounds, u8 mac[], 44 asmlinkage void ce_aes_ccm_final(u8 mac[], u8 const ctr[], u32 const rk[], 106 static void ccm_calculate_auth_mac(struct aead_request *req, u8 mac[]) in ccm_calculate_auth_mac() argument 125 ce_aes_ccm_auth_data(mac, (u8 *)<ag, ltag.len, &macp, ctx->key_enc, in ccm_calculate_auth_mac() 138 ce_aes_ccm_auth_data(mac, p, n, &macp, ctx->key_enc, in ccm_calculate_auth_mac() 154 u8 __aligned(8) mac[AES_BLOCK_SIZE]; in ccm_encrypt() 159 err = ccm_init_mac(req, mac, len); in ccm_encrypt() 166 ccm_calculate_auth_mac(req, mac); in ccm_encrypt() [all …]
|
/linux-4.1.27/drivers/staging/rtl8712/ |
D | usb_intf.c | 413 u8 mac[6]; in r871xu_drv_init() local 462 if (!r8712_initmac || !mac_pton(r8712_initmac, mac)) { in r871xu_drv_init() 466 ether_addr_copy(mac, &pdata[0x12]); in r871xu_drv_init() 559 if (((mac[0] == 0xff) && (mac[1] == 0xff) && in r871xu_drv_init() 560 (mac[2] == 0xff) && (mac[3] == 0xff) && in r871xu_drv_init() 561 (mac[4] == 0xff) && (mac[5] == 0xff)) || in r871xu_drv_init() 562 ((mac[0] == 0x00) && (mac[1] == 0x00) && in r871xu_drv_init() 563 (mac[2] == 0x00) && (mac[3] == 0x00) && in r871xu_drv_init() 564 (mac[4] == 0x00) && (mac[5] == 0x00)) || in r871xu_drv_init() 566 mac[0] = 0x00; in r871xu_drv_init() [all …]
|
D | sta_info.h | 119 static inline u32 wifi_mac_hash(u8 *mac) in wifi_mac_hash() argument 123 x = mac[0]; in wifi_mac_hash() 124 x = (x << 2) ^ mac[1]; in wifi_mac_hash() 125 x = (x << 2) ^ mac[2]; in wifi_mac_hash() 126 x = (x << 2) ^ mac[3]; in wifi_mac_hash() 127 x = (x << 2) ^ mac[4]; in wifi_mac_hash() 128 x = (x << 2) ^ mac[5]; in wifi_mac_hash()
|
/linux-4.1.27/fs/nls/ |
D | Makefile | 45 obj-$(CONFIG_NLS_MAC_CELTIC) += mac-celtic.o 46 obj-$(CONFIG_NLS_MAC_CENTEURO) += mac-centeuro.o 47 obj-$(CONFIG_NLS_MAC_CROATIAN) += mac-croatian.o 48 obj-$(CONFIG_NLS_MAC_CYRILLIC) += mac-cyrillic.o 49 obj-$(CONFIG_NLS_MAC_GAELIC) += mac-gaelic.o 50 obj-$(CONFIG_NLS_MAC_GREEK) += mac-greek.o 51 obj-$(CONFIG_NLS_MAC_ICELAND) += mac-iceland.o 52 obj-$(CONFIG_NLS_MAC_INUIT) += mac-inuit.o 53 obj-$(CONFIG_NLS_MAC_ROMANIAN) += mac-romanian.o 54 obj-$(CONFIG_NLS_MAC_ROMAN) += mac-roman.o [all …]
|
/linux-4.1.27/include/scsi/fc/ |
D | fc_fcoe.h | 98 static inline void fc_fcoe_set_mac(u8 *mac, u8 *did) in fc_fcoe_set_mac() argument 100 mac[0] = (u8) (FC_FCOE_OUI >> 16); in fc_fcoe_set_mac() 101 mac[1] = (u8) (FC_FCOE_OUI >> 8); in fc_fcoe_set_mac() 102 mac[2] = (u8) FC_FCOE_OUI; in fc_fcoe_set_mac() 103 mac[3] = did[0]; in fc_fcoe_set_mac() 104 mac[4] = did[1]; in fc_fcoe_set_mac() 105 mac[5] = did[2]; in fc_fcoe_set_mac()
|
/linux-4.1.27/Documentation/devicetree/bindings/net/ |
D | moxa,moxart-mac.txt | 5 - compatible : Must be "moxa,moxart-mac" 7 - interrupts : Should contain the mac interrupt number 11 mac0: mac@90900000 { 12 compatible = "moxa,moxart-mac"; 17 mac1: mac@92000000 { 18 compatible = "moxa,moxart-mac";
|
D | keystone-netcp.txt | 98 - mac<->mac auto negotiate mode: 0 99 - mac<->phy mode: 1 100 - mac<->mac forced mode: 2 101 - mac<->fiber mode: 3 102 - mac<->phy mode with no mdio: 4 103 - 10Gb mac<->phy mode : 10 104 - 10Gb mac<->mac forced mode : 11 132 - efuse-mac: If this is 1, then the MAC address for the interface is 133 obtained from the device efuse mac address register 134 - local-mac-address: the driver is designed to use the of_get_mac_address api [all …]
|
D | micrel-ks8851.txt | 1 Micrel KS8851 Ethernet mac (MLL) 8 Micrel KS8851 Ethernet mac (SPI) 16 - vdd-supply: analog 3.3V supply for Ethernet mac 17 - vdd-io-supply: digital 1.8V IO supply for Ethernet mac
|
D | cpsw.txt | 37 - mac-address : See ethernet.txt file in the same directory 47 mac: ethernet@4A100000 { 67 mac-address = [ 00 00 00 00 00 00 ]; 73 mac-address = [ 00 00 00 00 00 00 ]; 78 mac: ethernet@4A100000 { 96 mac-address = [ 00 00 00 00 00 00 ]; 102 mac-address = [ 00 00 00 00 00 00 ];
|
D | cavium-pip.txt | 57 local-mac-address = [ 00 0f b7 10 63 60 ]; 63 local-mac-address = [ 00 0f b7 10 63 61 ]; 69 local-mac-address = [ 00 0f b7 10 63 62 ]; 75 local-mac-address = [ 00 0f b7 10 63 63 ]; 89 local-mac-address = [ 00 0f b7 10 63 64 ];
|
D | hisilicon-hip04-net.txt | 6 - compatible: should be "hisilicon,hip04-mac". 65 compatible = "hisilicon,hip04-mac"; 73 compatible = "hisilicon,hip04-mac"; 82 compatible = "hisilicon,hip04-mac";
|
D | samsung-sxgbe.txt | 26 - mac-address: 6 bytes, mac address 49 mac-address = [ 00 11 22 33 44 55 ]; /* Filled in by U-Boot */
|
D | amd-xgbe.txt | 26 - mac-address: mac address to be assigned to the device. Can be overridden 46 mac-address = [ 02 a1 a2 a3 a4 a5 ];
|
D | hisilicon-hix5hd2-gmac.txt | 13 - mac-address: see ethernet.txt [1]. 30 mac-address = [00 00 00 00 00 00];
|
D | ethernet.txt | 3 - local-mac-address: array of 6 bytes, specifies the MAC address that was 5 - mac-address: array of 6 bytes, specifies the MAC address that was last used by 7 the device by the boot program is different from the "local-mac-address"
|
D | brcm,systemport.txt | 9 - local-mac-address: Ethernet MAC address (48 bits) of this adapter 25 local-mac-address = [ 00 11 22 33 44 55 ];
|
/linux-4.1.27/drivers/net/wireless/ath/wil6210/ |
D | txrx.h | 412 struct vring_tx_mac mac; member 417 struct vring_rx_mac mac; member 428 return WIL_GET_BITS(d->mac.d0, 0, 3); in wil_rxdesc_tid() 433 return WIL_GET_BITS(d->mac.d0, 4, 6); in wil_rxdesc_cid() 438 return WIL_GET_BITS(d->mac.d0, 8, 9); in wil_rxdesc_mid() 443 return WIL_GET_BITS(d->mac.d0, 10, 11); in wil_rxdesc_ftype() 448 return WIL_GET_BITS(d->mac.d0, 12, 15); in wil_rxdesc_subtype() 453 return WIL_GET_BITS(d->mac.d0, 16, 27); in wil_rxdesc_seq() 458 return WIL_GET_BITS(d->mac.d0, 28, 31); in wil_rxdesc_ext_subtype() 463 return WIL_GET_BITS(d->mac.d1, 8, 9); in wil_rxdesc_ds_bits() [all …]
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
D | flowring.c | 51 brcmf_flowring_is_tdls_mac(struct brcmf_flowring *flow, u8 mac[ETH_ALEN]) in brcmf_flowring_is_tdls_mac() 58 if (memcmp(search->mac, mac, ETH_ALEN) == 0) in brcmf_flowring_is_tdls_mac() 76 u8 *mac; in brcmf_flowring_lookup() local 80 mac = da; in brcmf_flowring_lookup() 82 mac = (u8 *)ALLFFMAC; in brcmf_flowring_lookup() 90 BRCMF_FLOWRING_HASH_AP(mac, fifo, ifidx); in brcmf_flowring_lookup() 94 if ((sta || (memcmp(hash[hash_idx].mac, mac, ETH_ALEN) == 0)) && in brcmf_flowring_lookup() 119 u8 *mac; in brcmf_flowring_create() local 123 mac = da; in brcmf_flowring_create() 125 mac = (u8 *)ALLFFMAC; in brcmf_flowring_create() [all …]
|
D | flowring.h | 24 u8 mac[ETH_ALEN]; member 44 u8 mac[ETH_ALEN]; member
|
/linux-4.1.27/arch/tile/include/gxio/ |
D | iorpc_trio.h | 67 unsigned int pio_region, unsigned int mac, 74 unsigned int mac, uint64_t bus_address, 83 unsigned int mac, unsigned int intx); 87 unsigned int mac, unsigned int mem_map, 93 uint16_t mrs, unsigned int mac); 95 int gxio_trio_force_rc_link_up(gxio_trio_context_t *context, unsigned int mac); 97 int gxio_trio_force_ep_link_up(gxio_trio_context_t *context, unsigned int mac);
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8821ae/ |
D | fw.c | 609 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_set_fw_ap_off_load_cmd() local 613 SET_H2CCMD_AP_OFFLOAD_HIDDEN(u1_apoffload_parm, mac->hiddenssid); in rtl8821ae_set_fw_ap_off_load_cmd() 1455 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl8812ae_set_fw_rsvdpagepkt() local 1473 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl8812ae_set_fw_rsvdpagepkt() 1474 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt() 1485 SET_80211_PS_POLL_AID(p_pspoll, (mac->assoc_id | 0xc000)); in rtl8812ae_set_fw_rsvdpagepkt() 1486 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt() 1487 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl8812ae_set_fw_rsvdpagepkt() 1496 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl8812ae_set_fw_rsvdpagepkt() 1497 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl8812ae_set_fw_rsvdpagepkt() [all …]
|
D | trx.c | 303 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in translate_rx_signal_stuff() local 323 (ether_addr_equal(mac->bssid, in translate_rx_signal_stuff() 613 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl8821ae_sc_mapping() local 620 if (mac->cur_80_prime_sc == in rtl8821ae_sc_mapping() 624 else if (mac->cur_80_prime_sc == in rtl8821ae_sc_mapping() 632 if ((mac->cur_40_prime_sc == in rtl8821ae_sc_mapping() 634 (mac->cur_80_prime_sc == in rtl8821ae_sc_mapping() 638 else if ((mac->cur_40_prime_sc == in rtl8821ae_sc_mapping() 640 (mac->cur_80_prime_sc == in rtl8821ae_sc_mapping() 644 else if ((mac->cur_40_prime_sc == in rtl8821ae_sc_mapping() [all …]
|
D | sw.c | 94 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_init_sw_vars() local 108 mac->ht_enable = true; in rtl8821ae_init_sw_vars() 109 mac->ht_cur_stbc = 0; in rtl8821ae_init_sw_vars() 110 mac->ht_stbc_cap = 0; in rtl8821ae_init_sw_vars() 111 mac->vht_cur_ldpc = 0; in rtl8821ae_init_sw_vars() 112 mac->vht_ldpc_cap = 0; in rtl8821ae_init_sw_vars() 113 mac->vht_cur_stbc = 0; in rtl8821ae_init_sw_vars() 114 mac->vht_stbc_cap = 0; in rtl8821ae_init_sw_vars()
|
D | dm.c | 601 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl8821ae_dm_find_minimum_rssi() local 604 if ((mac->link_state < MAC80211_LINKED) && in rtl8821ae_dm_find_minimum_rssi() 610 if (mac->link_state >= MAC80211_LINKED) { in rtl8821ae_dm_find_minimum_rssi() 611 if (mac->opmode == NL80211_IFTYPE_AP || in rtl8821ae_dm_find_minimum_rssi() 612 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl8821ae_dm_find_minimum_rssi() 676 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_dm_check_rssi_monitor() local 694 if (mac->opmode == NL80211_IFTYPE_AP || in rtl8821ae_dm_check_rssi_monitor() 695 mac->opmode == NL80211_IFTYPE_ADHOC || in rtl8821ae_dm_check_rssi_monitor() 696 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in rtl8821ae_dm_check_rssi_monitor() 734 if (mac->mode == WIRELESS_MODE_AC_24G || in rtl8821ae_dm_check_rssi_monitor() [all …]
|
D | hw.c | 414 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_get_hw_reg() local 429 *((u8 *)(val)) = mac->slot_time; in rtl8821ae_get_hw_reg() 492 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8821ae_set_hw_reg() local 576 mac->min_space_cfg = ((mac->min_space_cfg & in rtl8821ae_set_hw_reg() 584 mac->min_space_cfg); in rtl8821ae_set_hw_reg() 587 mac->min_space_cfg); in rtl8821ae_set_hw_reg() 594 mac->min_space_cfg |= (density_to_set << 3); in rtl8821ae_set_hw_reg() 598 mac->min_space_cfg); in rtl8821ae_set_hw_reg() 601 mac->min_space_cfg); in rtl8821ae_set_hw_reg() 637 (union aci_aifsn *)(&mac->ac[0].aifs); in rtl8821ae_set_hw_reg() [all …]
|
/linux-4.1.27/drivers/net/ethernet/altera/ |
D | altera_tse.h | 493 u32 csrrd32(void __iomem *mac, size_t offs) in csrrd32() argument 495 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd32() 500 u16 csrrd16(void __iomem *mac, size_t offs) in csrrd16() argument 502 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd16() 507 u8 csrrd8(void __iomem *mac, size_t offs) in csrrd8() argument 509 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrrd8() 514 void csrwr32(u32 val, void __iomem *mac, size_t offs) in csrwr32() argument 516 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrwr32() 522 void csrwr16(u16 val, void __iomem *mac, size_t offs) in csrwr16() argument 524 void __iomem *paddr = (void __iomem *)((uintptr_t)mac + offs); in csrwr16() [all …]
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192se/ |
D | dm.c | 75 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92s_dm_check_edca_turbo() local 82 u32 edca_be_ul = edca_setting_ul[mac->vendor]; in _rtl92s_dm_check_edca_turbo() 83 u32 edca_be_dl = edca_setting_dl[mac->vendor]; in _rtl92s_dm_check_edca_turbo() 84 u32 edca_gmode = edca_setting_dl_gmode[mac->vendor]; in _rtl92s_dm_check_edca_turbo() 86 if (mac->link_state != MAC80211_LINKED) { in _rtl92s_dm_check_edca_turbo() 108 if (mac->mode == WIRELESS_MODE_G || in _rtl92s_dm_check_edca_turbo() 109 mac->mode == WIRELESS_MODE_B) in _rtl92s_dm_check_edca_turbo() 125 if (mac->mode == WIRELESS_MODE_G || in _rtl92s_dm_check_edca_turbo() 126 mac->mode == WIRELESS_MODE_B) in _rtl92s_dm_check_edca_turbo() 232 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92s_dm_refresh_rateadaptive_mask() local [all …]
|
D | fw.c | 591 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92s_set_fw_pwrmode_cmd() local 604 mac->vif->bss_conf.beacon_int); in rtl92s_set_fw_pwrmode_cmd() 612 max_wakeup_period = mac->vif->bss_conf.beacon_int; in rtl92s_set_fw_pwrmode_cmd() 614 max_wakeup_period = mac->vif->bss_conf.beacon_int * in rtl92s_set_fw_pwrmode_cmd() 615 mac->vif->bss_conf.dtim_period; in rtl92s_set_fw_pwrmode_cmd() 635 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92s_set_fw_joinbss_report_cmd() local 640 joinbss_rpt.bssid[0] = mac->bssid[0]; in rtl92s_set_fw_joinbss_report_cmd() 641 joinbss_rpt.bssid[1] = mac->bssid[1]; in rtl92s_set_fw_joinbss_report_cmd() 642 joinbss_rpt.bssid[2] = mac->bssid[2]; in rtl92s_set_fw_joinbss_report_cmd() 643 joinbss_rpt.bssid[3] = mac->bssid[3]; in rtl92s_set_fw_joinbss_report_cmd() [all …]
|
D | hw.c | 92 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92se_set_hw_reg() local 155 reg_tmp = (mac->cur_40_prime_sc) << 5; in rtl92se_set_hw_reg() 179 mac->min_space_cfg = in rtl92se_set_hw_reg() 180 ((mac->min_space_cfg & 0xf8) | in rtl92se_set_hw_reg() 187 mac->min_space_cfg); in rtl92se_set_hw_reg() 190 mac->min_space_cfg); in rtl92se_set_hw_reg() 198 mac->min_space_cfg = rtlpriv->rtlhal.minspace_cfg; in rtl92se_set_hw_reg() 199 mac->min_space_cfg |= (density_to_set << 3); in rtl92se_set_hw_reg() 203 mac->min_space_cfg); in rtl92se_set_hw_reg() 206 mac->min_space_cfg); in rtl92se_set_hw_reg() [all …]
|
D | trx.c | 224 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92se_translate_rx_signal_stuff() local 243 ether_addr_equal(mac->bssid, in _rtl92se_translate_rx_signal_stuff() 346 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92se_tx_fill_desc() local 366 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl92se_tx_fill_desc() 367 bw_40 = mac->bw_40; in rtl92se_tx_fill_desc() 368 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl92se_tx_fill_desc() 369 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92se_tx_fill_desc() 446 mac->cur_40_prime_sc); in rtl92se_tx_fill_desc()
|
/linux-4.1.27/include/linux/mlx4/ |
D | driver.h | 88 u64 mac = 0; in mlx4_mac_to_u64() local 92 mac <<= 8; in mlx4_mac_to_u64() 93 mac |= addr[i]; in mlx4_mac_to_u64() 95 return mac; in mlx4_mac_to_u64()
|
/linux-4.1.27/drivers/net/ethernet/ibm/ |
D | ibmveth.h | 50 #define h_register_logical_lan(ua, buflst, rxq, fltlst, mac) \ argument 51 plpar_hcall_norets(H_REGISTER_LOGICAL_LAN, ua, buflst, rxq, fltlst, mac) 90 #define h_multicast_ctrl(ua, cmd, mac) \ argument 91 plpar_hcall_norets(H_MULTICAST_CTRL, ua, cmd, mac) 93 #define h_change_logical_lan_mac(ua, mac) \ argument 94 plpar_hcall_norets(H_CHANGE_LOGICAL_LAN_MAC, ua, mac)
|
/linux-4.1.27/include/rdma/ |
D | ib_addr.h | 275 static inline void rdma_get_ll_mac(struct in6_addr *addr, u8 *mac) in rdma_get_ll_mac() argument 277 memcpy(mac, &addr->s6_addr[8], 3); in rdma_get_ll_mac() 278 memcpy(mac + 3, &addr->s6_addr[13], 3); in rdma_get_ll_mac() 279 mac[0] ^= 2; in rdma_get_ll_mac() 287 static inline void rdma_get_mcast_mac(struct in6_addr *addr, u8 *mac) in rdma_get_mcast_mac() argument 291 mac[0] = 0x33; in rdma_get_mcast_mac() 292 mac[1] = 0x33; in rdma_get_mcast_mac() 294 mac[i] = addr->s6_addr[i + 10]; in rdma_get_mcast_mac()
|
/linux-4.1.27/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_platform.c | 32 const char **mac) in sxgbe_probe_config_dt() argument 40 *mac = of_get_mac_address(np); in sxgbe_probe_config_dt() 65 const char **mac) in sxgbe_probe_config_dt() argument 87 const char *mac = NULL; in sxgbe_platform_probe() local 104 ret = sxgbe_probe_config_dt(pdev, plat_dat, &mac); in sxgbe_platform_probe() 125 if (mac) in sxgbe_platform_probe() 126 ether_addr_copy(priv->dev->dev_addr, mac); in sxgbe_platform_probe()
|
D | sxgbe_main.c | 90 priv->hw->mac->set_eee_mode(priv->ioaddr); in sxgbe_enable_eee_mode() 96 priv->hw->mac->reset_eee_mode(priv->ioaddr); in sxgbe_disable_eee_mode() 141 priv->hw->mac->set_eee_timer(priv->ioaddr, in sxgbe_eee_init() 160 priv->hw->mac->set_eee_pls(priv->ioaddr, priv->phydev->link); in sxgbe_eee_adjust() 237 priv->hw->mac->set_speed(priv->ioaddr, speed); in sxgbe_adjust_link() 885 rval = priv->hw->mac->get_hw_feature(priv->ioaddr, 0); in sxgbe_get_hw_features() 902 rval = priv->hw->mac->get_hw_feature(priv->ioaddr, 1); in sxgbe_get_hw_features() 917 rval = priv->hw->mac->get_hw_feature(priv->ioaddr, 2); in sxgbe_get_hw_features() 940 priv->hw->mac->get_umac_addr((void __iomem *) in sxgbe_check_ether_addr() 1101 priv->hw->mac->set_umac_addr(priv->ioaddr, dev->dev_addr, 0); in sxgbe_open() [all …]
|
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
D | bna_tx_rx.c | 278 bna_bfi_ucast_req(struct bna_rxf *rxf, struct bna_mac *mac, in bna_bfi_ucast_req() argument 286 memcpy(&req->mac_addr, &mac->addr, sizeof(mac_t)); in bna_bfi_ucast_req() 293 bna_bfi_mcast_add_req(struct bna_rxf *rxf, struct bna_mac *mac) in bna_bfi_mcast_add_req() argument 302 memcpy(&req->mac_addr, &mac->addr, sizeof(mac_t)); in bna_bfi_mcast_add_req() 449 struct bna_mac *mac; in bna_rxf_mcmac_get() local 453 mac = (struct bna_mac *)qe; in bna_rxf_mcmac_get() 454 if (BNA_MAC_IS_EQUAL(&mac->addr, mac_addr)) in bna_rxf_mcmac_get() 455 return mac; in bna_rxf_mcmac_get() 459 mac = (struct bna_mac *)qe; in bna_rxf_mcmac_get() 460 if (BNA_MAC_IS_EQUAL(&mac->addr, mac_addr)) in bna_rxf_mcmac_get() [all …]
|
D | cna.h | 47 typedef struct mac { u8 mac[ETH_ALEN]; } mac_t; member
|
/linux-4.1.27/arch/mips/boot/dts/cavium-octeon/ |
D | octeon_3xxx.dts | 206 local-mac-address = [ 00 00 00 00 00 00 ]; 218 local-mac-address = [ 00 00 00 00 00 00 ]; 237 local-mac-address = [ 00 00 00 00 00 00 ]; 244 local-mac-address = [ 00 00 00 00 00 00 ]; 251 local-mac-address = [ 00 00 00 00 00 00 ]; 258 local-mac-address = [ 00 00 00 00 00 00 ]; 265 local-mac-address = [ 00 00 00 00 00 00 ]; 270 local-mac-address = [ 00 00 00 00 00 00 ]; 275 local-mac-address = [ 00 00 00 00 00 00 ]; 280 local-mac-address = [ 00 00 00 00 00 00 ]; [all …]
|
D | octeon_68xx.dts | 250 local-mac-address = [ 00 00 00 00 00 00 ]; 269 local-mac-address = [ 00 00 00 00 00 00 ]; 275 local-mac-address = [ 00 00 00 00 00 00 ]; 281 local-mac-address = [ 00 00 00 00 00 00 ]; 287 local-mac-address = [ 00 00 00 00 00 00 ]; 301 local-mac-address = [ 00 00 00 00 00 00 ]; 307 local-mac-address = [ 00 00 00 00 00 00 ]; 313 local-mac-address = [ 00 00 00 00 00 00 ]; 319 local-mac-address = [ 00 00 00 00 00 00 ]; 333 local-mac-address = [ 00 00 00 00 00 00 ]; [all …]
|
/linux-4.1.27/net/llc/ |
D | llc_s_ac.c | 60 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_ui() 83 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_xid_c() 137 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_test_c()
|
D | llc_if.c | 89 memcpy(daddr.mac, dmac, sizeof(daddr.mac)); in llc_establish_connection() 90 memcpy(laddr.mac, lmac, sizeof(laddr.mac)); in llc_establish_connection()
|
D | llc_sap.c | 244 memcpy(ev->saddr.mac, skb->dev->dev_addr, IFHWADDRLEN); in llc_build_and_send_test_pkt() 245 memcpy(ev->daddr.mac, dmac, IFHWADDRLEN); in llc_build_and_send_test_pkt() 270 memcpy(ev->saddr.mac, skb->dev->dev_addr, IFHWADDRLEN); in llc_build_and_send_xid_pkt() 271 memcpy(ev->daddr.mac, dmac, IFHWADDRLEN); in llc_build_and_send_xid_pkt() 305 ether_addr_equal(llc->laddr.mac, laddr->mac); in llc_dgram_match() 425 llc_pdu_decode_da(skb, laddr.mac); in llc_sap_handler() 428 if (is_multicast_ether_addr(laddr.mac)) { in llc_sap_handler()
|
D | llc_c_ac.c | 210 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_disc_cmd_p_set_x() 237 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_dm_rsp_f_set_p() 261 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_dm_rsp_f_set_1() 295 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_frmr_rsp_f_set_x() 322 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_frmr_rsp_f_set_0() 352 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_frmr_rsp_f_set_p() 373 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_cmd_p_set_1() 390 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_cmd_p_set_0() 407 rc = llc_mac_hdr_init(skb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_i_xxx_x_set_0() 439 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() [all …]
|
/linux-4.1.27/drivers/net/ethernet/freescale/fs_enet/ |
D | mac-scc.c | 190 static void set_multicast_one(struct net_device *dev, const u8 * mac) in set_multicast_one() argument 196 taddrh = ((u16) mac[5] << 8) | mac[4]; in set_multicast_one() 197 taddrm = ((u16) mac[3] << 8) | mac[2]; in set_multicast_one() 198 taddrl = ((u16) mac[1] << 8) | mac[0]; in set_multicast_one() 251 const unsigned char *mac; in restart() local 313 mac = dev->dev_addr; in restart() 314 paddrh = ((u16) mac[5] << 8) | mac[4]; in restart() 315 paddrm = ((u16) mac[3] << 8) | mac[2]; in restart() 316 paddrl = ((u16) mac[1] << 8) | mac[0]; in restart()
|
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
|
D | mac-fcc.c | 197 static void set_multicast_one(struct net_device *dev, const u8 *mac) in set_multicast_one() argument 203 taddrh = ((u16)mac[5] << 8) | mac[4]; in set_multicast_one() 204 taddrm = ((u16)mac[3] << 8) | mac[2]; in set_multicast_one() 205 taddrl = ((u16)mac[1] << 8) | mac[0]; in set_multicast_one() 257 const unsigned char *mac; in restart() local 333 mac = dev->dev_addr; in restart() 334 paddrh = ((u16)mac[5] << 8) | mac[4]; in restart() 335 paddrm = ((u16)mac[3] << 8) | mac[2]; in restart() 336 paddrl = ((u16)mac[1] << 8) | mac[0]; in restart()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192cu/ |
D | hw.c | 824 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92cu_init_wmac_setting() local 826 mac->rx_conf = (RCR_APM | RCR_AM | RCR_ADF | RCR_AB | RCR_APPFCS | in _rtl92cu_init_wmac_setting() 829 rtl_write_dword(rtlpriv, REG_RCR, mac->rx_conf); in _rtl92cu_init_wmac_setting() 974 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _update_mac_setting() local 976 mac->rx_conf = rtl_read_dword(rtlpriv, REG_RCR); in _update_mac_setting() 977 mac->rx_mgt_filter = rtl_read_word(rtlpriv, REG_RXFLTMAP0); in _update_mac_setting() 978 mac->rx_ctrl_filter = rtl_read_word(rtlpriv, REG_RXFLTMAP1); in _update_mac_setting() 979 mac->rx_data_filter = rtl_read_word(rtlpriv, REG_RXFLTMAP2); in _update_mac_setting() 986 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92cu_hw_init() local 1038 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ETHER_ADDR, mac->mac_addr); in rtl92cu_hw_init() [all …]
|
D | dm.c | 41 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92cu_dm_dynamic_txpower() local 52 if ((mac->link_state < MAC80211_LINKED) && in rtl92cu_dm_dynamic_txpower() 63 if (mac->link_state >= MAC80211_LINKED) { in rtl92cu_dm_dynamic_txpower() 64 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92cu_dm_dynamic_txpower()
|
D | mac.c | 236 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_set_key() local 294 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92c_set_key() 295 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in rtl92c_set_key() 315 if (mac->opmode == NL80211_IFTYPE_AP || in rtl92c_set_key() 316 mac->opmode == NL80211_IFTYPE_MESH_POINT) in rtl92c_set_key() 346 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92c_set_key() 408 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_set_qos() local 412 u4b_ac_param = (u32) mac->ac[aci].aifs; in rtl92c_set_qos() 414 ((u32) le16_to_cpu(mac->ac[aci].cw_min) & 0xF) << in rtl92c_set_qos() 417 ((u32) le16_to_cpu(mac->ac[aci].cw_max) & 0xF) << in rtl92c_set_qos() [all …]
|
D | phy.c | 310 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92cu_phy_set_bw_mode_callback() local 332 (reg_prsr_rsc & 0x90) | (mac->cur_40_prime_sc << 5); in rtl92cu_phy_set_bw_mode_callback() 350 (mac->cur_40_prime_sc >> 1)); in rtl92cu_phy_set_bw_mode_callback() 351 rtl_set_bbreg(hw, ROFDM1_LSTF, 0xC00, mac->cur_40_prime_sc); in rtl92cu_phy_set_bw_mode_callback() 354 (mac->cur_40_prime_sc == in rtl92cu_phy_set_bw_mode_callback() 420 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92cu_phy_set_rf_power_state() local 449 if (mac->link_state == MAC80211_LINKED) { in _rtl92cu_phy_set_rf_power_state()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723be/ |
D | fw.c | 405 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_set_fw_rsvdpagepkt() local 422 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl8723be_set_fw_rsvdpagepkt() 423 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() 430 SET_80211_PS_POLL_AID(p_pspoll, (mac->assoc_id | 0xc000)); in rtl8723be_set_fw_rsvdpagepkt() 431 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() 432 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl8723be_set_fw_rsvdpagepkt() 441 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() 442 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl8723be_set_fw_rsvdpagepkt() 443 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() 452 SET_80211_HDR_ADDRESS1(p_probersp, mac->bssid); in rtl8723be_set_fw_rsvdpagepkt() [all …]
|
D | dm.c | 284 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl8723be_dm_find_minimum_rssi() local 287 if ((mac->link_state < MAC80211_LINKED) && in rtl8723be_dm_find_minimum_rssi() 293 if (mac->link_state >= MAC80211_LINKED) { in rtl8723be_dm_find_minimum_rssi() 294 if (mac->opmode == NL80211_IFTYPE_AP || in rtl8723be_dm_find_minimum_rssi() 295 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl8723be_dm_find_minimum_rssi() 399 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_dm_dig() local 407 if (mac->act_scanning) in rtl8723be_dm_dig() 411 bfirstconnect = (mac->link_state >= MAC80211_LINKED) && in rtl8723be_dm_dig() 413 bfirstdisconnect = (mac->link_state < MAC80211_LINKED) && in rtl8723be_dm_dig() 420 if (mac->link_state >= MAC80211_LINKED) { in rtl8723be_dm_dig() [all …]
|
D | hw.c | 412 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_set_hw_reg() local 448 if (!mac->ht_enable) in rtl8723be_set_hw_reg() 495 mac->min_space_cfg = ((mac->min_space_cfg & 0xf8) | in rtl8723be_set_hw_reg() 502 mac->min_space_cfg); in rtl8723be_set_hw_reg() 505 mac->min_space_cfg); in rtl8723be_set_hw_reg() 513 mac->min_space_cfg |= (density_to_set << 3); in rtl8723be_set_hw_reg() 517 mac->min_space_cfg); in rtl8723be_set_hw_reg() 520 mac->min_space_cfg); in rtl8723be_set_hw_reg() 573 (union aci_aifsn *)(&(mac->ac[0].aifs)); in rtl8723be_set_hw_reg() 695 (u2btmp | mac->assoc_id)); in rtl8723be_set_hw_reg() [all …]
|
D | trx.c | 217 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl8723be_translate_rx_signal_stuff() local 236 (ether_addr_equal(mac->bssid, (fc & IEEE80211_FCTL_TODS) ? in _rtl8723be_translate_rx_signal_stuff() 431 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_tx_fill_desc() local 448 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl8723be_tx_fill_desc() 449 bw_40 = mac->bw_40; in rtl8723be_tx_fill_desc() 450 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl8723be_tx_fill_desc() 451 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl8723be_tx_fill_desc() 529 SET_TX_DESC_TX_SUB_CARRIER(pdesc, mac->cur_40_prime_sc); in rtl8723be_tx_fill_desc() 571 if (mac->rdg_en) { in rtl8723be_tx_fill_desc()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723ae/ |
D | fw.c | 412 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723e_set_fw_rsvdpagepkt() local 428 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl8723e_set_fw_rsvdpagepkt() 429 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl8723e_set_fw_rsvdpagepkt() 436 SET_80211_PS_POLL_AID(p_pspoll, (mac->assoc_id | 0xc000)); in rtl8723e_set_fw_rsvdpagepkt() 437 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl8723e_set_fw_rsvdpagepkt() 438 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl8723e_set_fw_rsvdpagepkt() 447 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl8723e_set_fw_rsvdpagepkt() 448 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl8723e_set_fw_rsvdpagepkt() 449 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl8723e_set_fw_rsvdpagepkt() 458 SET_80211_HDR_ADDRESS1(p_probersp, mac->bssid); in rtl8723e_set_fw_rsvdpagepkt() [all …]
|
D | dm.c | 292 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723e_dm_initial_gain_multi_sta() local 297 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl8723e_dm_initial_gain_multi_sta() 432 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723e_dm_ctrl_initgain_by_twoport() local 436 if (mac->act_scanning) in rtl8723e_dm_ctrl_initgain_by_twoport() 439 if (mac->link_state >= MAC80211_LINKED) in rtl8723e_dm_ctrl_initgain_by_twoport() 470 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723e_dm_dynamic_txpower() local 481 if ((mac->link_state < MAC80211_LINKED) && in rtl8723e_dm_dynamic_txpower() 492 if (mac->link_state >= MAC80211_LINKED) { in rtl8723e_dm_dynamic_txpower() 493 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl8723e_dm_dynamic_txpower() 570 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723e_dm_check_edca_turbo() local [all …]
|
D | hw.c | 155 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723e_set_hw_reg() local 199 if (!mac->ht_enable) in rtl8723e_set_hw_reg() 226 reg_tmp = (mac->cur_40_prime_sc) << 5; in rtl8723e_set_hw_reg() 244 mac->min_space_cfg = ((mac->min_space_cfg & in rtl8723e_set_hw_reg() 252 mac->min_space_cfg); in rtl8723e_set_hw_reg() 255 mac->min_space_cfg); in rtl8723e_set_hw_reg() 263 mac->min_space_cfg |= (density_to_set << 3); in rtl8723e_set_hw_reg() 267 mac->min_space_cfg); in rtl8723e_set_hw_reg() 270 mac->min_space_cfg); in rtl8723e_set_hw_reg() 332 (union aci_aifsn *)(&mac->ac[0].aifs); in rtl8723e_set_hw_reg() [all …]
|
D | trx.c | 244 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in translate_rx_signal_stuff() local 261 (ether_addr_equal(mac->bssid, (fc & IEEE80211_FCTL_TODS) ? in translate_rx_signal_stuff() 370 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723e_tx_fill_desc() local 395 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl8723e_tx_fill_desc() 396 bw_40 = mac->bw_40; in rtl8723e_tx_fill_desc() 397 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl8723e_tx_fill_desc() 398 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl8723e_tx_fill_desc() 455 mac->cur_40_prime_sc); in rtl8723e_tx_fill_desc() 499 if (mac->rdg_en) { in rtl8723e_tx_fill_desc()
|
/linux-4.1.27/drivers/net/wireless/ath/carl9170/ |
D | mac.c | 258 const u32 reg, const u8 *mac) in carl9170_set_mac_reg() argument 262 if (!mac) in carl9170_set_mac_reg() 263 mac = zero; in carl9170_set_mac_reg() 267 carl9170_regwrite(reg, get_unaligned_le32(mac)); in carl9170_set_mac_reg() 268 carl9170_regwrite(reg + 4, get_unaligned_le16(mac + 4)); in carl9170_set_mac_reg() 276 const u8 *mac) in carl9170_mod_virtual_mac() argument 282 AR9170_MAC_REG_ACK_TABLE + (id - 1) * 8, mac); in carl9170_mod_virtual_mac() 474 int carl9170_upload_key(struct ar9170 *ar, const u8 id, const u8 *mac, in carl9170_upload_key() argument 482 mac = mac ? : bcast; in carl9170_upload_key() 487 memcpy(&key.macAddr, mac, ETH_ALEN); in carl9170_upload_key()
|
D | rx.c | 290 struct ar9170_rx_head *head, struct ar9170_rx_macstatus *mac, in carl9170_rx_mac_status() argument 299 error = mac->error; in carl9170_rx_mac_status() 322 decrypt = ar9170_get_decrypt_type(mac); in carl9170_rx_mac_status() 358 switch (mac->status & AR9170_RX_STATUS_MODULATION) { in carl9170_rx_mac_status() 360 if (mac->status & AR9170_RX_STATUS_SHORT_PREAMBLE) in carl9170_rx_mac_status() 700 struct ar9170_rx_macstatus *mac; in carl9170_rx_untie_data() local 709 if (unlikely(len < sizeof(*mac))) in carl9170_rx_untie_data() 714 mpdu_len = len - sizeof(*mac); in carl9170_rx_untie_data() 716 mac = (void *)(buf + mpdu_len); in carl9170_rx_untie_data() 717 mac_status = mac->status; in carl9170_rx_untie_data() [all …]
|
/linux-4.1.27/drivers/net/wireless/ath/ |
D | key.c | 88 u16 entry, const u8 *mac) in ath_hw_keysetmac() argument 100 if (mac != NULL) { in ath_hw_keysetmac() 108 if (mac[0] & 0x01) in ath_hw_keysetmac() 111 macLo = get_unaligned_le32(mac); in ath_hw_keysetmac() 112 macHi = get_unaligned_le16(mac + 4); in ath_hw_keysetmac() 131 const u8 *mac) in ath_hw_set_keycache_entry() argument 220 (void) ath_hw_keysetmac(common, entry, mac); in ath_hw_set_keycache_entry() 333 (void) ath_hw_keysetmac(common, entry, mac); in ath_hw_set_keycache_entry() 479 const u8 *mac = NULL; in ath_key_config() local 513 mac = gmac; in ath_key_config() [all …]
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ce/ |
D | dm.c | 44 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_dm_dynamic_txpower() local 55 if ((mac->link_state < MAC80211_LINKED) && in rtl92ce_dm_dynamic_txpower() 66 if (mac->link_state >= MAC80211_LINKED) { in rtl92ce_dm_dynamic_txpower() 67 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92ce_dm_dynamic_txpower()
|
D | hw.c | 156 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_set_hw_reg() local 200 if (!mac->ht_enable) in rtl92ce_set_hw_reg() 226 reg_tmp = (mac->cur_40_prime_sc) << 5; in rtl92ce_set_hw_reg() 244 mac->min_space_cfg = ((mac->min_space_cfg & in rtl92ce_set_hw_reg() 252 mac->min_space_cfg); in rtl92ce_set_hw_reg() 255 mac->min_space_cfg); in rtl92ce_set_hw_reg() 263 mac->min_space_cfg |= (density_to_set << 3); in rtl92ce_set_hw_reg() 267 mac->min_space_cfg); in rtl92ce_set_hw_reg() 270 mac->min_space_cfg); in rtl92ce_set_hw_reg() 333 (union aci_aifsn *)(&(mac->ac[0].aifs)); in rtl92ce_set_hw_reg() [all …]
|
D | trx.c | 299 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92ce_translate_rx_signal_stuff() local 319 ether_addr_equal(mac->bssid, in _rtl92ce_translate_rx_signal_stuff() 430 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_tx_fill_desc() local 456 sta = get_sta(hw, mac->vif, mac->bssid); in rtl92ce_tx_fill_desc() 457 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl92ce_tx_fill_desc() 458 bw_40 = mac->bw_40; in rtl92ce_tx_fill_desc() 459 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl92ce_tx_fill_desc() 460 mac->opmode == NL80211_IFTYPE_ADHOC || in rtl92ce_tx_fill_desc() 461 mac->opmode == NL80211_IFTYPE_MESH_POINT) { in rtl92ce_tx_fill_desc() 514 mac->cur_40_prime_sc); in rtl92ce_tx_fill_desc() [all …]
|
D | phy.c | 321 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_phy_set_bw_mode_callback() local 346 (reg_prsr_rsc & 0x90) | (mac->cur_40_prime_sc << 5); in rtl92ce_phy_set_bw_mode_callback() 366 (mac->cur_40_prime_sc >> 1)); in rtl92ce_phy_set_bw_mode_callback() 367 rtl_set_bbreg(hw, ROFDM1_LSTF, 0xC00, mac->cur_40_prime_sc); in rtl92ce_phy_set_bw_mode_callback() 371 (mac->cur_40_prime_sc == in rtl92ce_phy_set_bw_mode_callback() 464 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92ce_phy_set_rf_power_state() local 493 if (mac->link_state == MAC80211_LINKED) { in _rtl92ce_phy_set_rf_power_state()
|
/linux-4.1.27/arch/mips/bcm63xx/ |
D | nvram.c | 85 int bcm63xx_nvram_get_mac_address(u8 *mac) in bcm63xx_nvram_get_mac_address() argument 95 memcpy(mac, nvram.mac_addr_base, ETH_ALEN); in bcm63xx_nvram_get_mac_address() 96 oui = mac + ETH_ALEN/2 - 1; in bcm63xx_nvram_get_mac_address() 100 u8 *p = mac + ETH_ALEN - 1; in bcm63xx_nvram_get_mac_address()
|
/linux-4.1.27/drivers/net/ethernet/micrel/ |
D | ks8842.c | 366 u16 mac; in ks8842_read_mac_addr() local 377 mac = ks8842_read16(adapter, 2, REG_MARL); in ks8842_read_mac_addr() 378 ks8842_write16(adapter, 39, mac, REG_MACAR3); in ks8842_read_mac_addr() 379 mac = ks8842_read16(adapter, 2, REG_MARM); in ks8842_read_mac_addr() 380 ks8842_write16(adapter, 39, mac, REG_MACAR2); in ks8842_read_mac_addr() 381 mac = ks8842_read16(adapter, 2, REG_MARH); in ks8842_read_mac_addr() 382 ks8842_write16(adapter, 39, mac, REG_MACAR1); in ks8842_read_mac_addr() 386 mac = ks8842_read16(adapter, 2, REG_MARL); in ks8842_read_mac_addr() 387 ks8842_write16(adapter, 39, mac, REG_MACAR1); in ks8842_read_mac_addr() 388 mac = ks8842_read16(adapter, 2, REG_MARM); in ks8842_read_mac_addr() [all …]
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/ |
D | fw.c | 504 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88e_set_fw_ap_off_load_cmd() local 508 SET_H2CCMD_AP_OFFLOAD_HIDDEN(u1_apoffload_parm, mac->hiddenssid); in rtl88e_set_fw_ap_off_load_cmd() 636 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88e_set_fw_rsvdpagepkt() local 652 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl88e_set_fw_rsvdpagepkt() 653 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl88e_set_fw_rsvdpagepkt() 660 SET_80211_PS_POLL_AID(p_pspoll, (mac->assoc_id | 0xc000)); in rtl88e_set_fw_rsvdpagepkt() 661 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl88e_set_fw_rsvdpagepkt() 662 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl88e_set_fw_rsvdpagepkt() 671 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl88e_set_fw_rsvdpagepkt() 672 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl88e_set_fw_rsvdpagepkt() [all …]
|
D | hw.c | 369 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_set_hw_reg() local 410 if (!mac->ht_enable) in rtl88ee_set_hw_reg() 459 mac->min_space_cfg = ((mac->min_space_cfg & in rtl88ee_set_hw_reg() 467 mac->min_space_cfg); in rtl88ee_set_hw_reg() 470 mac->min_space_cfg); in rtl88ee_set_hw_reg() 477 mac->min_space_cfg |= (density_to_set << 3); in rtl88ee_set_hw_reg() 481 mac->min_space_cfg); in rtl88ee_set_hw_reg() 484 mac->min_space_cfg); in rtl88ee_set_hw_reg() 537 (union aci_aifsn *)(&(mac->ac[0].aifs)); in rtl88ee_set_hw_reg() 708 mac->assoc_id)); in rtl88ee_set_hw_reg() [all …]
|
D | dm.c | 491 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88e_dm_dig() local 503 if (mac->act_scanning == true) in rtl88e_dm_dig() 506 if (mac->link_state >= MAC80211_LINKED) in rtl88e_dm_dig() 518 bfirstconnect = ((mac->link_state >= MAC80211_LINKED) ? true : false) && in rtl88e_dm_dig() 524 if (mac->link_state >= MAC80211_LINKED) { in rtl88e_dm_dig() 616 ((mac->link_state >= MAC80211_LINKED) ? true : false); in rtl88e_dm_dig() 636 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_dm_dynamic_txpower() local 647 if ((mac->link_state < MAC80211_LINKED) && in rtl92c_dm_dynamic_txpower() 658 if (mac->link_state >= MAC80211_LINKED) { in rtl92c_dm_dynamic_txpower() 659 if (mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92c_dm_dynamic_txpower() [all …]
|
D | trx.c | 300 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl88ee_translate_rx_signal_stuff() local 318 (ether_addr_equal(mac->bssid, ieee80211_has_tods(fc) ? in _rtl88ee_translate_rx_signal_stuff() 506 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_tx_fill_desc() local 523 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl88ee_tx_fill_desc() 524 bw_40 = mac->bw_40; in rtl88ee_tx_fill_desc() 525 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl88ee_tx_fill_desc() 526 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl88ee_tx_fill_desc() 605 mac->cur_40_prime_sc); in rtl88ee_tx_fill_desc() 654 if (mac->rdg_en) { in rtl88ee_tx_fill_desc()
|
/linux-4.1.27/drivers/net/ethernet/amd/ |
D | au1000_eth.c | 292 u32 *const mii_control_reg = &aup->mac->mii_control; in au1000_mdio_read() 293 u32 *const mii_data_reg = &aup->mac->mii_data; in au1000_mdio_read() 325 u32 *const mii_control_reg = &aup->mac->mii_control; in au1000_mdio_write() 326 u32 *const mii_data_reg = &aup->mac->mii_data; in au1000_mdio_write() 393 reg = readl(&aup->mac->control); in au1000_hard_stop() 395 writel(reg, &aup->mac->control); in au1000_hard_stop() 407 reg = readl(&aup->mac->control); in au1000_enable_rx_tx() 409 writel(reg, &aup->mac->control); in au1000_enable_rx_tx() 452 reg = readl(&aup->mac->control); in au1000_adjust_link() 460 writel(reg, &aup->mac->control); in au1000_adjust_link() [all …]
|
/linux-4.1.27/drivers/net/wireless/rt2x00/ |
D | rt2x00config.c | 33 const u8 *mac, const u8 *bssid) in rt2x00lib_config_intf() argument 63 memset(conf.mac, 0, sizeof(conf.mac)); in rt2x00lib_config_intf() 64 if (mac) in rt2x00lib_config_intf() 65 memcpy(conf.mac, mac, ETH_ALEN); in rt2x00lib_config_intf() 72 if (mac || (!rt2x00dev->intf_ap_count && !rt2x00dev->intf_sta_count)) in rt2x00lib_config_intf()
|
/linux-4.1.27/drivers/media/usb/dvb-usb/ |
D | nova-t-usb2.c | 123 static int nova_t_read_mac_address (struct dvb_usb_device *d, u8 mac[6]) in nova_t_read_mac_address() 128 mac[0] = 0x00; in nova_t_read_mac_address() 129 mac[1] = 0x0d; in nova_t_read_mac_address() 130 mac[2] = 0xfe; in nova_t_read_mac_address() 136 mac[5 - (i - 136)] = b; in nova_t_read_mac_address()
|
/linux-4.1.27/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 187 memcpy(temp->mac, new->fcf_mac, ETH_ALEN); in fcoe_sysfs_fcf_add() 391 struct fip_mac_desc mac; in fcoe_ctlr_solicit() member 417 sol->desc.mac.fd_desc.fip_dtype = FIP_DT_MAC; in fcoe_ctlr_solicit() 418 sol->desc.mac.fd_desc.fip_dlen = sizeof(sol->desc.mac) / FIP_BPW; in fcoe_ctlr_solicit() 419 memcpy(sol->desc.mac.fd_mac, fip->ctl_src_addr, ETH_ALEN); in fcoe_ctlr_solicit() 542 struct fip_mac_desc mac; in fcoe_ctlr_send_keep_alive() member 568 kal->fip.fip_dl_len = htons((sizeof(kal->mac) + in fcoe_ctlr_send_keep_alive() 574 kal->mac.fd_desc.fip_dtype = FIP_DT_MAC; in fcoe_ctlr_send_keep_alive() 575 kal->mac.fd_desc.fip_dlen = sizeof(kal->mac) / FIP_BPW; in fcoe_ctlr_send_keep_alive() 576 memcpy(kal->mac.fd_mac, fip->ctl_src_addr, ETH_ALEN); in fcoe_ctlr_send_keep_alive() [all …]
|
/linux-4.1.27/drivers/staging/rtl8188eu/core/ |
D | rtw_ieee80211.c | 1071 u8 mac[ETH_ALEN]; in rtw_macaddr_cfg() local 1076 if (rtw_initmac && mac_pton(rtw_initmac, mac)) { in rtw_macaddr_cfg() 1078 memcpy(mac_addr, mac, ETH_ALEN); in rtw_macaddr_cfg() 1081 memcpy(mac, mac_addr, ETH_ALEN); in rtw_macaddr_cfg() 1084 if (((mac[0] == 0xff) && (mac[1] == 0xff) && (mac[2] == 0xff) && in rtw_macaddr_cfg() 1085 (mac[3] == 0xff) && (mac[4] == 0xff) && (mac[5] == 0xff)) || in rtw_macaddr_cfg() 1086 ((mac[0] == 0x0) && (mac[1] == 0x0) && (mac[2] == 0x0) && in rtw_macaddr_cfg() 1087 (mac[3] == 0x0) && (mac[4] == 0x0) && (mac[5] == 0x0))) { in rtw_macaddr_cfg() 1088 mac[0] = 0x00; in rtw_macaddr_cfg() 1089 mac[1] = 0xe0; in rtw_macaddr_cfg() [all …]
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/ |
D | hw.c | 178 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92de_set_hw_reg() local 196 if (mac->vendor == PEER_CISCO && in rtl92de_set_hw_reg() 222 if (!mac->ht_enable) in rtl92de_set_hw_reg() 245 reg_tmp = (mac->cur_40_prime_sc) << 5; in rtl92de_set_hw_reg() 260 mac->min_space_cfg = ((mac->min_space_cfg & 0xf8) | in rtl92de_set_hw_reg() 265 mac->min_space_cfg); in rtl92de_set_hw_reg() 267 mac->min_space_cfg); in rtl92de_set_hw_reg() 275 mac->min_space_cfg = rtlpriv->rtlhal.minspace_cfg; in rtl92de_set_hw_reg() 276 mac->min_space_cfg |= (density_to_set << 3); in rtl92de_set_hw_reg() 279 mac->min_space_cfg); in rtl92de_set_hw_reg() [all …]
|
D | fw.c | 687 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92d_set_fw_rsvdpagepkt() local 701 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl92d_set_fw_rsvdpagepkt() 702 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl92d_set_fw_rsvdpagepkt() 707 SET_80211_PS_POLL_AID(p_pspoll, (mac->assoc_id | 0xc000)); in rtl92d_set_fw_rsvdpagepkt() 708 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl92d_set_fw_rsvdpagepkt() 709 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl92d_set_fw_rsvdpagepkt() 715 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl92d_set_fw_rsvdpagepkt() 716 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl92d_set_fw_rsvdpagepkt() 717 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl92d_set_fw_rsvdpagepkt() 723 SET_80211_HDR_ADDRESS1(p_probersp, mac->bssid); in rtl92d_set_fw_rsvdpagepkt() [all …]
|
D | trx.c | 347 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92de_process_pwdb() local 350 if (mac->opmode == NL80211_IFTYPE_ADHOC || in _rtl92de_process_pwdb() 351 mac->opmode == NL80211_IFTYPE_AP) in _rtl92de_process_pwdb() 448 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92de_translate_rx_signal_stuff() local 464 ether_addr_equal(mac->bssid, in _rtl92de_translate_rx_signal_stuff() 553 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92de_tx_fill_desc() local 570 if (mac->opmode == NL80211_IFTYPE_STATION) { in rtl92de_tx_fill_desc() 571 bw_40 = mac->bw_40; in rtl92de_tx_fill_desc() 572 } else if (mac->opmode == NL80211_IFTYPE_AP || in rtl92de_tx_fill_desc() 573 mac->opmode == NL80211_IFTYPE_ADHOC) { in rtl92de_tx_fill_desc() [all …]
|
/linux-4.1.27/drivers/staging/rtl8723au/include/ |
D | sta_info.h | 345 static inline u32 wifi_mac_hash(const u8 *mac) in wifi_mac_hash() argument 349 x = mac[0]; in wifi_mac_hash() 350 x = (x << 2) ^ mac[1]; in wifi_mac_hash() 351 x = (x << 2) ^ mac[2]; in wifi_mac_hash() 352 x = (x << 2) ^ mac[3]; in wifi_mac_hash() 353 x = (x << 2) ^ mac[4]; in wifi_mac_hash() 354 x = (x << 2) ^ mac[5]; in wifi_mac_hash()
|
/linux-4.1.27/drivers/staging/rtl8188eu/include/ |
D | sta_info.h | 338 static inline u32 wifi_mac_hash(u8 *mac) in wifi_mac_hash() argument 342 x = mac[0]; in wifi_mac_hash() 343 x = (x << 2) ^ mac[1]; in wifi_mac_hash() 344 x = (x << 2) ^ mac[2]; in wifi_mac_hash() 345 x = (x << 2) ^ mac[3]; in wifi_mac_hash() 346 x = (x << 2) ^ mac[4]; in wifi_mac_hash() 347 x = (x << 2) ^ mac[5]; in wifi_mac_hash()
|
D | wifi.h | 1094 #define IP_MCAST_MAC(mac) \ argument 1095 ((mac[0] == 0x01) && (mac[1] == 0x00) && (mac[2] == 0x5e)) 1096 #define ICMPV6_MCAST_MAC(mac) \ argument 1097 ((mac[0] == 0x33) && (mac[1] == 0x33) && (mac[2] != 0xff))
|
/linux-4.1.27/drivers/net/ethernet/sun/ |
D | sunvnet.h | 80 static inline unsigned int vnet_hashfn(u8 *mac) in vnet_hashfn() argument 82 unsigned int val = mac[4] ^ mac[5]; in vnet_hashfn()
|
/linux-4.1.27/drivers/net/wireless/mwifiex/ |
D | tdls.c | 30 const u8 *mac, u8 status) in mwifiex_restore_tdls_packets() argument 40 dev_dbg(priv->adapter->dev, "%s: %pM\n", __func__, mac); in mwifiex_restore_tdls_packets() 44 if (!ether_addr_equal(mac, skb->data)) in mwifiex_restore_tdls_packets() 53 ra_list = mwifiex_wmm_get_queue_raptr(priv, tid, mac); in mwifiex_restore_tdls_packets() 89 const u8 *mac) in mwifiex_hold_tdls_packets() argument 97 dev_dbg(priv->adapter->dev, "%s: %pM\n", __func__, mac); in mwifiex_hold_tdls_packets() 106 if (!ether_addr_equal(mac, skb->data)) in mwifiex_hold_tdls_packets() 191 mwifiex_tdls_add_ht_oper(struct mwifiex_private *priv, const u8 *mac, in mwifiex_tdls_add_ht_oper() argument 200 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_tdls_add_ht_oper() 233 const u8 *mac, struct sk_buff *skb) in mwifiex_tdls_add_vht_oper() argument [all …]
|
D | util.c | 486 mwifiex_get_sta_entry(struct mwifiex_private *priv, const u8 *mac) in mwifiex_get_sta_entry() argument 490 if (!mac) in mwifiex_get_sta_entry() 494 if (!memcmp(node->mac_addr, mac, ETH_ALEN)) in mwifiex_get_sta_entry() 507 mwifiex_add_sta_entry(struct mwifiex_private *priv, const u8 *mac) in mwifiex_add_sta_entry() argument 512 if (!mac) in mwifiex_add_sta_entry() 516 node = mwifiex_get_sta_entry(priv, mac); in mwifiex_add_sta_entry() 524 memcpy(node->mac_addr, mac, ETH_ALEN); in mwifiex_add_sta_entry() 559 void mwifiex_del_sta_entry(struct mwifiex_private *priv, const u8 *mac) in mwifiex_del_sta_entry() argument 566 node = mwifiex_get_sta_entry(priv, mac); in mwifiex_del_sta_entry()
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/ |
D | dm.c | 271 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ee_dm_dig() local 280 if (mac->act_scanning) in rtl92ee_dm_dig() 284 bfirstconnect = (mac->link_state >= MAC80211_LINKED) && in rtl92ee_dm_dig() 286 bfirstdisconnect = (mac->link_state < MAC80211_LINKED) && in rtl92ee_dm_dig() 293 if (mac->link_state >= MAC80211_LINKED) { in rtl92ee_dm_dig() 364 if (mac->link_state >= MAC80211_LINKED) { in rtl92ee_dm_dig() 403 dm_dig->media_connect_0 = ((mac->link_state >= MAC80211_LINKED) ? in rtl92ee_dm_dig() 471 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl92ee_dm_find_minimum_rssi() local 474 if ((mac->link_state < MAC80211_LINKED) && in rtl92ee_dm_find_minimum_rssi() 480 if (mac->link_state >= MAC80211_LINKED) { in rtl92ee_dm_find_minimum_rssi() [all …]
|
D | fw.c | 665 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ee_set_fw_rsvdpagepkt() local 681 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl92ee_set_fw_rsvdpagepkt() 682 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() 689 SET_80211_PS_POLL_AID(p_pspoll, (mac->assoc_id | 0xc000)); in rtl92ee_set_fw_rsvdpagepkt() 690 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() 691 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl92ee_set_fw_rsvdpagepkt() 700 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() 701 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl92ee_set_fw_rsvdpagepkt() 702 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() 711 SET_80211_HDR_ADDRESS1(p_probersp, mac->bssid); in rtl92ee_set_fw_rsvdpagepkt() [all …]
|
D | hw.c | 431 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ee_set_hw_reg() local 461 if (!mac->ht_enable) in rtl92ee_set_hw_reg() 532 union aci_aifsn *aifs = (union aci_aifsn *)(&mac->ac[0].aifs); in rtl92ee_set_hw_reg() 656 (u2btmp | mac->assoc_id)); in rtl92ee_set_hw_reg() 668 (u32)(mac->tsf & 0xffffffff)); in rtl92ee_set_hw_reg() 670 (u32)((mac->tsf >> 32) & 0xffffffff)); in rtl92ee_set_hw_reg() 1277 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ee_hw_init() local 1381 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ETHER_ADDR, mac->mac_addr); in rtl92ee_hw_init() 1653 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ee_card_disable() local 1660 mac->link_state = MAC80211_NOLINK; in rtl92ee_card_disable() [all …]
|
/linux-4.1.27/arch/mips/sgi-ip22/ |
D | ip22-platform.c | 144 eth0_pd.mac[2 * i] = tmp >> 8; in sgiseeq_devinit() 145 eth0_pd.mac[2 * i + 1] = tmp & 0xff; in sgiseeq_devinit() 170 eth1_pd.mac[2 * i] = tmp >> 8; in sgiseeq_devinit() 171 eth1_pd.mac[2 * i + 1] = tmp & 0xff; in sgiseeq_devinit()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sp.c | 610 DP(BNX2X_MSG_SP, "Checking MAC %pM for ADD command\n", data->mac.mac); in bnx2x_check_mac_add() 612 if (!is_valid_ether_addr(data->mac.mac)) in bnx2x_check_mac_add() 617 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && in bnx2x_check_mac_add() 618 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) in bnx2x_check_mac_add() 647 DP(BNX2X_MSG_SP, "Checking MAC %pM for DEL command\n", data->mac.mac); in bnx2x_check_mac_del() 650 if (ether_addr_equal(data->mac.mac, pos->u.mac.mac) && in bnx2x_check_mac_del() 651 (data->mac.is_inner_mac == pos->u.mac.is_inner_mac)) in bnx2x_check_mac_del() 817 u8 *mac = elem->cmd_data.vlan_mac.u.mac.mac; in bnx2x_set_one_mac_e2() local 838 bnx2x_set_mac_in_nig(bp, add, mac, in bnx2x_set_one_mac_e2() 841 bnx2x_set_mac_in_nig(bp, add, mac, in bnx2x_set_one_mac_e2() [all …]
|
/linux-4.1.27/net/batman-adv/ |
D | bridge_loop_avoidance.c | 254 static void batadv_bla_send_claim(struct batadv_priv *bat_priv, uint8_t *mac, in batadv_bla_send_claim() argument 303 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim() 305 "bla_send_claim(): CLAIM %pM on vid %d\n", mac, in batadv_bla_send_claim() 312 ether_addr_copy(hw_src, mac); in batadv_bla_send_claim() 314 "bla_send_claim(): UNCLAIM %pM on vid %d\n", mac, in batadv_bla_send_claim() 321 ether_addr_copy(hw_src, mac); in batadv_bla_send_claim() 331 ether_addr_copy(hw_src, mac); in batadv_bla_send_claim() 332 ether_addr_copy(ethhdr->h_dest, mac); in batadv_bla_send_claim() 537 uint8_t mac[ETH_ALEN]; in batadv_bla_send_announce() local 540 memcpy(mac, batadv_announce_mac, 4); in batadv_bla_send_announce() [all …]
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192c/ |
D | fw_common.c | 663 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_set_fw_rsvdpagepkt() local 679 SET_80211_HDR_ADDRESS2(beacon, mac->mac_addr); in rtl92c_set_fw_rsvdpagepkt() 680 SET_80211_HDR_ADDRESS3(beacon, mac->bssid); in rtl92c_set_fw_rsvdpagepkt() 686 SET_80211_PS_POLL_AID(p_pspoll, (mac->assoc_id | 0xc000)); in rtl92c_set_fw_rsvdpagepkt() 687 SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); in rtl92c_set_fw_rsvdpagepkt() 688 SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); in rtl92c_set_fw_rsvdpagepkt() 696 SET_80211_HDR_ADDRESS1(nullfunc, mac->bssid); in rtl92c_set_fw_rsvdpagepkt() 697 SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); in rtl92c_set_fw_rsvdpagepkt() 698 SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); in rtl92c_set_fw_rsvdpagepkt() 706 SET_80211_HDR_ADDRESS1(p_probersp, mac->bssid); in rtl92c_set_fw_rsvdpagepkt() [all …]
|
D | dm_common.c | 396 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_dm_initial_gain_multi_sta() local 400 if (mac->opmode == NL80211_IFTYPE_ADHOC) in rtl92c_dm_initial_gain_multi_sta() 515 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_dm_ctrl_initgain_by_twoport() local 517 if (mac->act_scanning) in rtl92c_dm_ctrl_initgain_by_twoport() 520 if (mac->link_state >= MAC80211_LINKED) in rtl92c_dm_ctrl_initgain_by_twoport() 601 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_dm_pwdb_monitor() local 604 if (mac->link_state != MAC80211_LINKED) in rtl92c_dm_pwdb_monitor() 607 if (mac->opmode == NL80211_IFTYPE_ADHOC || in rtl92c_dm_pwdb_monitor() 608 mac->opmode == NL80211_IFTYPE_AP) { in rtl92c_dm_pwdb_monitor() 645 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92c_dm_check_edca_turbo() local [all …]
|
/linux-4.1.27/arch/arm/boot/dts/ |
D | moxart.dtsi | 120 mac0: mac@90900000 { 121 compatible = "moxa,moxart-mac"; 129 mac1: mac@92000000 { 130 compatible = "moxa,moxart-mac";
|
D | hisi-x5hd2-dkb.dts | 61 mac-address = [00 00 00 00 00 00]; 75 mac-address = [00 00 00 00 00 00];
|
/linux-4.1.27/lib/ |
D | net_utils.c | 6 bool mac_pton(const char *s, u8 *mac) in mac_pton() argument 22 mac[i] = (hex_to_bin(s[i * 3]) << 4) | hex_to_bin(s[i * 3 + 1]); in mac_pton()
|
/linux-4.1.27/drivers/net/fddi/skfp/ |
D | fplustm.c | 397 static void copy_tx_mac(struct s_smc *smc, u_long td, struct fddi_mac *mac, in copy_tx_mac() argument 410 p = (__le32 *) mac ; in copy_tx_mac() 479 struct fddi_mac_sf *mac ; in build_claim_beacon() local 486 mac = &smc->hw.fp.mac_sfb ; in build_claim_beacon() 487 mac->mac_fc = FC_CLAIM ; in build_claim_beacon() 489 mac->mac_source = mac->mac_dest = MA ; in build_claim_beacon() 491 set_int((char *)mac->mac_info,(int)t_request) ; in build_claim_beacon() 493 copy_tx_mac(smc,td,(struct fddi_mac *)mac, in build_claim_beacon() 503 mac->mac_fc = FC_BEACON ; in build_claim_beacon() 504 mac->mac_source = MA ; in build_claim_beacon() [all …]
|
/linux-4.1.27/include/net/ |
D | llc.h | 31 unsigned char mac[IFHWADDRLEN]; member 80 return hash_32(jhash(laddr->mac, sizeof(laddr->mac), 0), in llc_sk_laddr_hashfn()
|
D | bonding.h | 583 const u8 *mac) in bond_slave_has_mac() argument 589 if (ether_addr_equal_64bits(mac, tmp->dev->dev_addr)) in bond_slave_has_mac() 597 const u8 *mac) in bond_slave_has_mac_rcu() argument 603 if (ether_addr_equal_64bits(mac, tmp->dev->dev_addr)) in bond_slave_has_mac_rcu() 610 static inline bool bond_slave_has_mac_rx(struct bonding *bond, const u8 *mac) in bond_slave_has_mac_rx() argument 617 if (ether_addr_equal_64bits(mac, tmp->dev->dev_addr)) in bond_slave_has_mac_rx() 624 if (ether_addr_equal_64bits(mac, ha->addr)) in bond_slave_has_mac_rx()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_pf.c | 687 u8 *mac; in qlcnic_sriov_set_vf_acl() local 700 mac = vp->mac; in qlcnic_sriov_set_vf_acl() 702 cmd.req.arg[4] = mac[5] | mac[4] << 8 | mac[3] << 16 | in qlcnic_sriov_set_vf_acl() 703 mac[2] << 24; in qlcnic_sriov_set_vf_acl() 704 cmd.req.arg[5] = mac[1] | mac[0] << 8; in qlcnic_sriov_set_vf_acl() 822 addr = vp->mac; in qlcnic_sriov_cfg_vf_def_mac() 914 u8 type, *mac; in qlcnic_sriov_pf_mac_address_cmd() local 924 mac = vf->vp->mac; in qlcnic_sriov_pf_mac_address_cmd() 925 cmd->rsp.arg[2] = mac[1] | ((mac[0] << 8) & 0xff00); in qlcnic_sriov_pf_mac_address_cmd() 926 cmd->rsp.arg[1] = mac[5] | ((mac[4] << 8) & 0xff00) | in qlcnic_sriov_pf_mac_address_cmd() [all …]
|
/linux-4.1.27/drivers/net/wireless/iwlegacy/ |
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
|
/linux-4.1.27/drivers/net/ethernet/ |
D | ethoc.c | 586 u8 *mac = (u8 *)addr; in ethoc_get_mac_address() local 590 mac[2] = (reg >> 24) & 0xff; in ethoc_get_mac_address() 591 mac[3] = (reg >> 16) & 0xff; in ethoc_get_mac_address() 592 mac[4] = (reg >> 8) & 0xff; in ethoc_get_mac_address() 593 mac[5] = (reg >> 0) & 0xff; in ethoc_get_mac_address() 596 mac[0] = (reg >> 8) & 0xff; in ethoc_get_mac_address() 597 mac[1] = (reg >> 0) & 0xff; in ethoc_get_mac_address() 775 unsigned char *mac = dev->dev_addr; in ethoc_do_set_mac_address() local 777 ethoc_write(priv, MAC_ADDR0, (mac[2] << 24) | (mac[3] << 16) | in ethoc_do_set_mac_address() 778 (mac[4] << 8) | (mac[5] << 0)); in ethoc_do_set_mac_address() [all …]
|
/linux-4.1.27/arch/tile/include/arch/ |
D | trio.h | 92 uint_reg_t mac : 2; member 97 uint_reg_t mac : 2;
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | port.c | 105 struct mlx4_mac_table *table, u64 mac) in find_index() argument 111 (MLX4_MAC_MASK & mac) == in find_index() 142 int mlx4_find_cached_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *idx) in mlx4_find_cached_mac() argument 152 if (mac == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) { in mlx4_find_cached_mac() 162 int __mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac) in __mlx4_register_mac() argument 170 (unsigned long long) mac, port); in __mlx4_register_mac() 180 if ((MLX4_MAC_MASK & mac) == in __mlx4_register_mac() 198 table->entries[free] = cpu_to_be64(mac | MLX4_MAC_VALID); in __mlx4_register_mac() 203 (unsigned long long) mac); in __mlx4_register_mac() 216 int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac) in mlx4_register_mac() argument [all …]
|
D | en_netdev.c | 494 unsigned char *mac, int *qpn, u64 *reg_id) in mlx4_en_uc_steer_add() argument 506 memcpy(&gid[10], mac, ETH_ALEN); in mlx4_en_uc_steer_add() 529 memcpy(spec_eth.eth.dst_mac, mac, ETH_ALEN); in mlx4_en_uc_steer_add() 546 unsigned char *mac, int qpn, u64 reg_id) in mlx4_en_uc_steer_release() argument 557 memcpy(&gid[10], mac, ETH_ALEN); in mlx4_en_uc_steer_release() 581 u64 mac = mlx4_mac_to_u64(priv->dev->dev_addr); in mlx4_en_get_qp() local 585 index = mlx4_register_mac(dev, priv->port, mac); in mlx4_en_get_qp() 620 memcpy(entry->mac, priv->dev->dev_addr, sizeof(entry->mac)); in mlx4_en_get_qp() 621 memcpy(priv->current_mac, entry->mac, sizeof(priv->current_mac)); in mlx4_en_get_qp() 625 &priv->mac_hash[entry->mac[MLX4_EN_MAC_HASH_IDX]]); in mlx4_en_get_qp() [all …]
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
D | hostap.h | 60 int ap_control_add_mac(struct mac_restrictions *mac_restrictions, u8 *mac); 61 int ap_control_del_mac(struct mac_restrictions *mac_restrictions, u8 *mac); 63 int ap_control_kick_mac(struct ap_data *ap, struct net_device *dev, u8 *mac);
|
/linux-4.1.27/arch/m68k/emu/ |
D | nfeth.c | 195 char mac[ETH_ALEN], host_ip[32], local_ip[32]; in nfeth_probe() local 198 if (!nf_call(nfEtherID + XIF_GET_MAC, unit, virt_to_phys(mac), in nfeth_probe() 209 memcpy(dev->dev_addr, mac, ETH_ALEN); in nfeth_probe() 226 local_ip, mac); in nfeth_probe()
|
/linux-4.1.27/arch/um/drivers/ |
D | net_kern.c | 390 static void eth_configure(int n, void *init, char *mac, in eth_configure() argument 423 setup_etheraddr(dev, mac); in eth_configure() 458 .mac = { 0xfe, 0xfd, 0x0, 0x0, 0x0, 0x0}, in eth_configure() 472 memcpy(lp->mac, dev->dev_addr, sizeof(lp->mac)); in eth_configure() 601 char *mac = NULL; in register_transport() local 612 &mac); in register_transport() 616 eth_configure(eth->index, init, mac, new); in register_transport() 628 char *mac = NULL; in eth_setup_common() local 634 if (!check_transport(transport, str, index, &init, &mac)) in eth_setup_common() 637 eth_configure(index, init, mac, transport); in eth_setup_common()
|
/linux-4.1.27/fs/afs/ |
D | netdevices.c | 18 int afs_get_MAC_address(u8 *mac, size_t maclen) in afs_get_MAC_address() argument 28 memcpy(mac, dev->dev_addr, maclen); in afs_get_MAC_address()
|
/linux-4.1.27/arch/mips/sgi-ip32/ |
D | ip32-setup.c | 84 char *mac = ArcGetEnvironmentVariable("eaddr"); in plat_mem_setup() local 85 str2eaddr(o2meth_eaddr, mac); in plat_mem_setup()
|
/linux-4.1.27/drivers/net/phy/ |
D | at803x.c | 92 const u8 *mac; in at803x_set_wol() local 105 mac = (const u8 *) ndev->dev_addr; in at803x_set_wol() 107 if (!is_valid_ether_addr(mac)) in at803x_set_wol() 118 mac[(i * 2) + 1] | (mac[(i * 2)] << 8)); in at803x_set_wol()
|
/linux-4.1.27/arch/powerpc/platforms/ps3/ |
D | gelic_udbg.c | 150 u64 mac; in gelic_debug_init() local 168 &mac, &v2); in gelic_debug_init() 172 mac <<= 16; in gelic_debug_init() 177 memcpy(&h_eth->src, &mac, 6); in gelic_debug_init()
|
/linux-4.1.27/drivers/media/pci/cx23885/ |
D | netup-eeprom.c | 99 cinfo->port[0].mac[j] = netup_eeprom_read(i2c_adap, i); in netup_get_card_info() 102 cinfo->port[1].mac[j] = netup_eeprom_read(i2c_adap, i); in netup_get_card_info()
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
D | wmi-ops.h | 102 const u8 *mac, 128 const u8 *mac); 130 const u8 *mac, u32 tid, u32 buf_size); 132 const u8 *mac, u32 tid, 135 const u8 *mac, u32 tid, u32 initiator, 725 ath10k_wmi_set_ap_ps_param(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_set_ap_ps_param() argument 733 skb = ar->wmi.ops->gen_set_ap_ps(ar, vdev_id, mac, param_id, value); in ath10k_wmi_set_ap_ps_param() 929 ath10k_wmi_addba_clear_resp(struct ath10k *ar, u32 vdev_id, const u8 *mac) in ath10k_wmi_addba_clear_resp() argument 936 skb = ar->wmi.ops->gen_addba_clear_resp(ar, vdev_id, mac); in ath10k_wmi_addba_clear_resp() 945 ath10k_wmi_addba_send(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_addba_send() argument [all …]
|
/linux-4.1.27/arch/mips/ar7/ |
D | platform.c | 300 char name[5], *mac; in cpmac_get_mac() local 303 mac = prom_getenv(name); in cpmac_get_mac() 304 if (!mac && instance) { in cpmac_get_mac() 306 mac = prom_getenv(name); in cpmac_get_mac() 309 if (mac) { in cpmac_get_mac() 310 if (!mac_pton(mac, dev_addr)) { in cpmac_get_mac()
|
/linux-4.1.27/net/bridge/netfilter/ |
D | ebt_snat.c | 27 ether_addr_copy(eth_hdr(skb)->h_source, info->mac); in ebt_snat_tg() 38 if (skb_store_bits(skb, sizeof(_ah), info->mac, ETH_ALEN)) in ebt_snat_tg()
|
D | ebt_among.c | 19 const char *mac, __be32 ip) in ebt_mac_wormhash_contains() argument 29 int key = ((const unsigned char *)mac)[5]; in ebt_mac_wormhash_contains() 31 ether_addr_copy(((char *) cmp) + 2, mac); in ebt_mac_wormhash_contains()
|
/linux-4.1.27/drivers/net/wireless/cw1200/ |
D | txrx.h | 100 int cw1200_find_link_id(struct cw1200_common *priv, const u8 *mac); 101 int cw1200_alloc_link_id(struct cw1200_common *priv, const u8 *mac);
|
/linux-4.1.27/arch/mips/bcm47xx/ |
D | sprom.c | 501 static bool bcm47xx_is_valid_mac(u8 *mac) in bcm47xx_is_valid_mac() argument 503 return mac && !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c); in bcm47xx_is_valid_mac() 506 static int bcm47xx_increase_mac_addr(u8 *mac, u8 num) in bcm47xx_increase_mac_addr() argument 508 u8 *oui = mac + ETH_ALEN/2 - 1; in bcm47xx_increase_mac_addr() 509 u8 *p = mac + ETH_ALEN - 1; in bcm47xx_increase_mac_addr() 552 u8 mac[6]; in bcm47xx_fill_sprom_ethernet() local 554 nvram_read_macaddr(NULL, "et0macaddr", mac, false); in bcm47xx_fill_sprom_ethernet() 555 if (bcm47xx_is_valid_mac(mac)) { in bcm47xx_fill_sprom_ethernet() 556 int err = bcm47xx_increase_mac_addr(mac, mac_addr_used); in bcm47xx_fill_sprom_ethernet() 559 ether_addr_copy(sprom->il0mac, mac); in bcm47xx_fill_sprom_ethernet()
|
/linux-4.1.27/drivers/staging/octeon/ |
D | ethernet.c | 405 uint64_t mac = 0; in cvm_oct_set_mac_filter() local 408 mac = (mac << 8) | (uint64_t)ptr[i]; in cvm_oct_set_mac_filter() 415 cvmx_write_csr(CVMX_GMXX_SMACX(index, interface), mac); in cvm_oct_set_mac_filter() 453 const u8 *mac = NULL; in cvm_oct_common_init() local 456 mac = of_get_mac_address(priv->of_node); in cvm_oct_common_init() 458 if (mac) in cvm_oct_common_init() 459 ether_addr_copy(dev->dev_addr, mac); in cvm_oct_common_init()
|
/linux-4.1.27/drivers/net/ethernet/agere/ |
D | et131x.c | 807 struct mac_regs __iomem *macregs = &adapter->regs->mac; in et1310_config_mac_regs1() 866 struct mac_regs __iomem *mac = &adapter->regs->mac; in et1310_config_mac_regs2() local 874 cfg1 = readl(&mac->cfg1); in et1310_config_mac_regs2() 875 cfg2 = readl(&mac->cfg2); in et1310_config_mac_regs2() 876 ifctrl = readl(&mac->if_ctrl); in et1310_config_mac_regs2() 894 writel(cfg1, &mac->cfg1); in et1310_config_mac_regs2() 914 writel(ifctrl, &mac->if_ctrl); in et1310_config_mac_regs2() 915 writel(cfg2, &mac->cfg2); in et1310_config_mac_regs2() 920 cfg1 = readl(&mac->cfg1); in et1310_config_mac_regs2() 1175 struct mac_regs __iomem *mac = &adapter->regs->mac; in et131x_phy_mii_read() local [all …]
|
/linux-4.1.27/drivers/s390/net/ |
D | qeth_l2_main.c | 166 static int qeth_l2_send_setgroupmac(struct qeth_card *card, __u8 *mac) in qeth_l2_send_setgroupmac() argument 171 rc = qeth_setdel_makerc(card, qeth_l2_send_setdelmac(card, mac, in qeth_l2_send_setgroupmac() 175 mac, QETH_CARD_IFNAME(card)); in qeth_l2_send_setgroupmac() 178 mac, QETH_CARD_IFNAME(card), rc); in qeth_l2_send_setgroupmac() 182 static int qeth_l2_send_delgroupmac(struct qeth_card *card, __u8 *mac) in qeth_l2_send_delgroupmac() argument 187 rc = qeth_setdel_makerc(card, qeth_l2_send_setdelmac(card, mac, in qeth_l2_send_delgroupmac() 192 mac, QETH_CARD_IFNAME(card), rc); in qeth_l2_send_delgroupmac() 196 static void qeth_l2_add_mc(struct qeth_card *card, __u8 *mac, int vmac) in qeth_l2_add_mc() argument 206 memcpy(mc->mc_addr, mac, OSA_ADDR_LEN); in qeth_l2_add_mc() 212 qeth_l2_send_setdelmac(card, mac, IPA_CMD_SETVMAC)); in qeth_l2_add_mc() [all …]
|
/linux-4.1.27/samples/bpf/ |
D | tcbpf1_kern.c | 14 static inline void set_dst_mac(struct __sk_buff *skb, char *mac) in set_dst_mac() argument 16 bpf_skb_store_bytes(skb, 0, mac, ETH_ALEN, 1); in set_dst_mac()
|
/linux-4.1.27/drivers/net/ethernet/nxp/ |
D | lpc_eth.c | 448 static void __lpc_set_mac(struct netdata_local *pldat, u8 *mac) in __lpc_set_mac() argument 453 tmp = mac[0] | ((u32)mac[1] << 8); in __lpc_set_mac() 455 tmp = mac[2] | ((u32)mac[3] << 8); in __lpc_set_mac() 457 tmp = mac[4] | ((u32)mac[5] << 8); in __lpc_set_mac() 460 netdev_dbg(pldat->ndev, "Ethernet MAC address %pM\n", mac); in __lpc_set_mac() 463 static void __lpc_get_mac(struct netdata_local *pldat, u8 *mac) in __lpc_get_mac() argument 469 mac[0] = tmp & 0xFF; in __lpc_get_mac() 470 mac[1] = tmp >> 8; in __lpc_get_mac() 472 mac[2] = tmp & 0xFF; in __lpc_get_mac() 473 mac[3] = tmp >> 8; in __lpc_get_mac() [all …]
|
/linux-4.1.27/drivers/media/pci/pluto2/ |
D | pluto2.c | 546 static void pluto_read_mac(struct pluto *pluto, u8 *mac) in pluto_read_mac() argument 549 mac[0] = (val >> 8) & 0xff; in pluto_read_mac() 550 mac[1] = (val >> 0) & 0xff; in pluto_read_mac() 553 mac[2] = (val >> 8) & 0xff; in pluto_read_mac() 554 mac[3] = (val >> 0) & 0xff; in pluto_read_mac() 557 mac[4] = (val >> 8) & 0xff; in pluto_read_mac() 558 mac[5] = (val >> 0) & 0xff; in pluto_read_mac() 560 dev_info(&pluto->pdev->dev, "MAC %pM\n", mac); in pluto_read_mac()
|
/linux-4.1.27/drivers/net/wireless/ti/wl1251/ |
D | acx.c | 43 struct acx_dot11_station_id *mac; in wl1251_acx_station_id() local 48 mac = kzalloc(sizeof(*mac), GFP_KERNEL); in wl1251_acx_station_id() 49 if (!mac) in wl1251_acx_station_id() 53 mac->mac[i] = wl->mac_addr[ETH_ALEN - 1 - i]; in wl1251_acx_station_id() 55 ret = wl1251_cmd_configure(wl, DOT11_STATION_ID, mac, sizeof(*mac)); in wl1251_acx_station_id() 60 kfree(mac); in wl1251_acx_station_id()
|
/linux-4.1.27/arch/arm/mach-davinci/ |
D | board-mityomapl138.c | 45 u8 mac[6]; member 142 pr_info("Found MAC = %pM\n", factory_config.mac); in read_factory_config() 143 if (is_valid_ether_addr(factory_config.mac)) in read_factory_config() 145 factory_config.mac, ETH_ALEN); in read_factory_config()
|