Lines Matching refs:p
4 static void null_progress__update(struct ui_progress *p __maybe_unused) in null_progress__update()
15 void ui_progress__update(struct ui_progress *p, u64 adv) in ui_progress__update() argument
17 p->curr += adv; in ui_progress__update()
19 if (p->curr >= p->next) { in ui_progress__update()
20 p->next += p->step; in ui_progress__update()
21 ui_progress__ops->update(p); in ui_progress__update()
25 void ui_progress__init(struct ui_progress *p, u64 total, const char *title) in ui_progress__init() argument
27 p->curr = 0; in ui_progress__init()
28 p->next = p->step = total / 16; in ui_progress__init()
29 p->total = total; in ui_progress__init()
30 p->title = title; in ui_progress__init()