Home
last modified time | relevance | path

Searched refs:phy_idx (Results 1 – 25 of 54) sorted by relevance

123

/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Drtw8852c.c952 enum rtw89_phy_idx phy_idx, in rtw8852c_set_gain_offset() argument
968 phy_idx = RTW89_PHY_1; in rtw8852c_set_gain_offset()
972 offset_base_q4 = efuse_gain->offset_base[phy_idx]; in rtw8852c_set_gain_offset()
996 offset_base_q4 = efuse_gain->offset_base[phy_idx]; in rtw8852c_set_gain_offset()
1003 rtw89_phy_write32_idx(rtwdev, R_RPL_PATHAB, rpl_mask[path], tmp & 0xff, phy_idx); in rtw8852c_set_gain_offset()
1004 rtw89_phy_write32_idx(rtwdev, R_RSSI_M_PATHAB, rpl_tb_mask[path], tmp & 0xff, phy_idx); in rtw8852c_set_gain_offset()
1009 enum rtw89_phy_idx phy_idx) in rtw8852c_ctrl_ch() argument
1024 if (phy_idx == RTW89_PHY_0) { in rtw8852c_ctrl_ch()
1027 rtw8852c_set_gain_offset(rtwdev, chan, phy_idx, RF_PATH_A); in rtw8852c_ctrl_ch()
1032 phy_idx); in rtw8852c_ctrl_ch()
[all …]
Drtw8852a.c816 enum rtw89_phy_idx phy_idx) in rtw8852a_ctrl_ch() argument
821 if (phy_idx == RTW89_PHY_0) { in rtw8852a_ctrl_ch()
827 phy_idx); in rtw8852a_ctrl_ch()
831 phy_idx); in rtw8852a_ctrl_ch()
839 1, phy_idx); in rtw8852a_ctrl_ch()
843 0, phy_idx); in rtw8852a_ctrl_ch()
855 sco_comp, phy_idx); in rtw8852a_ctrl_ch()
862 1, phy_idx); in rtw8852a_ctrl_ch()
866 0, phy_idx); in rtw8852a_ctrl_ch()
870 sco_comp, phy_idx); in rtw8852a_ctrl_ch()
[all …]
Drtw8852c_rfk.h13 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);
Dcoex.h142 void rtw89_btc_ntfy_scan_start(struct rtw89_dev *rtwdev, u8 phy_idx, u8 band);
143 void rtw89_btc_ntfy_scan_finish(struct rtw89_dev *rtwdev, u8 phy_idx);
144 void rtw89_btc_ntfy_switch_band(struct rtw89_dev *rtwdev, u8 phy_idx, u8 band);
169 enum rtw89_phy_idx phy_idx, in rtw89_btc_phymap() argument
176 FIELD_PREP(BTC_RFK_PHY_MAP, BIT(phy_idx)) | in rtw89_btc_phymap()
183 enum rtw89_phy_idx phy_idx, in rtw89_btc_path_phymap() argument
186 return rtw89_btc_phymap(rtwdev, phy_idx, BIT(path)); in rtw89_btc_path_phymap()
Defuse.c193 u32 phy_idx = sec_ctrl_size; in rtw89_dump_logical_efuse_map() local
203 while (phy_idx < physical_size - sec_ctrl_size) { in rtw89_dump_logical_efuse_map()
204 hdr1 = phy_map[phy_idx]; in rtw89_dump_logical_efuse_map()
205 hdr2 = phy_map[phy_idx + 1]; in rtw89_dump_logical_efuse_map()
211 phy_idx += 2; in rtw89_dump_logical_efuse_map()
218 if (phy_idx + 1 > physical_size - sec_ctrl_size - 1 || in rtw89_dump_logical_efuse_map()
222 log_map[log_idx] = phy_map[phy_idx]; in rtw89_dump_logical_efuse_map()
223 log_map[log_idx + 1] = phy_map[phy_idx + 1]; in rtw89_dump_logical_efuse_map()
224 phy_idx += 2; in rtw89_dump_logical_efuse_map()
Drtw8852a_rfk.h12 void rtw8852a_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx);
14 void rtw8852a_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
22 enum rtw89_phy_idx phy_idx);
Drtw8852a_rfk.c15 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 …]
Drtw8852c_rfk.c63 static u8 _kpath(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in _kpath() argument
66 rtwdev->dbcc_en, phy_idx); in _kpath()
71 if (phy_idx == RTW89_PHY_0) in _kpath()
687 enum rtw89_phy_idx phy_idx, u8 path, u8 ktype) in _iqk_one_shot() argument
750 enum rtw89_phy_idx phy_idx, u8 path) in _rxk_group_sel() argument
816 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_RXK); in _rxk_group_sel()
835 enum rtw89_phy_idx phy_idx, u8 path) in _iqk_nbrxk() argument
892 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_RXK); in _iqk_nbrxk()
911 enum rtw89_phy_idx phy_idx, u8 path) in _txk_group_sel() argument
965 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_TXK); in _txk_group_sel()
[all …]
Dmac.h860 enum rtw89_phy_idx phy_idx,
888 enum rtw89_phy_idx phy_idx, in rtw89_mac_txpwr_read32() argument
893 if (!rtw89_mac_get_txpwr_cr(rtwdev, phy_idx, reg_base, &cr)) in rtw89_mac_txpwr_read32()
901 enum rtw89_phy_idx phy_idx, in rtw89_mac_txpwr_write32() argument
906 if (!rtw89_mac_get_txpwr_cr(rtwdev, phy_idx, reg_base, &cr)) in rtw89_mac_txpwr_write32()
914 enum rtw89_phy_idx phy_idx, in rtw89_mac_txpwr_write32_mask() argument
919 if (!rtw89_mac_get_txpwr_cr(rtwdev, phy_idx, reg_base, &cr)) in rtw89_mac_txpwr_write32_mask()
Dcore.h2146 u8 phy_idx; member
2217 u8 phy_idx; member
2297 enum rtw89_phy_idx phy_idx);
2306 enum rtw89_phy_idx phy_idx);
2311 enum rtw89_phy_idx phy_idx);
2318 enum rtw89_phy_idx phy_idx);
2324 enum rtw89_phy_idx phy_idx);
2326 enum rtw89_phy_idx phy_idx);
2327 int (*init_txpwr_unit)(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx);
3928 enum rtw89_phy_idx phy_idx) in rtw89_chip_set_channel_prepare() argument
[all …]
Dcam.c570 bssid_cam->phy_idx = rtwvif->phy_idx; in rtw89_cam_init_bssid_cam()
626 FWCMD_SET_ADDR_BSSID_BB_SEL(cmd, bssid_cam->phy_idx); in rtw89_cam_fill_bssid_cam_info()
683 FWCMD_SET_ADDR_BB_SEL(cmd, rtwvif->phy_idx); in rtw89_cam_fill_addr_cam_info()
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Defuse.c46 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.1.9/drivers/phy/broadcom/
Dphy-bcm-sr-pcie.c201 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()
Dphy-bcm-sr-usb.c215 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.1.9/drivers/net/ethernet/dec/tulip/
Dmedia.c447 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()
Dwinbond-840.c436 int phy, phy_idx = 0; in w840_probe1() local
437 for (phy = 1; phy < 32 && phy_idx < MII_CNT; phy++) { in w840_probe1()
440 np->phys[phy_idx++] = phy; in w840_probe1()
450 np->mii_cnt = phy_idx; in w840_probe1()
452 if (phy_idx == 0) { in w840_probe1()
/linux-6.1.9/drivers/net/wireless/broadcom/b43/
Dtables_nphy.c3770 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.1.9/drivers/net/wireless/mediatek/mt76/
Dmt76.h315 u8 phy_idx:2; member
610 u8 phy_idx:2; member
1005 mt76_dev_phy(struct mt76_dev *dev, u8 phy_idx) in mt76_dev_phy() argument
1007 if ((phy_idx == MT_BAND1 && dev->phys[phy_idx]) || in mt76_dev_phy()
1008 (phy_idx == MT_BAND2 && dev->phys[phy_idx])) in mt76_dev_phy()
1009 return dev->phys[phy_idx]; in mt76_dev_phy()
1015 mt76_phy_hw(struct mt76_dev *dev, u8 phy_idx) in mt76_phy_hw() argument
1017 return mt76_dev_phy(dev, phy_idx)->hw; in mt76_phy_hw()
1255 u8 phy_idx = (info->hw_queue & MT_TX_HW_QUEUE_PHY) >> 2; in mt76_tx_status_get_hw() local
1256 struct ieee80211_hw *hw = mt76_phy_hw(dev, phy_idx); in mt76_tx_status_get_hw()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7615/
Dmac.c351 int phy_idx; in mt7615_mac_fill_rx() local
363 phy_idx = 0; in mt7615_mac_fill_rx()
365 phy_idx = -1; in mt7615_mac_fill_rx()
367 phy_idx = 0; in mt7615_mac_fill_rx()
369 phy_idx = 1; in mt7615_mac_fill_rx()
371 phy_idx = -1; in mt7615_mac_fill_rx()
498 if (phy_idx < 0) { in mt7615_mac_fill_rx()
501 phy_idx = ((rxdg5 >> (first_chain * 8)) & 0xff) == 0; in mt7615_mac_fill_rx()
505 if (phy_idx == 1 && phy2) { in mt7615_mac_fill_rx()
508 status->phy_idx = phy_idx; in mt7615_mac_fill_rx()
[all …]
Dpci_mac.c80 u8 phy_idx = (info->hw_queue & MT_TX_HW_QUEUE_PHY) >> 2; in mt7615_tx_prepare_skb() local
82 if (phy_idx && mdev->phys[MT_BAND1]) in mt7615_tx_prepare_skb()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/
Ddm_cp_psp.h38 uint8_t phy_idx; member
/linux-6.1.9/drivers/scsi/isci/
Dphy.c122 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()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c195 u32 phy_idx = bnx2x_get_cur_phy_idx(bp); in bnx2x_get_port_type() local
196 switch (bp->link_params.phy[phy_idx].media_type) { in bnx2x_get_port_type()
373 u32 speed, phy_idx; in bnx2x_set_link_ksettings() local
643 phy_idx = bnx2x_get_cur_phy_idx(bp); in bnx2x_set_link_ksettings()
646 (bp->link_params.phy[phy_idx].media_type != in bnx2x_set_link_ksettings()
1508 int rc = -EINVAL, phy_idx; in bnx2x_get_module_eeprom() local
1518 phy_idx = bnx2x_get_cur_phy_idx(bp); in bnx2x_get_module_eeprom()
1528 rc = bnx2x_read_sfp_module_eeprom(&bp->link_params.phy[phy_idx], in bnx2x_get_module_eeprom()
1553 rc = bnx2x_read_sfp_module_eeprom(&bp->link_params.phy[phy_idx], in bnx2x_get_module_eeprom()
1572 int phy_idx, rc; in bnx2x_get_module_info() local
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/display/modules/inc/
Dmod_hdcp.h252 uint8_t phy_idx; member
/linux-6.1.9/drivers/net/ethernet/smsc/
Depic100.c441 int phy, phy_idx = 0; in epic_init_one() local
442 for (phy = 1; phy < 32 && phy_idx < sizeof(ep->phys); phy++) { in epic_init_one()
445 ep->phys[phy_idx++] = phy; in epic_init_one()
452 ep->mii_phy_cnt = phy_idx; in epic_init_one()
453 if (phy_idx != 0) { in epic_init_one()

123