/openbmc/u-boot/drivers/net/ |
H A D | e1000.c | 338 if (hw->mac_type == e1000_ich8lan) in e1000_is_onboard_nvm_eeprom() 341 if (hw->mac_type == e1000_82573 || hw->mac_type == e1000_82574) { in e1000_is_onboard_nvm_eeprom() 373 if (hw->mac_type != e1000_82573 && hw->mac_type != e1000_82574) { in e1000_acquire_eeprom() 375 if (hw->mac_type > e1000_82544) { in e1000_acquire_eeprom() 428 if (hw->mac_type == e1000_igb) in e1000_init_eeprom_params() 435 switch (hw->mac_type) { in e1000_init_eeprom_params() 570 if (hw->mac_type <= e1000_82547_rev_2) { in e1000_init_eeprom_params() 610 if (hw->mac_type == e1000_igb) in e1000_poll_eerd_eewr_done() 615 if (hw->mac_type == e1000_igb) in e1000_poll_eerd_eewr_done() 652 if (hw->mac_type == e1000_igb) in e1000_read_eeprom_eerd() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/e1000/ |
H A D | e1000_osdep.h | 29 (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 D | e1000_hw.c | 94 if (hw->mac_type == e1000_undefined) in e1000_set_phy_type() 106 if (hw->mac_type == e1000_82541 || in e1000_set_phy_type() 107 hw->mac_type == e1000_82541_rev_2 || in e1000_set_phy_type() 108 hw->mac_type == e1000_82547 || in e1000_set_phy_type() 109 hw->mac_type == e1000_82547_rev_2) in e1000_set_phy_type() 150 switch (hw->mac_type) { in e1000_phy_init_script() 178 if (hw->mac_type == e1000_82547) { in e1000_phy_init_script() 231 hw->mac_type = e1000_82542_rev2_0; in e1000_set_mac_type() 234 hw->mac_type = e1000_82542_rev2_1; in e1000_set_mac_type() 243 hw->mac_type = e1000_82543; in e1000_set_mac_type() [all …]
|
H A D | e1000_main.c | 439 if (!adapter->wol && hw->mac_type >= e1000_82540 && in e1000_power_down_phy() 443 switch (hw->mac_type) { in e1000_power_down_phy() 562 switch (hw->mac_type) { in e1000_reset() 594 if (hw->mac_type == e1000_82547) { in e1000_reset() 639 switch (hw->mac_type) { in e1000_reset() 677 if (hw->mac_type >= e1000_82544) in e1000_reset() 685 if (hw->mac_type >= e1000_82544 && in e1000_reset() 881 switch (hw->mac_type) { in e1000_init_hw_struct() 1028 if (hw->mac_type == e1000_ce4100) { in e1000_probe() 1037 if (hw->mac_type >= e1000_82543) { in e1000_probe() [all …]
|
H A D | e1000_param.c | 256 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 D | e1000_ethtool.c | 406 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 599 rxdr->count = min(rxdr->count, (u32)(mac_type < e1000_82544 ? in e1000_set_ringparam() 603 txdr->count = min(txdr->count, (u32)(mac_type < e1000_82544 ? in e1000_set_ringparam() 702 (hw->mac_type >= e1000_82543) \ 711 (hw->mac_type >= e1000_82543) \ 765 if (hw->mac_type >= e1000_82543) { in e1000_reg_test() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath12k/ |
H A D | hal.c | 19 .mac_type = ATH12K_HAL_SRNG_UMAC, 30 .mac_type = ATH12K_HAL_SRNG_UMAC, 38 .mac_type = ATH12K_HAL_SRNG_UMAC, 47 .mac_type = ATH12K_HAL_SRNG_UMAC, 56 .mac_type = ATH12K_HAL_SRNG_UMAC, 64 .mac_type = ATH12K_HAL_SRNG_UMAC, 72 .mac_type = ATH12K_HAL_SRNG_UMAC, 81 .mac_type = ATH12K_HAL_SRNG_UMAC, 89 .mac_type = ATH12K_HAL_SRNG_UMAC, 97 .mac_type = ATH12K_HAL_SRNG_UMAC, [all …]
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_algs.h | 67 u64 mac_type:4; member 83 u64 mac_type:4; 169 u8 mac_type; member
|
H A D | otx2_cptvf_algs.c | 575 static int cpt_aead_init(struct crypto_aead *atfm, u8 cipher_type, u8 mac_type) in cpt_aead_init() argument 582 ctx->mac_type = mac_type; in cpt_aead_init() 584 switch (ctx->mac_type) { in cpt_aead_init() 779 static int swap_pad(u8 mac_type, u8 *pad) in swap_pad() argument 785 switch (mac_type) { in swap_pad() 874 ret = swap_pad(ctx->mac_type, ipad); in aead_hmac_init() 882 ret = swap_pad(ctx->mac_type, opad); in aead_hmac_init() 965 if (ctx->mac_type == OTX2_CPT_SHA384) in create_aead_ctx_hdr() 1009 fctx->enc.enc_ctrl.e.mac_type = ctx->mac_type; in create_aead_ctx_hdr() 1046 req_info->req.param2 = ctx->mac_type << 8; in create_hmac_ctx_hdr()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_ae_adapt.c | 127 ae_handle->port_type = vf_cb->mac_cb->mac_type; in hns_ae_get_handle() 205 if (vf_cb->mac_cb->mac_type == HNAE_PORT_SERVICE) in hns_ae_fini_queue() 234 if (mac_cb->mac_type != HNAE_PORT_SERVICE) in hns_ae_add_uc_address() 245 if (mac_cb->mac_type != HNAE_PORT_SERVICE) in hns_ae_rm_uc_address() 260 if (mac_cb->mac_type != HNAE_PORT_SERVICE) in hns_ae_set_multicast_one() 288 if (mac_cb->mac_type != HNAE_PORT_SERVICE) in hns_ae_clr_multicast() 383 if (vf_cb->mac_cb->mac_type == HNAE_PORT_DEBUG) { in hns_ae_reset() 658 if (mac_cb->mac_type == HNAE_PORT_SERVICE) { in hns_ae_update_stats() 729 if (mac_cb->mac_type == HNAE_PORT_SERVICE) in hns_ae_get_stats() 762 if (mac_cb->mac_type == HNAE_PORT_SERVICE) in hns_ae_get_strings() [all …]
|
H A D | hns_dsaf_mac.c | 421 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()
|
/openbmc/linux/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.h | 77 u64 mac_type:4; member 93 u64 mac_type:4; 178 u8 mac_type; member
|
H A D | otx_cptvf_algs.c | 512 static int cpt_aead_init(struct crypto_aead *tfm, u8 cipher_type, u8 mac_type) in cpt_aead_init() argument 517 ctx->mac_type = mac_type; in cpt_aead_init() 519 switch (ctx->mac_type) { in cpt_aead_init() 642 switch (ctx->mac_type) { in otx_cpt_aead_set_authsize() 725 static int swap_pad(u8 mac_type, u8 *pad) in swap_pad() argument 731 switch (mac_type) { in swap_pad() 819 ret = swap_pad(ctx->mac_type, ipad); in aead_hmac_init() 827 ret = swap_pad(ctx->mac_type, opad); in aead_hmac_init() 914 if (ctx->mac_type == OTX_CPT_SHA384) in create_aead_ctx_hdr() 955 fctx->enc.enc_ctrl.e.mac_type = ctx->mac_type; in create_aead_ctx_hdr() [all …]
|
/openbmc/linux/drivers/net/ethernet/wangxun/ngbe/ |
H A D | ngbe_mdio.c | 148 if (wx->mac_type == em_mac_type_mdi) in ngbe_phy_read_reg_c22() 162 if (wx->mac_type == em_mac_type_mdi) in ngbe_phy_write_reg_c22() 244 if (wx->mac_type != em_mac_type_mdi) in ngbe_phy_fixup() 268 if (wx->mac_type == em_mac_type_rgmii) { in ngbe_mdio_init()
|
H A D | ngbe_hw.c | 74 if (wx->mac_type != em_mac_type_mdi) { in ngbe_reset_hw()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | pnvm.c | 39 u16 mac_type = 0, rf_id = 0; in iwl_pnvm_handle_section() local 90 mac_type = le16_to_cpup((const __le16 *)data); in iwl_pnvm_handle_section() 95 mac_type, rf_id); in iwl_pnvm_handle_section() 97 if (mac_type == CSR_HW_REV_TYPE(trans->hw_rev) && in iwl_pnvm_handle_section()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | espi.c | 228 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 D | espi.h | 47 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | mac-ctxt.c | 503 u32 mac_type = FW_MAC_TYPE_BSS_STA; in iwl_mvm_get_mac_type() local 508 mac_type = FW_MAC_TYPE_P2P_STA; in iwl_mvm_get_mac_type() 510 mac_type = FW_MAC_TYPE_BSS_STA; in iwl_mvm_get_mac_type() 513 mac_type = FW_MAC_TYPE_GO; in iwl_mvm_get_mac_type() 516 mac_type = FW_MAC_TYPE_LISTENER; in iwl_mvm_get_mac_type() 519 mac_type = FW_MAC_TYPE_P2P_DEVICE; in iwl_mvm_get_mac_type() 522 mac_type = FW_MAC_TYPE_IBSS; in iwl_mvm_get_mac_type() 527 return mac_type; in iwl_mvm_get_mac_type() 543 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_rx_missed_beacons_notif() local [all …]
|
/openbmc/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_ethtool.c | 154 if (nic->mac_type == BGX_MODE_RXAUI) { in nicvf_get_link_ksettings() 795 if ((nic->mac_type == BGX_MODE_SGMII) || in nicvf_get_pauseparam() 796 (nic->mac_type == BGX_MODE_QSGMII) || in nicvf_get_pauseparam() 797 (nic->mac_type == BGX_MODE_RGMII)) in nicvf_get_pauseparam() 816 if ((nic->mac_type == BGX_MODE_SGMII) || in nicvf_set_pauseparam() 817 (nic->mac_type == BGX_MODE_QSGMII) || in nicvf_set_pauseparam() 818 (nic->mac_type == BGX_MODE_RGMII)) in nicvf_set_pauseparam()
|
H A D | nic.h | 315 u8 mac_type; member 511 u8 mac_type; member
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | mac-cfg.h | 320 __le32 mac_type; member
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.c | 917 enum HCLGEVF_MAC_ADDR_TYPE mac_type, in hclgevf_update_mac_list() argument 924 list = (mac_type == HCLGEVF_MAC_ADDR_UC) ? in hclgevf_update_mac_list() 989 enum HCLGEVF_MAC_ADDR_TYPE mac_type) in hclgevf_add_del_mac_addr() argument 994 if (mac_type == HCLGEVF_MAC_ADDR_UC) { in hclgevf_add_del_mac_addr() 1015 enum HCLGEVF_MAC_ADDR_TYPE mac_type) in hclgevf_config_mac_list() argument 1022 ret = hclgevf_add_del_mac_addr(hdev, mac_node, mac_type); in hclgevf_config_mac_list() 1101 enum HCLGEVF_MAC_ADDR_TYPE mac_type) in hclgevf_sync_mac_list() argument 1113 list = (mac_type == HCLGEVF_MAC_ADDR_UC) ? in hclgevf_sync_mac_list() 1141 hclgevf_config_mac_list(hdev, &tmp_del_list, mac_type); in hclgevf_sync_mac_list() 1142 hclgevf_config_mac_list(hdev, &tmp_add_list, mac_type); in hclgevf_sync_mac_list()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_hw_autogen.h | 315 ((hw)->mac_type == ICE_MAC_E830 ? E830_GL_MDET_TX_TCLAN : \ 333 ((hw)->mac_type == ICE_MAC_E830 ? E830_PF_MDET_TX_TCLAN : \
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/pcie/ |
H A D | drv.c | 549 .name = _name, .mac_type = _mac_type, .rf_type = _rf_type, .rf_step = _rf_step, \ 1270 u16 mac_type, u8 mac_step, u16 rf_type, u8 cdb, in iwl_pci_find_dev_info() argument 1290 if (dev_info->mac_type != (u16)IWL_CFG_ANY && in iwl_pci_find_dev_info() 1291 dev_info->mac_type != mac_type) in iwl_pci_find_dev_info()
|