Lines Matching +full:0 +full:x00005

92 	{.bitrate = 10, .hw_value = 0x00,},
93 {.bitrate = 20, .hw_value = 0x01,},
94 {.bitrate = 55, .hw_value = 0x02,},
95 {.bitrate = 110, .hw_value = 0x03,},
96 {.bitrate = 60, .hw_value = 0x04,},
97 {.bitrate = 90, .hw_value = 0x05,},
98 {.bitrate = 120, .hw_value = 0x06,},
99 {.bitrate = 180, .hw_value = 0x07,},
100 {.bitrate = 240, .hw_value = 0x08,},
101 {.bitrate = 360, .hw_value = 0x09,},
102 {.bitrate = 480, .hw_value = 0x0a,},
103 {.bitrate = 540, .hw_value = 0x0b,},
131 return 0; in rtw_desc_to_bitrate()
147 .ht_cap = {0},
148 .vht_cap = {0},
161 .ht_cap = {0},
162 .vht_cap = {0},
173 u8 fix_rate_enable = 0; in rtw_dynamic_csi_rate()
199 rtwvif->stats.tx_unicast = 0; in rtw_vif_watch_dog_iter()
200 rtwvif->stats.rx_unicast = 0; in rtw_vif_watch_dog_iter()
201 rtwvif->stats.tx_cnt = 0; in rtw_vif_watch_dog_iter()
202 rtwvif->stats.rx_cnt = 0; in rtw_vif_watch_dog_iter()
234 rtw_coex_wl_status_change_notify(rtwdev, 0); in rtw_watch_dog_work()
250 stats->tx_unicast = 0; in rtw_watch_dog_work()
251 stats->rx_unicast = 0; in rtw_watch_dog_work()
252 stats->tx_cnt = 0; in rtw_watch_dog_work()
253 stats->rx_cnt = 0; in rtw_watch_dog_work()
343 if (vif->type == NL80211_IFTYPE_STATION && vif->cfg.assoc == 0) in rtw_sta_add()
350 for (i = 0; i < ARRAY_SIZE(sta->txq); i++) in rtw_sta_add()
362 return 0; in rtw_sta_add()
377 for (i = 0; i < ARRAY_SIZE(sta->txq); i++) in rtw_sta_remove()
405 for (i = 0; i < segs->num; i++) in rtw_fwcd_prep()
416 return 0; in rtw_fwcd_prep()
439 hdr->padding1 = 0x01234567; in rtw_fwcd_next()
440 hdr->padding2 = 0x89abcdef; in rtw_fwcd_next()
483 if (rtw_fw_dump_fifo(rtwdev, RTW_FW_FIFO_SEL_RXBUF_FW, 0, size, buf)) { in rtw_fw_dump_crash_log()
488 if (GET_FW_DUMP_LEN(buf) == 0) { in rtw_fw_dump_crash_log()
489 rtw_dbg(rtwdev, RTW_DBG_FW, "fw crash dump's length is 0\n"); in rtw_fw_dump_crash_log()
494 if (seq > 0) { in rtw_fw_dump_crash_log()
500 return 0; in rtw_fw_dump_crash_log()
507 u32 dump_size, done_size = 0; in rtw_dump_fw()
522 "ddma fw 0x%x [+0x%x] to fw fifo fail\n", in rtw_dump_fw()
527 ret = rtw_fw_dump_fifo(rtwdev, RTW_FW_FIFO_SEL_RXBUF_FW, 0, in rtw_dump_fw()
531 "dump fw 0x%x [+0x%x] from fw fifo fail\n", in rtw_dump_fw()
540 return 0; in rtw_dump_fw()
549 if (addr & 0x3) { in rtw_dump_reg()
550 WARN(1, "should be 4-byte aligned, addr = 0x%08x\n", addr); in rtw_dump_reg()
558 for (i = 0; i < size; i += 4) in rtw_dump_reg()
561 return 0; in rtw_dump_reg()
577 rtwvif->aid = 0; in rtw_vif_assoc_changed()
598 if (rtwdev->sta_cnt == 0) { in rtw_reset_sta_iter()
599 rtw_warn(rtwdev, "sta count before reset should not be 0\n"); in rtw_reset_sta_iter()
623 int ret = 0; in __fw_recovery_work()
641 rtw_write8(rtwdev, REG_MCU_TST_CFG, 0); in __fw_recovery_work()
678 ret = ieee80211_start_tx_ba_session(sta, tid, 0); in rtw_txq_ba_iter()
842 center_chan = 0; in rtw_get_channel_params()
860 if (WARN(ch_param.center_chan == 0, "Invalid channel\n")) in rtw_set_channel()
909 for (i = 0; i < ETH_ALEN; i++) in rtw_vif_write_addr()
946 u8 bw = 0; in hw_bw_cap_to_bitamp()
990 u64 ra_mask = 0; in get_vht_ra_mask()
996 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 10) { in get_vht_ra_mask()
997 vht_mcs_cap = mcs_map & 0x3; in get_vht_ra_mask()
1000 ra_mask |= 0x3ffULL << nss; in get_vht_ra_mask()
1003 ra_mask |= 0x1ffULL << nss; in get_vht_ra_mask()
1005 case 0: /* MCS7 */ in get_vht_ra_mask()
1006 ra_mask |= 0x0ffULL << nss; in get_vht_ra_mask()
1018 u8 rate_id = 0; in get_rate_id()
1097 #define RA_MASK_CCK_RATES 0x0000f
1098 #define RA_MASK_OFDM_RATES 0x00ff0
1099 #define RA_MASK_HT_RATES_1SS (0xff000ULL << 0)
1100 #define RA_MASK_HT_RATES_2SS (0xff000ULL << 8)
1101 #define RA_MASK_HT_RATES_3SS (0xff000ULL << 16)
1105 #define RA_MASK_VHT_RATES_1SS (0x3ff000ULL << 0)
1106 #define RA_MASK_VHT_RATES_2SS (0x3ff000ULL << 10)
1107 #define RA_MASK_VHT_RATES_3SS (0x3ff000ULL << 20)
1111 #define RA_MASK_CCK_IN_BG 0x00005
1112 #define RA_MASK_CCK_IN_HT 0x00005
1113 #define RA_MASK_CCK_IN_VHT 0x00005
1114 #define RA_MASK_OFDM_IN_VHT 0x00010
1115 #define RA_MASK_OFDM_IN_HT_2G 0x00010
1116 #define RA_MASK_OFDM_IN_HT_5G 0x00030
1123 return 0xffffffffffffffffULL; in rtw_rate_mask_rssi()
1125 if (rssi_level == 0) in rtw_rate_mask_rssi()
1126 return 0xffffffffffffffffULL; in rtw_rate_mask_rssi()
1128 return 0xfffffffffffffff0ULL; in rtw_rate_mask_rssi()
1130 return 0xffffffffffffefe0ULL; in rtw_rate_mask_rssi()
1132 return 0xffffffffffffcfc0ULL; in rtw_rate_mask_rssi()
1134 return 0xffffffffffff8f80ULL; in rtw_rate_mask_rssi()
1136 return 0xffffffffffff0f00ULL; in rtw_rate_mask_rssi()
1141 if ((ra_mask & ~(RA_MASK_CCK_RATES | RA_MASK_OFDM_RATES)) == 0) in rtw_rate_mask_recover()
1144 if (ra_mask == 0) in rtw_rate_mask_recover()
1155 u64 cfg_mask = GENMASK_ULL(63, 0); in rtw_rate_mask_cfg()
1173 cfg_mask |= u64_encode_bits(mask->control[band].ht_mcs[0], in rtw_rate_mask_cfg()
1180 cfg_mask |= u64_encode_bits(mask->control[band].vht_mcs[0], in rtw_rate_mask_cfg()
1203 u8 stbc_en = 0; in rtw_update_sta_info()
1204 u8 ldpc_en = 0; in rtw_update_sta_info()
1206 u64 ra_mask = 0; in rtw_update_sta_info()
1207 u64 ra_mask_bak = 0; in rtw_update_sta_info()
1220 (sta->deflink.ht_cap.mcs.rx_mask[0] << 12); in rtw_update_sta_info()
1256 } else if (sta->deflink.supp_rates[0] <= 0xf) { in rtw_update_sta_info()
1266 wireless_set = 0; in rtw_update_sta_info()
1287 if (sta->deflink.vht_cap.vht_supported && ra_mask & 0xffc00000) { in rtw_update_sta_info()
1290 } else if (sta->deflink.ht_cap.ht_supported && ra_mask & 0xfff00000) { in rtw_update_sta_info()
1317 int ret = 0; in rtw_wait_firmware_completion()
1409 return 0; in rtw_power_on()
1437 u32 config = 0; in rtw_core_scan_start()
1438 int ret = 0; in rtw_core_scan_start()
1465 u32 config = 0; in rtw_core_scan_complete()
1506 return 0; in rtw_core_start()
1549 ht_cap->cap = 0; in rtw_init_ht_cap()
1567 ht_cap->mcs.rx_mask[0] = 0xFF; in rtw_init_ht_cap()
1568 ht_cap->mcs.rx_mask[1] = 0xFF; in rtw_init_ht_cap()
1569 ht_cap->mcs.rx_mask[4] = 0x01; in rtw_init_ht_cap()
1572 ht_cap->mcs.rx_mask[0] = 0xFF; in rtw_init_ht_cap()
1573 ht_cap->mcs.rx_mask[1] = 0x00; in rtw_init_ht_cap()
1574 ht_cap->mcs.rx_mask[4] = 0x01; in rtw_init_ht_cap()
1596 0; in rtw_init_vht_cap()
1607 mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9 << 0 | in rtw_init_vht_cap()
1691 ieee80211_request_smps(vif, 0, IEEE80211_SMPS_STATIC); in rtw_vif_smps_iter()
1693 ieee80211_request_smps(vif, 0, IEEE80211_SMPS_OFF); in rtw_vif_smps_iter()
1721 fw->feature = feature & FW_FEATURE_SIG ? feature : 0; in __update_firmware_feature()
1748 fw->h2c_version = 0; in __update_firmware_info_legacy()
1816 return 0; in rtw_load_firmware()
1827 rtwdev->hci.rpwm_addr = 0x03d9; in rtw_chip_parameter_setup()
1828 rtwdev->hci.cpwm_addr = 0x03da; in rtw_chip_parameter_setup()
1835 rtwdev->hci.rpwm_addr = 0xfe58; in rtw_chip_parameter_setup()
1836 rtwdev->hci.cpwm_addr = 0xfe57; in rtw_chip_parameter_setup()
1845 hal->mp_chip = (hal->chip_version & BIT_RTL_ID) ? 0 : 1; in rtw_chip_parameter_setup()
1869 return 0; in rtw_chip_parameter_setup()
1904 return 0; in rtw_chip_efuse_enable()
1927 for (i = 0; i < HW_FEATURE_LEN; i++) in rtw_dump_hw_feature()
1930 rtw_write8(rtwdev, REG_C2HEVT, 0); in rtw_dump_hw_feature()
1946 "hw cap: hci=0x%02x, bw=0x%02x, ptcl=0x%02x, ant_num=%d, nss=%d\n", in rtw_dump_hw_feature()
1950 return 0; in rtw_dump_hw_feature()
1983 if (efuse->crystal_cap == 0xff) in rtw_chip_efuse_info_setup()
1984 efuse->crystal_cap = 0; in rtw_chip_efuse_info_setup()
1985 if (efuse->pa_type_2g == 0xff) in rtw_chip_efuse_info_setup()
1986 efuse->pa_type_2g = 0; in rtw_chip_efuse_info_setup()
1987 if (efuse->pa_type_5g == 0xff) in rtw_chip_efuse_info_setup()
1988 efuse->pa_type_5g = 0; in rtw_chip_efuse_info_setup()
1989 if (efuse->lna_type_2g == 0xff) in rtw_chip_efuse_info_setup()
1990 efuse->lna_type_2g = 0; in rtw_chip_efuse_info_setup()
1991 if (efuse->lna_type_5g == 0xff) in rtw_chip_efuse_info_setup()
1992 efuse->lna_type_5g = 0; in rtw_chip_efuse_info_setup()
1993 if (efuse->channel_plan == 0xff) in rtw_chip_efuse_info_setup()
1994 efuse->channel_plan = 0x7f; in rtw_chip_efuse_info_setup()
1995 if (efuse->rf_board_option == 0xff) in rtw_chip_efuse_info_setup()
1996 efuse->rf_board_option = 0; in rtw_chip_efuse_info_setup()
1997 if (efuse->bt_setting & BIT(0)) in rtw_chip_efuse_info_setup()
1999 if (efuse->regd == 0xff) in rtw_chip_efuse_info_setup()
2000 efuse->regd = 0; in rtw_chip_efuse_info_setup()
2001 if (efuse->tx_bb_swing_setting_2g == 0xff) in rtw_chip_efuse_info_setup()
2002 efuse->tx_bb_swing_setting_2g = 0; in rtw_chip_efuse_info_setup()
2003 if (efuse->tx_bb_swing_setting_5g == 0xff) in rtw_chip_efuse_info_setup()
2004 efuse->tx_bb_swing_setting_5g = 0; in rtw_chip_efuse_info_setup()
2006 efuse->btcoex = (efuse->rf_board_option & 0xe0) == 0x20; in rtw_chip_efuse_info_setup()
2007 efuse->ext_pa_2g = efuse->pa_type_2g & BIT(4) ? 1 : 0; in rtw_chip_efuse_info_setup()
2008 efuse->ext_lna_2g = efuse->lna_type_2g & BIT(3) ? 1 : 0; in rtw_chip_efuse_info_setup()
2009 efuse->ext_pa_5g = efuse->pa_type_5g & BIT(0) ? 1 : 0; in rtw_chip_efuse_info_setup()
2010 efuse->ext_lna_2g = efuse->lna_type_5g & BIT(3) ? 1 : 0; in rtw_chip_efuse_info_setup()
2036 return 0; in rtw_chip_board_info_setup()
2061 return 0; in rtw_chip_info_setup()
2077 for (i = 0; i < RTW_EVM_NUM; i++) in rtw_stats_init()
2079 for (i = 0; i < RTW_SNR_NUM; i++) in rtw_stats_init()
2093 rtw_tx_report_purge_timer, 0); in rtw_core_init()
2094 rtwdev->tx_wq = alloc_workqueue("rtw_tx_wq", WQ_UNBOUND | WQ_HIGHPRI, 0); in rtw_core_init()
2159 return 0; in rtw_core_init()
2204 int max_tx_headroom = 0; in rtw_register_hw()
2283 rtwdev->bf_info.bfer_mu_cnt = 0; in rtw_register_hw()
2284 rtwdev->bf_info.bfer_su_cnt = 0; in rtw_register_hw()
2286 return 0; in rtw_register_hw()
2305 for (i = 0; i < nbytes; i++) { in rtw_swap_reg_nbytes()