Lines Matching +full:mac +full:- +full:base

1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /* Copyright(c) 2019-2020 Realtek Corporation
380 u8 base:4; member
620 /* MAC debug port */
1024 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_reg_by_idx() local
1026 return band == 0 ? reg_base : (reg_base + mac->band1_offset); in rtw89_mac_reg_by_idx()
1030 u32 rtw89_mac_reg_by_port(struct rtw89_dev *rtwdev, u32 base, u8 port, u8 mac_idx) in rtw89_mac_reg_by_port() argument
1032 return rtw89_mac_reg_by_idx(rtwdev, base + port * 0x40, mac_idx); in rtw89_mac_reg_by_port()
1036 rtw89_read32_port(struct rtw89_dev *rtwdev, struct rtw89_vif *rtwvif, u32 base) in rtw89_read32_port() argument
1040 reg = rtw89_mac_reg_by_port(rtwdev, base, rtwvif->port, rtwvif->mac_idx); in rtw89_read32_port()
1046 u32 base, u32 mask) in rtw89_read32_port_mask() argument
1050 reg = rtw89_mac_reg_by_port(rtwdev, base, rtwvif->port, rtwvif->mac_idx); in rtw89_read32_port_mask()
1055 rtw89_write32_port(struct rtw89_dev *rtwdev, struct rtw89_vif *rtwvif, u32 base, in rtw89_write32_port() argument
1060 reg = rtw89_mac_reg_by_port(rtwdev, base, rtwvif->port, rtwvif->mac_idx); in rtw89_write32_port()
1066 u32 base, u32 mask, u32 data) in rtw89_write32_port_mask() argument
1070 reg = rtw89_mac_reg_by_port(rtwdev, base, rtwvif->port, rtwvif->mac_idx); in rtw89_write32_port_mask()
1076 u32 base, u32 mask, u16 data) in rtw89_write16_port_mask() argument
1080 reg = rtw89_mac_reg_by_port(rtwdev, base, rtwvif->port, rtwvif->mac_idx); in rtw89_write16_port_mask()
1086 u32 base, u32 bit) in rtw89_write32_port_clr() argument
1090 reg = rtw89_mac_reg_by_port(rtwdev, base, rtwvif->port, rtwvif->mac_idx); in rtw89_write32_port_clr()
1096 u32 base, u16 bit) in rtw89_write16_port_clr() argument
1100 reg = rtw89_mac_reg_by_port(rtwdev, base, rtwvif->port, rtwvif->mac_idx); in rtw89_write16_port_clr()
1106 u32 base, u32 bit) in rtw89_write32_port_set() argument
1110 reg = rtw89_mac_reg_by_port(rtwdev, base, rtwvif->port, rtwvif->mac_idx); in rtw89_write32_port_set()
1127 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_check_mac_en() local
1129 return mac->check_mac_en(rtwdev, band, sel); in rtw89_mac_check_mac_en()
1162 const struct rtw89_chip_info *chip = rtwdev->chip; in rtw89_chip_enable_bb_rf()
1164 return chip->ops->enable_bb_rf(rtwdev); in rtw89_chip_enable_bb_rf()
1169 const struct rtw89_chip_info *chip = rtwdev->chip; in rtw89_chip_disable_bb_rf()
1171 return chip->ops->disable_bb_rf(rtwdev); in rtw89_chip_disable_bb_rf()
1178 if (rtwdev->chip->chip_gen != RTW89_CHIP_AX) in rtw89_chip_reset_bb_rf()
1211 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_cfg_ppdu_status() local
1213 return mac->cfg_ppdu_status(rtwdev, mac_idx, enable); in rtw89_mac_cfg_ppdu_status()
1231 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_cfg_plt() local
1233 return mac->cfg_plt(rtwdev, plt); in rtw89_mac_cfg_plt()
1239 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_get_plt_cnt() local
1241 return mac->get_plt_cnt(rtwdev, band); in rtw89_mac_get_plt_cnt()
1257 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_bf_assoc() local
1259 if (mac->bf_assoc) in rtw89_mac_bf_assoc()
1260 mac->bf_assoc(rtwdev, vif, sta); in rtw89_mac_bf_assoc()
1279 if (rtwdev->chip->chip_gen != RTW89_CHIP_AX) in rtw89_mac_bf_monitor_track()
1282 if (!test_bit(RTW89_FLAG_BFEE_MON, rtwdev->flags)) in rtw89_mac_bf_monitor_track()
1292 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_txpwr_read32() local
1295 if (!mac->get_txpwr_cr(rtwdev, phy_idx, reg_base, &cr)) in rtw89_mac_txpwr_read32()
1296 return -EINVAL; in rtw89_mac_txpwr_read32()
1306 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_txpwr_write32() local
1309 if (!mac->get_txpwr_cr(rtwdev, phy_idx, reg_base, &cr)) in rtw89_mac_txpwr_write32()
1310 return -EINVAL; in rtw89_mac_txpwr_write32()
1320 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_txpwr_write32_mask() local
1323 if (!mac->get_txpwr_cr(rtwdev, phy_idx, reg_base, &cr)) in rtw89_mac_txpwr_write32_mask()
1324 return -EINVAL; in rtw89_mac_txpwr_write32_mask()
1333 const struct rtw89_chip_info *chip = rtwdev->chip; in rtw89_mac_ctrl_hci_dma_tx()
1336 rtw89_write32_set(rtwdev, chip->hci_func_en_addr, in rtw89_mac_ctrl_hci_dma_tx()
1339 rtw89_write32_clr(rtwdev, chip->hci_func_en_addr, in rtw89_mac_ctrl_hci_dma_tx()
1346 const struct rtw89_chip_info *chip = rtwdev->chip; in rtw89_mac_ctrl_hci_dma_rx()
1349 rtw89_write32_set(rtwdev, chip->hci_func_en_addr, in rtw89_mac_ctrl_hci_dma_rx()
1352 rtw89_write32_clr(rtwdev, chip->hci_func_en_addr, in rtw89_mac_ctrl_hci_dma_rx()
1359 const struct rtw89_chip_info *chip = rtwdev->chip; in rtw89_mac_ctrl_hci_dma_trx()
1362 rtw89_write32_set(rtwdev, chip->hci_func_en_addr, in rtw89_mac_ctrl_hci_dma_trx()
1365 rtw89_write32_clr(rtwdev, chip->hci_func_en_addr, in rtw89_mac_ctrl_hci_dma_trx()
1444 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_write_xtal_si() local
1446 return mac->write_xtal_si(rtwdev, offset, val, mask); in rtw89_mac_write_xtal_si()
1452 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_read_xtal_si() local
1454 return mac->read_xtal_si(rtwdev, offset, val); in rtw89_mac_read_xtal_si()