/drivers/gpu/drm/amd/pm/swsmu/ |
D | smu_cmn.c | 529 uint32_t *feature_mask, in smu_cmn_get_enabled_mask() argument 536 if (!feature_mask || num < 2) in smu_cmn_get_enabled_mask() 548 feature_mask[0] = feature_mask_low; in smu_cmn_get_enabled_mask() 549 feature_mask[1] = feature_mask_high; in smu_cmn_get_enabled_mask() 551 bitmap_copy((unsigned long *)feature_mask, feature->enabled, in smu_cmn_get_enabled_mask() 559 uint32_t *feature_mask, in smu_cmn_get_enabled_32_bits_mask() argument 567 if (!feature_mask || num < 2) in smu_cmn_get_enabled_32_bits_mask() 583 feature_mask[0] = feature_mask_en_low; in smu_cmn_get_enabled_32_bits_mask() 584 feature_mask[1] = feature_mask_en_high; in smu_cmn_get_enabled_32_bits_mask() 587 bitmap_copy((unsigned long *)feature_mask, feature->enabled, in smu_cmn_get_enabled_32_bits_mask() [all …]
|
D | smu_cmn.h | 57 uint32_t *feature_mask, 61 uint32_t *feature_mask, 69 uint64_t feature_mask,
|
D | smu_internal.h | 72 …e smu_get_allowed_feature_mask(smu, feature_mask, num) smu_ppt_funcs(get_allowed_feature_mask, 0,… argument
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | hwmgr.c | 102 hwmgr->feature_mask &= ~(PP_VBI_TIME_SUPPORT_MASK | in hwmgr_early_init() 113 hwmgr->feature_mask &= ~PP_GFXOFF_MASK; in hwmgr_early_init() 118 hwmgr->feature_mask &= ~PP_GFXOFF_MASK; in hwmgr_early_init() 123 hwmgr->feature_mask &= ~ (PP_VBI_TIME_SUPPORT_MASK | in hwmgr_early_init() 131 hwmgr->feature_mask &= ~PP_VBI_TIME_SUPPORT_MASK; in hwmgr_early_init() 136 hwmgr->feature_mask &= ~ (PP_VBI_TIME_SUPPORT_MASK | in hwmgr_early_init() 144 hwmgr->feature_mask &= ~(PP_UVD_HANDSHAKE_MASK); in hwmgr_early_init() 149 hwmgr->feature_mask &= ~(PP_UVD_HANDSHAKE_MASK); in hwmgr_early_init() 160 hwmgr->feature_mask &= ~PP_GFXOFF_MASK; in hwmgr_early_init() 170 hwmgr->feature_mask &= ~PP_GFXOFF_MASK; in hwmgr_early_init() [all …]
|
D | vega10_hwmgr.c | 121 hwmgr->feature_mask & PP_SCLK_DPM_MASK ? false : true; in vega10_set_default_registry_data() 123 hwmgr->feature_mask & PP_SOCCLK_DPM_MASK ? false : true; in vega10_set_default_registry_data() 125 hwmgr->feature_mask & PP_MCLK_DPM_MASK ? false : true; in vega10_set_default_registry_data() 127 hwmgr->feature_mask & PP_PCIE_DPM_MASK ? false : true; in vega10_set_default_registry_data() 130 hwmgr->feature_mask & PP_DCEFCLK_DPM_MASK ? false : true; in vega10_set_default_registry_data() 132 if (hwmgr->feature_mask & PP_POWER_CONTAINMENT_MASK) { in vega10_set_default_registry_data() 139 hwmgr->feature_mask & PP_CLOCK_STRETCH_MASK ? true : false; in vega10_set_default_registry_data() 142 hwmgr->feature_mask & PP_ULV_MASK ? true : false; in vega10_set_default_registry_data() 145 hwmgr->feature_mask & PP_SCLK_DEEP_SLEEP_MASK ? true : false; in vega10_set_default_registry_data() 154 hwmgr->feature_mask & PP_AVFS_MASK ? true : false; in vega10_set_default_registry_data() [all …]
|
D | vega20_hwmgr.c | 104 if (!(hwmgr->feature_mask & PP_PCIE_DPM_MASK)) in vega20_set_default_registry_data() 107 if (!(hwmgr->feature_mask & PP_SCLK_DPM_MASK)) in vega20_set_default_registry_data() 110 if (!(hwmgr->feature_mask & PP_SOCCLK_DPM_MASK)) in vega20_set_default_registry_data() 113 if (!(hwmgr->feature_mask & PP_MCLK_DPM_MASK)) in vega20_set_default_registry_data() 116 if (!(hwmgr->feature_mask & PP_DCEFCLK_DPM_MASK)) in vega20_set_default_registry_data() 119 if (!(hwmgr->feature_mask & PP_ULV_MASK)) in vega20_set_default_registry_data() 122 if (!(hwmgr->feature_mask & PP_SCLK_DEEP_SLEEP_MASK)) in vega20_set_default_registry_data() 174 data->registry_data.pcie_dpm_key_disabled = !(hwmgr->feature_mask & PP_PCIE_DPM_MASK); in vega20_set_default_registry_data() 1816 static int vega20_upload_dpm_min_level(struct pp_hwmgr *hwmgr, uint32_t feature_mask) in vega20_upload_dpm_min_level() argument 1824 (feature_mask & FEATURE_DPM_GFXCLK_MASK)) { in vega20_upload_dpm_min_level() [all …]
|
/drivers/thermal/intel/int340x_thermal/ |
D | processor_thermal_device.c | 401 kernel_ulong_t feature_mask) in proc_thermal_mmio_add() argument 405 proc_priv->mmio_feature_mask = feature_mask; in proc_thermal_mmio_add() 407 if (feature_mask) { in proc_thermal_mmio_add() 413 if (feature_mask & PROC_THERMAL_FEATURE_RAPL) { in proc_thermal_mmio_add() 421 if (feature_mask & PROC_THERMAL_FEATURE_FIVR || in proc_thermal_mmio_add() 422 feature_mask & PROC_THERMAL_FEATURE_DVFS) { in proc_thermal_mmio_add() 430 if (feature_mask & PROC_THERMAL_FEATURE_MBOX) { in proc_thermal_mmio_add()
|
D | processor_thermal_device.h | 91 kernel_ulong_t feature_mask);
|
/drivers/mfd/ |
D | kempld-core.c | 67 pld->feature_mask = kempld_read16(pld, KEMPLD_FEATURE); in kempld_get_info_generic() 69 pld->feature_mask = 0; in kempld_get_info_generic() 97 if (pld->feature_mask & KEMPLD_FEATURE_BIT_I2C) in kempld_register_cells_generic() 100 if (pld->feature_mask & KEMPLD_FEATURE_BIT_WATCHDOG) in kempld_register_cells_generic() 103 if (pld->feature_mask & KEMPLD_FEATURE_BIT_GPIO) in kempld_register_cells_generic() 106 if (pld->feature_mask & KEMPLD_FEATURE_MASK_UART) in kempld_register_cells_generic()
|
/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | cyan_skillfish_ppt.c | 360 uint32_t feature_mask[2]; in cyan_skillfish_is_dpm_running() local 367 ret = smu_cmn_get_enabled_32_bits_mask(smu, feature_mask, 2); in cyan_skillfish_is_dpm_running() 372 feature_enabled = (uint64_t)feature_mask[0] | in cyan_skillfish_is_dpm_running() 373 ((uint64_t)feature_mask[1] << 32); in cyan_skillfish_is_dpm_running()
|
D | navi10_ppt.c | 280 uint32_t *feature_mask, uint32_t num) in navi10_get_allowed_feature_mask() argument 287 memset(feature_mask, 0, sizeof(uint32_t) * num); in navi10_get_allowed_feature_mask() 289 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_PREFETCHER_BIT) in navi10_get_allowed_feature_mask() 311 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_GFXCLK_BIT); in navi10_get_allowed_feature_mask() 314 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_LINK_BIT); in navi10_get_allowed_feature_mask() 317 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_DCEFCLK_BIT); in navi10_get_allowed_feature_mask() 320 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_ULV_BIT); in navi10_get_allowed_feature_mask() 323 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DS_GFXCLK_BIT); in navi10_get_allowed_feature_mask() 326 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT); in navi10_get_allowed_feature_mask() 329 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_MMHUB_PG_BIT); in navi10_get_allowed_feature_mask() [all …]
|
D | arcturus_ppt.c | 328 uint32_t *feature_mask, uint32_t num) in arcturus_get_allowed_feature_mask() argument 334 memset(feature_mask, 0xFF, sizeof(uint32_t) * num); in arcturus_get_allowed_feature_mask() 952 uint32_t feature_mask, in arcturus_upload_dpm_level() argument 961 (feature_mask & FEATURE_DPM_GFXCLK_MASK)) { in arcturus_upload_dpm_level() 975 (feature_mask & FEATURE_DPM_UCLK_MASK)) { in arcturus_upload_dpm_level() 989 (feature_mask & FEATURE_DPM_SOCCLK_MASK)) { in arcturus_upload_dpm_level() 2038 uint32_t feature_mask[2]; in arcturus_is_dpm_running() local 2041 ret = smu_cmn_get_enabled_mask(smu, feature_mask, 2); in arcturus_is_dpm_running() 2045 feature_enabled = (uint64_t)feature_mask[1] << 32 | feature_mask[0]; in arcturus_is_dpm_running() 2272 uint32_t feature_mask; member [all …]
|
D | sienna_cichlid_ppt.c | 265 uint32_t *feature_mask, uint32_t num) in sienna_cichlid_get_allowed_feature_mask() argument 272 memset(feature_mask, 0, sizeof(uint32_t) * num); in sienna_cichlid_get_allowed_feature_mask() 274 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_PREFETCHER_BIT) in sienna_cichlid_get_allowed_feature_mask() 296 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_GFXCLK_BIT); in sienna_cichlid_get_allowed_feature_mask() 297 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_GFX_GPO_BIT); in sienna_cichlid_get_allowed_feature_mask() 303 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_DCS_BIT); in sienna_cichlid_get_allowed_feature_mask() 306 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_UCLK_BIT) in sienna_cichlid_get_allowed_feature_mask() 311 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_LINK_BIT); in sienna_cichlid_get_allowed_feature_mask() 314 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_DCEFCLK_BIT); in sienna_cichlid_get_allowed_feature_mask() 317 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_SOCCLK_BIT); in sienna_cichlid_get_allowed_feature_mask() [all …]
|
D | smu_v11_0.c | 768 uint32_t feature_mask[2]; in smu_v11_0_set_allowed_mask() local 775 bitmap_to_arr32(feature_mask, feature->allowed, 64); in smu_v11_0_set_allowed_mask() 778 feature_mask[1], NULL); in smu_v11_0_set_allowed_mask() 783 feature_mask[0], NULL); in smu_v11_0_set_allowed_mask() 795 uint32_t feature_mask[2]; in smu_v11_0_system_features_control() local 807 ret = smu_cmn_get_enabled_mask(smu, feature_mask, 2); in smu_v11_0_system_features_control() 811 bitmap_copy(feature->enabled, (unsigned long *)&feature_mask, in smu_v11_0_system_features_control() 813 bitmap_copy(feature->supported, (unsigned long *)&feature_mask, in smu_v11_0_system_features_control()
|
D | vangogh_ppt.c | 515 uint32_t feature_mask[2]; in vangogh_is_dpm_running() local 522 ret = smu_cmn_get_enabled_32_bits_mask(smu, feature_mask, 2); in vangogh_is_dpm_running() 527 feature_enabled = (unsigned long)((uint64_t)feature_mask[0] | in vangogh_is_dpm_running() 528 ((uint64_t)feature_mask[1] << 32)); in vangogh_is_dpm_running() 1953 uint32_t feature_mask[2]; in vangogh_system_features_control() local 1966 ret = smu_cmn_get_enabled_32_bits_mask(smu, feature_mask, 2); in vangogh_system_features_control() 1970 bitmap_copy(feature->enabled, (unsigned long *)&feature_mask, in vangogh_system_features_control() 1972 bitmap_copy(feature->supported, (unsigned long *)&feature_mask, in vangogh_system_features_control()
|
/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
D | yellow_carp_ppt.c | 209 uint32_t feature_mask[2]; in yellow_carp_system_features_control() local 221 ret = smu_cmn_get_enabled_32_bits_mask(smu, feature_mask, 2); in yellow_carp_system_features_control() 225 bitmap_copy(feature->enabled, (unsigned long *)&feature_mask, in yellow_carp_system_features_control() 227 bitmap_copy(feature->supported, (unsigned long *)&feature_mask, in yellow_carp_system_features_control() 267 uint32_t feature_mask[2]; in yellow_carp_is_dpm_running() local 270 ret = smu_cmn_get_enabled_32_bits_mask(smu, feature_mask, 2); in yellow_carp_is_dpm_running() 275 feature_enabled = (uint64_t)feature_mask[1] << 32 | feature_mask[0]; in yellow_carp_is_dpm_running()
|
D | aldebaran_ppt.c | 280 uint32_t *feature_mask, uint32_t num) in aldebaran_get_allowed_feature_mask() argument 286 memset(feature_mask, 0xFF, sizeof(uint32_t) * num); in aldebaran_get_allowed_feature_mask() 928 uint32_t feature_mask, in aldebaran_upload_dpm_level() argument 937 (feature_mask & FEATURE_MASK(FEATURE_DPM_GFXCLK_BIT))) { in aldebaran_upload_dpm_level() 951 (feature_mask & FEATURE_MASK(FEATURE_DPM_UCLK_BIT))) { in aldebaran_upload_dpm_level() 965 (feature_mask & FEATURE_MASK(FEATURE_DPM_SOCCLK_BIT))) { in aldebaran_upload_dpm_level() 1456 uint32_t feature_mask[2]; in aldebaran_is_dpm_running() local 1459 ret = smu_cmn_get_enabled_mask(smu, feature_mask, 2); in aldebaran_is_dpm_running() 1462 feature_enabled = (unsigned long)((uint64_t)feature_mask[0] | in aldebaran_is_dpm_running() 1463 ((uint64_t)feature_mask[1] << 32)); in aldebaran_is_dpm_running() [all …]
|
D | smu_v13_0.c | 718 uint32_t feature_mask[2]; in smu_v13_0_set_allowed_mask() local 724 bitmap_to_arr32(feature_mask, feature->allowed, 64); in smu_v13_0_set_allowed_mask() 727 feature_mask[1], NULL); in smu_v13_0_set_allowed_mask() 732 feature_mask[0], NULL); in smu_v13_0_set_allowed_mask() 766 uint32_t feature_mask[2]; in smu_v13_0_system_features_control() local 778 ret = smu_cmn_get_enabled_mask(smu, feature_mask, 2); in smu_v13_0_system_features_control() 782 bitmap_copy(feature->enabled, (unsigned long *)&feature_mask, in smu_v13_0_system_features_control() 784 bitmap_copy(feature->supported, (unsigned long *)&feature_mask, in smu_v13_0_system_features_control()
|
/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | vega10_smumgr.h | 46 bool enable, uint32_t feature_mask);
|
D | vega12_smumgr.h | 52 bool enable, uint64_t feature_mask);
|
D | vega20_smumgr.h | 51 bool enable, uint64_t feature_mask);
|
D | vega12_smumgr.c | 126 bool enable, uint64_t feature_mask) in vega12_enable_smc_features() argument 130 smu_features_low = (uint32_t)((feature_mask & SMU_FEATURES_LOW_MASK) >> SMU_FEATURES_LOW_SHIFT); in vega12_enable_smc_features() 131 smu_features_high = (uint32_t)((feature_mask & SMU_FEATURES_HIGH_MASK) >> SMU_FEATURES_HIGH_SHIFT); in vega12_enable_smc_features()
|
D | vega20_smumgr.c | 318 bool enable, uint64_t feature_mask) in vega20_enable_smc_features() argument 323 smu_features_low = (uint32_t)((feature_mask & SMU_FEATURES_LOW_MASK) >> SMU_FEATURES_LOW_SHIFT); in vega20_enable_smc_features() 324 smu_features_high = (uint32_t)((feature_mask & SMU_FEATURES_HIGH_MASK) >> SMU_FEATURES_HIGH_SHIFT); in vega20_enable_smc_features()
|
D | vega10_smumgr.c | 112 bool enable, uint32_t feature_mask) in vega10_enable_smc_features() argument 126 msg, feature_mask, NULL); in vega10_enable_smc_features()
|
/drivers/net/ |
D | tap.c | 924 netdev_features_t feature_mask = 0; in set_offload() local 933 feature_mask = NETIF_F_HW_CSUM; in set_offload() 937 feature_mask |= NETIF_F_TSO_ECN; in set_offload() 939 feature_mask |= NETIF_F_TSO; in set_offload() 941 feature_mask |= NETIF_F_TSO6; in set_offload() 953 if (feature_mask & (NETIF_F_TSO | NETIF_F_TSO6)) in set_offload() 961 tap->tap_features = feature_mask; in set_offload()
|