/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | efuse.c | 40 static int rtw_dump_logical_efuse_map(struct rtw_dev *rtwdev, u8 *phy_map, in rtw_dump_logical_efuse_map() argument 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() 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() 152 u8 *phy_map = NULL; in rtw_parse_efuse_map() local 156 phy_map = kmalloc(phy_size, GFP_KERNEL); in rtw_parse_efuse_map() 158 if (!phy_map || !log_map) { in rtw_parse_efuse_map() 163 ret = rtw_dump_physical_efuse_map(rtwdev, phy_map); in rtw_parse_efuse_map() 170 ret = rtw_dump_logical_efuse_map(rtwdev, phy_map, log_map); in rtw_parse_efuse_map() [all …]
|
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | efuse.c | 196 static int rtw89_dump_logical_efuse_map(struct rtw89_dev *rtwdev, u8 *phy_map, in rtw89_dump_logical_efuse_map() argument 209 if (!phy_map) in rtw89_dump_logical_efuse_map() 213 hdr1 = phy_map[phy_idx]; in rtw89_dump_logical_efuse_map() 214 hdr2 = phy_map[phy_idx + 1]; in rtw89_dump_logical_efuse_map() 231 log_map[log_idx] = phy_map[phy_idx]; in rtw89_dump_logical_efuse_map() 232 log_map[log_idx + 1] = phy_map[phy_idx + 1]; in rtw89_dump_logical_efuse_map() 246 u8 *phy_map = NULL; in rtw89_parse_efuse_map_ax() local 257 phy_map = kmalloc(phy_size, GFP_KERNEL); in rtw89_parse_efuse_map_ax() 264 if (!phy_map || !log_map || (dav_phy_size && !dav_phy_map)) { in rtw89_parse_efuse_map_ax() 269 ret = rtw89_dump_physical_efuse_map(rtwdev, phy_map, 0, phy_size, false); in rtw89_parse_efuse_map_ax() [all …]
|
H A D | efuse_be.c | 228 const u8 *phy_map, u32 phy_size, u8 *log_map, in rtw89_eeprom_parser_be() argument 254 hdr1 = phy_map[phy_idx]; in rtw89_eeprom_parser_be() 255 hdr2 = phy_map[phy_idx + 1]; in rtw89_eeprom_parser_be() 267 hdr1 = phy_map[phy_idx]; in rtw89_eeprom_parser_be() 268 hdr2 = phy_map[phy_idx + 1]; in rtw89_eeprom_parser_be() 269 hdr3 = phy_map[phy_idx + 2]; in rtw89_eeprom_parser_be() 298 val0 = phy_map[phy_idx]; in rtw89_eeprom_parser_be() 299 val1 = phy_map[phy_idx + 1]; in rtw89_eeprom_parser_be() 319 const u8 *phy_map, u32 phy_size, in rtw89_parse_logical_efuse_block_be() argument 333 ret = rtw89_eeprom_parser_be(rtwdev, phy_map, phy_size, log_map, efuse_block); in rtw89_parse_logical_efuse_block_be() [all …]
|
H A D | coex.h | 277 void rtw89_btc_ntfy_wl_rfk(struct rtw89_dev *rtwdev, u8 phy_map, 298 u8 phy_map; in rtw89_btc_phymap() local 300 phy_map = FIELD_PREP(BTC_RFK_PATH_MAP, paths) | in rtw89_btc_phymap() 304 return phy_map; in rtw89_btc_phymap() 324 static inline u32 rtw89_get_antpath_type(u8 phy_map, u8 type) in rtw89_get_antpath_type() argument 326 return ((phy_map << 8) + type); in rtw89_get_antpath_type()
|
H A D | rtw8852a_rfk.c | 501 u8 phy_map = rtw89_btc_phymap(rtwdev, RTW89_PHY_0, RF_AB, chanctx_idx); in _dac_cal() local 513 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_ONESHOT_START); in _dac_cal() 515 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_ONESHOT_STOP); in _dac_cal() 522 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_ONESHOT_START); in _dac_cal() 524 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_ONESHOT_STOP); in _dac_cal() 809 u8 phy_map = rtw89_btc_path_phymap(rtwdev, phy_idx, path, chanctx_idx); in _iqk_one_shot() local 817 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_ONESHOT_START); in _iqk_one_shot() 887 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_ONESHOT_STOP); in _iqk_one_shot() 1630 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, RF_AB, chanctx_idx); in _doiqk() local 1632 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_ONESHOT_START); in _doiqk() [all …]
|
H A D | coex.c | 2680 static void _set_gnt(struct rtw89_dev *rtwdev, u8 phy_map, u8 wl_state, u8 bt_state) in _set_gnt() argument 2687 if (phy_map > BTC_PHY_ALL) in _set_gnt() 2691 if (!(phy_map & BIT(i))) in _set_gnt() 2728 static void _set_gnt_v1(struct rtw89_dev *rtwdev, u8 phy_map, in _set_gnt_v1() argument 2736 if (phy_map > BTC_PHY_ALL) in _set_gnt_v1() 2740 if (!(phy_map & BIT(i))) in _set_gnt_v1() 4103 static void _set_bt_plut(struct rtw89_dev *rtwdev, u8 phy_map, in _set_bt_plut() argument 4122 if (phy_map & BTC_PHY_0) in _set_bt_plut() 4129 if (phy_map & BTC_PHY_1) in _set_bt_plut() 4135 u8 phy_map, u8 type) in _set_ant_v0() argument [all …]
|
H A D | rtw8852b_rfk.c | 1618 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, RF_AB, chanctx_idx); in _doiqk() local 1620 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_ONESHOT_START); in _doiqk() 1640 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_ONESHOT_STOP); in _doiqk() 3764 u8 phy_map = rtw89_btc_phymap(rtwdev, RTW89_PHY_0, 0, chanctx_idx); in rtw8852b_dack() local 3766 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_START); in rtw8852b_dack() 3768 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_STOP); in rtw8852b_dack() 3774 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, 0, chanctx_idx); in rtw8852b_iqk() local 3777 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_START); in rtw8852b_iqk() 3785 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_STOP); in rtw8852b_iqk() 3791 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, 0, chanctx_idx); in rtw8852b_rx_dck() local [all …]
|
H A D | rtw8852c_rfk.c | 593 u8 phy_map = rtw89_btc_phymap(rtwdev, RTW89_PHY_0, RF_AB, chanctx_idx); in _dac_cal() local 606 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_ONESHOT_START); in _dac_cal() 608 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_ONESHOT_STOP); in _dac_cal() 614 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_ONESHOT_START); in _dac_cal() 616 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_ONESHOT_STOP); in _dac_cal() 1528 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, RF_AB, chanctx_idx); in _doiqk() local 1530 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_ONESHOT_START); in _doiqk() 1548 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_ONESHOT_STOP); in _doiqk() 4153 u8 phy_map = rtw89_btc_phymap(rtwdev, RTW89_PHY_0, 0, chanctx_idx); in rtw8852c_dack() local 4155 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_START); in rtw8852c_dack() [all …]
|
H A D | rtw8851b_rfk.c | 1595 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, RF_AB, chanctx_idx); in _doiqk() local 1599 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, in _doiqk() 1620 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, in _doiqk() 3262 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, 0, chanctx_idx); in rtw8851b_iqk() local 3265 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_START); in rtw8851b_iqk() 3273 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_STOP); in rtw8851b_iqk() 3279 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, 0, chanctx_idx); in rtw8851b_rx_dck() local 3282 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_RXDCK, BTC_WRFK_START); in rtw8851b_rx_dck() 3289 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_RXDCK, BTC_WRFK_STOP); in rtw8851b_rx_dck() 3295 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, 0, chanctx_idx); in rtw8851b_dpk() local [all …]
|
H A D | rtw8852bt_rfk.c | 1765 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, RF_AB, chanctx_idx); in _doiqk() local 1767 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_ONESHOT_START); in _doiqk() 1787 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_ONESHOT_STOP); in _doiqk() 3839 u8 phy_map = rtw89_btc_phymap(rtwdev, RTW89_PHY_0, 0, chanctx_idx); in rtw8852bt_dack() local 3841 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_START); in rtw8852bt_dack() 3843 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_DACK, BTC_WRFK_STOP); in rtw8852bt_dack() 3849 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, 0, chanctx_idx); in rtw8852bt_iqk() local 3852 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_START); in rtw8852bt_iqk() 3860 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_IQK, BTC_WRFK_STOP); in rtw8852bt_iqk() 3866 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, 0, chanctx_idx); in rtw8852bt_rx_dck() local [all …]
|
H A D | rtw8922a.c | 2028 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, RF_AB, chanctx_idx); in rtw8922a_rfk_channel() local 2031 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_CHLK, BTC_WRFK_START); in rtw8922a_rfk_channel() 2043 rtw89_btc_ntfy_wl_rfk(rtwdev, phy_map, BTC_WRFKT_CHLK, BTC_WRFK_STOP); in rtw8922a_rfk_channel()
|
H A D | core.h | 1532 u8 phy_map; member 1749 u32 phy_map: 2; member
|
H A D | fw.c | 4580 RTW89_SET_FWCMD_CXRFK_PHY_MAP(cmd, rfk_info->phy_map); in rtw89_fw_h2c_cxdrv_rfk()
|
/linux/drivers/net/ethernet/ibm/emac/ |
H A D | core.c | 366 dev->phy_map == 0xffffffff)) { in emac_reset() 392 dev->phy_map == 0xffffffff)) { in emac_reset() 2641 u32 phy_map, adv; in emac_init_phy() local 2648 if ((dev->phy_address == 0xffffffff && dev->phy_map == 0xffffffff) || in emac_init_phy() 2678 phy_map = dev->phy_map | busy_phy_map; in emac_init_phy() 2680 DBG(dev, "PHY maps %08x %08x" NL, dev->phy_map, busy_phy_map); in emac_init_phy() 2741 phy_map = ~(1 << dev->phy_address); in emac_init_phy() 2743 for (i = 0; i < 0x20; phy_map >>= 1, ++i) in emac_init_phy() 2744 if (!(phy_map & 1)) { in emac_init_phy() 2833 if (emac_read_uint_prop(np, "phy-map", &dev->phy_map, 0)) in emac_init_config() [all …]
|
H A D | core.h | 174 u32 phy_map; member
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | wmi.c | 371 u32 phy_map; in ath11k_pull_mac_phy_cap_svc_ready_ext() local 381 phy_map = wmi_hw_mode_caps[hw_idx].phy_id_map; in ath11k_pull_mac_phy_cap_svc_ready_ext() 382 while (phy_map) { in ath11k_pull_mac_phy_cap_svc_ready_ext() 383 phy_map >>= 1; in ath11k_pull_mac_phy_cap_svc_ready_ext() 4669 u32 phy_map = 0; in ath11k_wmi_tlv_hw_mode_caps_parse() local 4681 phy_map = hw_mode_cap->phy_id_map; in ath11k_wmi_tlv_hw_mode_caps_parse() 4682 while (phy_map) { in ath11k_wmi_tlv_hw_mode_caps_parse() 4684 phy_map = phy_map >> 1; in ath11k_wmi_tlv_hw_mode_caps_parse()
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | wmi.c | 478 u32 phy_map; in ath12k_pull_mac_phy_cap_svc_ready_ext() local 489 phy_map = le32_to_cpu(wmi_hw_mode_caps[hw_idx].phy_id_map); in ath12k_pull_mac_phy_cap_svc_ready_ext() 490 phy_idx = fls(phy_map); in ath12k_pull_mac_phy_cap_svc_ready_ext() 3993 u32 phy_map = 0; in ath12k_wmi_hw_mode_caps_parse() local 4005 phy_map = le32_to_cpu(hw_mode_cap->phy_id_map); in ath12k_wmi_hw_mode_caps_parse() 4006 svc_rdy_ext->tot_phy_id += fls(phy_map); in ath12k_wmi_hw_mode_caps_parse()
|
/linux/drivers/dma/ |
H A D | ste_dma40.c | 1348 static const unsigned int phy_map[] = { in d40_get_prmo() local 1366 return phy_map[d40c->dma_cfg.mode_opt]; in d40_get_prmo()
|