Home
last modified time | relevance | path

Searched refs:hsize (Results 1 – 25 of 38) sorted by relevance

12

/openbsd/lib/libusbhid/
H A Ddata.c38 uint32_t hsize; in hid_get_data() local
54 if (hsize == 0) in hid_get_data()
56 if (hsize > 32) in hid_get_data()
57 hsize = 32; in hid_get_data()
60 end = (hpos + hsize) / 8 - offs; in hid_get_data()
67 hsize = 32 - hsize; in hid_get_data()
71 data = (int32_t)((int32_t)data << hsize) >> hsize; in hid_get_data()
73 data = (uint32_t)((uint32_t)data << hsize) >> hsize; in hid_get_data()
83 uint32_t hsize; in hid_set_data() local
100 if (hsize != 32) { in hid_set_data()
[all …]
/openbsd/usr.bin/cvs/
H A Dhash.c30 hash_table_init(struct hash_table *htable, size_t hsize) in hash_table_init() argument
35 if (hsize < MIN_HASH_SIZE) in hash_table_init()
36 hsize = MIN_HASH_SIZE; in hash_table_init()
38 if (hsize > MAX_HASH_SIZE) in hash_table_init()
39 hsize = MAX_HASH_SIZE; in hash_table_init()
41 if ((hsize & (hsize - 1)) != 0) { in hash_table_init()
42 for (power = 0; hsize != 0; power++) in hash_table_init()
43 hsize >>= 1; in hash_table_init()
44 hsize = 1 << power; in hash_table_init()
47 htable->h_table = xcalloc(hsize, sizeof(struct hash_head)); in hash_table_init()
[all …]
/openbsd/usr.bin/tmux/
H A Dcmd-capture-pane.c139 top = gd->hsize; in cmd_capture_pane_history()
141 } else if (n < 0 && (u_int) -n > gd->hsize) in cmd_capture_pane_history()
144 top = gd->hsize + n; in cmd_capture_pane_history()
145 if (top > gd->hsize + gd->sy - 1) in cmd_capture_pane_history()
146 top = gd->hsize + gd->sy - 1; in cmd_capture_pane_history()
151 bottom = gd->hsize + gd->sy - 1; in cmd_capture_pane_history()
156 bottom = gd->hsize + gd->sy - 1; in cmd_capture_pane_history()
158 } else if (n < 0 && (u_int) -n > gd->hsize) in cmd_capture_pane_history()
161 bottom = gd->hsize + n; in cmd_capture_pane_history()
162 if (bottom > gd->hsize + gd->sy - 1) in cmd_capture_pane_history()
[all …]
H A Dgrid.c310 gd->hsize = 0; in grid_create()
377 if (gd->hsize == 0 || gd->hsize < gd->hlimit) in grid_collect_history()
383 if (ny > gd->hsize) in grid_collect_history()
384 ny = gd->hsize; in grid_collect_history()
392 gd->hsize -= ny; in grid_collect_history()
403 if (ny > gd->hsize) in grid_remove_history()
407 gd->hsize -= ny; in grid_remove_history()
419 yy = gd->hsize + gd->sy; in grid_scroll_history()
427 gd->hsize++; in grid_scroll_history()
437 gd->hsize = 0; in grid_clear_history()
[all …]
H A Dwindow-copy.c1017 if (cy < gd->hsize) { in window_copy_resize()
3161 if (py >= gd->hsize - data->oy && py < gd->hsize - data->oy + gd->sy) in window_copy_scroll_to()
3169 offset = gd->hsize; in window_copy_scroll_to()
4083 end = gd->hsize + sy; in window_copy_search_marks()
4368 u_int hsize; in window_copy_get_current_offset() local
4375 *size = hsize; in window_copy_get_current_offset()
5464 u_int px, py, hsize; in window_copy_cursor_next_word_end_pos() local
5521 u_int px, py, hsize; in window_copy_cursor_previous_word_pos() local
5598 if (line > gd->hsize) { in window_copy_cursor_prompt()
5868 yy = hsize - oy; in window_copy_acquire_cursor_up()
[all …]
H A Dgrid-reader.c58 if (wrap && gr->cx >= px && gr->cy < gr->gd->hsize + gr->gd->sy - 1) { in grid_reader_cursor_right()
99 if (gr->cy < gr->gd->hsize + gr->gd->sy - 1) in grid_reader_cursor_down()
145 yy = gr->gd->hsize + gr->gd->sy - 1; in grid_reader_cursor_end_of_line()
197 yy = gr->gd->hsize + gr->gd->sy - 1; in grid_reader_cursor_next_word()
242 yy = gr->gd->hsize + gr->gd->sy - 1; in grid_reader_cursor_next_word_end()
358 yy = gr->gd->hsize + gr->gd->sy - 1; in grid_reader_cursor_jump()
414 yy = gr->gd->hsize + gr->gd->sy - 1; in grid_reader_cursor_back_to_indentation()
H A Dscreen.c121 grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy, 8); in screen_reinit()
291 u_int cx = s->cx, cy = s->grid->hsize + s->cy; in screen_resize_cursor()
317 if (cy >= s->grid->hsize) { in screen_resize_cursor()
319 s->cy = cy - s->grid->hsize; in screen_resize_cursor()
384 gd->hsize += needed; in screen_resize_y()
394 grid_adjust_lines(gd, gd->hsize + sy); in screen_resize_y()
409 gd->hsize -= available; in screen_resize_y()
415 for (i = gd->hsize + sy - needed; i < gd->hsize + sy; i++) in screen_resize_y()
602 *cy = s->grid->hsize; in screen_reflow()
H A Dcmd-resize-pane.c70 if (adjust > gd->hsize) in cmd_resize_pane_exec()
71 adjust = gd->hsize; in cmd_resize_pane_exec()
H A Dscreen-write.c581 if (yy >= gd->hsize + gd->sy) in screen_write_fast_copy()
862 screen_write_fast_copy(ctx, src, px, src->grid->hsize + py, nx, ny); in screen_write_preview()
1004 gl = grid_get_line(s->grid, s->grid->hsize + cy - 1); in screen_write_backspace()
1230 gl = grid_get_line(s->grid, s->grid->hsize + s->cy); in screen_write_clearline()
1259 gl = grid_get_line(s->grid, s->grid->hsize + s->cy); in screen_write_clearendofline()
1382 gl = grid_get_line(gd, gd->hsize + s->cy); in screen_write_linefeed()
1909 gl = grid_get_line(s->grid, s->grid->hsize + s->cy); in screen_write_cell()
/openbsd/libexec/ld.so/
H A Dsod.c160 long hsize = 0; in _dl_maphints() local
172 hsize = (long)sb.st_size; in _dl_maphints()
173 addr = (void *)_dl_mmap(0, hsize, PROT_READ, MAP_PRIVATE, hfd, 0); in _dl_maphints()
178 if (HH_BADMAG(*hheader) || hheader->hh_ehints > hsize) in _dl_maphints()
189 _dl_mimmutable(addr, hsize); in _dl_maphints()
198 _dl_munmap(addr, hsize); in _dl_maphints()
/openbsd/libexec/ld.so/ldconfig/
H A Dsod.c156 long hsize = 0; in _dl_maphints() local
166 hsize = (long)sb.st_size; in _dl_maphints()
167 addr = (void *)mmap(0, hsize, PROT_READ, MAP_PRIVATE, hfd, 0); in _dl_maphints()
172 if (HH_BADMAG(*hheader) || hheader->hh_ehints > hsize) in _dl_maphints()
190 munmap(addr, hsize); in _dl_maphints()
/openbsd/sys/net/
H A Dbsd-comp.c316 hsize = 5003; in bsd_alloc()
320 hsize = 9001; in bsd_alloc()
324 hsize = 18013; in bsd_alloc()
328 hsize = 35023; in bsd_alloc()
357 db->hsize = hsize; in bsd_alloc()
408 i = db->hsize; in bsd_init()
578 if (hval >= db->hsize) in bsd_compress()
579 hval -= db->hsize; in bsd_compress()
723 if (hval >= db->hsize) in bsd_incomp()
724 hval -= db->hsize; in bsd_incomp()
[all …]
/openbsd/usr.sbin/bgpd/
H A Drde_aspa.c339 uint32_t hsize = 1024; in aspa_table_prep() local
346 while (hsize < entries) in aspa_table_prep()
347 hsize *= 2; in aspa_table_prep()
352 if ((ra->table = calloc(hsize, sizeof(ra->table[0]))) == NULL) in aspa_table_prep()
361 ra->mask = hsize - 1; in aspa_table_prep()
/openbsd/sys/dev/hid/
H A Dhid.c582 uint32_t hsize = loc->size; in hid_get_data_sub() local
587 DPRINTF("hid_get_data_sub: loc %d/%d\n", hpos, hsize); in hid_get_data_sub()
590 if (hsize == 0) in hid_get_data_sub()
592 if (hsize > 32) in hid_get_data_sub()
593 hsize = 32; in hid_get_data_sub()
598 n = (hsize + 7) / 8; in hid_get_data_sub()
608 n = 32 - hsize; in hid_get_data_sub()
/openbsd/gnu/usr.bin/binutils/gdb/doc/
H A Drefcard.tex133 %% hsize = (fullhsize - (4 * hmargin) - (2 * barwidth)) / 3
135 \hsize=\fullhsize
136 \temp=\hmargin \multiply \temp by 4 \advance \hsize by -\temp
137 \temp=\barwidth \multiply \temp by 2 \advance \hsize by -\temp
138 \divide \hsize by 3
147 %% itmwid = (hsize - intersecwidth) * 1/3
148 %% dfnwid = (hsize - intersecwidth) * 2/3
150 \temp=\hsize \advance \temp by -\intersecwidth \divide \temp by 3
152 \dfnwid=\hsize \advance \dfnwid by -\itmwid
233 \vtop{\hsize=\itmwid\tt
[all …]
/openbsd/usr.sbin/nsd/
H A Dudb.c131 if(g.hsize < UDB_HEADER_SIZE) { in udb_base_create_fd()
133 (int)g.hsize); in udb_base_create_fd()
136 if(g.hsize > UDB_HEADER_SIZE) { in udb_base_create_fd()
138 (int)g.hsize); in udb_base_create_fd()
163 if(g.fsize < UDB_HEADER_SIZE || g.fsize < g.hsize) { in udb_base_create_fd()
232 g->hsize = UDB_HEADER_SIZE; in udb_glob_init_new()
775 udb_void at = alloc->udb->glob_data->hsize;
791 at = alloc->udb->glob_data->hsize;
890 udb_void at = udb->glob_data->hsize;
1512 if(other < alloc->udb->glob_data->hsize)
[all …]
/openbsd/sys/dev/pci/drm/
H A Ddrm_edid.c3023 int hsize, int vsize, int fresh, in drm_mode_find_dmt() argument
3031 if (hsize != ptr->hdisplay) in drm_mode_find_dmt()
3337 int hsize, vsize; in drm_mode_std() local
3349 hsize = t->hsize * 8 + 248; in drm_mode_std()
3355 vsize = hsize; in drm_mode_std()
3357 vsize = (hsize * 10) / 16; in drm_mode_std()
3359 vsize = (hsize * 3) / 4; in drm_mode_std()
3361 vsize = (hsize * 4) / 5; in drm_mode_std()
3363 vsize = (hsize * 9) / 16; in drm_mode_std()
3367 ((hsize == 1360 && vsize == 765) || in drm_mode_std()
[all …]
/openbsd/sys/dev/pci/drm/include/drm/
H A Ddrm_edid.h60 u8 hsize; /* need to multiply by 8 then add 248 */ member
592 int hsize, int vsize, int fresh,
/openbsd/gnu/usr.bin/cvs/doc/
H A Dtexinfo.tex221 \hsize = \outerhsize
765 \advance\hsize by -\rightskip
3195 \doublecolumnhsize = \hsize
3230 \wd0=\hsize \wd2=\hsize
3746 \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}%
4054 \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right.
4173 \cartouter=\hsize
4583 \advance \hsize by -\dimen2
5939 \hsize = #2\relax
5940 \outerhsize = \hsize
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/doc/include/
H A Dtexinfo.tex264 \hsize = \outerhsize
827 \advance\hsize by -\leftskip
3637 \wd0=\hsize \wd2=\hsize
4127 \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}%
4452 \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right.
4584 \cartouter=\hsize
6239 \hsize=\pagewidth
6458 \hsize = #2\relax
6459 \outerhsize = \hsize
6461 \pagewidth = \hsize
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/texinfo/
H A Dtexinfo.tex311 \hsize = \outerhsize
3693 \wd0=\hsize \wd2=\hsize
4210 \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}%
4581 \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right.
4701 \cartouter=\hsize
4716 \hsize=\cartinner
6134 \hsize=\pagewidth
6620 \hsize = #2\relax
6621 \outerhsize = \hsize
6623 \pagewidth = \hsize
[all …]
/openbsd/gnu/usr.bin/perl/cpan/IO-Compress/t/compress/
H A Dmulti.pl56 my $hsize ;
/openbsd/gnu/usr.bin/texinfo/doc/
H A Dtexinfo.tex314 \hsize = \outerhsize
3822 \wd0=\hsize \wd2=\hsize
4354 \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}%
4723 \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right.
4844 \cartouter=\hsize
4859 \hsize=\cartinner
6269 \hsize=\pagewidth
6775 \hsize = #2\relax
6776 \outerhsize = \hsize
6778 \pagewidth = \hsize
[all …]
H A Depsf.tex83 %%% \hsize % scale to full width
85 %%% \ifnum #1>\hsize\hsize\else#1\fi
86 %%% % smaller of natural, hsize
/openbsd/gnu/gcc/gcc/doc/include/
H A Dtexinfo.tex322 \hsize = \outerhsize
3924 \wd0=\hsize \wd2=\hsize
4456 \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}%
4846 \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right.
4968 \cartouter=\hsize
4983 \hsize=\cartinner
6398 \hsize=\pagewidth
6904 \hsize = #2\relax
6905 \outerhsize = \hsize
6907 \pagewidth = \hsize
[all …]

12