| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/phydm/halrf/rtl8822c/ |
| H A D | halrf_iqk_8822c.c | 42 struct dm_struct *dm, in _iqk_check_cal_8822c() argument 50 if (odm_read_1byte(dm, 0x2d9c) == 0x55) { in _iqk_check_cal_8822c() 54 fail = (boolean)odm_get_bb_reg(dm, R_0x1b08, BIT(26)); in _iqk_check_cal_8822c() 63 RF_DBG(dm, DBG_RF_IQK, "[IQK]IQK timeout!!!\n"); in _iqk_check_cal_8822c() 67 odm_write_1byte(dm, 0x1b10, 0x0); in _iqk_check_cal_8822c() 69 //odm_set_rf_reg(dm, (enum rf_path)path, 0x0, 0xf0000, 0x1); in _iqk_check_cal_8822c() 70 if(dm->cut_version == ODM_CUT_E) in _iqk_check_cal_8822c() 71 odm_set_rf_reg(dm, (enum rf_path)path, 0x8f, BIT(14), 0x0); in _iqk_check_cal_8822c() 73 odm_write_4byte(dm, 0x1b00, 0x8 | path << 1); in _iqk_check_cal_8822c() 75 odm_set_bb_reg(dm, R_0x1b20, BIT(26) | BIT(25), 0x2); in _iqk_check_cal_8822c() [all …]
|
| H A D | halrf_tssi_8822c.c | 45 struct dm_struct *dm = (struct dm_struct *)dm_void; in _backup_bb_registers_8822c() local 49 reg_backup[i] = odm_get_bb_reg(dm, reg[i], MASKDWORD); in _backup_bb_registers_8822c() 51 RF_DBG(dm, DBG_RF_TX_PWR_TRACK, "[TSSI] Backup BB 0x%x = 0x%x\n", in _backup_bb_registers_8822c() 63 struct dm_struct *dm = (struct dm_struct *)dm_void; in _reload_bb_registers_8822c() local 67 odm_set_bb_reg(dm, reg[i], MASKDWORD, reg_backup[i]); in _reload_bb_registers_8822c() 68 RF_DBG(dm, DBG_RF_TX_PWR_TRACK, "[TSSI] Reload BB 0x%x = 0x%x\n", in _reload_bb_registers_8822c() 80 struct dm_struct *dm = (struct dm_struct *)dm_void; in _halrf_driver_rate_to_tssi_rate_8822c() local 109 RF_DBG(dm, DBG_RF_TX_PWR_TRACK, in _halrf_driver_rate_to_tssi_rate_8822c() 120 struct dm_struct *dm = (struct dm_struct *)dm_void; in _halrf_tssi_rate_to_driver_rate_8822c() local 149 RF_DBG(dm, DBG_RF_TX_PWR_TRACK, in _halrf_tssi_rate_to_driver_rate_8822c() [all …]
|
| H A D | halrf_dpk_8822c.c | 45 struct dm_struct *dm) in _btc_wait_indirect_reg_ready_8822c() argument 52 if ((odm_read_1byte(dm, 0x1703) & BIT(5)) == 0) { in _btc_wait_indirect_reg_ready_8822c() 68 struct dm_struct *dm, in _btc_read_indirect_reg_8822c() argument 74 _btc_wait_indirect_reg_ready_8822c(dm); in _btc_read_indirect_reg_8822c() 76 odm_write_4byte(dm, 0x1700, 0x800F0000 | reg_addr); in _btc_read_indirect_reg_8822c() 78 return odm_read_4byte(dm, 0x1708); /* get read data */ in _btc_read_indirect_reg_8822c() 83 struct dm_struct *dm, in _btc_write_indirect_reg_8822c() argument 95 _btc_wait_indirect_reg_ready_8822c(dm); in _btc_write_indirect_reg_8822c() 98 odm_write_4byte(dm, 0x1704, reg_value); in _btc_write_indirect_reg_8822c() 100 odm_write_4byte(dm, 0x1700, 0xc00F0000 | reg_addr); in _btc_write_indirect_reg_8822c() [all …]
|
| H A D | halrf_8822c.c | 41 struct dm_struct *dm = (struct dm_struct *)dm_void; in halrf_rf_lna_setting_8822c() local 47 odm_set_rf_reg(dm, (enum rf_path)path, RF_0xef, BIT(19), in halrf_rf_lna_setting_8822c() 49 odm_set_rf_reg(dm, (enum rf_path)path, RF_0x33, in halrf_rf_lna_setting_8822c() 51 odm_set_rf_reg(dm, (enum rf_path)path, RF_0x3e, in halrf_rf_lna_setting_8822c() 53 odm_set_rf_reg(dm, (enum rf_path)path, RF_0x3f, in halrf_rf_lna_setting_8822c() 55 odm_set_rf_reg(dm, (enum rf_path)path, RF_0xef, BIT(19), in halrf_rf_lna_setting_8822c() 59 odm_set_rf_reg(dm, (enum rf_path)path, RF_0xef, BIT(19), in halrf_rf_lna_setting_8822c() 61 odm_set_rf_reg(dm, (enum rf_path)path, RF_0x33, in halrf_rf_lna_setting_8822c() 63 odm_set_rf_reg(dm, (enum rf_path)path, RF_0x3e, in halrf_rf_lna_setting_8822c() 65 odm_set_rf_reg(dm, (enum rf_path)path, RF_0x3f, in halrf_rf_lna_setting_8822c() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/hal/phydm/ |
| H A D | phydm.c | 50 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 55 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 56 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 58 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 59 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 61 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 62 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 63 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 64 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 70 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| H A D | phydm_adaptivity.c | 43 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_check_channel_plan() local 44 struct phydm_adaptivity_struct *adapt = &dm->adaptivity; in phydm_check_channel_plan() 45 void *adapter = dm->adapter; in phydm_check_channel_plan() 51 if (!dm->carrier_sense_enable) { /*@check domain Code for adaptivity or CarrierSense*/ in phydm_check_channel_plan() 52 if ((*dm->band_type == ODM_BAND_5G) && in phydm_check_channel_plan() 54 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 58 } else if ((*dm->band_type == ODM_BAND_2_4G) && in phydm_check_channel_plan() 60 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 64 } else if ((*dm->band_type != ODM_BAND_2_4G) && (*dm->band_type != ODM_BAND_5G)) { in phydm_check_channel_plan() 65 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/phydm/rtl8822b/ |
| H A D | phydm_hal_api8822b.c | 31 /* @These following functions can be used for PHY DM only*/ 56 void phydm_igi_toggle_8822b(struct dm_struct *dm) in phydm_igi_toggle_8822b() argument 60 igi = odm_get_bb_reg(dm, R_0xc50, 0x7f); in phydm_igi_toggle_8822b() 61 odm_set_bb_reg(dm, R_0xc50, 0x7f, (igi - 2)); in phydm_igi_toggle_8822b() 62 odm_set_bb_reg(dm, R_0xc50, 0x7f, igi); in phydm_igi_toggle_8822b() 63 odm_set_bb_reg(dm, R_0xe50, 0x7f, (igi - 2)); in phydm_igi_toggle_8822b() 64 odm_set_bb_reg(dm, R_0xe50, 0x7f, igi); in phydm_igi_toggle_8822b() 68 void phydm_8822b_type18_rfe(struct dm_struct *dm, u8 channel) in phydm_8822b_type18_rfe() argument 72 odm_set_bb_reg(dm, R_0xcb0, 0xffffff, 0x745774); in phydm_8822b_type18_rfe() 73 odm_set_bb_reg(dm, R_0xeb0, 0xffffff, 0x745774); in phydm_8822b_type18_rfe() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/hal/phydm/ |
| H A D | phydm.c | 49 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 54 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 55 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 57 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 58 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 60 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 61 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 62 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 63 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 69 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| H A D | phydm_adaptivity.c | 42 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_check_channel_plan() local 43 struct phydm_adaptivity_struct *adapt = &dm->adaptivity; in phydm_check_channel_plan() 44 void *adapter = dm->adapter; in phydm_check_channel_plan() 50 if (!dm->carrier_sense_enable) { /*@check domain Code for adaptivity or CarrierSense*/ in phydm_check_channel_plan() 51 if ((*dm->band_type == ODM_BAND_5G) && in phydm_check_channel_plan() 53 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 57 } else if ((*dm->band_type == ODM_BAND_2_4G) && in phydm_check_channel_plan() 59 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 63 } else if ((*dm->band_type != ODM_BAND_2_4G) && (*dm->band_type != ODM_BAND_5G)) { in phydm_check_channel_plan() 64 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/phydm/ |
| H A D | phydm.c | 49 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 54 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 55 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 57 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 58 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 60 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 61 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 62 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 63 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 69 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/phydm/ |
| H A D | phydm.c | 49 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 54 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 55 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 57 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 58 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 60 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 61 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 62 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 63 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 69 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/phydm/halrf/rtl8821c/ |
| H A D | halrf_iqk_8821c.c | 43 struct dm_struct *dm = (struct dm_struct *)dm_void; in do_iqk_8821c() local 44 struct dm_iqk_info *iqk_info = &dm->IQK_info; in do_iqk_8821c() 46 dm->rf_calibrate_info.thermal_value_iqk = thermal_value; in do_iqk_8821c() 47 halrf_segment_iqk_trigger(dm, true, iqk_info->segment_iqk); in do_iqk_8821c() 54 struct dm_struct *dm = (struct dm_struct *)dm_void; in do_iqk_8821c() local 55 struct dm_iqk_info *iqk_info = &dm->IQK_info; in do_iqk_8821c() 57 halrf_segment_iqk_trigger(dm, true, iqk_info->segment_iqk); in do_iqk_8821c() 63 struct dm_struct *dm = (struct dm_struct *)dm_void; in do_dpk_8821c() local 65 phy_dp_calibrate_8821c(dm, true); in do_dpk_8821c() 69 _iqk_check_nctl_done_8821c(struct dm_struct *dm, u8 path, u32 IQK_CMD) in _iqk_check_nctl_done_8821c() argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/phydm/halrf/rtl8821c/ |
| H A D | halrf_iqk_8821c.c | 42 struct dm_struct *dm = (struct dm_struct *)dm_void; in do_iqk_8821c() local 43 struct dm_iqk_info *iqk_info = &dm->IQK_info; in do_iqk_8821c() 45 dm->rf_calibrate_info.thermal_value_iqk = thermal_value; in do_iqk_8821c() 46 halrf_segment_iqk_trigger(dm, true, iqk_info->segment_iqk); in do_iqk_8821c() 53 struct dm_struct *dm = (struct dm_struct *)dm_void; in do_iqk_8821c() local 54 struct dm_iqk_info *iqk_info = &dm->IQK_info; in do_iqk_8821c() 56 halrf_segment_iqk_trigger(dm, true, iqk_info->segment_iqk); in do_iqk_8821c() 62 struct dm_struct *dm = (struct dm_struct *)dm_void; in do_dpk_8821c() local 64 phy_dp_calibrate_8821c(dm, true); in do_dpk_8821c() 68 _iqk_check_nctl_done_8821c(struct dm_struct *dm, u8 path, u32 IQK_CMD) in _iqk_check_nctl_done_8821c() argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/hal/phydm/ |
| H A D | phydm.c | 49 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 54 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 55 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 57 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 58 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 60 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 61 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 62 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 63 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 69 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| H A D | phydm_adaptivity.c | 42 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_check_channel_plan() local 43 struct phydm_adaptivity_struct *adapt = &dm->adaptivity; in phydm_check_channel_plan() 44 void *adapter = dm->adapter; in phydm_check_channel_plan() 50 if (!dm->carrier_sense_enable) { /*@check domain Code for adaptivity or CarrierSense*/ in phydm_check_channel_plan() 51 if ((*dm->band_type == ODM_BAND_5G) && in phydm_check_channel_plan() 53 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 57 } else if ((*dm->band_type == ODM_BAND_2_4G) && in phydm_check_channel_plan() 59 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 63 } else if ((*dm->band_type != ODM_BAND_2_4G) && (*dm->band_type != ODM_BAND_5G)) { in phydm_check_channel_plan() 64 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/phydm/ |
| H A D | phydm.c | 50 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 55 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 56 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 58 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 59 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 61 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 62 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 63 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 64 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 70 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| H A D | phydm_adaptivity.c | 43 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_check_channel_plan() local 44 struct phydm_adaptivity_struct *adapt = &dm->adaptivity; in phydm_check_channel_plan() 45 void *adapter = dm->adapter; in phydm_check_channel_plan() 51 if (!dm->carrier_sense_enable) { /*@check domain Code for adaptivity or CarrierSense*/ in phydm_check_channel_plan() 52 if ((*dm->band_type == ODM_BAND_5G) && in phydm_check_channel_plan() 54 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 58 } else if ((*dm->band_type == ODM_BAND_2_4G) && in phydm_check_channel_plan() 60 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 64 } else if ((*dm->band_type != ODM_BAND_2_4G) && (*dm->band_type != ODM_BAND_5G)) { in phydm_check_channel_plan() 65 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/hal/phydm/ |
| H A D | phydm.c | 49 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 54 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 55 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 57 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 58 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 60 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 61 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 62 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 63 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 69 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| H A D | phydm_adaptivity.c | 42 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_check_channel_plan() local 43 struct phydm_adaptivity_struct *adapt = &dm->adaptivity; in phydm_check_channel_plan() 44 void *adapter = dm->adapter; in phydm_check_channel_plan() 50 if (!dm->carrier_sense_enable) { /*@check domain Code for adaptivity or CarrierSense*/ in phydm_check_channel_plan() 51 if ((*dm->band_type == ODM_BAND_5G) && in phydm_check_channel_plan() 53 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 57 } else if ((*dm->band_type == ODM_BAND_2_4G) && in phydm_check_channel_plan() 59 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 63 } else if ((*dm->band_type != ODM_BAND_2_4G) && (*dm->band_type != ODM_BAND_5G)) { in phydm_check_channel_plan() 64 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/phydm/ |
| H A D | phydm.c | 49 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 54 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 55 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 57 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 58 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 60 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 61 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 62 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 63 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 69 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/hal/phydm/ |
| H A D | phydm.c | 49 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 54 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 55 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 57 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 58 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 60 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 61 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 62 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 63 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 69 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| H A D | phydm_adaptivity.c | 42 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_check_channel_plan() local 43 struct phydm_adaptivity_struct *adapt = &dm->adaptivity; in phydm_check_channel_plan() 44 void *adapter = dm->adapter; in phydm_check_channel_plan() 50 if (!dm->carrier_sense_enable) { /*@check domain Code for adaptivity or CarrierSense*/ in phydm_check_channel_plan() 51 if ((*dm->band_type == ODM_BAND_5G) && in phydm_check_channel_plan() 53 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 57 } else if ((*dm->band_type == ODM_BAND_2_4G) && in phydm_check_channel_plan() 59 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() 63 } else if ((*dm->band_type != ODM_BAND_2_4G) && (*dm->band_type != ODM_BAND_5G)) { in phydm_check_channel_plan() 64 PHYDM_DBG(dm, DBG_ADPTVTY, in phydm_check_channel_plan() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/hal/phydm/ |
| H A D | phydm.c | 50 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 55 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 56 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 58 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 59 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 61 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 62 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 63 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 64 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 70 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/hal/phydm/ |
| H A D | phydm.c | 50 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 55 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 56 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 58 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 59 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 61 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 62 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 63 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 64 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 70 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/hal/phydm/ |
| H A D | phydm.c | 50 struct dm_struct *dm = (struct dm_struct *)dm_void; in phydm_traffic_load_decision() local 55 if (dm->last_tx_ok_cnt > *dm->num_tx_bytes_unicast) in phydm_traffic_load_decision() 56 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 58 if (dm->last_rx_ok_cnt > *dm->num_rx_bytes_unicast) in phydm_traffic_load_decision() 59 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 61 dm->cur_tx_ok_cnt = *dm->num_tx_bytes_unicast - dm->last_tx_ok_cnt; in phydm_traffic_load_decision() 62 dm->cur_rx_ok_cnt = *dm->num_rx_bytes_unicast - dm->last_rx_ok_cnt; in phydm_traffic_load_decision() 63 dm->last_tx_ok_cnt = *dm->num_tx_bytes_unicast; in phydm_traffic_load_decision() 64 dm->last_rx_ok_cnt = *dm->num_rx_bytes_unicast; in phydm_traffic_load_decision() 70 dm->tx_tp = (dm->tx_tp >> 1) + (u32)((dm->cur_tx_ok_cnt >> shift) >> 1); in phydm_traffic_load_decision() [all …]
|