Home
last modified time | relevance | path

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

12

/linux/drivers/net/wireless/realtek/rtw89/
H A Drtw8852b_common.h120 void (*bb_reset_all)(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx);
141 enum rtw89_phy_idx phy_idx);
143 enum rtw89_phy_idx phy_idx);
145 enum rtw89_phy_idx phy_idx);
157 enum rtw89_phy_idx phy_idx);
159 enum rtw89_phy_idx phy_idx);
160 int (*init_txpwr_unit)(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx);
194 void rtw8852bx_bb_reset_all(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8852bx_bb_reset_all() argument
196 rtw8852bx_info.bb_reset_all(rtwdev, phy_idx); in rtw8852bx_bb_reset_all()
271 enum rtw89_phy_idx phy_idx) in rtw8852bx_set_channel_bb() argument
[all …]
H A Drtw8852bt_rfk.h12 void rtw8852bt_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
14 void rtw8852bt_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
17 void rtw8852bt_dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
25 enum rtw89_phy_idx phy_idx,
29 enum rtw89_phy_idx phy_idx);
30 void rtw8852bt_mcc_get_ch_info(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx);
H A Drtw8852b_rfk.h12 void rtw8852b_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
14 void rtw8852b_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
17 void rtw8852b_dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
25 enum rtw89_phy_idx phy_idx,
29 enum rtw89_phy_idx phy_idx);
30 void rtw8852b_mcc_get_ch_info(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx);
H A Drtw8852c_rfk.h13 void rtw8852c_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
15 void rtw8852c_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, bool is_afe);
18 void rtw8852c_dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
25 void rtw8852c_tssi_cont_en_phyidx(struct rtw89_dev *rtwdev, bool en, u8 phy_idx,
28 enum rtw89_phy_idx phy_idx);
31 enum rtw89_phy_idx phy_idx);
H A Drtw8851b_rfk.h15 void rtw8851b_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
17 void rtw8851b_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
20 void rtw8851b_dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
28 enum rtw89_phy_idx phy_idx,
32 enum rtw89_phy_idx phy_idx);
H A Drtw8922a_rfk.h10 void rtw8922a_tssi_cont_en_phyidx(struct rtw89_dev *rtwdev, bool en, u8 phy_idx);
13 enum rtw89_phy_idx phy_idx);
15 void rtw8922a_pre_set_channel_rf(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx);
16 void rtw8922a_post_set_channel_rf(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx);
H A Drtw8852a_rfk.h13 void rtw8852a_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
15 void rtw8852a_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
17 void rtw8852a_dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx,
26 enum rtw89_phy_idx phy_idx);
H A Dphy.c498 ra->band_num = rtwvif_link->phy_idx; in rtw89_phy_ra_sta_update()
1306 enum rtw89_phy_idx phy_idx) in __rtw89_phy_bb_reset() argument
1310 chip->ops->bb_reset(rtwdev, phy_idx); in __rtw89_phy_bb_reset()
2070 u32 data, enum rtw89_phy_idx phy_idx) in rtw89_phy_write32_idx() argument
2072 if (rtwdev->dbcc_en && phy_idx == RTW89_PHY_1) in rtw89_phy_write32_idx()
2079 enum rtw89_phy_idx phy_idx) in rtw89_phy_write32_idx_set() argument
2081 if (rtwdev->dbcc_en && phy_idx == RTW89_PHY_1) in rtw89_phy_write32_idx_set()
2088 enum rtw89_phy_idx phy_idx) in rtw89_phy_write32_idx_clr() argument
2090 if (rtwdev->dbcc_en && phy_idx == RTW89_PHY_1) in rtw89_phy_write32_idx_clr()
2097 enum rtw89_phy_idx phy_idx) in rtw89_phy_read32_idx() argument
[all …]
H A Dcoex.h272 void rtw89_btc_ntfy_scan_start(struct rtw89_dev *rtwdev, u8 phy_idx, u8 band);
273 void rtw89_btc_ntfy_scan_finish(struct rtw89_dev *rtwdev, u8 phy_idx);
274 void rtw89_btc_ntfy_switch_band(struct rtw89_dev *rtwdev, u8 phy_idx, u8 band);
304 enum rtw89_phy_idx phy_idx, in rtw89_btc_phymap() argument
312 FIELD_PREP(BTC_RFK_PHY_MAP, BIT(phy_idx)) | in rtw89_btc_phymap()
319 enum rtw89_phy_idx phy_idx, in rtw89_btc_path_phymap() argument
323 return rtw89_btc_phymap(rtwdev, phy_idx, BIT(path), chanctx_idx); in rtw89_btc_path_phymap()
328 enum rtw89_phy_idx phy_idx) in rtw89_coex_query_bt_req_len() argument
H A Dfw.c3134 u8 phy_idx; in rtw89_fw_h2c_lps_ch_info() local
3150 phy_idx = rtwvif_link->phy_idx; in rtw89_fw_h2c_lps_ch_info()
3151 if (phy_idx >= ARRAY_SIZE(h2c->info)) in rtw89_fw_h2c_lps_ch_info()
3157 h2c->info[phy_idx].central_ch = chan->channel; in rtw89_fw_h2c_lps_ch_info()
3158 h2c->info[phy_idx].pri_ch = chan->primary_channel; in rtw89_fw_h2c_lps_ch_info()
3159 h2c->info[phy_idx].band = chan->band_type; in rtw89_fw_h2c_lps_ch_info()
3160 h2c->info[phy_idx].bw = chan->band_width; in rtw89_fw_h2c_lps_ch_info()
3233 path = rtwvif_link->phy_idx == RTW89_PHY_1 ? RF_PATH_B : RF_PATH_A; in rtw89_fw_h2c_lps_ml_cmn_info()
3237 h2c->central_ch[rtwvif_link->phy_idx] = chan->channel; in rtw89_fw_h2c_lps_ml_cmn_info()
3238 h2c->pri_ch[rtwvif_link->phy_idx] = chan->primary_channel; in rtw89_fw_h2c_lps_ml_cmn_info()
[all …]
H A Dcore.c447 enum rtw89_phy_idx phy_idx) in __rtw89_core_set_chip_txpwr() argument
452 entity_active = rtw89_get_entity_state(rtwdev, phy_idx); in __rtw89_core_set_chip_txpwr()
456 chip->ops->set_txpwr(rtwdev, chan, phy_idx); in __rtw89_core_set_chip_txpwr()
482 !mon && !rtw89_entity_check_hw(rtwdev, rtwvif_link->phy_idx)) in rtw89_chip_rfk_channel()
486 rtw89_entity_force_hw(rtwdev, rtwvif_link->phy_idx); in rtw89_chip_rfk_channel()
500 enum rtw89_phy_idx phy_idx) in rtw89_chip_rfk_channel_for_pure_mon_vif() argument
508 rtwvif_link = rtw89_vif_get_link_inst(rtwvif, phy_idx); in rtw89_chip_rfk_channel_for_pure_mon_vif()
518 enum rtw89_phy_idx phy_idx) in __rtw89_set_channel() argument
525 entity_active = rtw89_get_entity_state(rtwdev, phy_idx); in __rtw89_set_channel()
529 rtw89_chip_set_channel_prepare(rtwdev, &bak, chan, mac_idx, phy_idx); in __rtw89_set_channel()
[all …]
H A Dcam.c725 bssid_cam->phy_idx = rtwvif_link->phy_idx; in rtw89_cam_init_bssid_cam()
791 le32_encode_bits(bssid_cam->phy_idx, ADDR_CAM_W13_BSSID_BB_SEL) | in rtw89_cam_fill_bssid_cam_info()
868 le32_encode_bits(rtwvif_link->phy_idx, ADDR_CAM_W2_BB_SEL) | in rtw89_cam_fill_addr_cam_info()
/linux/drivers/net/wireless/realtek/rtw88/
H A 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/drivers/phy/broadcom/
H A 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()
H A 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/drivers/net/ethernet/dec/tulip/
H A 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()
H A 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/drivers/net/wireless/broadcom/b43/
H A 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/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmac.c346 int phy_idx; in mt7615_mac_fill_rx() local
358 phy_idx = 0; in mt7615_mac_fill_rx()
360 phy_idx = -1; in mt7615_mac_fill_rx()
362 phy_idx = 0; in mt7615_mac_fill_rx()
364 phy_idx = 1; in mt7615_mac_fill_rx()
366 phy_idx = -1; in mt7615_mac_fill_rx()
490 if (phy_idx < 0) { in mt7615_mac_fill_rx()
493 phy_idx = ((rxdg5 >> (first_chain * 8)) & 0xff) == 0; in mt7615_mac_fill_rx()
497 if (phy_idx == 1 && phy2) { in mt7615_mac_fill_rx()
500 status->phy_idx = phy_idx; in mt7615_mac_fill_rx()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddm_cp_psp.h41 uint8_t phy_idx; member
/linux/drivers/scsi/isci/
H A 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/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mac.c501 u8 phy_idx = (info->hw_queue & MT_TX_HW_QUEUE_PHY) >> 2; in mt76_connac2_mac_write_txwi() local
521 if (phy_idx && dev->phys[MT_BAND1]) in mt76_connac2_mac_write_txwi()
553 if (phy_idx || band_idx) in mt76_connac2_mac_write_txwi()
606 spe_idx = 24 + phy_idx; in mt76_connac2_mac_write_txwi()
671 if (wcid->phy_idx == MT_BAND1 && dev->phys[MT_BAND1]) in mt76_connac2_mac_fill_txs()
/linux/drivers/net/ethernet/packetengines/
H A Dyellowfin.c495 int phy, phy_idx = 0; in yellowfin_init_one() local
496 for (phy = 0; phy < 32 && phy_idx < MII_CNT; phy++) { in yellowfin_init_one()
499 np->phys[phy_idx++] = phy; in yellowfin_init_one()
505 np->mii_cnt = phy_idx; in yellowfin_init_one()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_link.c6304 u8 phy_idx; in bnx2x_set_led() local
6312 for (phy_idx = EXT_PHY1; phy_idx < MAX_PHYS; phy_idx++) { in bnx2x_set_led()
6313 if (params->phy[phy_idx].set_link_led) { in bnx2x_set_led()
6314 params->phy[phy_idx].set_link_led( in bnx2x_set_led()
6315 &params->phy[phy_idx], params, mode); in bnx2x_set_led()
6685 u8 phy_idx, port = params->port; in bnx2x_update_link_up() local
6761 for (phy_idx = INT_PHY; phy_idx < MAX_PHYS; phy_idx++) { in bnx2x_update_link_up()
6762 if (params->phy[phy_idx].flags & FLAGS_TX_ERROR_CHECK) { in bnx2x_update_link_up()
8124 u32 sync_offset = 0, phy_idx, media_types; in bnx2x_get_edc_mode() local
8227 for (phy_idx = INT_PHY; phy_idx < MAX_PHYS; phy_idx++) { in bnx2x_get_edc_mode()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp.c591 u8 phy_idx = idx + tx->offset; in ice_ptp_process_tx_tstamp() local
613 !(tstamp_ready & BIT_ULL(phy_idx))) { in ice_ptp_process_tx_tstamp()
622 err = ice_read_phy_tstamp(hw, tx->block, phy_idx, &raw_tstamp); in ice_ptp_process_tx_tstamp()
760 u8 phy_idx = idx + tx->offset; in ice_ptp_flush_tx_tracker() local
764 if (!hw->reset_ongoing && (tstamp_ready & BIT_ULL(phy_idx))) in ice_ptp_flush_tx_tracker()
765 ice_clear_phy_tstamp(hw, tx->block, phy_idx); in ice_ptp_flush_tx_tracker()

12