Home
last modified time | relevance | path

Searched refs:phy_idx (Results 26 – 50 of 65) sorted by relevance

123

/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76.h328 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()
H A Dmt76_connac_mac.c474 u8 phy_idx = (info->hw_queue & MT_TX_HW_QUEUE_PHY) >> 2; in mt76_connac2_mac_write_txwi() local
494 if (phy_idx && dev->phys[MT_BAND1]) in mt76_connac2_mac_write_txwi()
526 if (phy_idx || band_idx) in mt76_connac2_mac_write_txwi()
578 spe_idx = 24 + phy_idx; in mt76_connac2_mac_write_txwi()
641 if (wcid->phy_idx == MT_BAND1 && dev->phys[MT_BAND1]) in mt76_connac2_mac_fill_txs()
H A Dmac80211.c823 struct mt76_phy *phy = mt76_dev_phy(dev, status->phy_idx); in mt76_rx()
1103 *hw = mt76_phy_hw(dev, mstat.phy_idx); in mt76_rx_convert()
1266 hw = mt76_phy_hw(dev, status->phy_idx); in mt76_check_sta()
1411 wcid->phy_idx = phy->band_idx; in mt76_sta_add()
/openbmc/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()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A 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()
/openbmc/linux/drivers/net/wireless/realtek/rtw89/
H A 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()
H A Dcore.h2800 u8 phy_idx; member
2934 u8 phy_idx; member
3030 enum rtw89_phy_idx phy_idx);
3039 enum rtw89_phy_idx phy_idx);
3044 enum rtw89_phy_idx phy_idx);
3052 enum rtw89_phy_idx phy_idx);
3058 enum rtw89_phy_idx phy_idx);
4938 enum rtw89_phy_idx phy_idx) in rtw89_chip_set_channel_prepare() argument
4941 mac_idx, phy_idx); in rtw89_chip_set_channel_prepare()
4949 enum rtw89_phy_idx phy_idx) in rtw89_chip_set_channel_done() argument
[all …]
H A Dphy.c389 ra->band_num = rtwvif->phy_idx; in rtw89_phy_ra_sta_update()
828 enum rtw89_phy_idx phy_idx) in rtw89_phy_bb_reset() argument
832 chip->ops->bb_reset(rtwdev, phy_idx); in rtw89_phy_bb_reset()
1490 enum rtw89_phy_idx phy_idx) in rtw89_phy_read32_idx() argument
2097 enum rtw89_phy_idx phy_idx) in rtw89_phy_set_txpwr_byrate() argument
2154 enum rtw89_phy_idx phy_idx) in rtw89_phy_set_txpwr_offset() argument
2219 enum rtw89_phy_idx phy_idx) in rtw89_phy_set_txpwr_limit_ru() argument
3769 enum rtw89_phy_idx phy_idx) in rtw89_physts_enable_fail_report() argument
4512 phy_idx); in rtw89_phy_set_bss_color()
4514 bss_color, phy_idx); in rtw89_phy_set_bss_color()
[all …]
H A Dcore.c326 enum rtw89_phy_idx phy_idx; in rtw89_core_set_chip_txpwr() local
352 phy_idx = RTW89_PHY_0; in rtw89_core_set_chip_txpwr()
354 chip->ops->set_txpwr(rtwdev, chan, phy_idx); in rtw89_core_set_chip_txpwr()
366 enum rtw89_phy_idx phy_idx; in rtw89_set_channel() local
392 phy_idx = RTW89_PHY_0; in rtw89_set_channel()
397 rtw89_chip_set_channel_prepare(rtwdev, &bak, chan, mac_idx, phy_idx); in rtw89_set_channel()
399 chip->ops->set_channel(rtwdev, chan, mac_idx, phy_idx); in rtw89_set_channel()
401 chip->ops->set_txpwr(rtwdev, chan, phy_idx); in rtw89_set_channel()
403 rtw89_chip_set_channel_done(rtwdev, &bak, chan, mac_idx, phy_idx); in rtw89_set_channel()
406 rtw89_btc_ntfy_switch_band(rtwdev, phy_idx, chan->band_type); in rtw89_set_channel()
[all …]
H A Dcoex.c4474 btc->cx.wl.dbcc_info.op_band[phy_idx]; in _update_dbcc_band()
5357 __func__, phy_idx, band); in rtw89_btc_ntfy_scan_start()
5360 wl->scan_info.band[phy_idx] = band; in rtw89_btc_ntfy_scan_start()
5361 wl->scan_info.phy_map |= BIT(phy_idx); in rtw89_btc_ntfy_scan_start()
5366 _update_dbcc_band(rtwdev, phy_idx); in rtw89_btc_ntfy_scan_start()
5387 _update_dbcc_band(rtwdev, phy_idx); in rtw89_btc_ntfy_scan_finish()
5401 __func__, phy_idx, band); in rtw89_btc_ntfy_switch_band()
5404 wl->scan_info.band[phy_idx] = band; in rtw89_btc_ntfy_switch_band()
5405 wl->scan_info.phy_map |= BIT(phy_idx); in rtw89_btc_ntfy_switch_band()
5410 _update_dbcc_band(rtwdev, phy_idx); in rtw89_btc_ntfy_switch_band()
[all …]
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A 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()
1572 int phy_idx, rc; in bnx2x_get_module_info() local
1580 phy_idx = bnx2x_get_cur_phy_idx(bp); in bnx2x_get_module_info()
1582 rc = bnx2x_read_sfp_module_eeprom(&bp->link_params.phy[phy_idx], in bnx2x_get_module_info()
[all …]
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()
6314 params->phy[phy_idx].set_link_led( 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()
8227 for (phy_idx = INT_PHY; phy_idx < MAX_PHYS; phy_idx++) { in bnx2x_get_edc_mode()
8228 if (&(params->phy[phy_idx]) == phy) { in bnx2x_get_edc_mode()
12815 u32 phy_idx; in bnx2x_avoid_link_flap() local
12828 for (phy_idx = INT_PHY; phy_idx < params->num_phys; phy_idx++) { in bnx2x_avoid_link_flap()
13912 u16 phy_idx; in bnx2x_period_func() local
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/modules/inc/
H A Dmod_hdcp.h253 uint8_t phy_idx; member
/openbmc/linux/drivers/net/ethernet/dec/tulip/
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()
H A Dtulip_core.c902 const unsigned int phy_idx = 0; in private_ioctl() local
903 int phy = tp->phys[phy_idx] & 0x1f; in private_ioctl()
965 tp->advertising[phy_idx] = in private_ioctl()
/openbmc/linux/drivers/net/ethernet/smsc/
H A 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()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp.c694 u8 phy_idx = idx + tx->offset; in ice_ptp_process_tx_tstamp() local
715 if (!(tstamp_ready & BIT_ULL(phy_idx))) { in ice_ptp_process_tx_tstamp()
724 err = ice_read_phy_tstamp(hw, tx->block, phy_idx, &raw_tstamp); in ice_ptp_process_tx_tstamp()
867 u8 phy_idx = idx + tx->offset; in ice_ptp_flush_tx_tracker() local
871 if (!hw->reset_ongoing && (tstamp_ready & BIT_ULL(phy_idx))) in ice_ptp_flush_tx_tracker()
872 ice_clear_phy_tstamp(hw, tx->block, phy_idx); in ice_ptp_flush_tx_tracker()
/openbmc/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()
H A Dhamachi.c755 int phy, phy_idx = 0; in hamachi_init_one() local
756 for (phy = 0; phy < 32 && phy_idx < MII_CNT; phy++) { in hamachi_init_one()
760 hmp->phys[phy_idx++] = phy; in hamachi_init_one()
767 hmp->mii_cnt = phy_idx; in hamachi_init_one()
/openbmc/linux/drivers/net/ethernet/
H A Dfealnx.c568 int phy, phy_idx = 0; in fealnx_init_one() local
570 for (phy = 1; phy < 32 && phy_idx < ARRAY_SIZE(np->phys); in fealnx_init_one()
575 np->phys[phy_idx++] = phy; in fealnx_init_one()
600 np->mii_cnt = phy_idx; in fealnx_init_one()
601 if (phy_idx == 0) in fealnx_init_one()
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_hdcp.c538 link->phy_idx = config->phy_idx; in update_config()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c4164 uint8_t phy_idx = transmitter - TRANSMITTER_UNIPHY_A; in resource_transmitter_to_phy_idx() local
4170 phy_idx = 0; in resource_transmitter_to_phy_idx()
4173 phy_idx = 1; in resource_transmitter_to_phy_idx()
4176 phy_idx = 5; in resource_transmitter_to_phy_idx()
4179 phy_idx = 6; in resource_transmitter_to_phy_idx()
4182 phy_idx = 4; in resource_transmitter_to_phy_idx()
4185 phy_idx = 0; in resource_transmitter_to_phy_idx()
4190 return phy_idx; in resource_transmitter_to_phy_idx()
/openbmc/linux/drivers/net/ethernet/adaptec/
H A Dstarfire.c788 int phy, phy_idx = 0; in starfire_init_one() local
790 for (phy = 0; phy < 32 && phy_idx < PHY_CNT; phy++) { in starfire_init_one()
803 np->phys[phy_idx++] = phy; in starfire_init_one()
812 np->phy_cnt = phy_idx; in starfire_init_one()
/openbmc/linux/drivers/net/ethernet/dlink/
H A Dsundance.c510 int phy, phy_end, phy_idx = 0; in sundance_probe1() local
600 for (; phy <= phy_end && phy_idx < MII_CNT; phy++) { in sundance_probe1()
604 np->phys[phy_idx++] = phyx; in sundance_probe1()
615 if (phy_idx == 0) { in sundance_probe1()
/openbmc/linux/drivers/net/ethernet/realtek/
H A D8139too.c1058 int phy, phy_idx = 0; in rtl8139_init_one() local
1059 for (phy = 0; phy < 32 && phy_idx < sizeof(tp->phys); phy++) { in rtl8139_init_one()
1063 tp->phys[phy_idx++] = phy; in rtl8139_init_one()
1068 if (phy_idx == 0) { in rtl8139_init_one()

123