Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/hal/
Dodm_rtl8188e.c191 static void update_tx_ant_88eu(struct odm_dm_struct *dm_odm, u8 ant, u32 mac_id) in update_tx_ant_88eu() argument
200 dm_fat_tbl->antsel_a[mac_id] = target_ant & BIT(0); in update_tx_ant_88eu()
201 dm_fat_tbl->antsel_b[mac_id] = (target_ant & BIT(1)) >> 1; in update_tx_ant_88eu()
202 dm_fat_tbl->antsel_c[mac_id] = (target_ant & BIT(2)) >> 2; in update_tx_ant_88eu()
206 u8 *desc, u8 mac_id) in rtl88eu_dm_set_tx_ant_by_tx_info() argument
212 SET_TX_DESC_ANTSEL_A_88E(desc, dm_fat_tbl->antsel_a[mac_id]); in rtl88eu_dm_set_tx_ant_by_tx_info()
213 SET_TX_DESC_ANTSEL_B_88E(desc, dm_fat_tbl->antsel_b[mac_id]); in rtl88eu_dm_set_tx_ant_by_tx_info()
214 SET_TX_DESC_ANTSEL_C_88E(desc, dm_fat_tbl->antsel_c[mac_id]); in rtl88eu_dm_set_tx_ant_by_tx_info()
219 u8 antsel_tr_mux, u32 mac_id, u8 rx_pwdb_all) in rtl88eu_dm_ant_sel_statistics() argument
225 dm_fat_tbl->MainAnt_Sum[mac_id] += rx_pwdb_all; in rtl88eu_dm_ant_sel_statistics()
[all …]
Dhal_intf.c49 void rtw_hal_update_ra_mask(struct adapter *adapt, u32 mac_id, u8 rssi_level) in rtw_hal_update_ra_mask() argument
58 if (mac_id - 1 > 0) in rtw_hal_update_ra_mask()
59 psta = pstapriv->sta_aid[mac_id - 2]; in rtw_hal_update_ra_mask()
64 UpdateHalRAMask8188EUsb(adapt, mac_id, rssi_level); in rtw_hal_update_ra_mask()
Drtl8188eu_xmit.c207 ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id & 0x3F); in update_txdesc()
249 if (ODM_RA_GetShortGI_8188E(odmpriv, pattrib->mac_id)) in update_txdesc()
252 data_rate = ODM_RA_GetDecisionRate_8188E(odmpriv, pattrib->mac_id); in update_txdesc()
254 pwr_status = ODM_RA_GetHwPwrStatus_8188E(odmpriv, pattrib->mac_id); in update_txdesc()
267 ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id & 0x3f); in update_txdesc()
322 rtl88eu_dm_set_tx_ant_by_tx_info(odmpriv, pmem, pattrib->mac_id); in update_txdesc()
/kernel/linux/linux-5.10/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()
299 speed, drv->mac_id); in hns_gmac_adjust_link()
341 "hns ge %d fifo was not idle.\n", drv->mac_id); in hns_gmac_wait_fifo_clean()
355 port = drv->mac_id; in hns_gmac_init()
734 mac_drv->mac_id = mac_param->mac_id; in hns_gmac_config()
/kernel/linux/linux-5.10/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,
Dhw.h170 int (*mac_id_to_pdev_id)(struct ath11k_hw_params *hw, int mac_id);
171 int (*mac_id_to_srng_id)(struct ath11k_hw_params *hw, int mac_id);
192 int mac_id) in ath11k_hw_mac_id_to_pdev_id() argument
195 return hw->hw_ops->mac_id_to_pdev_id(hw, mac_id); in ath11k_hw_mac_id_to_pdev_id()
201 int mac_id) in ath11k_hw_mac_id_to_srng_id() argument
204 return hw->hw_ops->mac_id_to_srng_id(hw, mac_id); in ath11k_hw_mac_id_to_srng_id()
Ddp_tx.c282 static void ath11k_dp_tx_free_txbuf(struct ath11k_base *ab, u8 mac_id, in ath11k_dp_tx_free_txbuf() argument
307 ar = ab->pdevs[mac_id].ar; in ath11k_dp_tx_free_txbuf()
362 void *desc, u8 mac_id, in ath11k_dp_tx_process_htt_tx_complete() argument
385 ath11k_dp_tx_free_txbuf(ab, mac_id, msdu_id, tx_ring); in ath11k_dp_tx_process_htt_tx_complete()
538 u8 mac_id; in ath11k_dp_tx_completion_handler() local
574 mac_id = FIELD_GET(DP_TX_DESC_ID_MAC_ID, desc_id); in ath11k_dp_tx_completion_handler()
580 mac_id, msdu_id, in ath11k_dp_tx_completion_handler()
596 ar = ab->pdevs[mac_id].ar; in ath11k_dp_tx_completion_handler()
652 int mac_id, u32 ring_id, in ath11k_dp_tx_get_ring_id_type() argument
662 lmac_ring_id_offset = mac_id * HAL_SRNG_RINGS_PER_LMAC; in ath11k_dp_tx_get_ring_id_type()
[all …]
Ddp_rx.c278 int ath11k_dp_rxbufs_replenish(struct ath11k_base *ab, int mac_id, in ath11k_dp_rxbufs_replenish() argument
339 cookie = FIELD_PREP(DP_RXDMA_BUF_COOKIE_PDEV_ID, mac_id) | in ath11k_dp_rxbufs_replenish()
447 ath11k_dp_rxbufs_replenish(ar->ab, dp->mac_id, rx_ring, num_entries, in ath11k_dp_rxdma_ring_buf_setup()
538 dp->mac_id, DP_RXDMA_BUF_RING_SIZE); in ath11k_dp_rx_pdev_srng_alloc()
549 dp->mac_id + i, 1024); in ath11k_dp_rx_pdev_srng_alloc()
560 HAL_RXDMA_DST, 0, dp->mac_id + i, in ath11k_dp_rx_pdev_srng_alloc()
572 HAL_RXDMA_MONITOR_STATUS, 0, dp->mac_id + i, in ath11k_dp_rx_pdev_srng_alloc()
595 HAL_RXDMA_MONITOR_BUF, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc()
604 HAL_RXDMA_MONITOR_DST, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc()
613 HAL_RXDMA_MONITOR_DESC, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc()
[all …]
Dhw.c135 int mac_id) in ath11k_hw_mac_id_to_pdev_id_ipq8074() argument
137 return mac_id; in ath11k_hw_mac_id_to_pdev_id_ipq8074()
141 int mac_id) in ath11k_hw_mac_id_to_srng_id_ipq8074() argument
147 int mac_id) in ath11k_hw_mac_id_to_pdev_id_qca6390() argument
153 int mac_id) in ath11k_hw_mac_id_to_srng_id_qca6390() argument
155 return mac_id; in ath11k_hw_mac_id_to_srng_id_qca6390()
Ddp.h144 u32 mac_id; member
202 #define DP_HW2SW_MACID(mac_id) ((mac_id) ? ((mac_id) - 1) : 0) argument
203 #define DP_SW2HW_MACID(mac_id) ((mac_id) + 1) argument
1622 int mac_id, enum hal_ring_type ring_type);
1628 int mac_id, int num_entries);
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/api/
Dmac-cfg.h140 __le32 mac_id; member
156 __le32 mac_id; member
185 __le32 mac_id; member
203 __le32 mac_id; member
/kernel/linux/linux-5.10/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()
257 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_gephy_path_setup() argument
261 if (mac_id == 1) in mtk_gmac_gephy_path_setup()
275 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_rgmii_path_setup() argument
279 path = (mac_id == 0) ? MTK_ETH_PATH_GMAC1_RGMII : in mtk_gmac_rgmii_path_setup()
Dmtk_sgmii.c112 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()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/include/
Dodm_rtl8188e.h24 u8 mac_id);
29 u32 mac_id, u8 rx_pwdb_all);
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/
Drtw_wlan_util.c425 unsigned int mac_id; in allocate_fw_sta_entry() local
429 for (mac_id = IBSS_START_MAC_ID; mac_id < NUM_STA; mac_id++) { in allocate_fw_sta_entry()
430 if (pmlmeinfo->FW_sta_info[mac_id].status == 0) { in allocate_fw_sta_entry()
431 pmlmeinfo->FW_sta_info[mac_id].status = 1; in allocate_fw_sta_entry()
432 pmlmeinfo->FW_sta_info[mac_id].retry = 0; in allocate_fw_sta_entry()
437 return mac_id; in allocate_fw_sta_entry()
1144 void Update_RA_Entry(struct adapter *padapter, u32 mac_id) in Update_RA_Entry() argument
1146 rtw_hal_update_ra_mask(padapter, mac_id, 0); in Update_RA_Entry()
1152 Update_RA_Entry(padapter, psta->mac_id); in set_sta_rate()
1356 void update_bmc_sta_support_rate(struct adapter *padapter, u32 mac_id) in update_bmc_sta_support_rate() argument
[all …]
Drtw_mlme.c842 psta->mac_id = 0; in rtw_joinbss_update_stainfo()
1088 u8 mac_id; in search_max_mac_id() local
1103 mac_id = aid + 1; in search_max_mac_id()
1107 for (mac_id = NUM_STA - 1; mac_id >= IBSS_START_MAC_ID; mac_id--) { in search_max_mac_id()
1108 if (pmlmeinfo->FW_sta_info[mac_id].status == 1) in search_max_mac_id()
1112 return mac_id; in search_max_mac_id()
1126 media_status = (psta->mac_id << 8) | 1; /* MACID|OPMODE:1 connect */ in rtw_stassoc_hw_rpt()
1168 psta->mac_id = (uint)pstassoc->cam_id; in rtw_stassoc_event_callback()
1195 int mac_id = -1; in rtw_stadel_event_callback() local
1207 mac_id = psta->mac_id; in rtw_stadel_event_callback()
[all …]
/kernel/linux/linux-5.10/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 …]
Ddm.h247 u8 *pdesc, u32 mac_id);
249 u8 antsel_tr_mux, u32 mac_id,
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fman/
Dfman_tgec.c216 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()
Dfman_dtsec.c339 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()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_wlan_util.c741 unsigned int mac_id; in allocate_fw_sta_entry() local
745 for (mac_id = IBSS_START_MAC_ID; mac_id < NUM_STA; mac_id++) { in allocate_fw_sta_entry()
746 if (pmlmeinfo->FW_sta_info[mac_id].status == 0) { in allocate_fw_sta_entry()
747 pmlmeinfo->FW_sta_info[mac_id].status = 1; in allocate_fw_sta_entry()
748 pmlmeinfo->FW_sta_info[mac_id].retry = 0; in allocate_fw_sta_entry()
753 return mac_id; in allocate_fw_sta_entry()
1940 psta->mac_id = NUM_STA; in rtw_alloc_macid()
1954 psta->mac_id = NUM_STA; in rtw_alloc_macid()
1957 psta->mac_id = i; in rtw_alloc_macid()
1958 DBG_871X("%s = %d\n", __func__, psta->mac_id); in rtw_alloc_macid()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Drx.c570 __le32 mac_id; member
585 u16 id = le32_to_cpu(data->mac_id); in iwl_mvm_stat_iterator()
778 data.mac_id = stats->mac_id; in iwl_mvm_handle_rx_statistics_tlv()
840 data.mac_id = stats->rx.general.mac_id; in iwl_mvm_handle_rx_statistics()
862 data.mac_id = stats->rx.general.mac_id; in iwl_mvm_handle_rx_statistics()

123456