| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/rf/ |
| H A D | halrf_api.c | 198 void halrf_btc_rfk_ntfy(struct rf_info *rf, u8 phy_map, enum halrf_rfk_type type, in halrf_btc_rfk_ntfy() argument 205 band = rf->hal_com->band[(phy_map & 0x30) >> 5].cur_chandef.band; in halrf_btc_rfk_ntfy() 207 phy_map = (band << 6) | phy_map; in halrf_btc_rfk_ntfy() 210 band == 0 ? "2G" : (band == 1 ? "5G" : "6G"), (phy_map & 0x30) >> 5, type, in halrf_btc_rfk_ntfy() 211 phy_map & 0xf, process == 0 ? "RFK_STOP" : (process == 1 ? "RFK_START" : in halrf_btc_rfk_ntfy() 215 while (halrf_btc_ntfy(rf, phy_map, type, process) == 0 && cnt < 2500) { in halrf_btc_rfk_ntfy() 224 halrf_btc_ntfy(rf, phy_map, type, process); in halrf_btc_rfk_ntfy()
|
| H A D | halrf_api.h | 88 void halrf_btc_rfk_ntfy(struct rf_info *rf, u8 phy_map, enum halrf_rfk_type type,
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/rf/ |
| H A D | halrf_api.c | 198 void halrf_btc_rfk_ntfy(struct rf_info *rf, u8 phy_map, enum halrf_rfk_type type, in halrf_btc_rfk_ntfy() argument 205 band = rf->hal_com->band[(phy_map & 0x30) >> 5].cur_chandef.band; in halrf_btc_rfk_ntfy() 207 phy_map = (band << 6) | phy_map; in halrf_btc_rfk_ntfy() 210 band == 0 ? "2G" : (band == 1 ? "5G" : "6G"), (phy_map & 0x30) >> 5, type, in halrf_btc_rfk_ntfy() 211 phy_map & 0xf, process == 0 ? "RFK_STOP" : (process == 1 ? "RFK_START" : in halrf_btc_rfk_ntfy() 215 while (halrf_btc_ntfy(rf, phy_map, type, process) == 0 && cnt < 2500) { in halrf_btc_rfk_ntfy() 224 halrf_btc_ntfy(rf, phy_map, type, process); in halrf_btc_rfk_ntfy()
|
| H A D | halrf_api.h | 88 void halrf_btc_rfk_ntfy(struct rf_info *rf, u8 phy_map, enum halrf_rfk_type type,
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/btc/ |
| H A D | halbtc_action.c | 1036 void _set_gnt_wl(struct btc_t *btc, u8 phy_map, u8 state) in _set_gnt_wl() argument 1043 if (phy_map > BTC_PHY_ALL) in _set_gnt_wl() 1047 if (!(phy_map & BIT(i))) in _set_gnt_wl() 1069 void _set_gnt_bt(struct btc_t *btc, u8 phy_map, u8 state) in _set_gnt_bt() argument 1076 if (phy_map > BTC_PHY_ALL) in _set_gnt_bt() 1080 if (!(phy_map & BIT(i))) in _set_gnt_bt() 1102 static void _set_bt_plut(struct btc_t *btc, u8 phy_map, u8 tx_val, u8 rx_val) in _set_bt_plut() argument 1104 if (phy_map & BTC_PHY_0) { in _set_bt_plut() 1112 if (phy_map & BTC_PHY_1) { in _set_bt_plut() 1118 static void _set_ant(struct btc_t *btc, bool force_exec, u8 phy_map, u8 type) in _set_ant() argument [all …]
|
| H A D | halbtc_dbg_cmd.c | 305 wl->scan_info.band[HW_PHY_0], wl->scan_info.phy_map, in _show_wl_info() 1641 u32 gwl = 0, phy_map = BTC_PHY_ALL; in _cmd_set_gnt_wl() local 1649 _os_sscanf(input[2], "%d", &phy_map); in _cmd_set_gnt_wl() 1650 phy_map = (phy_map == 0? BTC_PHY_0 : BTC_PHY_1); in _cmd_set_gnt_wl() 1655 _set_gnt_wl(btc, (u8)phy_map, BTC_GNT_SW_LO); in _cmd_set_gnt_wl() 1657 " set gnt_wl = SW-0 (phy_map=0x%x)\n", phy_map); in _cmd_set_gnt_wl() 1660 _set_gnt_wl(btc, (u8)phy_map, BTC_GNT_SW_HI); in _cmd_set_gnt_wl() 1662 " set gnt_wl = SW-1 (phy_map=0x%x)\n", phy_map); in _cmd_set_gnt_wl() 1665 _set_gnt_wl(btc, (u8)phy_map, BTC_GNT_HW); in _cmd_set_gnt_wl() 1667 " set gnt_wl = HW-PTA ctrl (phy_map=0x%x)\n", phy_map); in _cmd_set_gnt_wl() [all …]
|
| H A D | halbtc_action.h | 269 void _set_gnt_wl(struct btc_t *btc, u8 phy_map, u8 state); 270 void _set_gnt_bt(struct btc_t *btc, u8 phy_map, u8 state);
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/btc/ |
| H A D | halbtc_action.c | 1036 void _set_gnt_wl(struct btc_t *btc, u8 phy_map, u8 state) in _set_gnt_wl() argument 1043 if (phy_map > BTC_PHY_ALL) in _set_gnt_wl() 1047 if (!(phy_map & BIT(i))) in _set_gnt_wl() 1069 void _set_gnt_bt(struct btc_t *btc, u8 phy_map, u8 state) in _set_gnt_bt() argument 1076 if (phy_map > BTC_PHY_ALL) in _set_gnt_bt() 1080 if (!(phy_map & BIT(i))) in _set_gnt_bt() 1102 static void _set_bt_plut(struct btc_t *btc, u8 phy_map, u8 tx_val, u8 rx_val) in _set_bt_plut() argument 1104 if (phy_map & BTC_PHY_0) { in _set_bt_plut() 1112 if (phy_map & BTC_PHY_1) { in _set_bt_plut() 1118 static void _set_ant(struct btc_t *btc, bool force_exec, u8 phy_map, u8 type) in _set_ant() argument [all …]
|
| H A D | halbtc_dbg_cmd.c | 305 wl->scan_info.band[HW_PHY_0], wl->scan_info.phy_map, in _show_wl_info() 1641 u32 gwl = 0, phy_map = BTC_PHY_ALL; in _cmd_set_gnt_wl() local 1649 _os_sscanf(input[2], "%d", &phy_map); in _cmd_set_gnt_wl() 1650 phy_map = (phy_map == 0? BTC_PHY_0 : BTC_PHY_1); in _cmd_set_gnt_wl() 1655 _set_gnt_wl(btc, (u8)phy_map, BTC_GNT_SW_LO); in _cmd_set_gnt_wl() 1657 " set gnt_wl = SW-0 (phy_map=0x%x)\n", phy_map); in _cmd_set_gnt_wl() 1660 _set_gnt_wl(btc, (u8)phy_map, BTC_GNT_SW_HI); in _cmd_set_gnt_wl() 1662 " set gnt_wl = SW-1 (phy_map=0x%x)\n", phy_map); in _cmd_set_gnt_wl() 1665 _set_gnt_wl(btc, (u8)phy_map, BTC_GNT_HW); in _cmd_set_gnt_wl() 1667 " set gnt_wl = HW-PTA ctrl (phy_map=0x%x)\n", phy_map); in _cmd_set_gnt_wl() [all …]
|
| H A D | halbtc_action.h | 269 void _set_gnt_wl(struct btc_t *btc, u8 phy_map, u8 state); 270 void _set_gnt_bt(struct btc_t *btc, u8 phy_map, u8 state);
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/mac/mac_ax/ |
| H A D | efuse.c | 160 static u32 eeprom_parser(struct mac_ax_adapter *adapter, u8 *phy_map, 790 ret = eeprom_parser(adapter, *bank_efuse_info.phy_map, in mac_dump_log_efuse() 1942 struct mac_ax_pg_efuse_info *info, u8 *phy_map) in mac_pg_simulator_plus() argument 1958 ret = mac_pg_simulator(adapter, info, phy_map); in mac_pg_simulator_plus() 1996 ret = mac_pg_simulator(adapter, info, phy_map); in mac_pg_simulator_plus() 2001 phy_map + hw_info->wl_efuse_size); in mac_pg_simulator_plus() 2016 struct mac_ax_pg_efuse_info *info, u8 *phy_map) in mac_pg_simulator() argument 2081 ret = eeprom_parser(adapter, phy_map, *bank_efuse_info.log_map, in mac_pg_simulator() 2087 PLTFM_MEMCPY(*bank_efuse_info.phy_map, phy_map, in mac_pg_simulator() 2117 PLTFM_MEMCPY(phy_map, *bank_efuse_info.phy_map, in mac_pg_simulator() [all …]
|
| H A D | efuse.h | 197 u8 **phy_map; member 883 struct mac_ax_pg_efuse_info *info, u8 *phy_map); 903 struct mac_ax_pg_efuse_info *info, u8 *phy_map);
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/mac/mac_ax/ |
| H A D | efuse.c | 160 static u32 eeprom_parser(struct mac_ax_adapter *adapter, u8 *phy_map, 790 ret = eeprom_parser(adapter, *bank_efuse_info.phy_map, in mac_dump_log_efuse() 1942 struct mac_ax_pg_efuse_info *info, u8 *phy_map) in mac_pg_simulator_plus() argument 1958 ret = mac_pg_simulator(adapter, info, phy_map); in mac_pg_simulator_plus() 1996 ret = mac_pg_simulator(adapter, info, phy_map); in mac_pg_simulator_plus() 2001 phy_map + hw_info->wl_efuse_size); in mac_pg_simulator_plus() 2016 struct mac_ax_pg_efuse_info *info, u8 *phy_map) in mac_pg_simulator() argument 2081 ret = eeprom_parser(adapter, phy_map, *bank_efuse_info.log_map, in mac_pg_simulator() 2087 PLTFM_MEMCPY(*bank_efuse_info.phy_map, phy_map, in mac_pg_simulator() 2117 PLTFM_MEMCPY(phy_map, *bank_efuse_info.phy_map, in mac_pg_simulator() [all …]
|
| H A D | efuse.h | 197 u8 **phy_map; member 883 struct mac_ax_pg_efuse_info *info, u8 *phy_map); 903 struct mac_ax_pg_efuse_info *info, u8 *phy_map);
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/halmac/halmac_88xx/ |
| H A D | halmac_efuse_88xx.h | 28 eeprom_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, u8 *log_map); 31 eeprom_mask_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map,
|
| H A D | halmac_efuse_88xx.c | 1071 eeprom_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, u8 *log_map) in eeprom_parser_88xx() argument 1088 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1093 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1130 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1140 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1158 eeprom_mask_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, in eeprom_mask_parser_88xx() argument 1176 value8 = *(phy_map + efuse_idx); in eeprom_mask_parser_88xx() 1181 value8 = *(phy_map + efuse_idx); in eeprom_mask_parser_88xx()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/halmac/halmac_88xx/ |
| H A D | halmac_efuse_88xx.h | 28 eeprom_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, u8 *log_map); 31 eeprom_mask_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map,
|
| H A D | halmac_efuse_88xx.c | 106 super_usb_efuse_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, 120 super_usb_re_pg_chk_88xx(struct halmac_adapter *adapter, u8 *phy_map, 1198 eeprom_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, u8 *log_map) in eeprom_parser_88xx() argument 1215 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1220 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1257 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1267 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1285 eeprom_mask_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, in eeprom_mask_parser_88xx() argument 1303 value8 = *(phy_map + efuse_idx); in eeprom_mask_parser_88xx() 1308 value8 = *(phy_map + efuse_idx); in eeprom_mask_parser_88xx() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/halmac/halmac_88xx/ |
| H A D | halmac_efuse_88xx.h | 28 eeprom_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, u8 *log_map); 31 eeprom_mask_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map,
|
| H A D | halmac_efuse_88xx.c | 106 super_usb_efuse_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, 120 super_usb_re_pg_chk_88xx(struct halmac_adapter *adapter, u8 *phy_map, 1198 eeprom_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, u8 *log_map) in eeprom_parser_88xx() argument 1215 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1220 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1257 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1267 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1285 eeprom_mask_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, in eeprom_mask_parser_88xx() argument 1303 value8 = *(phy_map + efuse_idx); in eeprom_mask_parser_88xx() 1308 value8 = *(phy_map + efuse_idx); in eeprom_mask_parser_88xx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/halmac/halmac_88xx/ |
| H A D | halmac_efuse_88xx.h | 29 eeprom_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, u8 *log_map); 32 eeprom_mask_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map,
|
| H A D | halmac_efuse_88xx.c | 107 super_usb_efuse_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, 121 super_usb_re_pg_chk_88xx(struct halmac_adapter *adapter, u8 *phy_map, 1199 eeprom_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, u8 *log_map) in eeprom_parser_88xx() argument 1216 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1221 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1258 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1268 value8 = *(phy_map + efuse_idx); in eeprom_parser_88xx() 1286 eeprom_mask_parser_88xx(struct halmac_adapter *adapter, u8 *phy_map, in eeprom_mask_parser_88xx() argument 1304 value8 = *(phy_map + efuse_idx); in eeprom_mask_parser_88xx() 1309 value8 = *(phy_map + efuse_idx); in eeprom_mask_parser_88xx() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/rf/halrf_8852b/ |
| H A D | halrf_8852b.c | 245 u8 phy_map; in halrf_set_rx_dck_8852b() local 248 phy_map = (BIT(phy) << 4) | BIT(path); in halrf_set_rx_dck_8852b() 277 halrf_btc_rfk_ntfy(rf, phy_map, RF_BTC_RXDCK, RFK_ONESHOT_START); in halrf_set_rx_dck_8852b() 289 halrf_btc_rfk_ntfy(rf, phy_map, RF_BTC_RXDCK, RFK_ONESHOT_STOP); in halrf_set_rx_dck_8852b() 299 halrf_btc_rfk_ntfy(rf, phy_map, RF_BTC_RXDCK, RFK_ONESHOT_START); in halrf_set_rx_dck_8852b() 307 halrf_btc_rfk_ntfy(rf, phy_map, RF_BTC_RXDCK, RFK_ONESHOT_STOP); in halrf_set_rx_dck_8852b()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/rf/halrf_8852b/ |
| H A D | halrf_8852b.c | 245 u8 phy_map; in halrf_set_rx_dck_8852b() local 248 phy_map = (BIT(phy) << 4) | BIT(path); in halrf_set_rx_dck_8852b() 277 halrf_btc_rfk_ntfy(rf, phy_map, RF_BTC_RXDCK, RFK_ONESHOT_START); in halrf_set_rx_dck_8852b() 289 halrf_btc_rfk_ntfy(rf, phy_map, RF_BTC_RXDCK, RFK_ONESHOT_STOP); in halrf_set_rx_dck_8852b() 299 halrf_btc_rfk_ntfy(rf, phy_map, RF_BTC_RXDCK, RFK_ONESHOT_START); in halrf_set_rx_dck_8852b() 307 halrf_btc_rfk_ntfy(rf, phy_map, RF_BTC_RXDCK, RFK_ONESHOT_STOP); in halrf_set_rx_dck_8852b()
|