Searched refs:hsize (Results 1 - 25 of 28) sorted by relevance

12

/openbsd-current/lib/libusbhid/
H A Ddata.c38 uint32_t hsize; local
51 hsize = h->report_size; /* bit length of data */
54 if (hsize == 0)
56 if (hsize > 32)
57 hsize = 32;
60 end = (hpos + hsize) / 8 - offs;
67 hsize = 32 - hsize;
71 data = (int32_t)((int32_t)data << hsize) >> hsize;
83 uint32_t hsize; local
[all...]
/openbsd-current/usr.bin/cvs/
H A Dhash.c30 hash_table_init(struct hash_table *htable, size_t hsize) argument
35 if (hsize < MIN_HASH_SIZE)
36 hsize = MIN_HASH_SIZE;
38 if (hsize > MAX_HASH_SIZE)
39 hsize = MAX_HASH_SIZE;
41 if ((hsize & (hsize - 1)) != 0) {
42 for (power = 0; hsize != 0; power++)
43 hsize >>= 1;
44 hsize
[all...]
/openbsd-current/usr.bin/tmux/
H A Dcmd-capture-pane.c139 top = gd->hsize;
141 } else if (n < 0 && (u_int) -n > gd->hsize)
144 top = gd->hsize + n;
145 if (top > gd->hsize + gd->sy - 1)
146 top = gd->hsize + gd->sy - 1;
151 bottom = gd->hsize + gd->sy - 1;
156 bottom = gd->hsize + gd->sy - 1;
158 } else if (n < 0 && (u_int) -n > gd->hsize)
161 bottom = gd->hsize + n;
162 if (bottom > gd->hsize
[all...]
H A Dgrid.c33 * (hsize - 1); from hsize to hsize + (sy - 1) is the viewable data. All
222 if (py >= gd->hsize + gd->sy) {
291 gd->hsize = 0;
306 grid_free_lines(gd, 0, gd->hsize + gd->sy);
346 (gd->hsize + gd->sy - ny) * (sizeof *gd->linedata));
358 if (gd->hsize == 0 || gd->hsize < gd->hlimit)
364 if (ny > gd->hsize)
[all...]
H A Dgrid-reader.c58 if (wrap && gr->cx >= px && gr->cy < gr->gd->hsize + gr->gd->sy - 1) {
99 if (gr->cy < gr->gd->hsize + gr->gd->sy - 1)
145 yy = gr->gd->hsize + gr->gd->sy - 1;
202 yy = gr->gd->hsize + gr->gd->sy - 1;
247 yy = gr->gd->hsize + gr->gd->sy - 1;
349 yy = gr->gd->hsize + gr->gd->sy - 1;
409 yy = gr->gd->hsize + gr->gd->sy - 1;
H A Dscreen.c120 grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy, 8);
276 u_int cx = s->cx, cy = s->grid->hsize + s->cy;
302 if (cy >= s->grid->hsize) {
304 s->cy = cy - s->grid->hsize;
369 gd->hsize += needed;
379 grid_adjust_lines(gd, gd->hsize + sy);
394 gd->hsize -= available;
400 for (i = gd->hsize + sy - needed; i < gd->hsize + sy; i++)
587 *cy = s->grid->hsize;
[all...]
H A Dwindow-copy.c364 dst->grid->hsize = screen_hsize(src);
744 return (format_grid_word(gd, x, gd->hsize + y));
754 return (format_grid_line(gd, gd->hsize + y));
857 cy = gd->hsize + data->cy - data->oy;
866 if (cy < gd->hsize) {
868 data->oy = gd->hsize - cy;
870 data->cy = cy - gd->hsize;
3070 if (py >= gd->hsize - data->oy && py < gd->hsize - data->oy + gd->sy)
3071 data->cy = py - (gd->hsize
4224 u_int hsize = screen_hsize(data->backing); local
4901 u_int px, py, oldy, hsize; local
4920 u_int px, py, oldy, hsize; local
4939 u_int px, py, oldy, hsize; local
4961 u_int selx, sely, cy, yy, hsize; local
5013 u_int px, py, oldy, hsize; local
5032 u_int px, py, oldy, hsize; local
5192 u_int px, py, oldy, hsize; local
5213 u_int px, py, oldy, hsize; local
5235 u_int px, py, oldy, hsize; local
5257 u_int px, py, oldy, hsize; local
5282 u_int px, py, oldy, hsize; local
5306 u_int px, py, hsize; local
5335 u_int px, py, oldy, hsize; local
5363 u_int px, py, hsize; local
5386 u_int px, py, oldy, hsize; local
5704 window_copy_acquire_cursor_up(struct window_mode_entry *wme, u_int hsize, u_int oy, u_int oldy, u_int px, u_int py) argument
5730 window_copy_acquire_cursor_down(struct window_mode_entry *wme, u_int hsize, u_int sy, u_int oy, u_int oldy, u_int px, u_int py, int no_reset) argument
[all...]
H A Dcmd-resize-pane.c70 if (adjust > gd->hsize)
71 adjust = gd->hsize;
H A Dgrid-view.c31 #define grid_view_y(gd, y) ((gd)->hsize + (y))
H A Dinput.c2788 u_int line = ictx->ctx.s->cy + gd->hsize;
2791 if (line > gd->hsize + gd->sy - 1)
/openbsd-current/libexec/ld.so/
H A Dsod.c160 long hsize = 0; local
172 hsize = (long)sb.st_size;
173 addr = (void *)_dl_mmap(0, hsize, PROT_READ, MAP_PRIVATE, hfd, 0);
178 if (HH_BADMAG(*hheader) || hheader->hh_ehints > hsize)
189 _dl_mimmutable(addr, hsize);
198 _dl_munmap(addr, hsize);
/openbsd-current/libexec/ld.so/ldconfig/
H A Dsod.c156 long hsize = 0; local
166 hsize = (long)sb.st_size;
167 addr = (void *)mmap(0, hsize, PROT_READ, MAP_PRIVATE, hfd, 0);
172 if (HH_BADMAG(*hheader) || hheader->hh_ehints > hsize)
190 munmap(addr, hsize);
/openbsd-current/sys/net/
H A Dbsd-comp.c83 u_int hsize; /* size of the hash table */ member in struct:bsd_db
303 u_int newlen, hsize, hshift, maxmaxcode; local
316 hsize = 5003;
320 hsize = 9001;
324 hsize = 18013;
328 hsize = 35023;
332 /* hsize = 69001; */ /* and 69001 is too big for cptr */
340 newlen = sizeof(*db) + (hsize-1) * (sizeof(db->dict[0]));
357 db->hsize = hsize;
[all...]
/openbsd-current/usr.sbin/bgpd/
H A Drde_aspa.c339 uint32_t hsize = 1024; local
346 while (hsize < entries)
347 hsize *= 2;
352 if ((ra->table = calloc(hsize, sizeof(ra->table[0]))) == NULL)
361 ra->mask = hsize - 1;
/openbsd-current/sys/dev/hid/
H A Dhid.c582 uint32_t hsize = loc->size; local
587 DPRINTF("hid_get_data_sub: loc %d/%d\n", hpos, hsize);
590 if (hsize == 0)
592 if (hsize > 32)
593 hsize = 32;
598 n = (hsize + 7) / 8;
608 n = 32 - hsize;
/openbsd-current/usr.sbin/nsd/
H A Dudb.c131 if(g.hsize < UDB_HEADER_SIZE) {
133 (int)g.hsize);
136 if(g.hsize > UDB_HEADER_SIZE) {
138 (int)g.hsize);
163 if(g.fsize < UDB_HEADER_SIZE || g.fsize < g.hsize) {
232 g->hsize = UDB_HEADER_SIZE;
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...]
H A Dudb.h144 uint64_t hsize; member in struct:udb_glob_d
/openbsd-current/sys/dev/pci/drm/
H A Ddrm_edid.c3013 * @hsize: Mode width
3023 int hsize, int vsize, int fresh,
3031 if (hsize != ptr->hdisplay)
3301 int hsize, int vsize, int vrefresh_rate)
3310 mode = drm_gtf_mode(dev, hsize, vsize, vrefresh_rate, 0, 0);
3316 mode = drm_gtf_mode_complex(dev, hsize, vsize,
3337 int hsize, vsize; local
3345 if (bad_std_timing(t->hsize, t->vfreq_aspect))
3348 /* According to the EDID spec, the hdisplay = hsize * 8 + 248 */
3349 hsize
3022 drm_mode_find_dmt(struct drm_device *dev, int hsize, int vsize, int fresh, bool rb) argument
3299 drm_gtf2_mode(struct drm_device *dev, const struct drm_edid *drm_edid, int hsize, int vsize, int vrefresh_rate) argument
[all...]
/openbsd-current/sys/dev/pci/drm/include/drm/
H A Ddrm_edid.h60 u8 hsize; /* need to multiply by 8 then add 248 */ member in struct:std_timing
592 int hsize, int vsize, int fresh,
/openbsd-current/gnu/usr.bin/perl/cpan/IO-Compress/t/compress/
H A Dmulti.pl56 my $hsize ;
/openbsd-current/gnu/gcc/gcc/doc/include/
H A Dtexinfo.tex305 \setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}%
306 \setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}%
322 \hsize = \outerhsize
335 \hfil % center the page within the outer (page) hsize.
379 \rlap{\kern\hsize\vbox to\z@{\kern1pt\box\margin \vss}}\fi
847 \rlap{\hskip\hsize \hskip\inmarginspacing \ignorespaces #2}%
933 \advance\hsize by -\leftskip
934 \advance\hsize by -\rightskip
2217 \vskip4pt \hrule height 2pt width \hsize
2235 \vskip4pt \hrule height 4pt width \hsize \vskip4p
[all...]
/openbsd-current/gnu/usr.bin/binutils-2.17/texinfo/
H A Dtexinfo.tex294 \setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}%
295 \setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}%
311 \hsize = \outerhsize
324 \hfil % center the page within the outer (page) hsize.
368 \rlap{\kern\hsize\vbox to\z@{\kern1pt\box\margin \vss}}\fi
821 \rlap{\hskip\hsize \hskip\inmarginspacing \ignorespaces #2}%
907 \advance\hsize by -\leftskip
908 \advance\hsize by -\rightskip
2012 \vskip4pt \hrule height 2pt width \hsize
2030 \vskip4pt \hrule height 4pt width \hsize \vskip4p
[all...]
/openbsd-current/gnu/usr.bin/texinfo/doc/
H A Dtexinfo.tex297 \setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}%
298 \setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}%
314 \hsize = \outerhsize
327 \hfil % center the page within the outer (page) hsize.
371 \rlap{\kern\hsize\vbox to\z@{\kern1pt\box\margin \vss}}\fi
824 \rlap{\hskip\hsize \hskip\inmarginspacing \ignorespaces #2}%
910 \advance\hsize by -\leftskip
911 \advance\hsize by -\rightskip
2116 \vskip4pt \hrule height 2pt width \hsize
2134 \vskip4pt \hrule height 4pt width \hsize \vskip4p
[all...]
/openbsd-current/gnu/usr.bin/binutils-2.17/bfd/
H A DpeXXigen.c617 bfd_vma hsize = 0;
628 if (hsize == 0)
629 hsize = sec->filepos;
647 extra->SizeOfHeaders = hsize;
648 extra->SizeOfImage = SA (hsize) + isize;
616 bfd_vma hsize = 0; local
/openbsd-current/usr.bin/ftp/
H A Dfetch.c1159 size_t hsize = 0, rlen, wlen; local
1164 if (getline(&header, &hsize, fin) == -1)

Completed in 222 milliseconds

12