/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_mac.c | 179 mac_cb->mac_id, ret); in hns_mac_adjust_link() 199 if (mac_cb->mac_id != DSAF_MAX_PORT_NUM) { in hns_mac_get_inner_port_num() 203 mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num() 207 if (mac_cb->mac_id >= DSAF_MAX_PORT_NUM) { in hns_mac_get_inner_port_num() 211 mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num() 216 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num() 222 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num() 230 vf_num_per_port * q_num_per_vf * mac_cb->mac_id; in hns_mac_get_inner_port_num() 255 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num() 284 mac_entry.in_port_num = mac_cb->mac_id; in hns_mac_change_vf_addr() [all …]
|
D | hns_dsaf_misc.c | 125 mac_cb->mac_id); in hns_cpld_set_led() 162 link_status, mac_cb->mac_id, data); in hns_cpld_set_led_acpi() 186 0, mac_cb->mac_id, 0); in cpld_led_reset_acpi() 232 mac_cb->mac_id); in cpld_set_led_id_acpi() 238 mac_cb->mac_id); in cpld_set_led_id_acpi() 517 int mac_id = mac_cb->mac_id; in hns_mac_get_phy_if() local 524 if (mac_id >= 0 && mac_id <= 3) in hns_mac_get_phy_if() 529 if (!HNS_DSAF_IS_DEBUG(mac_cb->dsaf_dev) && mac_id <= 3) in hns_mac_get_phy_if() 551 obj_args.integer.value = mac_cb->mac_id; in hns_mac_get_phy_if_acpi() 567 dev_dbg(mac_cb->dev, "mac_id=%d, phy_if=%d\n", mac_cb->mac_id, phy_if); in hns_mac_get_phy_if_acpi() [all …]
|
D | hns_dsaf_main.c | 268 u32 mac_id; in hns_dsaf_inner_qid_cfg() local 276 for (mac_id = 0, q_id = 0; mac_id < DSAF_SERVICE_NW_NUM; mac_id++) { in hns_dsaf_inner_qid_cfg() 278 DSAFV2_SERDES_LBK_0_REG + 4 * mac_id, in hns_dsaf_inner_qid_cfg() 1167 int mac_id, int tc_en) in hns_dsaf_pfc_en_cfg() argument 1169 dsaf_write_dev(dsaf_dev, DSAF_PFC_EN_0_REG + mac_id * 4, tc_en); in hns_dsaf_pfc_en_cfg() 1173 int mac_id, int tx_en, int rx_en) in hns_dsaf_set_pfc_pause() argument 1182 dsaf_set_dev_bit(dsaf_dev, DSAF_PAUSE_CFG_REG + mac_id * 4, in hns_dsaf_set_pfc_pause() 1184 dsaf_set_dev_bit(dsaf_dev, DSAF_PAUSE_CFG_REG + mac_id * 4, in hns_dsaf_set_pfc_pause() 1188 int hns_dsaf_set_rx_mac_pause_en(struct dsaf_device *dsaf_dev, int mac_id, in hns_dsaf_set_rx_mac_pause_en() argument 1198 dsaf_set_dev_bit(dsaf_dev, DSAF_PAUSE_CFG_REG + mac_id * 4, in hns_dsaf_set_rx_mac_pause_en() [all …]
|
D | hns_dsaf_gmac.c | 112 u32 mac_id = drv->mac_id; in hns_gmac_free() local 114 dsaf_dev->misc_op->ge_srst(dsaf_dev, mac_id, 0); in hns_gmac_free() 283 speed, drv->mac_id); in hns_gmac_adjust_link() 325 "hns ge %d fifo was not idle.\n", drv->mac_id); in hns_gmac_wait_fifo_clean() 339 port = drv->mac_id; in hns_gmac_init() 715 mac_drv->mac_id = mac_param->mac_id; in hns_gmac_config()
|
/drivers/net/wireless/ath/ath11k/ |
D | dp_rx.h | 67 int ath11k_dp_process_rxdma_err(struct ath11k_base *ab, int mac_id, int budget); 72 int ath11k_dp_process_rx(struct ath11k_base *ab, int mac_id, 75 int ath11k_dp_rxbufs_replenish(struct ath11k_base *ab, int mac_id, 83 int ath11k_dp_rx_process_mon_rings(struct ath11k_base *ab, int mac_id, 85 int ath11k_dp_rx_process_mon_status(struct ath11k_base *ab, int mac_id, 87 int ath11k_dp_rx_mon_status_bufs_replenish(struct ath11k_base *ab, int mac_id,
|
D | dp_tx.c | 283 static void ath11k_dp_tx_free_txbuf(struct ath11k_base *ab, u8 mac_id, in ath11k_dp_tx_free_txbuf() argument 308 ar = ab->pdevs[mac_id].ar; in ath11k_dp_tx_free_txbuf() 363 void *desc, u8 mac_id, in ath11k_dp_tx_process_htt_tx_complete() argument 386 ath11k_dp_tx_free_txbuf(ab, mac_id, msdu_id, tx_ring); in ath11k_dp_tx_process_htt_tx_complete() 539 u8 mac_id; in ath11k_dp_tx_completion_handler() local 575 mac_id = FIELD_GET(DP_TX_DESC_ID_MAC_ID, desc_id); in ath11k_dp_tx_completion_handler() 581 mac_id, msdu_id, in ath11k_dp_tx_completion_handler() 597 ar = ab->pdevs[mac_id].ar; in ath11k_dp_tx_completion_handler() 653 int mac_id, u32 ring_id, in ath11k_dp_tx_get_ring_id_type() argument 663 lmac_ring_id_offset = mac_id * HAL_SRNG_RINGS_PER_LMAC; in ath11k_dp_tx_get_ring_id_type() [all …]
|
D | dp_rx.c | 308 int ath11k_dp_rxbufs_replenish(struct ath11k_base *ab, int mac_id, in ath11k_dp_rxbufs_replenish() argument 369 cookie = FIELD_PREP(DP_RXDMA_BUF_COOKIE_PDEV_ID, mac_id) | in ath11k_dp_rxbufs_replenish() 477 ath11k_dp_rxbufs_replenish(ar->ab, dp->mac_id, rx_ring, num_entries, in ath11k_dp_rxdma_ring_buf_setup() 568 dp->mac_id, DP_RXDMA_BUF_RING_SIZE); in ath11k_dp_rx_pdev_srng_alloc() 579 dp->mac_id + i, 1024); in ath11k_dp_rx_pdev_srng_alloc() 590 HAL_RXDMA_DST, 0, dp->mac_id + i, in ath11k_dp_rx_pdev_srng_alloc() 602 HAL_RXDMA_MONITOR_STATUS, 0, dp->mac_id + i, in ath11k_dp_rx_pdev_srng_alloc() 625 HAL_RXDMA_MONITOR_BUF, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc() 634 HAL_RXDMA_MONITOR_DST, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc() 643 HAL_RXDMA_MONITOR_DESC, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc() [all …]
|
D | hw.h | 173 int (*mac_id_to_pdev_id)(struct ath11k_hw_params *hw, int mac_id); 174 int (*mac_id_to_srng_id)(struct ath11k_hw_params *hw, int mac_id); 229 int mac_id) in ath11k_hw_mac_id_to_pdev_id() argument 232 return hw->hw_ops->mac_id_to_pdev_id(hw, mac_id); in ath11k_hw_mac_id_to_pdev_id() 238 int mac_id) in ath11k_hw_mac_id_to_srng_id() argument 241 return hw->hw_ops->mac_id_to_srng_id(hw, mac_id); in ath11k_hw_mac_id_to_srng_id()
|
D | dp.h | 145 u32 mac_id; member 203 #define DP_HW2SW_MACID(mac_id) ((mac_id) ? ((mac_id) - 1) : 0) argument 204 #define DP_SW2HW_MACID(mac_id) ((mac_id) + 1) argument 1623 int mac_id, enum hal_ring_type ring_type); 1629 int mac_id, int num_entries);
|
/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | mac-cfg.h | 82 __le32 mac_id; member 98 __le32 mac_id; member 127 __le32 mac_id; member 145 __le32 mac_id; member
|
/drivers/net/ethernet/mediatek/ |
D | mtk_eth_path.c | 242 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_sgmii_path_setup() argument 246 path = (mac_id == 0) ? MTK_ETH_PATH_GMAC1_SGMII : in mtk_gmac_sgmii_path_setup() 253 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_gephy_path_setup() argument 257 if (mac_id == 1) in mtk_gmac_gephy_path_setup() 267 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_rgmii_path_setup() argument 271 path = (mac_id == 0) ? MTK_ETH_PATH_GMAC1_RGMII : in mtk_gmac_rgmii_path_setup()
|
D | mtk_sgmii.c | 112 void mtk_sgmii_restart_an(struct mtk_eth *eth, int mac_id) in mtk_sgmii_restart_an() argument 119 0 : mac_id; in mtk_sgmii_restart_an()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | dm.c | 1268 u8 ant, u32 mac_id) in rtl88e_dm_update_tx_ant() argument 1280 pfat_table->antsel_a[mac_id] = target_ant & BIT(0); in rtl88e_dm_update_tx_ant() 1281 pfat_table->antsel_b[mac_id] = (target_ant & BIT(1)) >> 1; in rtl88e_dm_update_tx_ant() 1282 pfat_table->antsel_c[mac_id] = (target_ant & BIT(2)) >> 2; in rtl88e_dm_update_tx_ant() 1286 pfat_table->antsel_c[mac_id], in rtl88e_dm_update_tx_ant() 1287 pfat_table->antsel_b[mac_id], in rtl88e_dm_update_tx_ant() 1288 pfat_table->antsel_a[mac_id]); in rtl88e_dm_update_tx_ant() 1403 u8 *pdesc, u32 mac_id) in rtl88e_dm_set_tx_ant_by_tx_info() argument 1412 set_tx_desc_antsel_a(pdesc32, pfat_table->antsel_a[mac_id]); in rtl88e_dm_set_tx_ant_by_tx_info() 1413 set_tx_desc_antsel_b(pdesc32, pfat_table->antsel_b[mac_id]); in rtl88e_dm_set_tx_ant_by_tx_info() [all …]
|
D | dm.h | 247 u8 *pdesc, u32 mac_id); 249 u8 antsel_tr_mux, u32 mac_id,
|
/drivers/staging/r8188eu/core/ |
D | rtw_wlan_util.c | 500 unsigned int mac_id; in allocate_fw_sta_entry() local 504 for (mac_id = IBSS_START_MAC_ID; mac_id < NUM_STA; mac_id++) { in allocate_fw_sta_entry() 505 if (pmlmeinfo->FW_sta_info[mac_id].status == 0) { in allocate_fw_sta_entry() 506 pmlmeinfo->FW_sta_info[mac_id].status = 1; in allocate_fw_sta_entry() 507 pmlmeinfo->FW_sta_info[mac_id].retry = 0; in allocate_fw_sta_entry() 512 return mac_id; in allocate_fw_sta_entry() 1307 void Update_RA_Entry(struct adapter *padapter, u32 mac_id) in Update_RA_Entry() argument 1309 rtw_hal_update_ra_mask(padapter, mac_id, 0); in Update_RA_Entry() 1312 static void enable_rate_adaptive(struct adapter *padapter, u32 mac_id) in enable_rate_adaptive() argument 1314 Update_RA_Entry(padapter, mac_id); in enable_rate_adaptive() [all …]
|
D | rtw_mlme.c | 985 psta->mac_id = 0; in rtw_joinbss_update_stainfo() 1202 u8 mac_id; in search_max_mac_id() local 1217 mac_id = aid + 1; in search_max_mac_id() 1221 for (mac_id = (NUM_STA - 1); mac_id >= IBSS_START_MAC_ID; mac_id--) { in search_max_mac_id() 1222 if (pmlmeinfo->FW_sta_info[mac_id].status == 1) in search_max_mac_id() 1226 return mac_id; in search_max_mac_id() 1242 media_status_rpt = (u16)((psta->mac_id << 8) | mstatus); in rtw_sta_media_status_rpt() 1276 psta->mac_id = (uint)pstassoc->cam_id; in rtw_stassoc_event_callback() 1304 int mac_id = -1; in rtw_stadel_event_callback() local 1316 mac_id = psta->mac_id; in rtw_stadel_event_callback() [all …]
|
/drivers/net/ethernet/freescale/fman/ |
D | fman_tgec.c | 216 u8 mac_id; member 401 fman_unregister_intr(tgec->fm, FMAN_MOD_MAC, tgec->mac_id, in free_init_resources() 694 (fman_reset_mac(tgec->fm, tgec->mac_id) != 0)) { in tgec_init() 724 err = fman_set_mac_max_frame(tgec->fm, tgec->mac_id, in tgec_init() 758 fman_register_intr(tgec->fm, FMAN_MOD_MAC, tgec->mac_id, in tgec_init() 804 tgec->mac_id = params->mac_id; in tgec_config()
|
D | fman_dtsec.c | 339 u8 mac_id; member 780 fman_reset_mac(dtsec->fm, dtsec->mac_id); in dtsec_isr() 829 fman_unregister_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id, in free_init_resources() 831 fman_unregister_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id, in free_init_resources() 1396 (fman_reset_mac(dtsec->fm, dtsec->mac_id) != 0)) { in dtsec_init() 1444 err = fman_set_mac_max_frame(dtsec->fm, dtsec->mac_id, max_frm_ln); in dtsec_init() 1467 fman_register_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id, in dtsec_init() 1470 fman_register_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id, in dtsec_init() 1517 dtsec->mac_id = params->mac_id; in dtsec_config()
|
D | fman_memac.c | 347 u8 mac_id; member 691 fman_unregister_intr(memac->fm, FMAN_MOD_MAC, memac->mac_id, in free_init_resources() 694 fman_unregister_intr(memac->fm, FMAN_MOD_MAC, memac->mac_id, in free_init_resources() 1111 err = fman_set_mac_max_frame(memac->fm, memac->mac_id, in memac_init() 1132 fman_register_intr(memac->fm, FMAN_MOD_MAC, memac->mac_id, in memac_init() 1135 fman_register_intr(memac->fm, FMAN_MOD_MAC, memac->mac_id, in memac_init() 1186 memac->mac_id = params->mac_id; in memac_config()
|
/drivers/staging/rtl8723bs/core/ |
D | rtw_wlan_util.c | 695 unsigned int mac_id; in allocate_fw_sta_entry() local 699 for (mac_id = IBSS_START_MAC_ID; mac_id < NUM_STA; mac_id++) { in allocate_fw_sta_entry() 700 if (pmlmeinfo->FW_sta_info[mac_id].status == 0) { in allocate_fw_sta_entry() 701 pmlmeinfo->FW_sta_info[mac_id].status = 1; in allocate_fw_sta_entry() 702 pmlmeinfo->FW_sta_info[mac_id].retry = 0; in allocate_fw_sta_entry() 707 return mac_id; in allocate_fw_sta_entry() 1793 psta->mac_id = NUM_STA; in rtw_alloc_macid() 1807 psta->mac_id = NUM_STA; in rtw_alloc_macid() 1809 psta->mac_id = i; in rtw_alloc_macid() 1824 if (psta->mac_id < NUM_STA && psta->mac_id != 1) { in rtw_release_macid() [all …]
|
/drivers/staging/r8188eu/hal/ |
D | rtl8188eu_xmit.c | 207 ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id & 0x3F); in update_txdesc() 249 if (ODM_RA_GetShortGI_8188E(&haldata->odmpriv, pattrib->mac_id)) in update_txdesc() 252 data_rate = ODM_RA_GetDecisionRate_8188E(&haldata->odmpriv, pattrib->mac_id); in update_txdesc() 254 pwr_status = ODM_RA_GetHwPwrStatus_8188E(&haldata->odmpriv, pattrib->mac_id); in update_txdesc() 267 ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id & 0x3f); in update_txdesc() 325 ODM_SetTxAntByTxInfo_88E(&haldata->odmpriv, pmem, pattrib->mac_id); in update_txdesc()
|
D | hal_intf.c | 243 void rtw_hal_update_ra_mask(struct adapter *adapt, u32 mac_id, u8 rssi_level) in rtw_hal_update_ra_mask() argument 251 if (mac_id >= 2) in rtw_hal_update_ra_mask() 252 psta = pstapriv->sta_aid[(mac_id - 1) - 1]; in rtw_hal_update_ra_mask() 258 adapt->HalFunc.UpdateRAMaskHandler(adapt, mac_id, in rtw_hal_update_ra_mask()
|
/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_cmd.c | 330 void rtl8723b_set_FwMacIdConfig_cmd(struct adapter *padapter, u8 mac_id, u8 raid, u8 bw, u8 sgi, u3… in rtl8723b_set_FwMacIdConfig_cmd() argument 334 SET_8723B_H2CCMD_MACID_CFG_MACID(u1H2CMacIdConfigParm, mac_id); in rtl8723b_set_FwMacIdConfig_cmd() 349 u8 mac_id = *param; in rtl8723b_set_rssi_cmd() local 353 SET_8723B_H2CCMD_RSSI_SETTING_MACID(u1H2CRssiSettingParm, mac_id); in rtl8723b_set_rssi_cmd() 740 u8 mac_id = arg[0]; in rtl8723b_Add_RateATid() local 746 psta = pmlmeinfo->FW_sta_info[mac_id].psta; in rtl8723b_Add_RateATid() 753 mask = ODM_Get_Rate_Bitmap(&pHalData->odmpriv, mac_id, mask, rssi_level); in rtl8723b_Add_RateATid() 755 rtl8723b_set_FwMacIdConfig_cmd(padapter, mac_id, raid, bw, shortGI, mask); in rtl8723b_Add_RateATid()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rx.c | 529 __le32 mac_id; member 544 u16 id = le32_to_cpu(data->mac_id); in iwl_mvm_stat_iterator() 728 data.mac_id = stats->mac_id; in iwl_mvm_handle_rx_statistics_tlv() 790 data.mac_id = stats->rx.general.mac_id; in iwl_mvm_handle_rx_statistics() 812 data.mac_id = stats->rx.general.mac_id; in iwl_mvm_handle_rx_statistics()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | dm.h | 237 u32 mac_id); 239 u32 mac_id, u32 rx_pwdb_all);
|