Lines Matching defs:pos
58 int pos = hist_end - i;
59 if (pos < 0)
60 pos += hist_size;
61 grub_free (old_hist_lines[pos]);
95 grub_history_get (int pos)
97 pos = (hist_pos + pos) % hist_size;
98 return hist_lines[pos];
114 grub_history_set (int pos, grub_uint32_t *s, grub_size_t len)
116 grub_free (hist_lines[pos]);
117 hist_lines[pos] = grub_malloc ((len + 1) * sizeof (grub_uint32_t));
118 if (!hist_lines[pos])
124 grub_memcpy (hist_lines[pos], s, len * sizeof (grub_uint32_t));
125 hist_lines[pos][len] = 0;
157 grub_history_replace (int pos, grub_uint32_t *s, grub_size_t len)
159 grub_history_set ((hist_pos + pos) % hist_size, s, len);
224 auto inline void __attribute__ ((always_inline)) cl_print (struct cmdline_term *cl_term, int pos,
227 auto void cl_print_all (int pos, grub_uint32_t c);
250 inline void __attribute__ ((always_inline)) cl_print (struct cmdline_term *cl_term, int pos, grub_uint32_t c)
254 for (p = buf + pos; p < buf + llen; p++)
273 void cl_print_all (int pos, grub_uint32_t c)
277 cl_print (&cl_terms[i], pos, c);