Home
last modified time | relevance | path

Searched refs:mac_type (Results 1 – 25 of 46) sorted by relevance

12

/linux/drivers/net/ethernet/intel/e1000/
H A De1000_osdep.h29 (readl(hw->hw_addr + ((hw->mac_type >= e1000_82543) \
33 (writel((value), (hw->hw_addr + ((hw->mac_type >= e1000_82543) \
38 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
43 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
51 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
56 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
61 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
66 (((a)->mac_type >= e1000_82543) ? E1000_##reg : E1000_82542_##reg) + \
H A De1000_main.c435 if (!adapter->wol && hw->mac_type >= e1000_82540 && in e1000_power_down_phy()
439 switch (hw->mac_type) { in e1000_power_down_phy()
556 switch (hw->mac_type) { in e1000_reset()
588 if (hw->mac_type == e1000_82547) { in e1000_reset()
633 switch (hw->mac_type) { in e1000_reset()
671 if (hw->mac_type >= e1000_82544) in e1000_reset()
679 if (hw->mac_type >= e1000_82544 && in e1000_reset()
875 switch (hw->mac_type) { in e1000_init_hw_struct()
1022 if (hw->mac_type == e1000_ce4100) { in e1000_probe()
1031 if (hw->mac_type >= e1000_82543) { in e1000_probe()
[all …]
H A De1000_param.c256 e1000_mac_type mac_type = adapter->hw.mac_type; in e1000_check_options() local
266 .max = mac_type < e1000_82544 ? E1000_MAX_TXD : E1000_MAX_82544_TXD in e1000_check_options()
284 e1000_mac_type mac_type = adapter->hw.mac_type; in e1000_check_options() local
294 .max = mac_type < e1000_82544 ? E1000_MAX_RXD : in e1000_check_options()
H A De1000_ethtool.c406 if (hw->mac_type >= e1000_82540 && in e1000_get_regs()
548 e1000_mac_type mac_type = hw->mac_type; in e1000_get_ringparam() local
552 ring->rx_max_pending = (mac_type < e1000_82544) ? E1000_MAX_RXD : in e1000_get_ringparam()
554 ring->tx_max_pending = (mac_type < e1000_82544) ? E1000_MAX_TXD : in e1000_get_ringparam()
567 e1000_mac_type mac_type = hw->mac_type; in e1000_set_ringparam() local
597 rxdr->count = min(rxdr->count, (u32)(mac_type < e1000_82544 ? in e1000_set_ringparam()
601 txdr->count = min(txdr->count, (u32)(mac_type < e1000_82544 ? in e1000_set_ringparam()
700 (hw->mac_type >= e1000_82543) \
709 (hw->mac_type >= e1000_82543) \
763 if (hw->mac_type >= e1000_82543) { in e1000_reg_test()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_ae_adapt.c126 ae_handle->port_type = vf_cb->mac_cb->mac_type; in hns_ae_get_handle()
204 if (vf_cb->mac_cb->mac_type == HNAE_PORT_SERVICE) in hns_ae_fini_queue()
233 if (mac_cb->mac_type != HNAE_PORT_SERVICE) in hns_ae_add_uc_address()
244 if (mac_cb->mac_type != HNAE_PORT_SERVICE) in hns_ae_rm_uc_address()
259 if (mac_cb->mac_type != HNAE_PORT_SERVICE) in hns_ae_set_multicast_one()
287 if (mac_cb->mac_type != HNAE_PORT_SERVICE) in hns_ae_clr_multicast()
382 if (vf_cb->mac_cb->mac_type == HNAE_PORT_DEBUG) { in hns_ae_reset()
657 if (mac_cb->mac_type == HNAE_PORT_SERVICE) { in hns_ae_update_stats()
728 if (mac_cb->mac_type == HNAE_PORT_SERVICE) in hns_ae_get_stats()
755 if (mac_cb->mac_type == HNAE_PORT_SERVICE) in hns_ae_get_strings()
[all …]
H A Dhns_dsaf_mac.c421 if (mac_cb->mac_type == HNAE_PORT_DEBUG) in hns_mac_port_config_bc_en()
455 if (mac_cb->mac_type == HNAE_PORT_DEBUG) in hns_mac_vm_config_bc_en()
506 if (mac_cb->mac_type == HNAE_PORT_DEBUG) in hns_mac_reset()
640 if (mac_cb->mac_type == HNAE_PORT_DEBUG) { in hns_mac_set_pauseparam()
1004 if (mac_cb->mac_type == HNAE_PORT_SERVICE) in hns_mac_get_vaddr()
1034 mac_cb->mac_type = HNAE_PORT_SERVICE; in hns_mac_get_cfg()
1036 mac_cb->mac_type = HNAE_PORT_DEBUG; in hns_mac_get_cfg()
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.h77 u64 mac_type:4; member
93 u64 mac_type:4;
178 u8 mac_type; member
H A Dotx_cptvf_algs.c506 static int cpt_aead_init(struct crypto_aead *tfm, u8 cipher_type, u8 mac_type) in cpt_aead_init() argument
511 ctx->mac_type = mac_type; in cpt_aead_init()
513 switch (ctx->mac_type) { in cpt_aead_init()
636 switch (ctx->mac_type) { in otx_cpt_aead_set_authsize()
719 static int swap_pad(u8 mac_type, u8 *pad) in swap_pad() argument
725 switch (mac_type) { in swap_pad()
813 ret = swap_pad(ctx->mac_type, ipad); in aead_hmac_init()
821 ret = swap_pad(ctx->mac_type, opad); in aead_hmac_init()
908 if (ctx->mac_type == OTX_CPT_SHA384) in create_aead_ctx_hdr()
949 fctx->enc.enc_ctrl.e.mac_type = ctx->mac_type; in create_aead_ctx_hdr()
[all …]
/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptvf_algs.h68 u64 mac_type:4; member
84 u64 mac_type:4;
174 u8 mac_type; member
/linux/drivers/net/ethernet/intel/ice/
H A Dice_controlq.h30 #define EXP_FW_API_VER_MAJOR_BY_MAC(hw) ((hw)->mac_type == ICE_MAC_E830 ? \
33 #define EXP_FW_API_VER_MINOR_BY_MAC(hw) ((hw)->mac_type == ICE_MAC_E830 ? \
H A Dice_ptp.c218 if (hw->mac_type == ICE_MAC_E830) { in ice_ptp_read_src_clk_reg()
897 tx->has_ready_bitmap = pf->hw.mac_type != ICE_MAC_E810; in ice_ptp_init_tx()
1184 switch (hw->mac_type) { in ice_ptp_port_phy_stop()
1231 switch (hw->mac_type) { in ice_ptp_port_phy_restart()
1299 if (hw->mac_type == ICE_MAC_GENERIC_3K_E825) { in ice_ptp_link_change()
1331 switch (hw->mac_type) { in ice_ptp_link_change()
1368 switch (hw->mac_type) { in ice_ptp_cfg_phy_interrupt()
1634 if (hw->mac_type == ICE_MAC_GENERIC_3K_E825) { in ice_ptp_write_perout()
1716 period != NSEC_PER_SEC && hw->mac_type == ICE_MAC_GENERIC) { in ice_ptp_cfg_perout()
1906 if (hw->mac_type == ICE_MAC_GENERIC) { in ice_ptp_settime64()
[all …]
H A Dice_ddp.c1871 static u32 ice_get_pkg_segment_id(enum ice_mac_type mac_type) in ice_get_pkg_segment_id() argument
1875 switch (mac_type) { in ice_get_pkg_segment_id()
1893 static u32 ice_get_pkg_sign_type(enum ice_mac_type mac_type) in ice_get_pkg_sign_type() argument
1897 switch (mac_type) { in ice_get_pkg_sign_type()
1919 hw->pkg_seg_id = ice_get_pkg_segment_id(hw->mac_type); in ice_get_signing_req()
1920 hw->pkg_sign_type = ice_get_pkg_sign_type(hw->mac_type); in ice_get_signing_req()
2356 if (hw->mac_type == ICE_MAC_E810 || in ice_get_set_tx_topo()
2357 hw->mac_type == ICE_MAC_GENERIC) in ice_get_set_tx_topo()
H A Dice_common.c135 hw->mac_type = ICE_MAC_E810; in ice_set_mac_type()
156 hw->mac_type = ICE_MAC_GENERIC; in ice_set_mac_type()
162 hw->mac_type = ICE_MAC_GENERIC_3K_E825; in ice_set_mac_type()
183 hw->mac_type = ICE_MAC_E830; in ice_set_mac_type()
186 hw->mac_type = ICE_MAC_UNKNOWN; in ice_set_mac_type()
190 ice_debug(hw, ICE_DBG_INIT, "mac_type: %d\n", hw->mac_type); in ice_set_mac_type()
202 return (hw->mac_type == ICE_MAC_GENERIC || in ice_is_generic_mac()
203 hw->mac_type == ICE_MAC_GENERIC_3K_E825); in ice_is_generic_mac()
630 switch (hw->mac_type) { in ice_get_link_status_datalen()
765 if (hw->mac_type == ICE_MAC_E830) { in ice_fill_tx_timer_and_fc_thresh()
[all …]
H A Dice.h89 #define ICE_MAX_NUM_DESC_BY_MAC(hw) ((hw)->mac_type == ICE_MAC_E830 ? \
1111 return hw->mac_type == ICE_MAC_GENERIC_3K_E825 && in ice_is_dual()
1127 return hw->mac_type != ICE_MAC_GENERIC_3K_E825 || in ice_is_primary()
/linux/drivers/net/ethernet/chelsio/cxgb/
H A Despi.c228 int t1_espi_init(struct peespi *espi, int mac_type, int nports) in t1_espi_init() argument
245 if (mac_type == CHBT_MAC_PM3393) in t1_espi_init()
247 else if (mac_type == CHBT_MAC_VSC7321) in t1_espi_init()
249 else if (mac_type == CHBT_MAC_IXF1010) { in t1_espi_init()
H A Despi.h47 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpnvm.c42 u16 mac_type = 0, rf_id = 0; in iwl_pnvm_handle_section() local
93 mac_type = le16_to_cpup((const __le16 *)data); in iwl_pnvm_handle_section()
98 mac_type, rf_id); in iwl_pnvm_handle_section()
100 if (mac_type == CSR_HW_REV_TYPE(trans->info.hw_rev) && in iwl_pnvm_handle_section()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dmac-ctxt.c510 u32 mac_type = FW_MAC_TYPE_BSS_STA; in iwl_mvm_get_mac_type() local
515 mac_type = FW_MAC_TYPE_P2P_STA; in iwl_mvm_get_mac_type()
517 mac_type = FW_MAC_TYPE_BSS_STA; in iwl_mvm_get_mac_type()
520 mac_type = FW_MAC_TYPE_GO; in iwl_mvm_get_mac_type()
523 mac_type = FW_MAC_TYPE_LISTENER; in iwl_mvm_get_mac_type()
526 mac_type = FW_MAC_TYPE_P2P_DEVICE; in iwl_mvm_get_mac_type()
529 mac_type = FW_MAC_TYPE_IBSS; in iwl_mvm_get_mac_type()
534 return mac_type; in iwl_mvm_get_mac_type()
550 cmd->mac_type = cpu_to_le32(iwl_mvm_get_mac_type(vif)); in iwl_mvm_mac_ctxt_cmd_common()
1570 u32 mac_type; in iwl_mvm_handle_missed_beacons_notif() local
[all …]
/linux/drivers/net/ethernet/wangxun/ngbe/
H A Dngbe_hw.c74 if (wx->mac_type != em_mac_type_mdi) { in ngbe_reset_hw()
/linux/drivers/net/ethernet/cavium/thunder/
H A Dnic.h315 u8 mac_type; member
511 u8 mac_type; member
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c952 enum HCLGEVF_MAC_ADDR_TYPE mac_type, in hclgevf_update_mac_list() argument
959 list = (mac_type == HCLGEVF_MAC_ADDR_UC) ? in hclgevf_update_mac_list()
1024 enum HCLGEVF_MAC_ADDR_TYPE mac_type) in hclgevf_add_del_mac_addr() argument
1029 if (mac_type == HCLGEVF_MAC_ADDR_UC) { in hclgevf_add_del_mac_addr()
1050 enum HCLGEVF_MAC_ADDR_TYPE mac_type) in hclgevf_config_mac_list() argument
1057 ret = hclgevf_add_del_mac_addr(hdev, mac_node, mac_type); in hclgevf_config_mac_list()
1136 enum HCLGEVF_MAC_ADDR_TYPE mac_type) in hclgevf_sync_mac_list() argument
1148 list = (mac_type == HCLGEVF_MAC_ADDR_UC) ? in hclgevf_sync_mac_list()
1176 hclgevf_config_mac_list(hdev, &tmp_del_list, mac_type); in hclgevf_sync_mac_list()
1177 hclgevf_config_mac_list(hdev, &tmp_add_list, mac_type); in hclgevf_sync_mac_list()
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_hw.c481 enum qlcnic_mac_type mac_type) in qlcnic_nic_add_mac() argument
505 cur->mac_type = mac_type; in qlcnic_nic_add_mac()
518 if (cur->mac_type != QLCNIC_MULTICAST_MAC) in qlcnic_flush_mcast_mac()
H A Dqlcnic_sriov_common.c1502 enum qlcnic_mac_type mac_type) in qlcnic_vf_add_mc_list() argument
1513 qlcnic_nic_add_mac(adapter, mac, 0, mac_type); in qlcnic_vf_add_mc_list()
1520 mac_type); in qlcnic_vf_add_mc_list()
1524 qlcnic_nic_add_mac(adapter, mac, 0, mac_type); in qlcnic_vf_add_mc_list()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.h1152 enum HCLGE_MAC_ADDR_TYPE mac_type,
1157 enum HCLGE_MAC_ADDR_TYPE mac_type);
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_link.h344 u8 mac_type; member

12