Home
last modified time | relevance | path

Searched refs:sc_height (Results 1 – 25 of 73) sorted by relevance

123

/netbsd-src/external/bsd/less/dist/
H A Dposition.c29 extern int sc_width, sc_height;
46 sindex = sc_height - 2; in position()
49 sindex = sc_height - 1; in position()
52 sindex = (sc_height - 1) / 2; in position()
68 for (i = 1; i < sc_height; i++) in add_forw_pos()
70 table[sc_height - 1] = pos; in add_forw_pos()
83 for (i = sc_height - 1; i > 0; i--) in add_back_pos()
95 for (i = 0; i < sc_height; i++) in pos_clear()
106 if (sc_height <= table_size) in pos_init()
118 table = (POSITION *) ecalloc(sc_height, sizeof(POSITION)); in pos_init()
[all …]
H A Djump.c23 extern int sc_width, sc_height;
41 if (position(sc_height-1) == end_pos) in jump_forw()
60 jump_loc(ch_zero(), sc_height-1); in jump_forw()
63 jump_loc(pos, sc_height-1); in jump_forw()
64 if (position(sc_height-1) != end_pos) in jump_forw()
83 jump_line_loc(end-1, sc_height-1); in jump_forw_buffered()
257 forw(sc_height-sindex+nline-1, bpos, 1, 0, 0); in jump_loc()
279 forw(sc_height-1, pos, 1, 0, sindex-nline); in jump_loc()
288 for (nline = sindex; nline < sc_height - 1; nline++) in jump_loc()
325 back(sc_height-1, pos, 1, 0); in jump_loc()
H A Dforwback.c30 extern int sc_width, sc_height;
186 for (ln = 0; ln < sc_height-1; ++ln) in overlay_header()
232 do_repaint = (only_last && n > sc_height-1) || in forw()
233 (forw_scroll >= 0 && n > forw_scroll && n != sc_height-1); in forw()
244 if (top_scroll && n >= sc_height - 1 && pos != ch_length()) in forw()
316 empty_lines(2, sc_height-1)) in forw()
407 do_repaint = (n > get_back_scroll() || (only_last && n > sc_height-1) || header_lines > 0); in back()
476 if (pos == NULL_POSITION && (!force || empty_lines(2, sc_height-1))) in forward()
534 return (sc_height - 2); in get_back_scroll()
546 for (nlines = 0; nlines < sc_height; nlines++) in get_one_screen()
[all …]
H A Dscreen.c137 extern int sc_height;
241 public int sc_width, sc_height; /* Height & width of screen */ variable
897 sc_height = sys_height; in scrsize()
899 sc_height = atoi(s); in scrsize()
902 sc_height = n; in scrsize()
907 sc_height = (height < 0) ? sc_height + height : height; in scrsize()
910 if (sc_height <= 0) in scrsize()
911 sc_height = DEF_SC_HEIGHT; in scrsize()
1422 strcpy(sp, tgoto(sc_move, 0, sc_height-1)); in get_term()
1485 tputs(t, sc_height, inc_costcount); in cost()
[all …]
H A Dsignal.c37 extern int sc_width, sc_height;
253 old_height = sc_height; in psignals()
255 if (sc_width != old_width || sc_height != old_height) in psignals()
257 wscroll = (sc_height + 1) / 2; in psignals()
H A Dprompt.c31 extern int sc_height;
157 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1) in curr_byte()
245 #define PAGE_NUM(linenum) ((((linenum) - 1) / (sc_height - header_lines - 1)) + 1) in protochar()
261 if (linenum > 0 && sc_height > header_lines + 1) in protochar()
H A Dmark.c17 extern int sc_height;
154 cmark(m, curr_ifile, ch_tell(), sc_height); in getmark()
418 if (ln > sc_height) in restore_mark()
419 ln = sc_height; in restore_mark()
/netbsd-src/distrib/utils/more/
H A Dposition.c77 where = sc_height - 2;
80 where = sc_height - 1;
83 where = sc_height / 2;
100 for (i = 1; i < sc_height; i++)
102 table[sc_height - 1] = pos;
117 for (i = sc_height - 1; i > 0; i--)
127 for (a = 0; a < sc_height && table[a] == NULL_POSITION; a++); in copytable()
128 for (b = 0; a < sc_height; a++, b++) { in copytable()
143 tablesize = sc_height > 25 ? sc_height : 25; in pos_clear()
145 } else if (sc_height >= tablesize) { in pos_clear()
[all …]
H A Dscreen.c114 int sc_width, sc_height = -1; /* Height & width of screen */ variable
269 sc_height = w.ws_row; in get_term()
273 sc_height = w.uw_height/w.uw_vs; in get_term()
277 sc_height = tgetnum("li"); in get_term()
278 hard = (sc_height < 0 || tgetflag("hc")); in get_term()
281 sc_height = 24; in get_term()
418 (void)strlcpy(sp, tgoto(sc_move, 0, sc_height-1), in get_term()
462 tputs(sc_init, sc_height, putchr); in init()
471 tputs(sc_deinit, sc_height, putchr); in deinit()
490 tputs(sc_addline, sc_height, putchr); in add_line()
[all …]
H A Dprim.c122 do_repaint = (only_last && n > sc_height-1);
125 if (top_scroll && n >= sc_height - 1) {
215 do_repaint = (n > get_back_scroll() || (only_last && n > sc_height-1));
310 forw(sc_height-1, pos, 0);
349 back(sc_height - 1, pos, 0); in jump_forw()
481 for (nline = 0; npos < tpos && nline < sc_height - 1; nline++)
602 return (sc_height - 2); in get_back_scroll()
603 return (sc_height - 1); in get_back_scroll()
H A Dsignal.c188 old_height = sc_height; in psignals()
190 if (sc_width != old_width || sc_height != old_height) in psignals()
192 scroll_lines = (sc_height + 1) / 2; in psignals()
H A Doption.c87 sc_height = atoi(++p);
89 sc_height = atoi(argv[optind] + 1);
/netbsd-src/sys/arch/evbppc/virtex/dev/
H A Dtft.c85 sc->sc_height, sc->sc_bpp); in tft_attach()
152 ri->ri_height = sc->sc_height; in tft_init_screen()
186 sc->sc_height = 480; in tft_mode()
197 sc->sc_height = (u_int)prop_number_integer_value(pn); in tft_mode()
207 sc->sc_size = sc->sc_stride * sc->sc_height; in tft_mode()
227 info->height = sc->sc_height; in tft_ioctl()
/netbsd-src/sys/arch/hpcmips/dev/
H A Dmq200subr.c297 sc->sc_height[MQ200_GC1] = crt->height; in mq200_setup()
349 gc + 1, width, height, sc->sc_width[gc], sc->sc_height[gc]); in mq200_win_enable()
353 start += (height - sc->sc_height[gc]) * in mq200_win_enable()
358 if (sc->sc_height[gc] < height) { in mq200_win_enable()
359 start += (height - sc->sc_height[gc]) * stride; in mq200_win_enable()
360 height = sc->sc_height[gc]; in mq200_win_enable()
371 ((sc->sc_height[gc] - height)/2)); in mq200_win_enable()
/netbsd-src/sys/dev/pci/
H A Dpm2fb.c100 int sc_width, sc_height, sc_depth, sc_stride; member
345 if (!prop_dictionary_get_uint32(dict, "height", &sc->sc_height)) { in pm2fb_attach()
347 sc->sc_height = 768; in pm2fb_attach()
413 sc->sc_height -= 200; in pm2fb_attach()
421 pm2fb_rectfill(sc, 0, 0, sc->sc_width, sc->sc_height, in pm2fb_attach()
428 glyphcache_init(&sc->sc_gc, sc->sc_height + 5, in pm2fb_attach()
430 - sc->sc_height - 5, in pm2fb_attach()
445 glyphcache_init(&sc->sc_gc, sc->sc_height + 5, in pm2fb_attach()
447 - sc->sc_height - 5, in pm2fb_attach()
468 pm2fb_rectfill(sc, 0, sc->sc_height, sc->sc_width, 200, 0xffffffff); in pm2fb_attach()
[all …]
H A Dwcfb.c80 int sc_width, sc_height, sc_stride; member
222 sc->sc_height = (reg >> 16) + 1; in wcfb_attach()
224 sc->sc_height -= 200; in wcfb_attach()
231 sc->sc_width, sc->sc_height, sc->sc_stride); in wcfb_attach()
234 sc->sc_shadow = kmem_alloc(sc->sc_stride * sc->sc_height, in wcfb_attach()
304 wcfb_rectfill(sc, 0, 0, sc->sc_width, sc->sc_height, in wcfb_attach()
309 sc->sc_stride * sc->sc_height); in wcfb_attach()
312 sc->sc_stride * sc->sc_height); in wcfb_attach()
327 sc->sc_stride * sc->sc_height); in wcfb_attach()
329 sc->sc_stride * sc->sc_height); in wcfb_attach()
[all …]
/netbsd-src/sys/arch/arm/fdt/
H A Darm_simplefb.c67 uint32_t sc_height; member
128 ri->ri_height = sc->sc_height; in arm_simplefb_init_screen()
153 rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight, in arm_simplefb_init_screen()
248 sc->sc_height = height; in arm_simplefb_preattach()
/netbsd-src/sys/dev/pci/igma/
H A Digmafb.c55 int sc_height; member
140 igmafb_guess_size(sc, &sc->sc_width, &sc->sc_height); in igmafb_attach()
145 sc->sc_width, sc->sc_height, sc->sc_depth, sc->sc_stride); in igmafb_attach()
347 ri->ri_height = sc->sc_height; in igmafb_init_screen()
371 rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight, in igmafb_init_screen()
434 PF_WINSZ_VAL(sc->sc_width, sc->sc_height)); in igmafb_set_mode()
438 PIPE_SRCSZ_VAL(sc->sc_width, sc->sc_height)); in igmafb_set_mode()
489 PF_WINSZ_VAL(sc->sc_width, sc->sc_height)); in igmafb_set_mode()
/netbsd-src/sys/arch/sparc64/dev/
H A Dgfb.c66 int sc_width, sc_height, sc_depth, sc_stride, sc_fblen; member
150 sc->sc_height = prom_getpropint(sc->sc_node, "height", 0); in gfb_attach()
152 sc->sc_fblen = sc->sc_stride * sc->sc_height; in gfb_attach()
208 gfb_rectfill(sc, 0, 0, sc->sc_width, sc->sc_height, in gfb_attach()
359 ri->ri_height = sc->sc_height; in gfb_init_screen()
381 rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight, in gfb_init_screen()
/netbsd-src/sys/arch/arm/ti/
H A Domap3_dss.c71 int sc_width, sc_height, sc_depth, sc_stride; member
241 sc->sc_height = ((sz & 0x0fff0000 ) >> 16) + 1; in omapfb_attach()
245 if (sc->sc_width == 1 || sc->sc_height == 1) { in omapfb_attach()
251 sc->sc_width, sc->sc_height); in omapfb_attach()
342 ((sc->sc_height - 1) << 16) | (sc->sc_width - 1)); in omapfb_attach()
345 ((sc->sc_height - 1) << 16) | (sc->sc_width - 1)); in omapfb_attach()
462 omapfb_rectfill(sc, 0, 0, sc->sc_width, sc->sc_height, in omapfb_attach()
564 fbi->fbi_height = sc->sc_height; in omapfb_ioctl()
656 ri->ri_height = sc->sc_height; in omapfb_init_screen()
670 rasops_init(ri, sc->sc_height / 8, sc->sc_width / 8); in omapfb_init_screen()
[all …]
/netbsd-src/sys/dev/sbus/
H A Dagten.c108 uint32_t sc_height; /* panel width / height */ member
253 sc->sc_height = prom_getpropint(node, "ffb_height", 900); in agten_attach()
261 round_page(sc->sc_stride * sc->sc_height), in agten_attach()
301 printf(": %dx%d\n", sc->sc_width, sc->sc_height); in agten_attach()
318 sc->sc_height -= 200; in agten_attach()
331 sc->sc_height + 5, in agten_attach()
332 (0x400000 / sc->sc_stride) - sc->sc_height - 5, in agten_attach()
341 sc->sc_width, sc->sc_height, in agten_attach()
357 sc->sc_height + 5, in agten_attach()
358 (0x400000 / sc->sc_stride) - sc->sc_height - 5, in agten_attach()
[all …]
H A Dgenfb_sbus.c111 sc->sc_gen.sc_height = prom_getpropint(sa->sa_node, "height", 900); in genfb_attach_sbus()
115 sc->sc_gen.sc_fbsize = sc->sc_gen.sc_height * sc->sc_gen.sc_stride; in genfb_attach_sbus()
120 sc->sc_gen.sc_width, sc->sc_gen.sc_height, sc->sc_gen.sc_depth); in genfb_attach_sbus()
H A Dcgtwelve.c73 int sc_height; member
166 sc->sc_height = prom_getpropint(sa->sa_node, "height", 900); in cgtwelve_attach()
172 sc->sc_fbsize = sc->sc_height * sc->sc_stride; in cgtwelve_attach()
187 aprint_normal_dev(self, "%d x %d\n", sc->sc_width, sc->sc_height); in cgtwelve_attach()
469 ri->ri_height = sc->sc_height; in cgtwelve_init_screen()
515 wdf->height = sc->sc_height; in cgtwelve_ioctl()
/netbsd-src/sys/arch/usermode/dev/
H A Dvncfb.c81 unsigned int sc_height; member
208 sc->sc_height = taa->u.vnc.height; in vncfb_attach()
217 sc->sc_framebufsize = sc->sc_width * sc->sc_height * (sc->sc_depth / 8); in vncfb_attach()
225 sc->sc_width, sc->sc_height, sc->sc_depth, taa->u.vnc.port); in vncfb_attach()
228 sc->sc_rfb.height = sc->sc_height; in vncfb_attach()
295 ri->ri_height = sc->sc_height; in vncfb_init_screen()
303 rasops_init(ri, sc->sc_height / 8, sc->sc_width / 8); in vncfb_init_screen()
305 rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight, in vncfb_init_screen()
609 vncfb_update(sc, 0, 0, sc->sc_width, sc->sc_height); in vncfb_softrefresh()
/netbsd-src/sys/arch/macppc/dev/
H A Dvalkyriefb.c75 int sc_width, sc_height, sc_linebytes; member
346 sc->sc_height = mode->vdisplay; in valkyriefb_set_mode()
349 sc->sc_width, sc->sc_height, sc->sc_depth); in valkyriefb_set_mode()
424 ri->ri_height = sc->sc_height; in valkyriefb_init_screen()
434 rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight, in valkyriefb_init_screen()

123