Home
last modified time | relevance | path

Searched refs:levels (Results 1 – 25 of 501) sorted by relevance

12345678910>>...21

/freebsd/contrib/jemalloc/src/
H A Dbitmap.c20 * progressively work upward through the levels until reaching a level in bitmap_info_init()
23 binfo->levels[0].group_offset = 0; in bitmap_info_init()
27 binfo->levels[i].group_offset = binfo->levels[i-1].group_offset in bitmap_info_init()
31 binfo->levels[i].group_offset = binfo->levels[i-1].group_offset in bitmap_info_init()
33 assert(binfo->levels[i].group_offset <= BITMAP_GROUPS_MAX); in bitmap_info_init()
40 return binfo->levels[binfo->nlevels].group_offset; in bitmap_info_ngroups()
69 bitmap[binfo->levels[1].group_offset - 1] >>= extra; in bitmap_init()
72 size_t group_count = binfo->levels[ in bitmap_init()
[all...]
/freebsd/sys/dev/pwm/
H A Dpwm_backlight.c64 uint32_t *levels; member
117 (void **)&sc->levels); in pwm_backlight_attach()
133 sc->channel->duty = sc->channel->period * sc->levels[sc->default_level] / 100; in pwm_backlight_attach()
178 OF_prop_free(sc->levels); in pwm_backlight_detach()
194 if (sc->levels[i] == percent) in pwm_backlight_find_level_per_percent()
196 else if (sc->levels[i] < percent) in pwm_backlight_find_level_per_percent()
197 diff = percent - sc->levels[i]; in pwm_backlight_find_level_per_percent()
199 if (diff < abs((percent - sc->levels[i]))) in pwm_backlight_find_level_per_percent()
225 sc->levels[sc->current_level] / 100; in pwm_backlight_update_status()
263 props->brightness = sc->levels[sc->current_level]; in pwm_backlight_get_status()
[all …]
/freebsd/sys/kern/
H A Dkern_cpu.c107 static int cf_levels_method(device_t dev, struct cf_level *levels,
441 cpufreq_get_level(device_t dev, struct cf_level *levels, int count) in cpufreq_get_level() argument
448 if (freq == levels[i].total_set.freq) in cpufreq_get_level()
464 struct cf_level *levels; in cf_get_method() local
472 levels = NULL; in cf_get_method()
508 levels = malloc(count * sizeof(*levels), M_TEMP, M_NOWAIT); in cf_get_method()
509 if (levels == NULL) in cf_get_method()
511 error = CPUFREQ_LEVELS(sc->dev, levels, &count); in cf_get_method()
515 free(levels, M_TEMP); in cf_get_method()
528 i = cpufreq_get_level(sc->cf_drv_dev, levels, count); in cf_get_method()
[all …]
H A Dcpufreq_if.m57 # Get the current possible levels, based on all drivers.
59 METHOD int levels {
61 struct cf_level *levels;
/freebsd/sys/contrib/device-tree/Bindings/leds/backlight/
H A Dpwm-backlight.txt17 - brightness-levels: Array of distinct brightness levels. Typically these
24 array defined by the "brightness-levels" property).
26 of brightness-levels table. This way a high
40 brightness-levels = <0 4 8 16 32 64 128 255>;
55 brightness-levels = <0 2048 4096 8192 16384 65535>;
H A Dled-backlight.txt12 - brightness-levels: Array of distinct brightness levels. The levels must be
26 brightness-levels = <0 4 8 16 32 64 128 255>;
/freebsd/crypto/openssl/crypto/x509/
H A Dpcy_tree.c60 curr = tree->levels + tree->nlevel; in tree_print()
66 (long)(curr - tree->levels)); in tree_print()
67 for (plev = tree->levels; plev != curr; plev++) { in tree_print()
71 (long)(plev - tree->levels), plev->flags); in tree_print()
190 if ((tree->levels = OPENSSL_zalloc(sizeof(*tree->levels) * (n + 1))) == NULL) { in tree_init()
195 level = tree->levels; in tree_init()
206 * In this pass initialize all the tree levels and whether anyPolicy and in tree_init()
441 if (curr == tree->levels) { in tree_prune()
487 curr = tree->levels in tree_calculate_authority_set()
[all...]
/freebsd/crypto/openssl/crypto/
H A Dsparse_array.c52 int levels; member
88 if (l < sa->levels - 1) { in sa_doall()
166 for (level = sa->levels - 1; p != NULL && level > 0; level--) in ossl_sa_get()
192 for (; sa->levels < level; sa->levels++) { in ossl_sa_set()
203 for (level = sa->levels - 1; level > 0; level--) { in ossl_sa_set()
/freebsd/usr.sbin/makefs/
H A Dzfs.c663 * Do we need indirect blocks? Figure out how many levels are needed in dnode_cursor_init()
693 _dnode_cursor_flush(zfs_opt_t *zfs, struct dnode_cursor *c, unsigned int levels) in _dnode_cursor_flush() argument
700 assert(levels > 0); in _dnode_cursor_flush()
701 assert(levels <= c->dnode->dn_nlevels - 1U); in _dnode_cursor_flush()
705 for (unsigned int level = 1; level <= levels; level++) { in _dnode_cursor_flush()
744 unsigned int levels; in dnode_cursor_next() local
756 for (levels = 0; levels < c->dnode->dn_nlevels - 1U; levels++) { in dnode_cursor_next()
761 if (levels > in dnode_cursor_next()
773 unsigned int levels; dnode_cursor_finish() local
[all...]
/freebsd/lib/libc/db/btree/
H A Dbt_debug.c248 int levels; in __bt_stat() local
273 for (i = P_ROOT, levels = 0 ;; ++levels) { in __bt_stat()
276 if (levels == 0) in __bt_stat()
277 levels = 1; in __bt_stat()
286 levels, levels == 1 ? "" : "s", nkeys); in __bt_stat()
/freebsd/sys/contrib/device-tree/src/arm/nuvoton/
H A Dnuvoton-npcm750-evb.dts285 cooling-levels = <127 255>;
290 cooling-levels = /bits/ 8 <127 255>;
295 cooling-levels = /bits/ 8 <127 255>;
300 cooling-levels = /bits/ 8 <127 255>;
305 cooling-levels = /bits/ 8 <127 255>;
310 cooling-levels = /bits/ 8 <127 255>;
315 cooling-levels = /bits/ 8 <127 255>;
320 cooling-levels = /bits/ 8 <127 255>;
H A Dnuvoton-npcm750-runbmc-olympus.dts849 cooling-levels = <127 255>;
854 cooling-levels = /bits/ 8 <127 255>;
859 cooling-levels = /bits/ 8 <127 255>;
864 cooling-levels = /bits/ 8 <127 255>;
869 cooling-levels = /bits/ 8 <127 255>;
874 cooling-levels = /bits/ 8 <127 255>;
879 cooling-levels = /bits/ 8 <127 255>;
884 cooling-levels = /bits/ 8 <127 255>;
/freebsd/sys/dev/acpica/
H A Dacpi_thermal.c1044 struct cf_level *levels; in acpi_tz_cpufreq_update() local
1047 levels = malloc(CPUFREQ_MAX_LEVELS * sizeof(*levels), M_TEMP, M_NOWAIT); in acpi_tz_cpufreq_update()
1048 if (levels == NULL) in acpi_tz_cpufreq_update()
1061 error = CPUFREQ_GET(dev, &levels[0]); in acpi_tz_cpufreq_update()
1064 freq = levels[0].total_set.freq; in acpi_tz_cpufreq_update()
1068 error = CPUFREQ_LEVELS(dev, levels, &num_levels); in acpi_tz_cpufreq_update()
1076 perf = 100 * freq / levels[0].total_set.freq - req; in acpi_tz_cpufreq_update()
1081 desired_freq = levels[0].total_set.freq * perf / 100; in acpi_tz_cpufreq_update()
1086 if (levels[i].total_set.freq <= desired_freq) in acpi_tz_cpufreq_update()
1105 if (levels[i].total_set.freq >= desired_freq) in acpi_tz_cpufreq_update()
[all …]
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dbitmap.h55 * Assuming the number of levels, number of groups required for a given number
94 * Maximum number of levels possible. This could be statically computed based
117 /* levels. */ \
156 /* Number of levels necessary for nbits. */
160 * Only the first (nlevels+1) elements are used, and levels are ordered
161 * bottom to top (e.g. the bottom level is stored in levels[0]).
163 bitmap_level_t levels[BITMAP_MAX_LEVELS+1];
177 size_t rgoff = binfo->levels[binfo->nlevels].group_offset - 1; in bitmap_full()
226 gp = &bitmap[binfo->levels[i].group_offset + goff]; in bitmap_set()
249 bitmap_t group = bitmap[binfo->levels[leve in bitmap_ffu()
164 bitmap_level_t levels[BITMAP_MAX_LEVELS+1]; global() member
[all...]
/freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/btree/
H A Dbt_debug.c339 int levels; local
366 for (i = P_ROOT, levels = 0 ;; ++levels) {
369 if (levels == 0)
370 levels = 1;
379 levels, levels == 1 ? "" : "s", nkeys);
/freebsd/tools/test/stress2/tools/
H A Dfstool.c162 int c, i, levels, leave, times; in main() local
170 levels = 1; in main()
191 levels = atoi(optarg); in main()
222 max = levels; in main()
/freebsd/usr.sbin/bhyve/
H A Dacpi.h64 void dsdt_indent(int levels);
65 void dsdt_unindent(int levels);
/freebsd/tests/sys/cddl/zfs/tests/inheritance/
H A Dstate023.cfg29 # when each levels properties are set locally, results in the top level
33 # the top levels (now default) values
36 # the middle levels (now default) values
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/inheritance/
H A Dstate023.cfg35 # when each levels properties are set locally, results in the top level
39 # the top levels (now default) values
42 # the middle levels (now default) values
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_consume.c59 #define lquantize_levels u.lquantize.levels
63 uint16_t levels; member
69 #define llquantize_levels u.llquantize.levels
78 int levels; member
960 uint16_t step, levels; in dt_format_lquantize_prepare() local
972 levels = DTRACE_LQUANTIZE_LEVELS(arg); in dt_format_lquantize_prepare()
975 last_bin = levels + 1; in dt_format_lquantize_prepare()
977 if (size != sizeof (uint64_t) * (levels + 2)) { in dt_format_lquantize_prepare()
982 while (first_bin <= levels + 1 && data[first_bin] == 0) in dt_format_lquantize_prepare()
985 if (first_bin > levels + 1) { in dt_format_lquantize_prepare()
[all …]
/freebsd/sys/x86/x86/
H A Dtsc.c824 struct cf_level *levels; in tsc_levels_changed() local
841 levels = malloc(count * sizeof(*levels), M_TEMP, M_NOWAIT); in tsc_levels_changed()
842 if (levels == NULL) in tsc_levels_changed()
844 error = CPUFREQ_LEVELS(cf_dev, levels, &count); in tsc_levels_changed()
846 max_freq = (uint64_t)levels[0].total_set.freq * 1000000; in tsc_levels_changed()
850 free(levels, M_TEMP); in tsc_levels_changed()
/freebsd/lib/libc/amd64/string/
H A Damd64_archlevel.c49 } levels[] = { variable
113 const struct archlevel *lvl = &levels[level]; in supported_archlevel()
139 const char *candidate = levels[level].name; in match_archlevel()
/freebsd/sys/arm64/vmm/
H A Dvmm_arm64.c202 vmm_vtcr_el2_sl(u_int levels) in vmm_vtcr_el2_sl() argument
205 switch (levels) { in vmm_vtcr_el2_sl()
213 panic("%s: Invalid number of page table levels %u", __func__, in vmm_vtcr_el2_sl()
214 levels); in vmm_vtcr_el2_sl()
217 switch (levels) { in vmm_vtcr_el2_sl()
225 panic("%s: Invalid number of page table levels %u", __func__, in vmm_vtcr_el2_sl()
226 levels); in vmm_vtcr_el2_sl()
260 * Use 3 levels to give us up to 39 bits with 4k pages, or in vmmops_modinit()
263 /* TODO: Check the number of levels for 64k pages */ in vmmops_modinit()
865 int address_bits, granule_shift, ia_bits, levels, pte_shif in vmmops_gla2gpa()
853 int address_bits, granule_shift, ia_bits, levels, pte_shift, tsz; vmmops_gla2gpa() local
[all...]
/freebsd/sys/contrib/device-tree/Bindings/hwmon/
H A Daspeed-pwm-tacho.txt34 For PWM port can be configured cooling-levels to create cooling device.
42 - cooling-levels: PWM duty cycle values in a range from 0 to 255
65 cooling-levels = /bits/ 8 <125 151 177 203 229 255>;
H A Dnpcm750-pwm-fan.txt32 For PWM channel can be configured cooling-levels to create cooling device.
47 - cooling-levels: PWM duty cycle values in a range from 0 to 255
77 cooling-levels = <127 255>;

12345678910>>...21