Lines Matching full:spaces
128 * bch2_printbuf_tabstop_set() - add a tabstop, n spaces from the previous tabstop
131 * @spaces: number of spaces from previous tabpstop
134 * PRINTBUF_INLINE_TABSTOPS or setting tabstops more than 255 spaces from start
137 int bch2_printbuf_tabstop_push(struct printbuf *buf, unsigned spaces) in bch2_printbuf_tabstop_push() argument
146 buf->_tabstops[buf->nr_tabstops++] = prev_tabstop + spaces; in bch2_printbuf_tabstop_push()
155 * @spaces: number of spaces to add to the current indent level
158 * of the current line, will be indented by @spaces more spaces.
160 void bch2_printbuf_indent_add(struct printbuf *buf, unsigned spaces) in bch2_printbuf_indent_add() argument
162 if (WARN_ON_ONCE(buf->indent + spaces < buf->indent)) in bch2_printbuf_indent_add()
163 spaces = 0; in bch2_printbuf_indent_add()
165 buf->indent += spaces; in bch2_printbuf_indent_add()
166 prt_chars(buf, ' ', spaces); in bch2_printbuf_indent_add()
175 * @spaces: number of spaces to subtract from the current indent level
178 * of the current line, will be indented by @spaces less spaces.
180 void bch2_printbuf_indent_sub(struct printbuf *buf, unsigned spaces) in bch2_printbuf_indent_sub() argument
182 if (WARN_ON_ONCE(spaces > buf->indent)) in bch2_printbuf_indent_sub()
183 spaces = buf->indent; in bch2_printbuf_indent_sub()
186 buf->pos -= spaces; in bch2_printbuf_indent_sub()
189 buf->indent -= spaces; in bch2_printbuf_indent_sub()
215 * Returns spaces from start of line, if set, or 0 if unset:
226 int spaces = max_t(int, 0, cur_tabstop(out) - printbuf_linelen(out)); in __prt_tab() local
228 prt_chars(out, ' ', spaces); in __prt_tab()
238 * Advance output to the next tabstop by printing spaces.
279 * Advance output to the next tabstop by inserting spaces immediately after the