Home
last modified time | relevance | path

Searched refs:max_level (Results 1 – 9 of 9) sorted by relevance

/drivers/thermal/
Dclock_cooling.c138 unsigned long max_level = 0, level = 0; in clock_cooling_get_property() local
159 max_level++; in clock_cooling_get_property()
163 if (max_level == 0) in clock_cooling_get_property()
167 max_level--; in clock_cooling_get_property()
171 *output = max_level; in clock_cooling_get_property()
176 level = descend ? input : (max_level - input); in clock_cooling_get_property()
189 *output = descend ? i : (max_level - i); in clock_cooling_get_property()
Dcpu_cooling.c95 unsigned int max_level; member
165 for (level = 0; level <= cpufreq_dev->max_level; level++) { in get_level()
491 *state = cpufreq_device->max_level; in cpufreq_get_max_state()
533 if (WARN_ON(state > cpufreq_device->max_level)) in cpufreq_set_cur_state()
828 cpufreq_dev->max_level++; in __cpufreq_cooling_register()
831 cpufreq_dev->max_level, GFP_KERNEL); in __cpufreq_cooling_register()
838 cpufreq_dev->max_level--; in __cpufreq_cooling_register()
863 for (i = 0, freq = -1; i <= cpufreq_dev->max_level; i++) { in __cpufreq_cooling_register()
/drivers/acpi/acpica/
Dnsdump.c703 u32 max_level = *((u32 *)context); in acpi_ns_dump_one_object_path() local
723 if (level <= max_level) { in acpi_ns_dump_one_object_path()
724 path_indent = max_level - level + 1; in acpi_ns_dump_one_object_path()
740 u32 *max_level = (u32 *)context; in acpi_ns_get_max_depth() local
742 if (level > *max_level) { in acpi_ns_get_max_depth()
743 *max_level = level; in acpi_ns_get_max_depth()
774 u32 max_level = 0; in acpi_ns_dump_object_paths() local
796 (void *)&max_level, NULL); in acpi_ns_dump_object_paths()
804 (void *)&max_level, NULL); in acpi_ns_dump_object_paths()
/drivers/acpi/
Dacpi_video.c703 int max_level, int current_level) in acpi_video_bqc_quirk() argument
718 test_level = current_level == max_level ? br->levels[3] : max_level; in acpi_video_bqc_quirk()
759 int i, max_level = 0, count = 0, level_ac_battery = 0; in acpi_video_init_brightness() local
802 if (br->levels[count] > max_level) in acpi_video_init_brightness()
803 max_level = br->levels[count]; in acpi_video_init_brightness()
830 if (max_level == br->levels[2]) { in acpi_video_init_brightness()
834 } else if (max_level != br->levels[count - 1]) in acpi_video_init_brightness()
842 br->curr = level = max_level; in acpi_video_init_brightness()
852 result = acpi_video_bqc_quirk(device, max_level, level_old); in acpi_video_init_brightness()
873 level = max_level; in acpi_video_init_brightness()
/drivers/gpu/drm/i915/
Dintel_pm.c926 dev_priv->wm.max_level = VLV_WM_LEVEL_PM2; in vlv_setup_wm_latency()
932 dev_priv->wm.max_level = VLV_WM_LEVEL_DDR_DVFS; in vlv_setup_wm_latency()
1085 wm_state->num_levels = to_i915(dev)->wm.max_level + 1; in vlv_compute_wm()
1165 for (level = wm_state->num_levels; level < to_i915(dev)->wm.max_level + 1; level++) { in vlv_compute_wm()
1269 wm->level = to_i915(dev)->wm.max_level; in vlv_merge_wm()
2064 int level, max_level = ilk_wm_max_level(dev); in intel_read_wm_latency() local
2112 for (level = 1; level <= max_level; level++) { in intel_read_wm_latency()
2114 for (i = level + 1; i <= max_level; i++) in intel_read_wm_latency()
2129 for (level = 1; level <= max_level; level++) { in intel_read_wm_latency()
2198 int level, max_level = ilk_wm_max_level(dev); in intel_print_wm_latency() local
[all …]
Di915_drv.h1948 uint8_t max_level; member
/drivers/md/
Ddm-cache-policy-smq.c306 static struct entry *q_peek(struct queue *q, unsigned max_level, bool can_cross_sentinel) in q_peek() argument
311 max_level = min(max_level, q->nr_levels); in q_peek()
313 for (level = 0; level < max_level; level++) in q_peek()
341 static struct entry *q_pop_old(struct queue *q, unsigned max_level) in q_pop_old() argument
343 struct entry *e = q_peek(q, max_level, false); in q_pop_old()
966 static struct entry *pop_old(struct smq_policy *mq, struct queue *q, unsigned max_level) in pop_old() argument
968 struct entry *e = q_pop_old(q, max_level); in pop_old()
/drivers/scsi/libsas/
Dsas_expander.c991 parent->port->disc.max_level = max(parent->port->disc.max_level, in sas_ex_discover_expander()
1676 level = port->disc.max_level; in sas_ex_bfs_disc()
1679 } while (level < port->disc.max_level); in sas_ex_bfs_disc()
1693 ex->level = dev->port->disc.max_level; /* 0 */ in sas_discover_root_expander()
1979 } while (level <= dev->port->disc.max_level); in sas_discover_bfs_by_root()
Dsas_discover.c162 port->disc.max_level = 0; in sas_get_port_device()