/kernel/linux/linux-5.10/drivers/net/wireless/zydas/zd1211rw/ |
H A D | zd_mac.c | 125 static void housekeeping_init(struct zd_mac *mac); 126 static void housekeeping_enable(struct zd_mac *mac); 127 static void housekeeping_disable(struct zd_mac *mac); 128 static void beacon_init(struct zd_mac *mac); 129 static void beacon_enable(struct zd_mac *mac); 130 static void beacon_disable(struct zd_mac *mac); 131 static void set_rts_cts(struct zd_mac *mac, unsigned int short_preamble); 152 struct zd_mac *mac = zd_hw_mac(hw); in zd_check_signal() local 154 dev_dbg_f_cond(zd_mac_dev(mac), signal < 0 || signal > 100, in zd_check_signal() 170 struct zd_mac *mac in zd_mac_preinit_hw() local 184 struct zd_mac *mac = zd_hw_mac(hw); zd_mac_init_hw() local 222 zd_mac_clear(struct zd_mac *mac) zd_mac_clear() argument 229 set_rx_filter(struct zd_mac *mac) set_rx_filter() argument 242 set_mac_and_bssid(struct zd_mac *mac) set_mac_and_bssid() argument 262 set_mc_hash(struct zd_mac *mac) set_mc_hash() argument 271 struct zd_mac *mac = zd_hw_mac(hw); zd_op_start() local 331 struct zd_mac *mac = zd_hw_mac(hw); zd_op_stop() local 357 zd_restore_settings(struct zd_mac *mac) zd_restore_settings() argument 488 struct zd_mac *mac = zd_hw_mac(hw); zd_mac_tx_failed() local 570 struct zd_mac *mac = zd_hw_mac(hw); zd_mac_tx_to_dev() local 641 cs_set_control(struct zd_mac *mac, struct zd_ctrlset *cs, struct ieee80211_hdr *header, struct ieee80211_tx_info *info) cs_set_control() argument 674 zd_mac_match_cur_beacon(struct zd_mac *mac, struct sk_buff *beacon) zd_mac_match_cur_beacon() argument 685 zd_mac_free_cur_beacon_locked(struct zd_mac *mac) zd_mac_free_cur_beacon_locked() argument 693 zd_mac_free_cur_beacon(struct zd_mac *mac) zd_mac_free_cur_beacon() argument 703 struct zd_mac *mac = zd_hw_mac(hw); zd_mac_config_beacon() local 849 fill_ctrlset(struct zd_mac *mac, struct sk_buff *skb) fill_ctrlset() argument 927 struct zd_mac *mac = zd_hw_mac(hw); zd_op_tx() local 963 struct zd_mac *mac = zd_hw_mac(hw); filter_ack() local 1017 struct zd_mac *mac = zd_hw_mac(hw); zd_mac_rx() local 1101 struct zd_mac *mac = zd_hw_mac(hw); zd_op_add_interface() local 1127 struct zd_mac *mac = zd_hw_mac(hw); zd_op_remove_interface() local 1138 struct zd_mac *mac = zd_hw_mac(hw); zd_op_config() local 1148 zd_beacon_done(struct zd_mac *mac) zd_beacon_done() argument 1183 struct zd_mac *mac = container_of(work, struct zd_mac, process_intr); zd_process_intr() local 1203 struct zd_mac *mac = zd_hw_mac(hw); zd_op_prepare_multicast() local 1229 struct zd_mac *mac = zd_hw_mac(hw); zd_op_configure_filter() local 1271 set_rts_cts(struct zd_mac *mac, unsigned int short_preamble) set_rts_cts() argument 1283 struct zd_mac *mac = zd_hw_mac(hw); zd_op_bss_info_changed() local 1340 struct zd_mac *mac = zd_hw_mac(hw); zd_op_get_tsf() local 1359 struct zd_mac *mac; zd_mac_alloc_hw() local 1424 struct zd_mac *mac = beacon_watchdog_handler() local 1471 beacon_init(struct zd_mac *mac) beacon_init() argument 1476 beacon_enable(struct zd_mac *mac) beacon_enable() argument 1485 beacon_disable(struct zd_mac *mac) beacon_disable() argument 1497 struct zd_mac *mac = link_led_handler() local 1520 housekeeping_init(struct zd_mac *mac) housekeeping_init() argument 1525 housekeeping_enable(struct zd_mac *mac) housekeeping_enable() argument 1532 housekeeping_disable(struct zd_mac *mac) housekeeping_disable() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/zydas/zd1211rw/ |
H A D | zd_mac.c | 125 static void housekeeping_init(struct zd_mac *mac); 126 static void housekeeping_enable(struct zd_mac *mac); 127 static void housekeeping_disable(struct zd_mac *mac); 128 static void beacon_init(struct zd_mac *mac); 129 static void beacon_enable(struct zd_mac *mac); 130 static void beacon_disable(struct zd_mac *mac); 131 static void set_rts_cts(struct zd_mac *mac, unsigned int short_preamble); 152 struct zd_mac *mac = zd_hw_mac(hw); in zd_check_signal() local 154 dev_dbg_f_cond(zd_mac_dev(mac), signal < 0 || signal > 100, in zd_check_signal() 170 struct zd_mac *mac in zd_mac_preinit_hw() local 184 struct zd_mac *mac = zd_hw_mac(hw); zd_mac_init_hw() local 222 zd_mac_clear(struct zd_mac *mac) zd_mac_clear() argument 229 set_rx_filter(struct zd_mac *mac) set_rx_filter() argument 242 set_mac_and_bssid(struct zd_mac *mac) set_mac_and_bssid() argument 262 set_mc_hash(struct zd_mac *mac) set_mc_hash() argument 271 struct zd_mac *mac = zd_hw_mac(hw); zd_op_start() local 331 struct zd_mac *mac = zd_hw_mac(hw); zd_op_stop() local 357 zd_restore_settings(struct zd_mac *mac) zd_restore_settings() argument 488 struct zd_mac *mac = zd_hw_mac(hw); zd_mac_tx_failed() local 570 struct zd_mac *mac = zd_hw_mac(hw); zd_mac_tx_to_dev() local 641 cs_set_control(struct zd_mac *mac, struct zd_ctrlset *cs, struct ieee80211_hdr *header, struct ieee80211_tx_info *info) cs_set_control() argument 674 zd_mac_match_cur_beacon(struct zd_mac *mac, struct sk_buff *beacon) zd_mac_match_cur_beacon() argument 685 zd_mac_free_cur_beacon_locked(struct zd_mac *mac) zd_mac_free_cur_beacon_locked() argument 693 zd_mac_free_cur_beacon(struct zd_mac *mac) zd_mac_free_cur_beacon() argument 703 struct zd_mac *mac = zd_hw_mac(hw); zd_mac_config_beacon() local 849 fill_ctrlset(struct zd_mac *mac, struct sk_buff *skb) fill_ctrlset() argument 927 struct zd_mac *mac = zd_hw_mac(hw); zd_op_tx() local 963 struct zd_mac *mac = zd_hw_mac(hw); filter_ack() local 1017 struct zd_mac *mac = zd_hw_mac(hw); zd_mac_rx() local 1101 struct zd_mac *mac = zd_hw_mac(hw); zd_op_add_interface() local 1127 struct zd_mac *mac = zd_hw_mac(hw); zd_op_remove_interface() local 1138 struct zd_mac *mac = zd_hw_mac(hw); zd_op_config() local 1148 zd_beacon_done(struct zd_mac *mac) zd_beacon_done() argument 1183 struct zd_mac *mac = container_of(work, struct zd_mac, process_intr); zd_process_intr() local 1203 struct zd_mac *mac = zd_hw_mac(hw); zd_op_prepare_multicast() local 1229 struct zd_mac *mac = zd_hw_mac(hw); zd_op_configure_filter() local 1271 set_rts_cts(struct zd_mac *mac, unsigned int short_preamble) set_rts_cts() argument 1283 struct zd_mac *mac = zd_hw_mac(hw); zd_op_bss_info_changed() local 1341 struct zd_mac *mac = zd_hw_mac(hw); zd_op_get_tsf() local 1361 struct zd_mac *mac; zd_mac_alloc_hw() local 1426 struct zd_mac *mac = beacon_watchdog_handler() local 1473 beacon_init(struct zd_mac *mac) beacon_init() argument 1478 beacon_enable(struct zd_mac *mac) beacon_enable() argument 1487 beacon_disable(struct zd_mac *mac) beacon_disable() argument 1499 struct zd_mac *mac = link_led_handler() local 1522 housekeeping_init(struct zd_mac *mac) housekeeping_init() argument 1527 housekeeping_enable(struct zd_mac *mac) housekeeping_enable() argument 1534 housekeeping_disable(struct zd_mac *mac) housekeeping_disable() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-mac.c | 10 #include "dpaa2-mac.h" 20 static int dpaa2_mac_cmp_ver(struct dpaa2_mac *mac, in dpaa2_mac_cmp_ver() argument 23 if (mac->ver_major == ver_major) in dpaa2_mac_cmp_ver() 24 return mac->ver_minor - ver_minor; in dpaa2_mac_cmp_ver() 25 return mac->ver_major - ver_major; in dpaa2_mac_cmp_ver() 28 static void dpaa2_mac_detect_features(struct dpaa2_mac *mac) in dpaa2_mac_detect_features() argument 30 mac->features = 0; in dpaa2_mac_detect_features() 32 if (dpaa2_mac_cmp_ver(mac, DPMAC_PROTOCOL_CHANGE_VER_MAJOR, in dpaa2_mac_detect_features() 34 mac->features |= DPAA2_MAC_FEATURE_PROTOCOL_CHANGE; in dpaa2_mac_detect_features() 155 struct dpaa2_mac *mac in dpaa2_mac_select_pcs() local 163 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); dpaa2_mac_config() local 199 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); dpaa2_mac_link_up() local 233 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); dpaa2_mac_link_down() local 251 dpaa2_pcs_create(struct dpaa2_mac *mac, struct fwnode_handle *dpmac_node, int id) dpaa2_pcs_create() argument 289 dpaa2_pcs_destroy(struct dpaa2_mac *mac) dpaa2_pcs_destroy() argument 299 dpaa2_mac_set_supported_interfaces(struct dpaa2_mac *mac) dpaa2_mac_set_supported_interfaces() argument 342 dpaa2_mac_start(struct dpaa2_mac *mac) dpaa2_mac_start() argument 352 dpaa2_mac_stop(struct dpaa2_mac *mac) dpaa2_mac_stop() argument 362 dpaa2_mac_connect(struct dpaa2_mac *mac) dpaa2_mac_connect() argument 454 dpaa2_mac_disconnect(struct dpaa2_mac *mac) dpaa2_mac_disconnect() argument 466 dpaa2_mac_open(struct dpaa2_mac *mac) dpaa2_mac_open() argument 514 dpaa2_mac_close(struct dpaa2_mac *mac) dpaa2_mac_close() argument 572 dpaa2_mac_get_ethtool_stats(struct dpaa2_mac *mac, u64 *data) dpaa2_mac_get_ethtool_stats() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | xgmac.c | 41 static inline int macidx(const struct cmac *mac) in macidx() argument 43 return mac->offset / (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR); in macidx() 46 static void xaui_serdes_reset(struct cmac *mac) in xaui_serdes_reset() argument 54 struct adapter *adap = mac->adapter; in xaui_serdes_reset() 55 u32 ctrl = A_XGM_SERDES_CTRL0 + mac->offset; in xaui_serdes_reset() 57 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | in xaui_serdes_reset() 70 void t3b_pcs_reset(struct cmac *mac) in t3b_pcs_reset() argument 72 t3_set_reg_field(mac->adapter, A_XGM_RESET_CTRL + mac->offset, in t3b_pcs_reset() 75 t3_set_reg_field(mac in t3b_pcs_reset() 79 t3_mac_reset(struct cmac *mac) t3_mac_reset() argument 150 t3b2_mac_reset(struct cmac *mac) t3b2_mac_reset() argument 230 set_addr_filter(struct cmac *mac, int idx, const u8 * addr) set_addr_filter() argument 243 t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]) t3_mac_set_address() argument 256 t3_mac_set_num_ucast(struct cmac *mac, int n) t3_mac_set_num_ucast() argument 264 t3_mac_disable_exact_filters(struct cmac *mac) t3_mac_disable_exact_filters() argument 275 t3_mac_enable_exact_filters(struct cmac *mac) t3_mac_enable_exact_filters() argument 300 t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev) t3_mac_set_rx_mode() argument 345 t3_mac_set_mtu(struct cmac *mac, unsigned int mtu) t3_mac_set_mtu() argument 428 t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) t3_mac_set_speed_duplex_fc() argument 467 t3_mac_enable(struct cmac *mac, int which) t3_mac_enable() argument 506 t3_mac_disable(struct cmac *mac, int which) t3_mac_disable() argument 532 t3b2_mac_watchdog_task(struct cmac *mac) t3b2_mac_watchdog_task() argument 598 t3_mac_update_stats(struct cmac *mac) t3_mac_update_stats() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | xgmac.c | 41 static inline int macidx(const struct cmac *mac) in macidx() argument 43 return mac->offset / (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR); in macidx() 46 static void xaui_serdes_reset(struct cmac *mac) in xaui_serdes_reset() argument 54 struct adapter *adap = mac->adapter; in xaui_serdes_reset() 55 u32 ctrl = A_XGM_SERDES_CTRL0 + mac->offset; in xaui_serdes_reset() 57 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | in xaui_serdes_reset() 70 void t3b_pcs_reset(struct cmac *mac) in t3b_pcs_reset() argument 72 t3_set_reg_field(mac->adapter, A_XGM_RESET_CTRL + mac->offset, in t3b_pcs_reset() 75 t3_set_reg_field(mac in t3b_pcs_reset() 79 t3_mac_reset(struct cmac *mac) t3_mac_reset() argument 150 t3b2_mac_reset(struct cmac *mac) t3b2_mac_reset() argument 230 set_addr_filter(struct cmac *mac, int idx, const u8 * addr) set_addr_filter() argument 243 t3_mac_set_address(struct cmac *mac, unsigned int idx, const u8 addr[6]) t3_mac_set_address() argument 256 t3_mac_set_num_ucast(struct cmac *mac, int n) t3_mac_set_num_ucast() argument 264 t3_mac_disable_exact_filters(struct cmac *mac) t3_mac_disable_exact_filters() argument 275 t3_mac_enable_exact_filters(struct cmac *mac) t3_mac_enable_exact_filters() argument 300 t3_mac_set_rx_mode(struct cmac *mac, struct net_device *dev) t3_mac_set_rx_mode() argument 345 t3_mac_set_mtu(struct cmac *mac, unsigned int mtu) t3_mac_set_mtu() argument 428 t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) t3_mac_set_speed_duplex_fc() argument 467 t3_mac_enable(struct cmac *mac, int which) t3_mac_enable() argument 506 t3_mac_disable(struct cmac *mac, int which) t3_mac_disable() argument 532 t3b2_mac_watchdog_task(struct cmac *mac) t3b2_mac_watchdog_task() argument 598 t3_mac_update_stats(struct cmac *mac) t3_mac_update_stats() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 83 static unsigned int read_mac_reg(const struct pasemi_mac *mac, unsigned int reg) in read_mac_reg() argument 85 return pasemi_read_mac_reg(mac->dma_if, reg); in read_mac_reg() 88 static void write_mac_reg(const struct pasemi_mac *mac, unsigned int reg, in write_mac_reg() argument 91 pasemi_write_mac_reg(mac->dma_if, reg, val); in write_mac_reg() 104 static struct pasemi_mac_rxring *rx_ring(const struct pasemi_mac *mac) in rx_ring() argument 106 return mac->rx; in rx_ring() 109 static struct pasemi_mac_txring *tx_ring(const struct pasemi_mac *mac) in tx_ring() argument 111 return mac->tx; in tx_ring() 124 static int mac_to_intf(struct pasemi_mac *mac) in mac_to_intf() argument 126 struct pci_dev *pdev = mac in mac_to_intf() 152 pasemi_mac_intf_disable(struct pasemi_mac *mac) pasemi_mac_intf_disable() argument 161 pasemi_mac_intf_enable(struct pasemi_mac *mac) pasemi_mac_intf_enable() argument 170 pasemi_get_mac_addr(struct pasemi_mac *mac) pasemi_get_mac_addr() argument 217 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_set_mac_addr() local 242 pasemi_mac_unmap_tx_skb(struct pasemi_mac *mac, const int nfrags, struct sk_buff *skb, const dma_addr_t *dmas) pasemi_mac_unmap_tx_skb() argument 265 pasemi_mac_setup_csring(struct pasemi_mac *mac) pasemi_mac_setup_csring() argument 339 pasemi_mac_setup_csrings(struct pasemi_mac *mac) pasemi_mac_setup_csrings() argument 366 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_setup_rx_resources() local 447 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_setup_tx_resources() local 507 pasemi_mac_free_tx_resources(struct pasemi_mac *mac) pasemi_mac_free_tx_resources() argument 542 pasemi_mac_free_rx_buffers(struct pasemi_mac *mac) pasemi_mac_free_rx_buffers() argument 565 pasemi_mac_free_rx_resources(struct pasemi_mac *mac) pasemi_mac_free_rx_resources() argument 580 const struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_replenish_rx_ring() local 626 pasemi_mac_restart_rx_intr(const struct pasemi_mac *mac) pasemi_mac_restart_rx_intr() argument 644 pasemi_mac_restart_tx_intr(const struct pasemi_mac *mac) pasemi_mac_restart_tx_intr() argument 657 pasemi_mac_rx_error(const struct pasemi_mac *mac, const u64 macrx) pasemi_mac_rx_error() argument 676 pasemi_mac_tx_error(const struct pasemi_mac *mac, const u64 mactx) pasemi_mac_tx_error() argument 697 struct pasemi_mac *mac = rx->mac; pasemi_mac_clean_rx() local 817 struct pasemi_mac *mac = txring->mac; pasemi_mac_clean_tx() local 909 struct pasemi_mac *mac = rxring->mac; pasemi_mac_rx_intr() local 938 struct pasemi_mac *mac = txring->mac; pasemi_mac_tx_timer() local 951 struct pasemi_mac *mac = txring->mac; pasemi_mac_tx_intr() local 976 struct pasemi_mac *mac = netdev_priv(dev); pasemi_adjust_link() local 1039 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_phy_init() local 1065 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_open() local 1216 pasemi_mac_pause_txchan(struct pasemi_mac *mac) pasemi_mac_pause_txchan() argument 1238 pasemi_mac_pause_rxchan(struct pasemi_mac *mac) pasemi_mac_pause_rxchan() argument 1258 pasemi_mac_pause_rxint(struct pasemi_mac *mac) pasemi_mac_pause_rxint() argument 1279 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_close() local 1428 struct pasemi_mac * const mac = netdev_priv(dev); pasemi_mac_start_tx() local 1545 const struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_set_rx_mode() local 1562 struct pasemi_mac *mac = container_of(napi, struct pasemi_mac, napi); pasemi_mac_poll() local 1585 const struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_netpoll() local 1599 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_change_mtu() local 1679 struct pasemi_mac *mac; pasemi_mac_probe() local 1795 struct pasemi_mac *mac; pasemi_mac_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 83 static unsigned int read_mac_reg(const struct pasemi_mac *mac, unsigned int reg) in read_mac_reg() argument 85 return pasemi_read_mac_reg(mac->dma_if, reg); in read_mac_reg() 88 static void write_mac_reg(const struct pasemi_mac *mac, unsigned int reg, in write_mac_reg() argument 91 pasemi_write_mac_reg(mac->dma_if, reg, val); in write_mac_reg() 104 static struct pasemi_mac_rxring *rx_ring(const struct pasemi_mac *mac) in rx_ring() argument 106 return mac->rx; in rx_ring() 109 static struct pasemi_mac_txring *tx_ring(const struct pasemi_mac *mac) in tx_ring() argument 111 return mac->tx; in tx_ring() 124 static int mac_to_intf(struct pasemi_mac *mac) in mac_to_intf() argument 126 struct pci_dev *pdev = mac in mac_to_intf() 152 pasemi_mac_intf_disable(struct pasemi_mac *mac) pasemi_mac_intf_disable() argument 161 pasemi_mac_intf_enable(struct pasemi_mac *mac) pasemi_mac_intf_enable() argument 170 pasemi_get_mac_addr(struct pasemi_mac *mac) pasemi_get_mac_addr() argument 217 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_set_mac_addr() local 242 pasemi_mac_unmap_tx_skb(struct pasemi_mac *mac, const int nfrags, struct sk_buff *skb, const dma_addr_t *dmas) pasemi_mac_unmap_tx_skb() argument 266 pasemi_mac_setup_csring(struct pasemi_mac *mac) pasemi_mac_setup_csring() argument 340 pasemi_mac_setup_csrings(struct pasemi_mac *mac) pasemi_mac_setup_csrings() argument 367 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_setup_rx_resources() local 448 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_setup_tx_resources() local 508 pasemi_mac_free_tx_resources(struct pasemi_mac *mac) pasemi_mac_free_tx_resources() argument 543 pasemi_mac_free_rx_buffers(struct pasemi_mac *mac) pasemi_mac_free_rx_buffers() argument 564 pasemi_mac_free_rx_resources(struct pasemi_mac *mac) pasemi_mac_free_rx_resources() argument 579 const struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_replenish_rx_ring() local 625 pasemi_mac_restart_rx_intr(const struct pasemi_mac *mac) pasemi_mac_restart_rx_intr() argument 643 pasemi_mac_restart_tx_intr(const struct pasemi_mac *mac) pasemi_mac_restart_tx_intr() argument 656 pasemi_mac_rx_error(const struct pasemi_mac *mac, const u64 macrx) pasemi_mac_rx_error() argument 675 pasemi_mac_tx_error(const struct pasemi_mac *mac, const u64 mactx) pasemi_mac_tx_error() argument 696 struct pasemi_mac *mac = rx->mac; pasemi_mac_clean_rx() local 817 struct pasemi_mac *mac = txring->mac; pasemi_mac_clean_tx() local 909 struct pasemi_mac *mac = rxring->mac; pasemi_mac_rx_intr() local 938 struct pasemi_mac *mac = txring->mac; pasemi_mac_tx_timer() local 951 struct pasemi_mac *mac = txring->mac; pasemi_mac_tx_intr() local 976 struct pasemi_mac *mac = netdev_priv(dev); pasemi_adjust_link() local 1039 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_phy_init() local 1065 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_open() local 1216 pasemi_mac_pause_txchan(struct pasemi_mac *mac) pasemi_mac_pause_txchan() argument 1238 pasemi_mac_pause_rxchan(struct pasemi_mac *mac) pasemi_mac_pause_rxchan() argument 1258 pasemi_mac_pause_rxint(struct pasemi_mac *mac) pasemi_mac_pause_rxint() argument 1279 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_close() local 1428 struct pasemi_mac * const mac = netdev_priv(dev); pasemi_mac_start_tx() local 1545 const struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_set_rx_mode() local 1562 struct pasemi_mac *mac = container_of(napi, struct pasemi_mac, napi); pasemi_mac_poll() local 1585 const struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_netpoll() local 1599 struct pasemi_mac *mac = netdev_priv(dev); pasemi_mac_change_mtu() local 1679 struct pasemi_mac *mac; pasemi_mac_probe() local 1795 struct pasemi_mac *mac; pasemi_mac_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/purelifi/plfxlc/ |
H A D | mac.c | 15 #include "mac.h" 88 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); in plfxlc_mac_init_hw() local 89 struct plfxlc_chip *chip = &mac->chip; in plfxlc_mac_init_hw() 94 dev_warn(plfxlc_mac_dev(mac), "init hw failed (%d)\n", r); in plfxlc_mac_init_hw() 98 dev_dbg(plfxlc_mac_dev(mac), "irq_disabled (%d)\n", irqs_disabled()); in plfxlc_mac_init_hw() 103 void plfxlc_mac_release(struct plfxlc_mac *mac) in plfxlc_mac_release() argument 105 plfxlc_chip_release(&mac->chip); in plfxlc_mac_release() 106 lockdep_assert_held(&mac->lock); in plfxlc_mac_release() 117 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); in plfxlc_op_stop() local 119 clear_bit(PURELIFI_DEVICE_RUNNING, &mac in plfxlc_op_stop() 122 plfxlc_restore_settings(struct plfxlc_mac *mac) plfxlc_restore_settings() argument 181 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); plfxlc_mac_tx_to_dev() local 205 plfxlc_fill_ctrlset(struct plfxlc_mac *mac, struct sk_buff *skb) plfxlc_fill_ctrlset() argument 291 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); plfxlc_op_tx() local 348 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); plfxlc_filter_ack() local 403 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); plfxlc_mac_rx() local 506 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); plfxlc_op_add_interface() local 530 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); plfxlc_op_remove_interface() local 553 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); plfxlc_op_configure_filter() local 592 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); plfxlc_op_bss_info_changed() local 676 struct plfxlc_mac *mac = plfxlc_hw_mac(hw); plfxlc_get_et_stats() local 707 struct plfxlc_mac *mac; plfxlc_mac_alloc_hw() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | core.c | 42 struct qtnf_wmac *mac = NULL; in qtnf_core_get_mac() local 50 mac = bus->mac[macid]; in qtnf_core_get_mac() 52 if (unlikely(!mac)) { in qtnf_core_get_mac() 57 return mac; in qtnf_core_get_mac() 84 queue_work(vif->mac->bus->hprio_workqueue, &vif->high_pri_tx_work); in qtnf_packet_send_hi_pri() 93 struct qtnf_wmac *mac; in qtnf_netdev_hard_start_xmit() local 109 mac = vif->mac; in qtnf_netdev_hard_start_xmit() 110 if (unlikely(!mac)) { in qtnf_netdev_hard_start_xmit() 141 struct qtnf_wmac *mac; qtnf_netdev_tx_timeout() local 224 qtnf_mac_init_single_band(struct wiphy *wiphy, struct qtnf_wmac *mac, enum nl80211_band band) qtnf_mac_init_single_band() argument 248 qtnf_mac_init_bands(struct qtnf_wmac *mac) qtnf_mac_init_bands() argument 272 qtnf_mac_get_free_vif(struct qtnf_wmac *mac) qtnf_mac_get_free_vif() argument 286 qtnf_mac_get_base_vif(struct qtnf_wmac *mac) qtnf_mac_get_base_vif() argument 298 qtnf_mac_iface_comb_free(struct qtnf_wmac *mac) qtnf_mac_iface_comb_free() argument 315 qtnf_mac_ext_caps_free(struct qtnf_wmac *mac) qtnf_mac_ext_caps_free() argument 349 qtnf_mac_init_primary_intf(struct qtnf_wmac *mac) qtnf_mac_init_primary_intf() argument 360 qtnf_mac_scan_finish(struct qtnf_wmac *mac, bool aborted) qtnf_mac_scan_finish() argument 376 qtnf_scan_done(struct qtnf_wmac *mac, bool aborted) qtnf_scan_done() argument 384 struct qtnf_wmac *mac = qtnf_mac_scan_timeout() local 412 struct qtnf_wmac *mac; qtnf_core_mac_alloc() local 462 qtnf_core_net_attach(struct qtnf_wmac *mac, struct qtnf_vif *vif, const char *name, unsigned char name_assign_type) qtnf_core_net_attach() argument 506 struct qtnf_wmac *mac; qtnf_core_mac_detach() local 560 struct qtnf_wmac *mac; qtnf_core_mac_attach() local 837 struct qtnf_wmac *mac; qtnf_classify_skb() local 896 struct qtnf_wmac *mac; qtnf_wake_all_queues() local [all...] |
H A D | cfg80211.c | 78 struct qtnf_wmac *mac; in qtnf_validate_iface_combinations() local 86 mac = wiphy_priv(wiphy); in qtnf_validate_iface_combinations() 87 if (!mac) in qtnf_validate_iface_combinations() 91 vif = &mac->iflist[i]; in qtnf_validate_iface_combinations() 112 vif = qtnf_mac_get_base_vif(mac); in qtnf_validate_iface_combinations() 117 mac->macid); in qtnf_validate_iface_combinations() 137 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf() 146 qtnf_scan_done(vif->mac, true); in qtnf_change_virtual_intf() 151 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf() 170 qtnf_scan_done(vif->mac, tru in qtnf_del_virtual_intf() 202 struct qtnf_wmac *mac; qtnf_add_virtual_intf() local 375 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_set_wiphy_params() local 485 qtnf_get_station(struct wiphy *wiphy, struct net_device *dev, const u8 *mac, struct station_info *sinfo) qtnf_get_station() argument 495 qtnf_dump_station(struct wiphy *wiphy, struct net_device *dev, int idx, u8 *mac, struct station_info *sinfo) qtnf_dump_station() argument 604 qtnf_change_station(struct wiphy *wiphy, struct net_device *dev, const u8 *mac, struct station_parameters *params) qtnf_change_station() argument 642 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_scan() local 716 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_disconnect() local 747 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_dump_survey() local 905 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_set_tx_power() local 942 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_suspend() local 974 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_resume() local 994 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_set_wakeup() local 1043 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_cfg80211_reg_notifier() local 1121 qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac) qtnf_wiphy_register() argument 1255 struct qtnf_wmac *mac = wiphy_priv(vif->wdev.wiphy); qtnf_virtual_intf_cleanup() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | core.c | 42 struct qtnf_wmac *mac = NULL; in qtnf_core_get_mac() local 50 mac = bus->mac[macid]; in qtnf_core_get_mac() 52 if (unlikely(!mac)) { in qtnf_core_get_mac() 57 return mac; in qtnf_core_get_mac() 84 queue_work(vif->mac->bus->hprio_workqueue, &vif->high_pri_tx_work); in qtnf_packet_send_hi_pri() 93 struct qtnf_wmac *mac; in qtnf_netdev_hard_start_xmit() local 109 mac = vif->mac; in qtnf_netdev_hard_start_xmit() 110 if (unlikely(!mac)) { in qtnf_netdev_hard_start_xmit() 156 struct qtnf_wmac *mac; qtnf_netdev_tx_timeout() local 225 qtnf_mac_init_single_band(struct wiphy *wiphy, struct qtnf_wmac *mac, enum nl80211_band band) qtnf_mac_init_single_band() argument 249 qtnf_mac_init_bands(struct qtnf_wmac *mac) qtnf_mac_init_bands() argument 273 qtnf_mac_get_free_vif(struct qtnf_wmac *mac) qtnf_mac_get_free_vif() argument 287 qtnf_mac_get_base_vif(struct qtnf_wmac *mac) qtnf_mac_get_base_vif() argument 299 qtnf_mac_iface_comb_free(struct qtnf_wmac *mac) qtnf_mac_iface_comb_free() argument 316 qtnf_mac_ext_caps_free(struct qtnf_wmac *mac) qtnf_mac_ext_caps_free() argument 350 qtnf_mac_init_primary_intf(struct qtnf_wmac *mac) qtnf_mac_init_primary_intf() argument 361 qtnf_mac_scan_finish(struct qtnf_wmac *mac, bool aborted) qtnf_mac_scan_finish() argument 377 qtnf_scan_done(struct qtnf_wmac *mac, bool aborted) qtnf_scan_done() argument 385 struct qtnf_wmac *mac = qtnf_mac_scan_timeout() local 413 struct qtnf_wmac *mac; qtnf_core_mac_alloc() local 467 qtnf_core_net_attach(struct qtnf_wmac *mac, struct qtnf_vif *vif, const char *name, unsigned char name_assign_type) qtnf_core_net_attach() argument 511 struct qtnf_wmac *mac; qtnf_core_mac_detach() local 566 struct qtnf_wmac *mac; qtnf_core_mac_attach() local 844 struct qtnf_wmac *mac; qtnf_classify_skb() local 903 struct qtnf_wmac *mac; qtnf_wake_all_queues() local [all...] |
H A D | cfg80211.c | 78 struct qtnf_wmac *mac; in qtnf_validate_iface_combinations() local 86 mac = wiphy_priv(wiphy); in qtnf_validate_iface_combinations() 87 if (!mac) in qtnf_validate_iface_combinations() 91 vif = &mac->iflist[i]; in qtnf_validate_iface_combinations() 112 vif = qtnf_mac_get_base_vif(mac); in qtnf_validate_iface_combinations() 117 mac->macid); in qtnf_validate_iface_combinations() 137 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf() 146 qtnf_scan_done(vif->mac, true); in qtnf_change_virtual_intf() 151 vif->mac->macid, vif->vifid, type); in qtnf_change_virtual_intf() 170 qtnf_scan_done(vif->mac, tru in qtnf_del_virtual_intf() 202 struct qtnf_wmac *mac; qtnf_add_virtual_intf() local 374 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_set_wiphy_params() local 484 qtnf_get_station(struct wiphy *wiphy, struct net_device *dev, const u8 *mac, struct station_info *sinfo) qtnf_get_station() argument 494 qtnf_dump_station(struct wiphy *wiphy, struct net_device *dev, int idx, u8 *mac, struct station_info *sinfo) qtnf_dump_station() argument 601 qtnf_change_station(struct wiphy *wiphy, struct net_device *dev, const u8 *mac, struct station_parameters *params) qtnf_change_station() argument 639 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_scan() local 719 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_disconnect() local 753 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_dump_survey() local 911 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_set_tx_power() local 951 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_suspend() local 983 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_resume() local 1007 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_set_wakeup() local 1056 struct qtnf_wmac *mac = wiphy_priv(wiphy); qtnf_cfg80211_reg_notifier() local 1134 qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac) qtnf_wiphy_register() argument 1268 struct qtnf_wmac *mac = wiphy_priv(vif->wdev.wiphy); qtnf_virtual_intf_cleanup() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb/ |
H A D | vsc7326.c | 84 val |= 0x1; /* Enable mac MAC itself */ in vsc7326_full_reset() 361 static int mac_intr_handler(struct cmac *mac) in mac_intr_handler() argument 366 static int mac_intr_enable(struct cmac *mac) in mac_intr_enable() argument 371 static int mac_intr_disable(struct cmac *mac) in mac_intr_disable() argument 376 static int mac_intr_clear(struct cmac *mac) in mac_intr_clear() argument 382 static int mac_set_address(struct cmac* mac, u8 addr[6]) in mac_set_address() argument 385 int port = mac->instance->index; in mac_set_address() 387 vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port), in mac_set_address() 389 vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port), in mac_set_address() 392 vsc_read(mac in mac_set_address() 405 mac_get_address(struct cmac *mac, u8 addr[6]) mac_get_address() argument 423 mac_reset(struct cmac *mac) mac_reset() argument 433 mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm) mac_set_rx_mode() argument 450 mac_set_mtu(struct cmac *mac, int mtu) mac_set_mtu() argument 459 mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) mac_set_speed_duplex_fc() argument 528 mac_enable(struct cmac *mac, int which) mac_enable() argument 545 mac_disable(struct cmac *mac, int which) mac_disable() argument 571 rmon_update(struct cmac *mac, unsigned int addr, u64 *stat) rmon_update() argument 586 port_stats_update(struct cmac *mac) port_stats_update() argument 639 mac_update_statistics(struct cmac *mac, int flag) mac_update_statistics() argument 660 mac_destroy(struct cmac *mac) mac_destroy() argument 684 struct cmac *mac; vsc7326_mac_create() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb/ |
H A D | vsc7326.c | 84 val |= 0x1; /* Enable mac MAC itself */ in vsc7326_full_reset() 361 static int mac_intr_handler(struct cmac *mac) in mac_intr_handler() argument 366 static int mac_intr_enable(struct cmac *mac) in mac_intr_enable() argument 371 static int mac_intr_disable(struct cmac *mac) in mac_intr_disable() argument 376 static int mac_intr_clear(struct cmac *mac) in mac_intr_clear() argument 382 static int mac_set_address(struct cmac* mac, const u8 addr[6]) in mac_set_address() argument 385 int port = mac->instance->index; in mac_set_address() 387 vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port), in mac_set_address() 389 vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port), in mac_set_address() 392 vsc_read(mac in mac_set_address() 405 mac_get_address(struct cmac *mac, u8 addr[6]) mac_get_address() argument 423 mac_reset(struct cmac *mac) mac_reset() argument 433 mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm) mac_set_rx_mode() argument 450 mac_set_mtu(struct cmac *mac, int mtu) mac_set_mtu() argument 459 mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) mac_set_speed_duplex_fc() argument 528 mac_enable(struct cmac *mac, int which) mac_enable() argument 545 mac_disable(struct cmac *mac, int which) mac_disable() argument 571 rmon_update(struct cmac *mac, unsigned int addr, u64 *stat) rmon_update() argument 586 port_stats_update(struct cmac *mac) port_stats_update() argument 639 mac_update_statistics(struct cmac *mac, int flag) mac_update_statistics() argument 660 mac_destroy(struct cmac *mac) mac_destroy() argument 684 struct cmac *mac; vsc7326_mac_create() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000e/ |
H A D | mac.c | 16 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() local 33 mac->ops.set_lan_id(hw); in e1000e_get_bus_info_pcie() 120 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in e1000e_init_rx_addrs() 125 hw->mac.ops.rar_set(hw, mac_addr, i); in e1000e_init_rx_addrs() 152 if (hw->mac.type == e1000_82573) in e1000_check_alt_mac_addr_generic() 191 hw->mac.ops.rar_set(hw, alt_mac_addr, 0); in e1000_check_alt_mac_addr_generic() 198 return hw->mac.rar_entry_count; in e1000e_rar_get_count_generic() 252 hash_mask = (hw->mac in e1000_hash_mc_addr() 398 struct e1000_mac_info *mac = &hw->mac; e1000e_check_for_copper_link() local 461 struct e1000_mac_info *mac = &hw->mac; e1000e_check_for_fiber_link() local 526 struct e1000_mac_info *mac = &hw->mac; e1000e_check_for_serdes_link() local 723 struct e1000_mac_info *mac = &hw->mac; e1000_commit_fc_settings_generic() local 789 struct e1000_mac_info *mac = &hw->mac; e1000_poll_fiber_serdes_link_generic() local 1003 struct e1000_mac_info *mac = &hw->mac; e1000e_config_fc_after_link_up() local 1468 struct e1000_mac_info *mac = &hw->mac; e1000e_id_led_init_generic() local 1729 struct e1000_mac_info *mac = &hw->mac; e1000e_reset_adaptive() local 1755 struct e1000_mac_info *mac = &hw->mac; e1000e_update_adaptive() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/e1000e/ |
H A D | mac.c | 16 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() local 33 mac->ops.set_lan_id(hw); in e1000e_get_bus_info_pcie() 120 hw->mac.ops.rar_set(hw, hw->mac.addr, 0); in e1000e_init_rx_addrs() 125 hw->mac.ops.rar_set(hw, mac_addr, i); in e1000e_init_rx_addrs() 152 if (hw->mac.type == e1000_82573) in e1000_check_alt_mac_addr_generic() 191 hw->mac.ops.rar_set(hw, alt_mac_addr, 0); in e1000_check_alt_mac_addr_generic() 198 return hw->mac.rar_entry_count; in e1000e_rar_get_count_generic() 252 hash_mask = (hw->mac in e1000_hash_mc_addr() 398 struct e1000_mac_info *mac = &hw->mac; e1000e_check_for_copper_link() local 461 struct e1000_mac_info *mac = &hw->mac; e1000e_check_for_fiber_link() local 526 struct e1000_mac_info *mac = &hw->mac; e1000e_check_for_serdes_link() local 723 struct e1000_mac_info *mac = &hw->mac; e1000_commit_fc_settings_generic() local 789 struct e1000_mac_info *mac = &hw->mac; e1000_poll_fiber_serdes_link_generic() local 1003 struct e1000_mac_info *mac = &hw->mac; e1000e_config_fc_after_link_up() local 1468 struct e1000_mac_info *mac = &hw->mac; e1000e_id_led_init_generic() local 1729 struct e1000_mac_info *mac = &hw->mac; e1000e_reset_adaptive() local 1755 struct e1000_mac_info *mac = &hw->mac; e1000e_update_adaptive() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-ingenic.c | 75 struct ingenic_mac *mac = plat_dat->bsp_priv; in ingenic_mac_init() local 78 if (mac->soc_info->set_mode) { in ingenic_mac_init() 79 ret = mac->soc_info->set_mode(plat_dat); in ingenic_mac_init() 89 struct ingenic_mac *mac = plat_dat->bsp_priv; in jz4775_mac_set_mode() local 96 dev_dbg(mac->dev, "MAC PHY Control Register: PHY_INTERFACE_MODE_MII\n"); in jz4775_mac_set_mode() 102 dev_dbg(mac->dev, "MAC PHY Control Register: PHY_INTERFACE_MODE_GMII\n"); in jz4775_mac_set_mode() 108 dev_dbg(mac->dev, "MAC PHY Control Register: PHY_INTERFACE_MODE_RMII\n"); in jz4775_mac_set_mode() 117 dev_dbg(mac->dev, "MAC PHY Control Register: PHY_INTERFACE_MODE_RGMII\n"); in jz4775_mac_set_mode() 121 dev_err(mac->dev, "Unsupported interface %d", plat_dat->mac_interface); in jz4775_mac_set_mode() 126 return regmap_update_bits(mac in jz4775_mac_set_mode() 131 struct ingenic_mac *mac = plat_dat->bsp_priv; x1000_mac_set_mode() local 149 struct ingenic_mac *mac = plat_dat->bsp_priv; x1600_mac_set_mode() local 169 struct ingenic_mac *mac = plat_dat->bsp_priv; x1830_mac_set_mode() local 190 struct ingenic_mac *mac = plat_dat->bsp_priv; x2000_mac_set_mode() local 235 struct ingenic_mac *mac; ingenic_mac_probe() local [all...] |
H A D | hwif.c | 40 struct mac_device_info *mac = priv->hw; in stmmac_dwmac_mode_quirk() local 45 mac->mode = &chain_mode_ops; in stmmac_dwmac_mode_quirk() 49 mac->mode = &ring_mode_ops; in stmmac_dwmac_mode_quirk() 55 struct mac_device_info *mac = priv->hw; in stmmac_dwmac1_quirks() local 68 mac->desc = &enh_desc_ops; in stmmac_dwmac1_quirks() 71 mac->desc = &ndesc_ops; in stmmac_dwmac1_quirks() 112 const void *mac; member 132 .mac = &dwmac100_ops, 150 .mac = &dwmac1000_ops, 168 .mac 276 struct mac_device_info *mac; stmmac_hwif_init() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_mdb.c | 16 unsigned char mac[ETH_ALEN]; member 57 const unsigned char *mac, in lan966x_mdb_entry_get() 63 if (ether_addr_equal(mdb_entry->mac, mac) && in lan966x_mdb_entry_get() 81 ether_addr_copy(mdb_entry->mac, mdb->addr); in lan966x_mdb_entry_add() 89 static void lan966x_mdb_encode_mac(unsigned char *mac, in lan966x_mdb_encode_mac() argument 93 ether_addr_copy(mac, mdb_entry->mac); in lan966x_mdb_encode_mac() 96 mac[0] = 0; in lan966x_mdb_encode_mac() 97 mac[ in lan966x_mdb_encode_mac() 56 lan966x_mdb_entry_get(struct lan966x *lan966x, const unsigned char *mac, u16 vid) lan966x_mdb_entry_get() argument 112 unsigned char mac[ETH_ALEN]; lan966x_mdb_ip_add() local 147 unsigned char mac[ETH_ALEN]; lan966x_mdb_ip_del() local 256 unsigned char mac[ETH_ALEN]; lan966x_mdb_l2_add() local 305 unsigned char mac[ETH_ALEN]; lan966x_mdb_l2_del() local 355 lan966x_mdb_classify(const unsigned char *mac) lan966x_mdb_classify() argument 402 unsigned char mac[ETH_ALEN]; lan966x_mdb_ip_cpu_copy() local 414 unsigned char mac[ETH_ALEN]; lan966x_mdb_l2_cpu_copy() local 457 unsigned char mac[ETH_ALEN]; lan966x_mdb_ip_cpu_remove() local 469 unsigned char mac[ETH_ALEN]; lan966x_mdb_l2_cpu_remove() local 512 unsigned char mac[ETH_ALEN]; lan966x_mdb_clear_entries() local 529 unsigned char mac[ETH_ALEN]; lan966x_mdb_restore_entries() local [all...] |
H A D | lan966x_mac.c | 21 unsigned char mac[ETH_ALEN] __aligned(2); 53 const unsigned char mac[ETH_ALEN], in lan966x_mac_select() 62 mach |= mac[0] << 8; in lan966x_mac_select() 63 mach |= mac[1] << 0; in lan966x_mac_select() 64 macl |= mac[2] << 24; in lan966x_mac_select() 65 macl |= mac[3] << 16; in lan966x_mac_select() 66 macl |= mac[4] << 8; in lan966x_mac_select() 67 macl |= mac[5] << 0; in lan966x_mac_select() 75 const unsigned char mac[ETH_ALEN], in __lan966x_mac_learn_locked() 81 lan966x_mac_select(lan966x, mac, vi in __lan966x_mac_learn_locked() 52 lan966x_mac_select(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid) lan966x_mac_select() argument 73 __lan966x_mac_learn_locked(struct lan966x *lan966x, int pgid, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) __lan966x_mac_learn_locked() argument 95 __lan966x_mac_learn(struct lan966x *lan966x, int pgid, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) __lan966x_mac_learn() argument 113 lan966x_mac_ip_learn(struct lan966x *lan966x, bool cpu_copy, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) lan966x_mac_ip_learn() argument 124 lan966x_mac_learn(struct lan966x *lan966x, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) lan966x_mac_learn() argument 134 lan966x_mac_learn_locked(struct lan966x *lan966x, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) lan966x_mac_learn_locked() argument 144 lan966x_mac_forget_locked(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) lan966x_mac_forget_locked() argument 161 lan966x_mac_forget(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) lan966x_mac_forget() argument 203 lan966x_mac_alloc_entry(struct lan966x_port *port, const unsigned char *mac, u16 vid) lan966x_mac_alloc_entry() argument 221 lan966x_mac_find_entry(struct lan966x *lan966x, const unsigned char *mac, u16 vid, u16 port_index) lan966x_mac_find_entry() argument 240 lan966x_mac_lookup(struct lan966x *lan966x, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) lan966x_mac_lookup() argument 261 lan966x_fdb_call_notifiers(enum switchdev_notifier_type type, const char *mac, u16 vid, struct net_device *dev) lan966x_fdb_call_notifiers() argument 397 lan966x_mac_notifiers(enum switchdev_notifier_type type, unsigned char *mac, u32 vid, struct net_device *dev) lan966x_mac_notifiers() argument 406 lan966x_mac_process_raw_entry(struct lan966x_mac_raw_entry *raw_entry, u8 *mac, u16 *vid, u32 *dest_idx) lan966x_mac_process_raw_entry() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-mac.c | 5 #include "dpaa2-mac.h" 78 static bool dpaa2_mac_phy_mode_mismatch(struct dpaa2_mac *mac, in dpaa2_mac_phy_mode_mismatch() argument 90 return (interface != mac->if_mode); in dpaa2_mac_phy_mode_mismatch() 100 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); in dpaa2_mac_validate() local 104 dpaa2_mac_phy_mode_mismatch(mac, state->interface)) { in dpaa2_mac_validate() 149 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); in dpaa2_mac_config() local 150 struct dpmac_link_state *dpmac_state = &mac->state; in dpaa2_mac_config() 158 err = dpmac_set_link_state(mac->mc_io, 0, in dpaa2_mac_config() 159 mac->mc_dev->mc_handle, dpmac_state); in dpaa2_mac_config() 161 netdev_err(mac in dpaa2_mac_config() 171 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); dpaa2_mac_link_up() local 213 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); dpaa2_mac_link_down() local 257 dpaa2_pcs_create(struct dpaa2_mac *mac, struct device_node *dpmac_node, int id) dpaa2_pcs_create() argument 291 dpaa2_pcs_destroy(struct dpaa2_mac *mac) dpaa2_pcs_destroy() argument 303 dpaa2_mac_connect(struct dpaa2_mac *mac) dpaa2_mac_connect() argument 397 dpaa2_mac_disconnect(struct dpaa2_mac *mac) dpaa2_mac_disconnect() argument 458 dpaa2_mac_get_ethtool_stats(struct dpaa2_mac *mac, u64 *data) dpaa2_mac_get_ethtool_stats() argument [all...] |
/kernel/linux/linux-5.10/drivers/staging/netlogic/ |
H A D | platform_net.c | 67 int mac; in gmac_controller2_init() local 92 for (mac = 0; mac < 4; mac++) { in gmac_controller2_init() 93 ndata1.tx_stnid[mac] = FMN_STNID_GMAC1_TX0 + mac; in gmac_controller2_init() 94 ndata1.phy_addr[mac] = mac + 4 + 0x10; in gmac_controller2_init() 96 xlr_resource_init(&xlr_net1_res[mac * 2], in gmac_controller2_init() 97 xlr_gmac_offsets[mac in gmac_controller2_init() 107 int mac; xls_gmac_init() local 173 int mac; xlr_gmac_init() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
H A D | hwif.c | 40 struct mac_device_info *mac = priv->hw; in stmmac_dwmac_mode_quirk() local 45 mac->mode = &chain_mode_ops; in stmmac_dwmac_mode_quirk() 49 mac->mode = &ring_mode_ops; in stmmac_dwmac_mode_quirk() 55 struct mac_device_info *mac = priv->hw; in stmmac_dwmac1_quirks() local 68 mac->desc = &enh_desc_ops; in stmmac_dwmac1_quirks() 71 mac->desc = &ndesc_ops; in stmmac_dwmac1_quirks() 99 const void *mac; member 119 .mac = &dwmac100_ops, 137 .mac = &dwmac1000_ops, 155 .mac 263 struct mac_device_info *mac; stmmac_hwif_init() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/ |
H A D | core.c | 150 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_stop() local 171 mac->link_state = MAC80211_NOLINK; in rtl_op_stop() 172 eth_zero_addr(mac->bssid); in rtl_op_stop() 173 mac->vendor = PEER_UNKNOWN; in rtl_op_stop() 214 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_add_interface() local 218 if (mac->vif) { in rtl_op_add_interface() 220 "vif has been set!! mac->vif = 0x%p\n", mac->vif); in rtl_op_add_interface() 231 mac->p2p = P2P_ROLE_CLIENT; in rtl_op_add_interface() 234 if (mac in rtl_op_add_interface() 323 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_remove_interface() local 423 struct rtl_mac *mac = &rtlpriv->mac80211; _rtl_add_wowlan_patterns() local 559 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_resume() local 584 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_config() local 803 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_configure_filter() local 896 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_sta_add() local 989 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_conf_tx() local 1028 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_bss_info_changed() local 1356 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_set_tsf() local 1432 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_sw_scan_start() local 1470 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_sw_scan_complete() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/ |
H A D | core.c | 150 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_stop() local 171 mac->link_state = MAC80211_NOLINK; in rtl_op_stop() 172 eth_zero_addr(mac->bssid); in rtl_op_stop() 173 mac->vendor = PEER_UNKNOWN; in rtl_op_stop() 214 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl_op_add_interface() local 218 if (mac->vif) { in rtl_op_add_interface() 220 "vif has been set!! mac->vif = 0x%p\n", mac->vif); in rtl_op_add_interface() 231 mac->p2p = P2P_ROLE_CLIENT; in rtl_op_add_interface() 234 if (mac in rtl_op_add_interface() 323 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_remove_interface() local 423 struct rtl_mac *mac = &rtlpriv->mac80211; _rtl_add_wowlan_patterns() local 559 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_resume() local 584 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_config() local 803 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_configure_filter() local 896 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_sta_add() local 990 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_conf_tx() local 1048 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_bss_info_changed() local 1376 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_set_tsf() local 1452 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_sw_scan_start() local 1490 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl_op_sw_scan_complete() local [all...] |