Lines Matching refs:p
5 static void null_progress__update(struct ui_progress *p __maybe_unused) in null_progress__update()
16 void ui_progress__update(struct ui_progress *p, u64 adv) in ui_progress__update() argument
18 u64 last = p->curr; in ui_progress__update()
20 p->curr += adv; in ui_progress__update()
22 if (p->curr >= p->next) { in ui_progress__update()
23 u64 nr = DIV_ROUND_UP(p->curr - last, p->step); in ui_progress__update()
25 p->next += nr * p->step; in ui_progress__update()
26 ui_progress__ops->update(p); in ui_progress__update()
30 void __ui_progress__init(struct ui_progress *p, u64 total, in __ui_progress__init() argument
33 p->curr = 0; in __ui_progress__init()
34 p->next = p->step = total / 16 ?: 1; in __ui_progress__init()
35 p->total = total; in __ui_progress__init()
36 p->title = title; in __ui_progress__init()
37 p->size = size; in __ui_progress__init()
40 ui_progress__ops->init(p); in __ui_progress__init()