Home
last modified time | relevance | path

Searched refs:mac_id (Results 1 – 25 of 142) sorted by relevance

123456

/linux-6.1.9/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c150 mac_cb->mac_id, ret); in hns_mac_adjust_link()
170 if (mac_cb->mac_id != DSAF_MAX_PORT_NUM) { in hns_mac_get_inner_port_num()
174 mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num()
178 if (mac_cb->mac_id >= DSAF_MAX_PORT_NUM) { in hns_mac_get_inner_port_num()
182 mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num()
187 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num()
193 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id, vmid); in hns_mac_get_inner_port_num()
201 vf_num_per_port * q_num_per_vf * mac_cb->mac_id; in hns_mac_get_inner_port_num()
226 mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id); in hns_mac_get_inner_port_num()
255 mac_entry.in_port_num = mac_cb->mac_id; in hns_mac_change_vf_addr()
[all …]
Dhns_dsaf_misc.c125 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 …]
Dhns_dsaf_main.c268 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 …]
Dhns_dsaf_gmac.c112 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()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/api/
Dmac-cfg.h91 __le32 mac_id; member
107 __le32 mac_id; member
134 __le32 mac_id; member
144 __le32 mac_id; member
161 __le32 mac_id; member
179 __le32 mac_id; member
Ddatapath.h193 u8 mac_id; member
254 __le32 mac_id; member
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Ddp_rx.h67 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,
Ddp_tx.c286 static void ath11k_dp_tx_free_txbuf(struct ath11k_base *ab, u8 mac_id, in ath11k_dp_tx_free_txbuf() argument
309 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()
658 u8 mac_id; in ath11k_dp_tx_completion_handler() local
695 mac_id = FIELD_GET(DP_TX_DESC_ID_MAC_ID, desc_id); in ath11k_dp_tx_completion_handler()
701 mac_id, msdu_id, in ath11k_dp_tx_completion_handler()
717 ar = ab->pdevs[mac_id].ar; in ath11k_dp_tx_completion_handler()
776 int mac_id, u32 ring_id, in ath11k_dp_tx_get_ring_id_type() argument
786 lmac_ring_id_offset = mac_id * HAL_SRNG_RINGS_PER_LMAC; in ath11k_dp_tx_get_ring_id_type()
[all …]
Ddp_rx.c343 int ath11k_dp_rxbufs_replenish(struct ath11k_base *ab, int mac_id, in ath11k_dp_rxbufs_replenish() argument
404 cookie = FIELD_PREP(DP_RXDMA_BUF_COOKIE_PDEV_ID, mac_id) | in ath11k_dp_rxbufs_replenish()
512 ath11k_dp_rxbufs_replenish(ar->ab, dp->mac_id, rx_ring, num_entries, in ath11k_dp_rxdma_ring_buf_setup()
603 dp->mac_id, DP_RXDMA_BUF_RING_SIZE); in ath11k_dp_rx_pdev_srng_alloc()
614 dp->mac_id + i, 1024); in ath11k_dp_rx_pdev_srng_alloc()
625 HAL_RXDMA_DST, 0, dp->mac_id + i, in ath11k_dp_rx_pdev_srng_alloc()
637 HAL_RXDMA_MONITOR_STATUS, 0, dp->mac_id + i, in ath11k_dp_rx_pdev_srng_alloc()
660 HAL_RXDMA_MONITOR_BUF, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc()
669 HAL_RXDMA_MONITOR_DST, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc()
678 HAL_RXDMA_MONITOR_DESC, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc()
[all …]
Dhw.h228 int (*mac_id_to_pdev_id)(struct ath11k_hw_params *hw, int mac_id);
229 int (*mac_id_to_srng_id)(struct ath11k_hw_params *hw, int mac_id);
294 int mac_id) in ath11k_hw_mac_id_to_pdev_id() argument
297 return hw->hw_ops->mac_id_to_pdev_id(hw, mac_id); in ath11k_hw_mac_id_to_pdev_id()
303 int mac_id) in ath11k_hw_mac_id_to_srng_id() argument
306 return hw->hw_ops->mac_id_to_srng_id(hw, mac_id); in ath11k_hw_mac_id_to_srng_id()
Ddp_tx.h37 int mac_id, enum hal_ring_type ring_type,
41 int ath11k_dp_tx_htt_rx_full_mon_setup(struct ath11k_base *ab, int mac_id,
Ddp.h172 u32 mac_id; member
236 #define DP_HW2SW_MACID(mac_id) ((mac_id) ? ((mac_id) - 1) : 0) argument
237 #define DP_SW2HW_MACID(mac_id) ((mac_id) + 1) argument
1688 int mac_id, enum hal_ring_type ring_type);
1694 int mac_id, int num_entries);
/linux-6.1.9/drivers/staging/r8188eu/hal/
Dhal_intf.c41 void rtw_hal_update_ra_mask(struct adapter *adapt, u32 mac_id, u8 rssi_level) in rtw_hal_update_ra_mask() argument
48 if (mac_id >= 2) in rtw_hal_update_ra_mask()
49 psta = pstapriv->sta_aid[(mac_id - 1) - 1]; in rtw_hal_update_ra_mask()
53 UpdateHalRAMask8188EUsb(adapt, mac_id, rssi_level); in rtw_hal_update_ra_mask()
Dusb_halinit.c939 void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_level) in UpdateHalRAMask8188EUsb() argument
952 if (mac_id >= NUM_STA) /* CAM_SIZE */ in UpdateHalRAMask8188EUsb()
954 psta = pmlmeinfo->FW_sta_info[mac_id].psta; in UpdateHalRAMask8188EUsb()
957 switch (mac_id) { in UpdateHalRAMask8188EUsb()
968 supportRateNum = rtw_get_rateset_len(pmlmeinfo->FW_sta_info[mac_id].SupportedRates); in UpdateHalRAMask8188EUsb()
977 supportRateNum = rtw_get_rateset_len(pmlmeinfo->FW_sta_info[mac_id].SupportedRates); in UpdateHalRAMask8188EUsb()
978 …networkType = judge_network_type(adapt, pmlmeinfo->FW_sta_info[mac_id].SupportedRates, supportRate… in UpdateHalRAMask8188EUsb()
987 rate_bitmap = ODM_Get_Rate_Bitmap(&haldata->odmpriv, mac_id, mask, rssi_level); in UpdateHalRAMask8188EUsb()
1002 mac_id, in UpdateHalRAMask8188EUsb()
Drtl8188eu_xmit.c184 ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id & 0x3F); in update_txdesc()
226 if (ODM_RA_GetShortGI_8188E(&haldata->odmpriv, pattrib->mac_id)) in update_txdesc()
229 data_rate = ODM_RA_GetDecisionRate_8188E(&haldata->odmpriv, pattrib->mac_id); in update_txdesc()
231 pwr_status = ODM_RA_GetHwPwrStatus_8188E(&haldata->odmpriv, pattrib->mac_id); in update_txdesc()
244 ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id & 0x3f); in update_txdesc()
295 ODM_SetTxAntByTxInfo_88E(&haldata->odmpriv, pmem, pattrib->mac_id); in update_txdesc()
/linux-6.1.9/drivers/net/ethernet/mediatek/
Dmtk_eth_path.c242 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()
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Dps.c85 static void __rtw89_enter_lps(struct rtw89_dev *rtwdev, u8 mac_id) in __rtw89_enter_lps() argument
88 .macid = mac_id, in __rtw89_enter_lps()
97 static void __rtw89_leave_lps(struct rtw89_dev *rtwdev, u8 mac_id) in __rtw89_leave_lps() argument
100 .macid = mac_id, in __rtw89_leave_lps()
124 __rtw89_enter_lps(rtwdev, rtwvif->mac_id); in rtw89_enter_lps()
134 __rtw89_leave_lps(rtwdev, rtwvif->mac_id); in rtw89_leave_lps_vif()
/linux-6.1.9/drivers/staging/r8188eu/core/
Drtw_wlan_util.c431 unsigned int mac_id; in allocate_fw_sta_entry() local
435 for (mac_id = IBSS_START_MAC_ID; mac_id < NUM_STA; mac_id++) { in allocate_fw_sta_entry()
436 if (pmlmeinfo->FW_sta_info[mac_id].status == 0) { in allocate_fw_sta_entry()
437 pmlmeinfo->FW_sta_info[mac_id].status = 1; in allocate_fw_sta_entry()
438 pmlmeinfo->FW_sta_info[mac_id].retry = 0; in allocate_fw_sta_entry()
443 return mac_id; in allocate_fw_sta_entry()
1214 void Update_RA_Entry(struct adapter *padapter, u32 mac_id) in Update_RA_Entry() argument
1216 rtw_hal_update_ra_mask(padapter, mac_id, 0); in Update_RA_Entry()
1219 static void enable_rate_adaptive(struct adapter *padapter, u32 mac_id) in enable_rate_adaptive() argument
1221 Update_RA_Entry(padapter, mac_id); in enable_rate_adaptive()
[all …]
Drtw_mlme.c953 psta->mac_id = 0; in rtw_joinbss_update_stainfo()
1170 u8 mac_id; in search_max_mac_id() local
1182 mac_id = aid + 1; in search_max_mac_id()
1185 for (mac_id = (NUM_STA - 1); mac_id >= IBSS_START_MAC_ID; mac_id--) { in search_max_mac_id()
1186 if (pmlmeinfo->FW_sta_info[mac_id].status == 1) in search_max_mac_id()
1190 return mac_id; in search_max_mac_id()
1207 media_status_rpt = (u16)((psta->mac_id << 8) | mstatus); in rtw_sta_media_status_rpt()
1238 psta->mac_id = (uint)pstassoc->cam_id; in rtw_stassoc_event_callback()
1266 int mac_id = -1; in rtw_stadel_event_callback() local
1278 mac_id = psta->mac_id; in rtw_stadel_event_callback()
[all …]
/linux-6.1.9/drivers/staging/r8188eu/include/
Dhal_intf.h24 void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_level);
38 void rtw_hal_update_ra_mask(struct adapter *padapter, u32 mac_id, u8 level);
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Ddm.c1268 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 …]
/linux-6.1.9/drivers/staging/rtl8723bs/core/
Drtw_wlan_util.c695 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 …]
/linux-6.1.9/drivers/net/ethernet/freescale/fman/
Dfman_tgec.c190 u8 mac_id; member
375 fman_unregister_intr(tgec->fm, FMAN_MOD_MAC, tgec->mac_id, in free_init_resources()
648 (fman_reset_mac(tgec->fm, tgec->mac_id) != 0)) { in tgec_init()
678 err = fman_set_mac_max_frame(tgec->fm, tgec->mac_id, in tgec_init()
712 fman_register_intr(tgec->fm, FMAN_MOD_MAC, tgec->mac_id, in tgec_init()
757 tgec->mac_id = params->mac_id; in tgec_config()
Dfman_dtsec.c313 u8 mac_id; member
754 fman_reset_mac(dtsec->fm, dtsec->mac_id); in dtsec_isr()
803 fman_unregister_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id, in free_init_resources()
805 fman_unregister_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id, in free_init_resources()
1320 (fman_reset_mac(dtsec->fm, dtsec->mac_id) != 0)) { in dtsec_init()
1368 err = fman_set_mac_max_frame(dtsec->fm, dtsec->mac_id, max_frm_ln); in dtsec_init()
1391 fman_register_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id, in dtsec_init()
1394 fman_register_intr(dtsec->fm, FMAN_MOD_MAC, dtsec->mac_id, in dtsec_init()
1439 dtsec->mac_id = params->mac_id; in dtsec_config()
/linux-6.1.9/drivers/staging/rtl8723bs/hal/
Drtl8723b_cmd.c330 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()

123456