/linux-6.6.21/drivers/net/wireless/realtek/rtw89/ |
D | rtw8852c.c | 865 enum rtw89_phy_idx phy_idx, in rtw8852c_set_gain_offset() argument 881 phy_idx = RTW89_PHY_1; in rtw8852c_set_gain_offset() 885 offset_base_q4 = efuse_gain->offset_base[phy_idx]; in rtw8852c_set_gain_offset() 895 offset_base_q4 = efuse_gain->offset_base[phy_idx]; in rtw8852c_set_gain_offset() 902 rtw89_phy_write32_idx(rtwdev, R_RPL_PATHAB, rpl_mask[path], tmp & 0xff, phy_idx); in rtw8852c_set_gain_offset() 903 rtw89_phy_write32_idx(rtwdev, R_RSSI_M_PATHAB, rpl_tb_mask[path], tmp & 0xff, phy_idx); in rtw8852c_set_gain_offset() 908 enum rtw89_phy_idx phy_idx) in rtw8852c_ctrl_ch() argument 923 if (phy_idx == RTW89_PHY_0) { in rtw8852c_ctrl_ch() 926 rtw8852c_set_gain_offset(rtwdev, chan, phy_idx, RF_PATH_A); in rtw8852c_ctrl_ch() 931 phy_idx); in rtw8852c_ctrl_ch() [all …]
|
D | rtw8852a.c | 834 enum rtw89_phy_idx phy_idx) in rtw8852a_ctrl_ch() argument 839 if (phy_idx == RTW89_PHY_0) { in rtw8852a_ctrl_ch() 845 phy_idx); in rtw8852a_ctrl_ch() 849 phy_idx); in rtw8852a_ctrl_ch() 857 1, phy_idx); in rtw8852a_ctrl_ch() 861 0, phy_idx); in rtw8852a_ctrl_ch() 873 sco_comp, phy_idx); in rtw8852a_ctrl_ch() 880 1, phy_idx); in rtw8852a_ctrl_ch() 884 0, phy_idx); in rtw8852a_ctrl_ch() 888 sco_comp, phy_idx); in rtw8852a_ctrl_ch() [all …]
|
D | rtw8852b.c | 1008 enum rtw89_phy_idx phy_idx) in rtw8852b_set_gain_offset() argument 1057 rtw89_phy_write32_idx(rtwdev, R_P0_RPL1, B_P0_RPL1_BIAS_MASK, tmp, phy_idx); in rtw8852b_set_gain_offset() 1061 rtw89_phy_write32_idx(rtwdev, R_P1_RPL1, B_P0_RPL1_BIAS_MASK, tmp, phy_idx); in rtw8852b_set_gain_offset() 1113 enum rtw89_phy_idx phy_idx) in rtw8852b_ctrl_ch() argument 1123 B_PATH0_BAND_SEL_MSK_V1, 1, phy_idx); in rtw8852b_ctrl_ch() 1126 B_PATH0_BAND_SEL_MSK_V1, 0, phy_idx); in rtw8852b_ctrl_ch() 1131 B_PATH1_BAND_SEL_MSK_V1, 1, phy_idx); in rtw8852b_ctrl_ch() 1134 B_PATH1_BAND_SEL_MSK_V1, 0, phy_idx); in rtw8852b_ctrl_ch() 1138 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_INV, sco_comp, phy_idx); in rtw8852b_ctrl_ch() 1166 rtw8852b_set_gain_offset(rtwdev, subband, phy_idx); in rtw8852b_ctrl_ch() [all …]
|
D | rtw8851b.c | 921 enum rtw89_phy_idx phy_idx) in rtw8851b_set_gain_offset() argument 958 rtw89_phy_write32_idx(rtwdev, R_P0_RPL1, B_P0_RPL1_BIAS_MASK, tmp, phy_idx); in rtw8851b_set_gain_offset() 962 rtw89_phy_write32_idx(rtwdev, R_P1_RPL1, B_P0_RPL1_BIAS_MASK, tmp, phy_idx); in rtw8851b_set_gain_offset() 1003 enum rtw89_phy_idx phy_idx) in rtw8851b_ctrl_ch() argument 1012 B_PATH0_BAND_SEL_MSK_V1, 1, phy_idx); in rtw8851b_ctrl_ch() 1015 B_PATH0_BAND_SEL_MSK_V1, 0, phy_idx); in rtw8851b_ctrl_ch() 1018 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_INV, sco_comp, phy_idx); in rtw8851b_ctrl_ch() 1045 rtw8851b_set_gain_offset(rtwdev, subband, phy_idx); in rtw8851b_ctrl_ch() 1091 enum rtw89_phy_idx phy_idx) in rtw8851b_ctrl_bw() argument 1095 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x0, phy_idx); in rtw8851b_ctrl_bw() [all …]
|
D | rtw8852c_rfk.h | 13 void rtw8852c_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx); 14 void rtw8852c_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, bool is_afe); 20 void rtw8852c_tssi_cont_en_phyidx(struct rtw89_dev *rtwdev, bool en, u8 phy_idx); 22 enum rtw89_phy_idx phy_idx); 25 enum rtw89_phy_idx phy_idx);
|
D | coex.h | 148 void rtw89_btc_ntfy_scan_start(struct rtw89_dev *rtwdev, u8 phy_idx, u8 band); 149 void rtw89_btc_ntfy_scan_finish(struct rtw89_dev *rtwdev, u8 phy_idx); 150 void rtw89_btc_ntfy_switch_band(struct rtw89_dev *rtwdev, u8 phy_idx, u8 band); 176 enum rtw89_phy_idx phy_idx, in rtw89_btc_phymap() argument 183 FIELD_PREP(BTC_RFK_PHY_MAP, BIT(phy_idx)) | in rtw89_btc_phymap() 190 enum rtw89_phy_idx phy_idx, in rtw89_btc_path_phymap() argument 193 return rtw89_btc_phymap(rtwdev, phy_idx, BIT(path)); in rtw89_btc_path_phymap() 198 enum rtw89_phy_idx phy_idx) in rtw89_coex_query_bt_req_len() argument
|
D | rtw8852b_rfk.h | 12 void rtw8852b_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx); 13 void rtw8852b_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx); 20 enum rtw89_phy_idx phy_idx); 23 enum rtw89_phy_idx phy_idx);
|
D | rtw8851b_rfk.h | 15 void rtw8851b_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx); 16 void rtw8851b_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx); 23 enum rtw89_phy_idx phy_idx); 26 enum rtw89_phy_idx phy_idx);
|
D | efuse.c | 197 u32 phy_idx = sec_ctrl_size; in rtw89_dump_logical_efuse_map() local 207 while (phy_idx < physical_size - sec_ctrl_size) { in rtw89_dump_logical_efuse_map() 208 hdr1 = phy_map[phy_idx]; in rtw89_dump_logical_efuse_map() 209 hdr2 = phy_map[phy_idx + 1]; in rtw89_dump_logical_efuse_map() 215 phy_idx += 2; in rtw89_dump_logical_efuse_map() 222 if (phy_idx + 1 > physical_size - sec_ctrl_size - 1 || in rtw89_dump_logical_efuse_map() 226 log_map[log_idx] = phy_map[phy_idx]; in rtw89_dump_logical_efuse_map() 227 log_map[log_idx + 1] = phy_map[phy_idx + 1]; in rtw89_dump_logical_efuse_map() 228 phy_idx += 2; in rtw89_dump_logical_efuse_map()
|
D | rtw8852a_rfk.h | 12 void rtw8852a_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx); 13 void rtw8852a_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, 21 enum rtw89_phy_idx phy_idx);
|
D | rtw8851b_rfk.c | 135 static u8 _kpath(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in _kpath() argument 140 static void _adc_fifo_rst(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _adc_fifo_rst() argument 681 static bool _iqk_one_shot(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_one_shot() argument 768 enum rtw89_phy_idx phy_idx, u8 path) in _rxk_2g_group_sel() argument 794 notready = _iqk_one_shot(rtwdev, phy_idx, path, ID_RXAGC); in _rxk_2g_group_sel() 803 notready = _iqk_one_shot(rtwdev, phy_idx, path, ID_NBRXK); in _rxk_2g_group_sel() 807 notready = _iqk_one_shot(rtwdev, phy_idx, path, ID_RXK); in _rxk_2g_group_sel() 837 enum rtw89_phy_idx phy_idx, u8 path) in _rxk_5g_group_sel() argument 866 notready = _iqk_one_shot(rtwdev, phy_idx, path, ID_RXAGC); in _rxk_5g_group_sel() 875 notready = _iqk_one_shot(rtwdev, phy_idx, path, ID_NBRXK); in _rxk_5g_group_sel() [all …]
|
D | rtw8852a_rfk.c | 15 static u8 _kpath(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in _kpath() argument 18 rtwdev->dbcc_en, phy_idx); in _kpath() 23 if (phy_idx == RTW89_PHY_0) in _kpath() 802 enum rtw89_phy_idx phy_idx, u8 path, u8 ktype) in _iqk_one_shot() argument 807 u8 phy_map = rtw89_btc_path_phymap(rtwdev, phy_idx, path); in _iqk_one_shot() 891 enum rtw89_phy_idx phy_idx, u8 path) in _rxk_group_sel() argument 930 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_RXK); in _rxk_group_sel() 955 enum rtw89_phy_idx phy_idx, u8 path) in _iqk_nbrxk() argument 994 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_NBRXK); in _iqk_nbrxk() 1043 enum rtw89_phy_idx phy_idx, u8 path) in _txk_group_sel() argument [all …]
|
D | rtw8852b_rfk.c | 275 static u8 _kpath(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in _kpath() argument 280 rtwdev->dbcc_en, phy_idx); in _kpath() 285 if (phy_idx == RTW89_PHY_0) in _kpath() 813 static bool _iqk_one_shot(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_one_shot() argument 868 static bool _rxk_group_sel(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _rxk_group_sel() argument 904 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_RXK); in _rxk_group_sel() 926 static bool _iqk_nbrxk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_nbrxk() argument 961 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_NBRXK); in _iqk_nbrxk() 1014 static bool _txk_group_sel(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8 path) in _txk_group_sel() argument 1056 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_TXK); in _txk_group_sel() [all …]
|
D | rtw8852c_rfk.c | 78 static u8 _kpath(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in _kpath() argument 81 rtwdev->dbcc_en, phy_idx); in _kpath() 86 if (phy_idx == RTW89_PHY_0) in _kpath() 718 enum rtw89_phy_idx phy_idx, u8 path, u8 ktype) in _iqk_one_shot() argument 781 enum rtw89_phy_idx phy_idx, u8 path) in _rxk_group_sel() argument 847 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_RXK); in _rxk_group_sel() 866 enum rtw89_phy_idx phy_idx, u8 path) in _iqk_nbrxk() argument 923 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_RXK); in _iqk_nbrxk() 942 enum rtw89_phy_idx phy_idx, u8 path) in _txk_group_sel() argument 996 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_TXK); in _txk_group_sel() [all …]
|
D | phy.h | 613 u32 data, enum rtw89_phy_idx phy_idx); 615 enum rtw89_phy_idx phy_idx); 622 enum rtw89_phy_idx phy_idx); 625 enum rtw89_phy_idx phy_idx); 628 enum rtw89_phy_idx phy_idx); 631 enum rtw89_phy_idx phy_idx);
|
D | mac.h | 1028 enum rtw89_phy_idx phy_idx, 1056 enum rtw89_phy_idx phy_idx, in rtw89_mac_txpwr_read32() argument 1061 if (!rtw89_mac_get_txpwr_cr(rtwdev, phy_idx, reg_base, &cr)) in rtw89_mac_txpwr_read32() 1069 enum rtw89_phy_idx phy_idx, in rtw89_mac_txpwr_write32() argument 1074 if (!rtw89_mac_get_txpwr_cr(rtwdev, phy_idx, reg_base, &cr)) in rtw89_mac_txpwr_write32() 1082 enum rtw89_phy_idx phy_idx, in rtw89_mac_txpwr_write32_mask() argument 1087 if (!rtw89_mac_get_txpwr_cr(rtwdev, phy_idx, reg_base, &cr)) in rtw89_mac_txpwr_write32_mask()
|
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/ |
D | efuse.c | 46 u32 phy_idx, log_idx; in rtw_dump_logical_efuse_map() local 52 for (phy_idx = 0; phy_idx < physical_size - protect_size;) { in rtw_dump_logical_efuse_map() 53 hdr1 = phy_map[phy_idx]; in rtw_dump_logical_efuse_map() 54 hdr2 = phy_map[phy_idx + 1]; in rtw_dump_logical_efuse_map() 62 phy_idx += 2; in rtw_dump_logical_efuse_map() 67 phy_idx += 1; in rtw_dump_logical_efuse_map() 75 if (phy_idx + 1 > physical_size - protect_size || in rtw_dump_logical_efuse_map() 79 log_map[log_idx] = phy_map[phy_idx]; in rtw_dump_logical_efuse_map() 80 log_map[log_idx + 1] = phy_map[phy_idx + 1]; in rtw_dump_logical_efuse_map() 81 phy_idx += 2; in rtw_dump_logical_efuse_map()
|
/linux-6.6.21/drivers/phy/broadcom/ |
D | phy-bcm-sr-pcie.c | 201 int phy_idx; in sr_pcie_phy_xlate() local 207 phy_idx = args->args[0]; in sr_pcie_phy_xlate() 209 if (WARN_ON(phy_idx >= SR_NR_PCIE_PHYS)) in sr_pcie_phy_xlate() 212 return core->phys[phy_idx].phy; in sr_pcie_phy_xlate() 221 unsigned int phy_idx = 0; in sr_pcie_phy_probe() local 252 for (phy_idx = 0; phy_idx < SR_NR_PCIE_PHYS; phy_idx++) { in sr_pcie_phy_probe() 253 struct sr_pcie_phy *p = &core->phys[phy_idx]; in sr_pcie_phy_probe() 256 if (phy_idx == SR_PAXC_PHY_IDX) in sr_pcie_phy_probe() 268 p->index = phy_idx; in sr_pcie_phy_probe()
|
D | phy-bcm-sr-usb.c | 215 int phy_idx; in bcm_usb_phy_xlate() local 222 phy_idx = args->args[0]; in bcm_usb_phy_xlate() 224 if (WARN_ON(phy_idx > 1)) in bcm_usb_phy_xlate() 227 return phy_cfg[phy_idx].phy; in bcm_usb_phy_xlate()
|
/linux-6.6.21/drivers/net/ethernet/dec/tulip/ |
D | media.c | 447 int phyn, phy_idx = 0; in tulip_find_mii() local 455 for (phyn = 1; phyn <= 32 && phy_idx < ARRAY_SIZE(tp->phys); phyn++) { in tulip_find_mii() 480 tp->advertising[phy_idx] = in tulip_find_mii() 482 } else if (tp->advertising[phy_idx]) { in tulip_find_mii() 483 to_advert = tp->advertising[phy_idx]; in tulip_find_mii() 485 tp->advertising[phy_idx] = in tulip_find_mii() 490 tp->phys[phy_idx++] = phy; in tulip_find_mii() 541 tp->mii_cnt = phy_idx; in tulip_find_mii() 542 if (tp->mtable && tp->mtable->has_mii && phy_idx == 0) { in tulip_find_mii()
|
/linux-6.6.21/drivers/net/wireless/broadcom/b43/ |
D | tables_nphy.c | 3770 u8 phy_idx; in b43_nphy_get_gain_ctl_workaround_ent() local 3777 phy_idx = 3; in b43_nphy_get_gain_ctl_workaround_ent() 3779 phy_idx = 2; in b43_nphy_get_gain_ctl_workaround_ent() 3781 phy_idx = 1; in b43_nphy_get_gain_ctl_workaround_ent() 3783 phy_idx = 0; in b43_nphy_get_gain_ctl_workaround_ent() 3784 e = &nphy_gain_ctl_workaround[ghz5][phy_idx]; in b43_nphy_get_gain_ctl_workaround_ent()
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | mac.c | 349 int phy_idx; in mt7615_mac_fill_rx() local 361 phy_idx = 0; in mt7615_mac_fill_rx() 363 phy_idx = -1; in mt7615_mac_fill_rx() 365 phy_idx = 0; in mt7615_mac_fill_rx() 367 phy_idx = 1; in mt7615_mac_fill_rx() 369 phy_idx = -1; in mt7615_mac_fill_rx() 497 if (phy_idx < 0) { in mt7615_mac_fill_rx() 500 phy_idx = ((rxdg5 >> (first_chain * 8)) & 0xff) == 0; in mt7615_mac_fill_rx() 504 if (phy_idx == 1 && phy2) { in mt7615_mac_fill_rx() 507 status->phy_idx = phy_idx; in mt7615_mac_fill_rx() [all …]
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/ |
D | mt76.h | 328 u8 phy_idx:2; member 619 u8 phy_idx:2; member 1134 mt76_dev_phy(struct mt76_dev *dev, u8 phy_idx) in mt76_dev_phy() argument 1136 if ((phy_idx == MT_BAND1 && dev->phys[phy_idx]) || in mt76_dev_phy() 1137 (phy_idx == MT_BAND2 && dev->phys[phy_idx])) in mt76_dev_phy() 1138 return dev->phys[phy_idx]; in mt76_dev_phy() 1144 mt76_phy_hw(struct mt76_dev *dev, u8 phy_idx) in mt76_phy_hw() argument 1146 return mt76_dev_phy(dev, phy_idx)->hw; in mt76_phy_hw() 1385 u8 phy_idx = (info->hw_queue & MT_TX_HW_QUEUE_PHY) >> 2; in mt76_tx_status_get_hw() local 1386 struct ieee80211_hw *hw = mt76_phy_hw(dev, phy_idx); in mt76_tx_status_get_hw()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/ |
D | dm_cp_psp.h | 38 uint8_t phy_idx; member
|
/linux-6.6.21/drivers/scsi/isci/ |
D | phy.c | 122 int phy_idx = iphy->phy_index; in sci_phy_link_layer_initialization() local 131 phy_user = &ihost->user_parameters.phys[phy_idx]; in sci_phy_link_layer_initialization() 132 phy_oem = &ihost->oem_parameters.phys[phy_idx]; in sci_phy_link_layer_initialization() 147 writel(phy_idx, &llr->sas_device_name_low); in sci_phy_link_layer_initialization() 155 writel(SCU_SAS_TIPID_GEN_VALUE(ID, phy_idx), &llr->identify_frame_phy_id); in sci_phy_link_layer_initialization() 172 struct scu_afe_transceiver __iomem *xcvr = &afe->scu_afe_xcvr[phy_idx]; in sci_phy_link_layer_initialization()
|