Home
last modified time | relevance | path

Searched refs:mac_idx (Results 1 – 16 of 16) sorted by relevance

/Linux-v6.1/drivers/net/wireless/realtek/rtw89/
Dmac.c54 int rtw89_mac_check_mac_en(struct rtw89_dev *rtwdev, u8 mac_idx, in rtw89_mac_check_mac_en() argument
62 } else if (sel == RTW89_CMAC_SEL && mac_idx == 0) { in rtw89_mac_check_mac_en()
65 } else if (sel == RTW89_CMAC_SEL && mac_idx == 1) { in rtw89_mac_check_mac_en()
1145 static int cmac_func_en(struct rtw89_dev *rtwdev, u8 mac_idx, bool en) in cmac_func_en() argument
1167 if (mac_idx == RTW89_MAC_1) { in cmac_func_en()
1174 rtw89_write32_set(rtwdev, addrl_ck_en[mac_idx], ck_en); in cmac_func_en()
1175 rtw89_write32_set(rtwdev, addrl_func_en[mac_idx], func_en); in cmac_func_en()
1177 rtw89_write32_clr(rtwdev, addrl_func_en[mac_idx], func_en); in cmac_func_en()
1178 rtw89_write32_clr(rtwdev, addrl_ck_en[mac_idx], ck_en); in cmac_func_en()
1179 if (mac_idx == RTW89_MAC_1) { in cmac_func_en()
[all …]
Dmac.h727 static inline u32 rtw89_mac_reg_by_port(u32 base, u8 port, u8 mac_idx) in rtw89_mac_reg_by_port() argument
729 return rtw89_mac_reg_by_idx(base + port * 0x40, mac_idx); in rtw89_mac_reg_by_port()
738 reg = rtw89_mac_reg_by_port(base, rtwvif->port, rtwvif->mac_idx); in rtw89_read32_port_mask()
748 reg = rtw89_mac_reg_by_port(base, rtwvif->port, rtwvif->mac_idx); in rtw89_write32_port()
758 reg = rtw89_mac_reg_by_port(base, rtwvif->port, rtwvif->mac_idx); in rtw89_write32_port_mask()
768 reg = rtw89_mac_reg_by_port(base, rtwvif->port, rtwvif->mac_idx); in rtw89_write16_port_mask()
778 reg = rtw89_mac_reg_by_port(base, rtwvif->port, rtwvif->mac_idx); in rtw89_write32_port_clr()
788 reg = rtw89_mac_reg_by_port(base, rtwvif->port, rtwvif->mac_idx); in rtw89_write16_port_clr()
798 reg = rtw89_mac_reg_by_port(base, rtwvif->port, rtwvif->mac_idx); in rtw89_write32_port_set()
836 int rtw89_mac_stop_sch_tx(struct rtw89_dev *rtwdev, u8 mac_idx,
[all …]
Drtw8852a.c690 u8 mac_idx) in rtw8852a_set_channel_mac() argument
692 u32 rf_mod = rtw89_mac_reg_by_idx(R_AX_WMAC_RFMOD, mac_idx); in rtw8852a_set_channel_mac()
694 mac_idx); in rtw8852a_set_channel_mac()
695 u32 chk_rate = rtw89_mac_reg_by_idx(R_AX_TXRATE_CHK, mac_idx); in rtw8852a_set_channel_mac()
1187 enum rtw89_mac_idx mac_idx, in rtw8852a_set_channel() argument
1190 rtw8852a_set_channel_mac(rtwdev, chan, mac_idx); in rtw8852a_set_channel()
1244 enum rtw89_mac_idx mac_idx, in rtw8852a_set_channel_help() argument
1248 rtw89_chip_stop_sch_tx(rtwdev, mac_idx, &p->tx_en, in rtw8852a_set_channel_help()
1250 rtw89_mac_cfg_ppdu_status(rtwdev, mac_idx, false); in rtw8852a_set_channel_help()
1257 rtw89_mac_cfg_ppdu_status(rtwdev, mac_idx, true); in rtw8852a_set_channel_help()
[all …]
Drtw8852c.c162 enum rtw89_mac_idx mac_idx);
599 u8 mac_idx) in rtw8852c_set_channel_mac() argument
601 u32 rf_mod = rtw89_mac_reg_by_idx(R_AX_WMAC_RFMOD, mac_idx); in rtw8852c_set_channel_mac()
603 mac_idx); in rtw8852c_set_channel_mac()
604 u32 chk_rate = rtw89_mac_reg_by_idx(R_AX_TXRATE_CHK, mac_idx); in rtw8852c_set_channel_mac()
1821 enum rtw89_mac_idx mac_idx, in rtw8852c_set_channel() argument
1824 rtw8852c_set_channel_mac(rtwdev, chan, mac_idx); in rtw8852c_set_channel()
1850 enum rtw89_mac_idx mac_idx, in rtw8852c_set_channel_help() argument
1854 rtw89_chip_stop_sch_tx(rtwdev, mac_idx, &p->tx_en, in rtw8852c_set_channel_help()
1856 rtw89_mac_cfg_ppdu_status(rtwdev, mac_idx, false); in rtw8852c_set_channel_help()
[all …]
Dcore.h2218 u8 mac_idx; member
2305 enum rtw89_mac_idx mac_idx,
2310 enum rtw89_mac_idx mac_idx,
2336 s8 pw_ofst, enum rtw89_mac_idx mac_idx);
2348 int (*stop_sch_tx)(struct rtw89_dev *rtwdev, u8 mac_idx,
2350 int (*resume_sch_tx)(struct rtw89_dev *rtwdev, u8 mac_idx, u32 tx_en);
3927 enum rtw89_mac_idx mac_idx, in rtw89_chip_set_channel_prepare() argument
3931 mac_idx, phy_idx); in rtw89_chip_set_channel_prepare()
3938 enum rtw89_mac_idx mac_idx, in rtw89_chip_set_channel_done() argument
3942 mac_idx, phy_idx); in rtw89_chip_set_channel_done()
[all …]
Dphy.h497 enum rtw89_mac_idx mac_idx,
Dmac80211.c131 rtwvif->mac_idx = RTW89_MAC_0; in rtw89_ops_add_interface()
323 reg = rtw89_mac_reg_by_idx(ac_to_mu_edca_param[ac], rtwvif->mac_idx); in ____rtw89_conf_tx_mu_edca()
Dfw.c737 SET_BA_CAM_BAND(skb->data, rtwvif->mac_idx); in rtw89_fw_h2c_ba_cam()
1302 SET_BCN_UPD_BAND(skb->data, rtwvif->mac_idx); in rtw89_fw_h2c_update_beacon()
1399 SET_JOININFO_BAND(skb->data, rtwvif->mac_idx); in rtw89_fw_h2c_join_info()
1479 RTW89_SET_EDCA_BAND(skb->data, rtwvif->mac_idx); in rtw89_fw_h2c_set_edca()
1519 RTW89_SET_FWCMD_TSF32_TOGL_BAND(cmd, rtwvif->mac_idx); in rtw89_fw_h2c_tsf32_toggle()
Dcore.c323 enum rtw89_mac_idx mac_idx; in rtw89_set_channel() local
338 mac_idx = RTW89_MAC_0; in rtw89_set_channel()
347 rtw89_chip_set_channel_prepare(rtwdev, &bak, &chan, mac_idx, phy_idx); in rtw89_set_channel()
349 chip->ops->set_channel(rtwdev, &chan, mac_idx, phy_idx); in rtw89_set_channel()
353 rtw89_chip_set_channel_done(rtwdev, &bak, &chan, mac_idx, phy_idx); in rtw89_set_channel()
Dphy.c3879 enum rtw89_mac_idx mac_idx, in rtw89_phy_tssi_ctrl_set_fast_mode_cfg() argument
3893 reg = rtw89_mac_reg_by_idx(regs[i].addr, mac_idx); in rtw89_phy_tssi_ctrl_set_fast_mode_cfg()
3935 enum rtw89_mac_idx mac_idx, in rtw89_phy_tssi_ctrl_set_bandedge_cfg() argument
3955 reg = rtw89_mac_reg_by_idx(regs[i].addr, mac_idx); in rtw89_phy_tssi_ctrl_set_bandedge_cfg()
3959 reg = rtw89_mac_reg_by_idx(R_AX_BANDEDGE_CFG, mac_idx); in rtw89_phy_tssi_ctrl_set_bandedge_cfg()
3962 rtw89_phy_tssi_ctrl_set_fast_mode_cfg(rtwdev, mac_idx, bandedge_cfg, in rtw89_phy_tssi_ctrl_set_bandedge_cfg()
/Linux-v6.1/drivers/net/ethernet/atheros/
Dag71xx.c379 int mac_idx; member
725 snprintf(mii_bus->id, MII_BUS_ID_SIZE, "%s.%d", np->name, ag->mac_idx); in ag71xx_mdio_probe()
1104 if ((ag71xx_is(ag, AR9330) && ag->mac_idx == 0) || in ag71xx_phylink_setup()
1107 (ag71xx_is(ag, QCA9550) && ag->mac_idx == 1)) in ag71xx_phylink_setup()
1111 if ((ag71xx_is(ag, AR9330) && ag->mac_idx == 1) || in ag71xx_phylink_setup()
1112 (ag71xx_is(ag, AR9340) && ag->mac_idx == 1) || in ag71xx_phylink_setup()
1113 (ag71xx_is(ag, QCA9530) && ag->mac_idx == 1)) in ag71xx_phylink_setup()
1117 if (ag71xx_is(ag, QCA9550) && ag->mac_idx == 0) in ag71xx_phylink_setup()
1121 if (ag71xx_is(ag, AR9340) && ag->mac_idx == 0) in ag71xx_phylink_setup()
1125 if ((ag71xx_is(ag, AR9340) && ag->mac_idx == 0) || in ag71xx_phylink_setup()
[all …]
/Linux-v6.1/drivers/net/wireless/intel/iwlegacy/
D4965-rs.c797 int rs_idx, mac_idx, i; in il4965_rs_tx_status() local
842 mac_idx = info->status.rates[0].idx; in il4965_rs_tx_status()
845 mac_idx &= RATE_MCS_CODE_MSK; /* Remove # of streams */ in il4965_rs_tx_status()
846 if (mac_idx >= (RATE_9M_IDX - IL_FIRST_OFDM_RATE)) in il4965_rs_tx_status()
847 mac_idx++; in il4965_rs_tx_status()
853 mac_idx += IL_FIRST_OFDM_RATE; in il4965_rs_tx_status()
856 if (mac_idx < 0 || in il4965_rs_tx_status()
863 !!(mac_flags & IEEE80211_TX_RC_GREEN_FIELD) || rs_idx != mac_idx) { in il4965_rs_tx_status()
864 D_RATE("initial rate %d does not match %d (0x%x)\n", mac_idx, in il4965_rs_tx_status()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx4/
Dcmd.c2041 vp_oper->mac_idx = __mlx4_register_mac(&priv->dev, in mlx4_master_activate_admin_state()
2044 if (0 > vp_oper->mac_idx) { in mlx4_master_activate_admin_state()
2045 err = vp_oper->mac_idx; in mlx4_master_activate_admin_state()
2046 vp_oper->mac_idx = NO_INDX; in mlx4_master_activate_admin_state()
2053 vp_oper->state.mac, vp_oper->mac_idx, slave, port); in mlx4_master_activate_admin_state()
2076 if (NO_INDX != vp_oper->mac_idx) { in mlx4_master_deactivate_admin_state()
2078 vp_oper->mac_idx = NO_INDX; in mlx4_master_deactivate_admin_state()
2429 vf_oper->vport[port].mac_idx = NO_INDX; in mlx4_multi_func_init()
Dmlx4.h526 int mac_idx; member
Dresource_tracker.c841 qpc->pri_path.grh_mylmc = (0x80 & qpc->pri_path.grh_mylmc) + vp_oper->mac_idx; in update_vport_qp_param()
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dt4_msg.h611 __be16 mac_idx; member
668 __be16 mac_idx; member