/titanic_41/usr/src/uts/common/os/ |
H A D | cpupm.c | 34 cpupm_set_supp_freqs(cpu_t *cp, int *speeds, uint_t nspeeds) in cpupm_set_supp_freqs() argument 48 hzspeeds = kmem_zalloc(nspeeds * sizeof (uint64_t), KM_SLEEP); in cpupm_set_supp_freqs() 49 for (i = nspeeds - 1, j = 0; i >= 0; i--, j++) { in cpupm_set_supp_freqs() 54 supp_freqs = kmem_zalloc((UINT64_MAX_STRING * nspeeds), KM_SLEEP); in cpupm_set_supp_freqs() 56 for (i = 0; i < nspeeds; i++) { in cpupm_set_supp_freqs() 57 if (i == nspeeds - 1) { in cpupm_set_supp_freqs() 65 kmem_free(supp_freqs, (UINT64_MAX_STRING * nspeeds)); in cpupm_set_supp_freqs() 66 kmem_free(hzspeeds, nspeeds * sizeof (uint64_t)); in cpupm_set_supp_freqs()
|
/titanic_41/usr/src/uts/sun4u/io/ |
H A D | cpudrv_mach.c | 100 uint_t nspeeds; in cpudrv_set_supp_freqs() local 102 CPUDRV_GET_SPEEDS(cpudsp, speeds, nspeeds); in cpudrv_set_supp_freqs() 103 if (nspeeds == 0) in cpudrv_set_supp_freqs() 105 cpupm_set_supp_freqs(cpudsp->cp, speeds, nspeeds); in cpudrv_set_supp_freqs() 106 CPUDRV_FREE_SPEEDS(speeds, nspeeds); in cpudrv_set_supp_freqs()
|
/titanic_41/usr/src/uts/sun4u/sys/ |
H A D | cpudrv_mach.h | 75 #define CPUDRV_GET_SPEEDS(cpudsp, speeds, nspeeds) { \ argument 78 &nspeeds) != DDI_PROP_SUCCESS) { \ 79 nspeeds = 0; \ 85 #define CPUDRV_FREE_SPEEDS(speeds, nspeeds) { \ argument 86 if (nspeeds > 0) \
|
/titanic_41/usr/src/uts/i86pc/sys/ |
H A D | cpudrv_mach.h | 88 #define CPUDRV_GET_SPEEDS(cpudsp, speeds, nspeeds) \ argument 89 nspeeds = cpudrv_get_speeds(cpudsp, &speeds); 90 #define CPUDRV_FREE_SPEEDS(speeds, nspeeds) \ argument 91 cpudrv_free_speeds(speeds, nspeeds);
|
/titanic_41/usr/src/uts/i86pc/os/cpupm/ |
H A D | cpupm_mach.c | 152 uint_t nspeeds; in cpupm_init() local 200 nspeeds = cpupm_get_speeds(cp, &speeds); in cpupm_init() 201 if (nspeeds == 0) { in cpupm_init() 205 cpupm_set_supp_freqs(cp, speeds, nspeeds); in cpupm_init() 206 cpupm_free_speeds(speeds, nspeeds); in cpupm_init() 704 uint_t nspeeds, i; in cpupm_plat_state_enumerate() local 712 nspeeds = cpupm_get_speeds(cp, &speeds); in cpupm_plat_state_enumerate() 719 for (i = 0; i < nspeeds; i++) { in cpupm_plat_state_enumerate() 724 cpupm_free_speeds(speeds, nspeeds); in cpupm_plat_state_enumerate() 725 return (nspeeds); in cpupm_plat_state_enumerate() [all …]
|
H A D | cpu_acpi.c | 1062 uint_t nspeeds; in cpu_acpi_get_speeds() local 1065 nspeeds = CPU_ACPI_PSTATES_COUNT(handle); in cpu_acpi_get_speeds() 1067 hspeeds = kmem_zalloc(nspeeds * sizeof (int), KM_SLEEP); in cpu_acpi_get_speeds() 1068 for (i = 0; i < nspeeds; i++) { in cpu_acpi_get_speeds() 1073 return (nspeeds); in cpu_acpi_get_speeds() 1080 cpu_acpi_free_speeds(int *speeds, uint_t nspeeds) in cpu_acpi_free_speeds() argument 1082 kmem_free(speeds, nspeeds * sizeof (int)); in cpu_acpi_free_speeds()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | cpudrv.c | 659 uint_t nspeeds; in cpudrv_init() local 664 CPUDRV_GET_SPEEDS(cpudsp, speeds, nspeeds); in cpudrv_init() 665 if (nspeeds < 2) { in cpudrv_init() 667 CPUDRV_FREE_SPEEDS(speeds, nspeeds); in cpudrv_init() 670 cpupm->num_spd = nspeeds; in cpudrv_init() 697 for (i = 0; i < nspeeds; i++) { in cpudrv_init() 773 CPUDRV_FREE_SPEEDS(speeds, nspeeds); in cpudrv_init()
|
/titanic_41/usr/src/uts/i86pc/io/ |
H A D | cpudrv_mach.c | 348 cpudrv_free_speeds(int *speeds, uint_t nspeeds) in cpudrv_free_speeds() argument 350 cpupm_free_speeds(speeds, nspeeds); in cpudrv_free_speeds()
|