Home
last modified time | relevance | path

Searched refs:pw_idx (Results 1 – 15 of 15) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_display_power.c287 #define ICL_AUX_PW_TO_CH(pw_idx) \ argument
288 ((pw_idx) - ICL_PW_CTL_IDX_AUX_A + AUX_CH_A)
290 #define ICL_TBT_AUX_PW_TO_CH(pw_idx) \ argument
291 ((pw_idx) - ICL_PW_CTL_IDX_AUX_TBT1 + AUX_CH_C)
296 int pw_idx = power_well->desc->hsw.idx; in icl_tc_phy_aux_ch() local
298 return power_well->desc->hsw.is_tc_tbt ? ICL_TBT_AUX_PW_TO_CH(pw_idx) : in icl_tc_phy_aux_ch()
299 ICL_AUX_PW_TO_CH(pw_idx); in icl_tc_phy_aux_ch()
334 int pw_idx = power_well->desc->hsw.idx; in hsw_wait_for_power_well_enable() local
338 HSW_PWR_WELL_CTL_STATE(pw_idx), 1)) { in hsw_wait_for_power_well_enable()
349 int pw_idx) in hsw_power_well_requesters() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/phydm/rtl8822b/
H A Dphydm_hal_api8822b.h72 config_phydm_write_txagc_8822b(struct dm_struct *dm, u32 pw_idx,
122 phydm_write_txagc_1byte_8822b(struct dm_struct *dm, u32 pw_idx,
H A Dphydm_hal_api8822b.c874 u32 pw_idx, enum rf_path path, u8 hw_rate) in phydm_write_txagc_1byte_8822b() argument
898 txagc_idx = txagc_idx | ((pw_idx & 0x3f) << (i << 3)); in phydm_write_txagc_1byte_8822b()
905 path, hw_rate, (offset_txagc[path] + hw_rate), pw_idx); in phydm_write_txagc_1byte_8822b()
1048 u32 pw_idx, enum rf_path path, u8 hw_rate) in config_phydm_write_txagc_8822b() argument
1067 odm_set_bb_reg(dm, (offset_txagc[path] + rate_idx), MASKDWORD, pw_idx); in config_phydm_write_txagc_8822b()
1070 path, hw_rate, (offset_txagc[path] + hw_rate), pw_idx); in config_phydm_write_txagc_8822b()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/phydm/
H A Dphydm_api.c1603 s8 pw_idx = pw_offset * 4; /*@ 7Bit, 0.25dB unit*/ in phydm_bb_ctrl_txagc_ofst_jgr3() local
1611 pw_idx += 2; in phydm_bb_ctrl_txagc_ofst_jgr3()
1613 PHYDM_DBG(dm, ODM_COMP_API, "Pw_ofst=0x%x\n", pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1615 odm_set_bb_reg(dm, R_0x18a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1618 odm_set_bb_reg(dm, R_0x41a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1621 odm_set_bb_reg(dm, R_0x52a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1624 odm_set_bb_reg(dm, R_0x53a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1884 s8 pw_idx; in phydm_bb_ctrl_txagc_ofst() local
1908 pw_idx = (offset_bit_num == 7) ? pw_offset * 4 : pw_offset * 2; in phydm_bb_ctrl_txagc_ofst()
1911 pw_idx = (offset_bit_num == 7) ? pw_idx + 2 : pw_idx + 1; in phydm_bb_ctrl_txagc_ofst()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/hal/phydm/
H A Dphydm_api.c1767 s8 pw_idx = pw_offset * 4; /*@ 7Bit, 0.25dB unit*/ in phydm_bb_ctrl_txagc_ofst_jgr3() local
1775 pw_idx += 2; in phydm_bb_ctrl_txagc_ofst_jgr3()
1777 PHYDM_DBG(dm, ODM_COMP_API, "Pw_ofst=0x%x\n", pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1779 odm_set_bb_reg(dm, R_0x18a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1782 odm_set_bb_reg(dm, R_0x41a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1785 odm_set_bb_reg(dm, R_0x52a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1788 odm_set_bb_reg(dm, R_0x53a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2048 s8 pw_idx; in phydm_bb_ctrl_txagc_ofst() local
2072 pw_idx = (offset_bit_num == 7) ? pw_offset * 4 : pw_offset * 2; in phydm_bb_ctrl_txagc_ofst()
2075 pw_idx = (offset_bit_num == 7) ? pw_idx + 2 : pw_idx + 1; in phydm_bb_ctrl_txagc_ofst()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/phydm/
H A Dphydm_api.c2014 s8 pw_idx = pw_offset * 4; /*@ 7Bit, 0.25dB unit*/ in phydm_bb_ctrl_txagc_ofst_jgr3() local
2022 pw_idx += 2; in phydm_bb_ctrl_txagc_ofst_jgr3()
2024 PHYDM_DBG(dm, ODM_COMP_API, "Pw_ofst=0x%x\n", pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2026 odm_set_bb_reg(dm, R_0x18a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2029 odm_set_bb_reg(dm, R_0x41a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2032 odm_set_bb_reg(dm, R_0x52a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2035 odm_set_bb_reg(dm, R_0x53a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2291 s8 pw_idx; in phydm_bb_ctrl_txagc_ofst() local
2315 pw_idx = (offset_bit_num == 7) ? pw_offset * 4 : pw_offset * 2; in phydm_bb_ctrl_txagc_ofst()
2318 pw_idx = (offset_bit_num == 7) ? pw_idx + 2 : pw_idx + 1; in phydm_bb_ctrl_txagc_ofst()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/hal/phydm/
H A Dphydm_api.c2020 s8 pw_idx = pw_offset * 4; /*@ 7Bit, 0.25dB unit*/ in phydm_bb_ctrl_txagc_ofst_jgr3() local
2028 pw_idx += 2; in phydm_bb_ctrl_txagc_ofst_jgr3()
2030 PHYDM_DBG(dm, ODM_COMP_API, "Pw_ofst=0x%x\n", pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2032 odm_set_bb_reg(dm, R_0x18a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2035 odm_set_bb_reg(dm, R_0x41a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2038 odm_set_bb_reg(dm, R_0x52a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2041 odm_set_bb_reg(dm, R_0x53a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2297 s8 pw_idx; in phydm_bb_ctrl_txagc_ofst() local
2321 pw_idx = (offset_bit_num == 7) ? pw_offset * 4 : pw_offset * 2; in phydm_bb_ctrl_txagc_ofst()
2324 pw_idx = (offset_bit_num == 7) ? pw_idx + 2 : pw_idx + 1; in phydm_bb_ctrl_txagc_ofst()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/phydm/
H A Dphydm_api.c2014 s8 pw_idx = pw_offset * 4; /*@ 7Bit, 0.25dB unit*/ in phydm_bb_ctrl_txagc_ofst_jgr3() local
2022 pw_idx += 2; in phydm_bb_ctrl_txagc_ofst_jgr3()
2024 PHYDM_DBG(dm, ODM_COMP_API, "Pw_ofst=0x%x\n", pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2026 odm_set_bb_reg(dm, R_0x18a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2029 odm_set_bb_reg(dm, R_0x41a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2032 odm_set_bb_reg(dm, R_0x52a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2035 odm_set_bb_reg(dm, R_0x53a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2291 s8 pw_idx; in phydm_bb_ctrl_txagc_ofst() local
2315 pw_idx = (offset_bit_num == 7) ? pw_offset * 4 : pw_offset * 2; in phydm_bb_ctrl_txagc_ofst()
2318 pw_idx = (offset_bit_num == 7) ? pw_idx + 2 : pw_idx + 1; in phydm_bb_ctrl_txagc_ofst()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/hal/phydm/
H A Dphydm_api.c1976 s8 pw_idx = pw_offset * 4; /*@ 7Bit, 0.25dB unit*/ in phydm_bb_ctrl_txagc_ofst_jgr3() local
1984 pw_idx += 2; in phydm_bb_ctrl_txagc_ofst_jgr3()
1986 PHYDM_DBG(dm, ODM_COMP_API, "Pw_ofst=0x%x\n", pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1988 odm_set_bb_reg(dm, R_0x18a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1991 odm_set_bb_reg(dm, R_0x41a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1994 odm_set_bb_reg(dm, R_0x52a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1997 odm_set_bb_reg(dm, R_0x53a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2257 s8 pw_idx; in phydm_bb_ctrl_txagc_ofst() local
2281 pw_idx = (offset_bit_num == 7) ? pw_offset * 4 : pw_offset * 2; in phydm_bb_ctrl_txagc_ofst()
2284 pw_idx = (offset_bit_num == 7) ? pw_idx + 2 : pw_idx + 1; in phydm_bb_ctrl_txagc_ofst()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/phydm/
H A Dphydm_api.c2021 s8 pw_idx = pw_offset * 4; /*@ 7Bit, 0.25dB unit*/ in phydm_bb_ctrl_txagc_ofst_jgr3() local
2029 pw_idx += 2; in phydm_bb_ctrl_txagc_ofst_jgr3()
2031 PHYDM_DBG(dm, ODM_COMP_API, "Pw_ofst=0x%x\n", pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2033 odm_set_bb_reg(dm, R_0x18a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2036 odm_set_bb_reg(dm, R_0x41a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2039 odm_set_bb_reg(dm, R_0x52a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2042 odm_set_bb_reg(dm, R_0x53a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2298 s8 pw_idx; in phydm_bb_ctrl_txagc_ofst() local
2322 pw_idx = (offset_bit_num == 7) ? pw_offset * 4 : pw_offset * 2; in phydm_bb_ctrl_txagc_ofst()
2325 pw_idx = (offset_bit_num == 7) ? pw_idx + 2 : pw_idx + 1; in phydm_bb_ctrl_txagc_ofst()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/hal/phydm/
H A Dphydm_api.c1976 s8 pw_idx = pw_offset * 4; /*@ 7Bit, 0.25dB unit*/ in phydm_bb_ctrl_txagc_ofst_jgr3() local
1984 pw_idx += 2; in phydm_bb_ctrl_txagc_ofst_jgr3()
1986 PHYDM_DBG(dm, ODM_COMP_API, "Pw_ofst=0x%x\n", pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1988 odm_set_bb_reg(dm, R_0x18a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1991 odm_set_bb_reg(dm, R_0x41a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1994 odm_set_bb_reg(dm, R_0x52a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
1997 odm_set_bb_reg(dm, R_0x53a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2257 s8 pw_idx; in phydm_bb_ctrl_txagc_ofst() local
2281 pw_idx = (offset_bit_num == 7) ? pw_offset * 4 : pw_offset * 2; in phydm_bb_ctrl_txagc_ofst()
2284 pw_idx = (offset_bit_num == 7) ? pw_idx + 2 : pw_idx + 1; in phydm_bb_ctrl_txagc_ofst()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/hal/phydm/
H A Dphydm_api.c2010 s8 pw_idx = pw_offset * 4; /*@ 7Bit, 0.25dB unit*/ in phydm_bb_ctrl_txagc_ofst_jgr3() local
2018 pw_idx += 2; in phydm_bb_ctrl_txagc_ofst_jgr3()
2020 PHYDM_DBG(dm, ODM_COMP_API, "Pw_ofst=0x%x\n", pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2022 odm_set_bb_reg(dm, R_0x18a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2025 odm_set_bb_reg(dm, R_0x41a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2028 odm_set_bb_reg(dm, R_0x52a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2031 odm_set_bb_reg(dm, R_0x53a0, 0x3f, pw_idx); in phydm_bb_ctrl_txagc_ofst_jgr3()
2287 s8 pw_idx; in phydm_bb_ctrl_txagc_ofst() local
2311 pw_idx = (offset_bit_num == 7) ? pw_offset * 4 : pw_offset * 2; in phydm_bb_ctrl_txagc_ofst()
2314 pw_idx = (offset_bit_num == 7) ? pw_idx + 2 : pw_idx + 1; in phydm_bb_ctrl_txagc_ofst()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/phydm/rtl8822c/
H A Dphydm_hal_api8822c.c34 boolean phydm_set_pw_by_rate_8822c(struct dm_struct *dm, s8 *pw_idx, in phydm_set_pw_by_rate_8822c() argument
46 *pw_idx, *(pw_idx - 1), *(pw_idx - 2), *(pw_idx - 3)); in phydm_set_pw_by_rate_8822c()
327 phydm_write_txagc_1byte_8822c(struct dm_struct *dm, u32 pw_idx, u8 hw_rate) in phydm_write_txagc_1byte_8822c() argument
357 txagc_idx |= (pw_idx & 0x7f) << (i << 3); in phydm_write_txagc_1byte_8822c()
581 boolean config_phydm_write_txagc_8822c(struct dm_struct *dm, u32 pw_idx, in config_phydm_write_txagc_8822c() argument
623 dm->txagc_buff[path][rate] = (u8)((pw_idx >> (8 * i)) & 0xff); in config_phydm_write_txagc_8822c()
H A Dphydm_hal_api8822c.h78 boolean phydm_write_txagc_1byte_8822c(struct dm_struct *dm, u32 pw_idx,
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/
H A Di915_reg.h1264 #define PUNIT_PWRGT_MASK(pw_idx) (3 << ((pw_idx) * 2)) argument
1265 #define PUNIT_PWRGT_PWR_ON(pw_idx) (0 << ((pw_idx) * 2)) argument
1266 #define PUNIT_PWRGT_CLK_GATE(pw_idx) (1 << ((pw_idx) * 2)) argument
1267 #define PUNIT_PWRGT_RESET(pw_idx) (2 << ((pw_idx) * 2)) argument
1268 #define PUNIT_PWRGT_PWR_GATE(pw_idx) (3 << ((pw_idx) * 2)) argument
9553 #define HSW_PWR_WELL_CTL_REQ(pw_idx) (0x2 << ((pw_idx) * 2)) argument
9554 #define HSW_PWR_WELL_CTL_STATE(pw_idx) (0x1 << ((pw_idx) * 2)) argument
9646 #define SKL_PW_CTL_IDX_TO_PG(pw_idx) \ argument
9647 ((pw_idx) - SKL_PW_CTL_IDX_PW_1 + SKL_PG1)
9652 #define ICL_PW_CTL_IDX_TO_PG(pw_idx) \ argument
[all …]