Searched refs:percent (Results 26 - 50 of 83) sorted by relevance

1234

/linux-master/drivers/power/supply/
H A Dtwl4030_madc_battery.c139 int percent = twl4030_madc_bat_voltscale(bat, local
141 val->intval = (percent * bat->pdata->capacity) / 100;
155 int percent = twl4030_madc_bat_voltscale(bat, local
158 int chg = (percent * (bat->pdata->capacity/1000))/100;
H A Dab8500_fg.c1168 * Get the battery capacity level based on the capacity in percent
1172 int ret, percent; local
1174 percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10);
1176 if (percent <= di->bm->cap_levels->critical ||
1179 else if (percent <= di->bm->cap_levels->low)
1181 else if (percent <= di->bm->cap_levels->normal)
1183 else if (percent <= di->bm->cap_levels->high)
1295 int percent = DIV_ROUND_CLOSEST(di->bat_cap.permille, 10); local
1327 percent = 0;
1337 di->bat_cap.prev_percent = percent;
[all...]
H A Dab8500_chargalg.c85 int percent; member in struct:ab8500_chargalg_battery_data
870 di->batt_data.percent = ret.intval;
1160 di->batt_data.percent = ret.intval;
1202 if (!di->batt_data.volt_uv || !di->batt_data.percent)
1211 if (di->batt_data.percent <= AB8500_RECHARGE_CAP)
1331 di->batt_data.percent,
/linux-master/drivers/platform/x86/intel/
H A Doaktrail.c216 u8 percent = (u8) b->props.brightness; local
217 if (percent < 0 || percent > OT_EC_BL_BRIGHTNESS_MAX)
220 ec_write(OT_EC_BL_BRIGHTNESS_ADDRESS, percent);
/linux-master/tools/perf/ui/gtk/
H A Dannotate.c34 double percent = 0.0; local
53 percent = 100.0 * nr_samples / symhist->nr_samples;
55 markup = perf_gtk__get_percent_color(percent);
58 ret += scnprintf(buf + ret, size - ret, "%6.2f%%", percent);
H A Dhists.c21 double percent; local
28 percent = va_arg(args, double);
31 markup = perf_gtk__get_percent_color(percent);
35 ret += scnprintf(buf + ret, size - ret, fmt, len, percent);
362 float percent; local
367 percent = hist_entry__get_percent_limit(h);
368 if (percent < min_pcnt)
422 float percent; local
429 percent = hist_entry__get_percent_limit(he);
430 if (percent < min_pcn
[all...]
/linux-master/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.c144 double percent; local
173 ret = s.get_count_percent(s.id, &percent,
177 else if (percent >= 100.0)
178 printf("%6.1f", percent);
180 printf("%6.2f", percent);
273 * percent, time (granlarity)
/linux-master/tools/perf/util/
H A Dannotate.c711 double percent; local
713 percent = annotation_data__percent(&al->data[i],
716 if (percent > max_percent)
717 max_percent = percent;
743 double percent; local
745 percent = annotation_data__percent(data, percent_type);
746 color = get_percent_color(percent);
755 color_fprintf(stdout, color, " %7.2f", percent);
820 data->percent[PERCENT_HITS_LOCAL] = 100.0 * hits / sym_hist->nr_samples;
824 data->percent[PERCENT_HITS_GLOBA
1038 double percent, percent_max = 0.0; local
1495 double percent; local
1604 double percent; local
1665 __annotation_line__write(struct annotation_line *al, struct annotation *notes, bool first_line, bool current_entry, bool change_color, int width, void *obj, unsigned int percent_type, int (*obj__set_color)(void *obj, int color), void (*obj__set_percent_color)(void *obj, double percent, bool current), int (*obj__set_jumps_percent_color)(void *obj, int nr, bool current), void (*obj__printf)(void *obj, const char *fmt, ...), void (*obj__write_graph)(void *obj, int graph)) argument
1694 double percent; local
[all...]
H A Dannotate.h85 double percent[PERCENT_MAX]; member in struct:annotation_data
126 return which < PERCENT_MAX ? data->percent[which] : -1;
172 void (*set_percent_color)(void *obj, double percent, bool current);
/linux-master/tools/testing/fault-injection/
H A Dfailcmd.sh24 -p percent
25 --probability=percent
26 likelihood of failure injection, in percent.
/linux-master/scripts/kconfig/lxdialog/
H A Dtextbox.c121 int percent; local
125 percent = (page - buf) * 100 / strlen(buf);
127 wprintw(win, "(%3d%%)", percent);
/linux-master/tools/perf/ui/browsers/
H A Dannotate.c75 static void annotate_browser__set_percent_color(void *browser, double percent, bool current) argument
77 ui_browser__set_percent_color(browser, percent, current);
239 if (a->data[i].percent[percent_type] == b->data[i].percent[percent_type])
241 return a->data[i].percent[percent_type] -
242 b->data[i].percent[percent_type];
327 double percent; local
329 percent = annotation_data__percent(&pos->al.data[i],
332 if (max_percent < percent)
333 max_percent = percent;
[all...]
H A Dannotate-data.c181 double percent = total->period ? (100.0 * period / total->period) : 0; local
185 ui_browser__set_percent_color(uib, percent, current);
192 ui_browser__printf(uib, " %10.2f", percent);
H A Dhists.c288 float percent; local
291 percent = hist_entry__get_percent_limit(child);
293 if (!child->filtered && percent >= hb->min_pcnt) {
568 float percent; local
575 percent = hist_entry__get_percent_limit(child);
576 if (!child->filtered && percent >= hb->min_pcnt)
607 double percent; local
618 percent = hist_entry__get_percent_limit(he);
619 if (he->filtered || percent < browser->min_pcnt)
1214 double percent; local
1830 float percent; local
1872 float percent = hist_entry__get_percent_limit(h); local
1895 float percent = hist_entry__get_percent_limit(h); local
2926 hist_browser__update_percent_limit(struct hist_browser *hb, double percent) argument
[all...]
/linux-master/drivers/tty/serial/8250/
H A D8250_bcm7271.c676 static u32 find_quot(struct device *dev, u32 freq, u32 baud, u32 *percent) argument
689 /* increase resolution to get xx.xx percent */
699 *percent = (unsigned long)DIV_ROUND_CLOSEST_ULL(hires_err, baud);
702 baud, freq, *percent / 100, *percent % 100);
710 u32 percent; local
725 quot = find_quot(up->dev, priv->default_mux_rate, baud, &percent);
727 best_percent = percent;
737 quot = find_quot(up->dev, freq, baud, &percent);
741 if (percent < best_percen
[all...]
/linux-master/tools/perf/ui/
H A Dbrowser.h39 double percent, bool current);
H A Dhist.c37 double percent = 0.0; local
41 percent = 100.0 * get_field(he) / total;
43 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent);
334 double percent; local
339 percent = va_arg(args, double);
340 ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent);
H A Dbrowser.c21 double percent, bool current)
25 if (percent >= MIN_RED)
27 if (percent >= MIN_GREEN)
41 double percent, bool current)
43 int color = ui_browser__percent_color(browser, percent, current);
20 ui_browser__percent_color(struct ui_browser *browser, double percent, bool current) argument
40 ui_browser__set_percent_color(struct ui_browser *browser, double percent, bool current) argument
/linux-master/drivers/platform/chrome/
H A Dcros_kbd_led_backlight.c142 params->percent = brightness;
168 return resp->percent;
/linux-master/tools/testing/selftests/kvm/include/
H A Dtest_util.h101 uint8_t percent)
103 return (guest_random_u32(state) % 100) < percent;
100 __guest_random_bool(struct guest_random_state *state, uint8_t percent) argument
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dboost.c121 info->percent = nvbios_rd08(bios, data + 0x01);
/linux-master/drivers/net/phy/
H A Ddp83822.c628 static int dp83826_to_dac_minus_one_regval(int percent) argument
630 int tmp = DP83826_CFG_DAC_PERCENT_DEFAULT - percent;
635 static int dp83826_to_dac_plus_one_regval(int percent) argument
637 int tmp = percent - DP83826_CFG_DAC_PERCENT_DEFAULT;
/linux-master/sound/soc/codecs/
H A Drk3308_codec.c872 u32 percent; local
876 err = of_property_read_u32(np, "rockchip,micbias-avdd-percent", &percent);
881 "Error reading 'rockchip,micbias-avdd-percent'\n");
883 /* Convert percent to register value, linerarly (50% -> 0, 5% step = +1) */
884 mult = (percent - 50) / 5;
886 /* Check range and that the percent was an exact value allowed */
887 if (mult > RK3308_ADC_LEVEL_RANGE_MICBIAS_MAX || mult * 5 + 50 != percent)
889 "Invalid value %u for 'rockchip,micbias-avdd-percent'\n",
890 percent);
[all...]
/linux-master/tools/mm/
H A Dthpmaps384 percent = f' ({value / tot_anon:3.0%})'
386 percent = f' ({value / tot_file:3.0%})'
388 percent = ''
389 print(f"{label}:{' ' * pad}{value:8} kB{percent}")
/linux-master/tools/perf/scripts/python/
H A Dexport-to-sqlite.py288 'percent integer)')
468 'percent'
526 'CASE WHEN selected_events.name=\'cbr\' THEN (SELECT percent FROM cbr WHERE cbr.id = samples.id) ELSE "" END AS percent,'
735 percent = ((cbr * 1000 / data[2]) + 5) / 10
739 cbr_query.addBindValue(str(percent))

Completed in 279 milliseconds

1234