Home
last modified time | relevance | path

Searched refs:gd (Results 1 – 25 of 71) sorted by relevance

123

/netbsd/src/external/bsd/tmux/dist/
Dgrid-view.c30 #define grid_view_x(gd, x) (x) argument
31 #define grid_view_y(gd, y) ((gd)->hsize + (y)) argument
35 grid_view_get_cell(struct grid *gd, u_int px, u_int py, struct grid_cell *gc) in grid_view_get_cell() argument
37 grid_get_cell(gd, grid_view_x(gd, px), grid_view_y(gd, py), gc); in grid_view_get_cell()
42 grid_view_set_cell(struct grid *gd, u_int px, u_int py, in grid_view_set_cell() argument
45 grid_set_cell(gd, grid_view_x(gd, px), grid_view_y(gd, py), gc); in grid_view_set_cell()
50 grid_view_set_padding(struct grid *gd, u_int px, u_int py) in grid_view_set_padding() argument
52 grid_set_padding(gd, grid_view_x(gd, px), grid_view_y(gd, py)); in grid_view_set_padding()
57 grid_view_set_cells(struct grid *gd, u_int px, u_int py, in grid_view_set_cells() argument
60 grid_set_cells(gd, grid_view_x(gd, px), grid_view_y(gd, py), gc, s, in grid_view_set_cells()
[all …]
Dgrid.c184 grid_get_line(struct grid *gd, u_int line) in grid_get_line() argument
186 return (&gd->linedata[line]); in grid_get_line()
191 grid_adjust_lines(struct grid *gd, u_int lines) in grid_adjust_lines() argument
193 gd->linedata = xreallocarray(gd->linedata, lines, sizeof *gd->linedata); in grid_adjust_lines()
198 grid_clear_cell(struct grid *gd, u_int px, u_int py, u_int bg) in grid_clear_cell() argument
200 struct grid_line *gl = &gd->linedata[py]; in grid_clear_cell()
220 grid_check_y(struct grid *gd, const char *from, u_int py) in grid_check_y() argument
222 if (py >= gd->hsize + gd->sy) { in grid_check_y()
257 grid_free_line(struct grid *gd, u_int py) in grid_free_line() argument
259 free(gd->linedata[py].celldata); in grid_free_line()
[all …]
Dgrid-reader.c24 grid_reader_start(struct grid_reader *gr, struct grid *gd, u_int cx, u_int cy) in grid_reader_start() argument
26 gr->gd = gd; in grid_reader_start()
43 return (grid_line_length(gr->gd, gr->cy)); in grid_reader_line_length()
54 px = gr->gd->sx; in grid_reader_cursor_right()
58 if (wrap && gr->cx >= px && gr->cy < gr->gd->hsize + gr->gd->sy - 1) { in grid_reader_cursor_right()
64 grid_get_cell(gr->gd, gr->cx, gr->cy, &gc); in grid_reader_cursor_right()
79 grid_get_cell(gr->gd, gr->cx, gr->cy, &gc); in grid_reader_cursor_left()
86 grid_get_line(gr->gd, gr->cy - 1)->flags & GRID_LINE_WRAPPED)) { in grid_reader_cursor_left()
99 if (gr->cy < gr->gd->hsize + gr->gd->sy - 1) in grid_reader_cursor_down()
102 grid_get_cell(gr->gd, gr->cx, gr->cy, &gc); in grid_reader_cursor_down()
[all …]
Dcmd-capture-pane.c110 struct grid *gd; in cmd_capture_pane_history() local
121 gd = wp->base.saved_grid; in cmd_capture_pane_history()
122 if (gd == NULL) { in cmd_capture_pane_history()
130 gd = wp->base.grid; in cmd_capture_pane_history()
139 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()
[all …]
Dwindow-copy.c754 struct grid *gd = data->screen.grid; in window_copy_get_word() local
756 return (format_grid_word(gd, x, gd->hsize + y)); in window_copy_get_word()
764 struct grid *gd = data->screen.grid; in window_copy_get_line() local
766 return (format_grid_line(gd, gd->hsize + y)); in window_copy_get_line()
775 struct grid *gd = data->screen.grid; in window_copy_cursor_hyperlink_cb() local
777 return (format_grid_hyperlink(gd, data->cx, gd->hsize + data->cy, in window_copy_cursor_hyperlink_cb()
881 struct grid *gd = data->backing->grid; in window_copy_resize() local
887 cy = gd->hsize + data->cy - data->oy; in window_copy_resize()
888 reflow = (gd->sx != sx); in window_copy_resize()
890 grid_wrap_position(gd, cx, cy, &wx, &wy); in window_copy_resize()
[all …]
Dscreen.c344 struct grid *gd = s->grid; in screen_resize_y() local
372 grid_view_delete_lines(gd, oldy - available, in screen_resize_y()
384 if (gd->flags & GRID_HISTORY) { in screen_resize_y()
385 gd->hscrolled += needed; in screen_resize_y()
386 gd->hsize += needed; in screen_resize_y()
390 grid_view_delete_lines(gd, 0, available, 8); in screen_resize_y()
396 grid_adjust_lines(gd, gd->hsize + sy); in screen_resize_y()
406 available = gd->hscrolled; in screen_resize_y()
407 if (gd->flags & GRID_HISTORY && available > 0) { in screen_resize_y()
410 gd->hscrolled -= available; in screen_resize_y()
[all …]
Dscreen-write.c570 struct grid *gd = src->grid; in screen_write_fast_copy() local
579 if (yy >= gd->hsize + gd->sy) in screen_write_fast_copy()
583 if (xx >= grid_get_line(gd, yy)->cellsize) in screen_write_fast_copy()
585 grid_get_cell(gd, xx, yy, &gc); in screen_write_fast_copy()
1140 struct grid *gd = s->grid; in screen_write_insertline() local
1164 grid_view_insert_lines(gd, s->cy, ny, bg); in screen_write_insertline()
1181 grid_view_insert_lines(gd, s->cy, ny, bg); in screen_write_insertline()
1183 grid_view_insert_lines_region(gd, s->rlower, s->cy, ny, bg); in screen_write_insertline()
1196 struct grid *gd = s->grid; in screen_write_deleteline() local
1217 grid_view_delete_lines(gd, s->cy, ny, bg); in screen_write_deleteline()
[all …]
Dcmd-resize-pane.c64 struct grid *gd = wp->base.grid; in cmd_resize_pane_exec() local
70 if (adjust > gd->hsize) in cmd_resize_pane_exec()
71 adjust = gd->hsize; in cmd_resize_pane_exec()
72 grid_remove_history(gd, adjust); in cmd_resize_pane_exec()
Dformat.c864 struct grid *gd; in format_cb_history_bytes() local
872 gd = wp->base.grid; in format_cb_history_bytes()
874 for (i = 0; i < gd->hsize + gd->sy; i++) { in format_cb_history_bytes()
875 gl = grid_get_line(gd, i); in format_cb_history_bytes()
879 size += (gd->hsize + gd->sy) * sizeof *gl; in format_cb_history_bytes()
890 struct grid *gd; in format_cb_history_all_bytes() local
897 gd = wp->base.grid; in format_cb_history_all_bytes()
899 lines = gd->hsize + gd->sy; in format_cb_history_all_bytes()
901 gl = grid_get_line(gd, i); in format_cb_history_all_bytes()
1127 struct grid *gd; in format_cb_mouse_word() local
[all …]
/netbsd/src/sys/arch/arm/gemini/
Dif_gpn.c248 gpn_process_data(struct gpn_softc *sc, const ipm_gpn_desc_t *gd) in gpn_process_data() argument
251 size_t pktlen = gd->gd_pktlen64 * 64; in gpn_process_data()
252 unsigned int subtype = gd->gd_subtype; in gpn_process_data()
287 ok = gpn_add_data(sc, gd->gd_addr1, gd->gd_len1); in gpn_process_data()
288 if (ok && gd->gd_addr2 && gd->gd_len2) in gpn_process_data()
289 ok = gpn_add_data(sc, gd->gd_addr2, gd->gd_len2); in gpn_process_data()
302 KASSERT(((m->m_pkthdr.len + 63) >> 6) == gd->gd_pktlen64); in gpn_process_data()
311 gpn_ack_txid(sc, gd->gd_txid); in gpn_process_data()
358 ipm_gpn_desc_t gd; in gpn_ifstart() local
412 gd.gd_tag = IPM_TAG_GPN; in gpn_ifstart()
[all …]
/netbsd/src/sys/ufs/ext2fs/
Dext2fs_alloc.c665 ext2fs_cg_update(struct m_ext2fs *fs, int cg, struct ext2_gd *gd, int nbfree, int nifree, int ndirs… in ext2fs_cg_update() argument
668 uint32_t ext2bgd_nifree = fs2h16(gd->ext2bgd_nifree) | in ext2fs_cg_update()
669 (fs2h16(gd->ext2bgd_nifree_hi) << 16); in ext2fs_cg_update()
671 gd->ext2bgd_nifree = h2fs16(ext2bgd_nifree); in ext2fs_cg_update()
672 gd->ext2bgd_nifree_hi = h2fs16(ext2bgd_nifree >> 16); in ext2fs_cg_update()
683 fs2h16(gd->ext2bgd_itable_unused_lo))) { in ext2fs_cg_update()
684 gd->ext2bgd_itable_unused_lo = in ext2fs_cg_update()
689 gd->ext2bgd_itable_unused_lo <= ext2bgd_nifree); in ext2fs_cg_update()
694 uint32_t ext2bgd_nbfree = fs2h16(gd->ext2bgd_nbfree) in ext2fs_cg_update()
695 | (fs2h16(gd->ext2bgd_nbfree_hi) << 16); in ext2fs_cg_update()
[all …]
/netbsd/src/sys/arch/mac68k/dev/
Dgrf_compat.c216 struct grfinfo *gd; in grfioctl() local
234 gd = (struct grfinfo *)data; in grfioctl()
235 memset(gd, 0, sizeof(struct grfinfo)); in grfioctl()
236 gd->gd_fbaddr = (void *)dc->dc_paddr; in grfioctl()
237 gd->gd_fbsize = dc->dc_size; in grfioctl()
238 gd->gd_colors = (short)(1 << dc->dc_depth); in grfioctl()
239 gd->gd_planes = (short)dc->dc_depth; in grfioctl()
240 gd->gd_fbwidth = dc->dc_wid; in grfioctl()
241 gd->gd_fbheight = dc->dc_ht; in grfioctl()
242 gd->gd_fbrowbytes = dc->dc_rowbytes; in grfioctl()
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.cp/
Dcasts.cc85 LeftRight gd; in main() local
86 gd.left = 23; in main()
87 gd.right = 27; in main()
88 unsigned long long gd_value = (unsigned long long) (std::uintptr_t)&gd; in main()
89 unsigned long long r_value = (unsigned long long) (Right *) &gd; in main()
91 LeftRight *lr = &gd; in main()
/netbsd/src/external/bsd/wpa/dist/src/rsn_supp/
Dwpa.c1330 const struct wpa_gtk_data *gd, in wpa_supplicant_install_gtk() argument
1333 const u8 *_gtk = gd->gtk; in wpa_supplicant_install_gtk()
1337 if ((sm->gtk.gtk_len == (size_t) gd->gtk_len && in wpa_supplicant_install_gtk()
1338 os_memcmp(sm->gtk.gtk, gd->gtk, sm->gtk.gtk_len) == 0) || in wpa_supplicant_install_gtk()
1339 (sm->gtk_wnm_sleep.gtk_len == (size_t) gd->gtk_len && in wpa_supplicant_install_gtk()
1340 os_memcmp(sm->gtk_wnm_sleep.gtk, gd->gtk, in wpa_supplicant_install_gtk()
1344 gd->keyidx, gd->tx, gd->gtk_len); in wpa_supplicant_install_gtk()
1348 wpa_hexdump_key(MSG_DEBUG, "WPA: Group Key", gd->gtk, gd->gtk_len); in wpa_supplicant_install_gtk()
1351 gd->keyidx, gd->tx, gd->gtk_len); in wpa_supplicant_install_gtk()
1352 wpa_hexdump(MSG_DEBUG, "WPA: RSC", key_rsc, gd->key_rsc_len); in wpa_supplicant_install_gtk()
[all …]
/netbsd/src/external/gpl2/xcvs/dist/src/
Dgssapi-client.c216 struct cvs_gssapi_wrap_data *gd = fnclosure; in cvs_gssapi_wrap_input() local
224 if (gss_unwrap (&stat_min, gd->gcontext, &inbuf, &outbuf, &conf, NULL) in cvs_gssapi_wrap_input()
250 struct cvs_gssapi_wrap_data *gd = fnclosure; in cvs_gssapi_wrap_output() local
264 if (gss_wrap (&stat_min, gd->gcontext, conf_req, GSS_C_QOP_DEFAULT, in cvs_gssapi_wrap_output()
293 struct cvs_gssapi_wrap_data *gd; in cvs_gssapi_wrap_buffer_initialize() local
295 gd = xmalloc (sizeof *gd); in cvs_gssapi_wrap_buffer_initialize()
296 gd->gcontext = gcontext; in cvs_gssapi_wrap_buffer_initialize()
303 gd, memory); in cvs_gssapi_wrap_buffer_initialize()
/netbsd/src/sbin/newfs_ext2fs/
Dmke2fs.c173 #define gd ext2fsun.m_ext2fs.e2fs_gd macro
477 gd = malloc(sblock.e2fs_ngdb * bsize); in mke2fs()
478 if (gd == NULL) in mke2fs()
480 memset(gd, 0, sblock.e2fs_ngdb * bsize); in mke2fs()
498 gd[cylno].ext2bgd_b_bitmap = h2fs32(boffset); in mke2fs()
500 gd[cylno].ext2bgd_i_bitmap = h2fs32(boffset); in mke2fs()
502 gd[cylno].ext2bgd_i_tables = h2fs32(boffset); in mke2fs()
504 gd[cylno].ext2bgd_nbfree = h2fs16( in mke2fs()
507 gd[cylno].ext2bgd_nbfree = h2fs16( in mke2fs()
509 fbcount += fs2h16(gd[cylno].ext2bgd_nbfree); in mke2fs()
[all …]
/netbsd/src/external/bsd/ntp/dist/libntp/
Dntp_calgps.c303 TcGpsDatum * gd, in gpsntp_from_gpscal_ex() argument
310 TGpsDatum date = *gd; in gpsntp_from_gpscal_ex()
322 retv.frac = gd->frac; in gpsntp_from_gpscal_ex()
602 TcNtpDatum * gd in gpscal_from_gpsntp() argument
609 ts64 = ntpcal_dayjoin(gd->days, gd->secs); in gpscal_from_gpsntp()
613 retv.frac = gd->frac; in gpscal_from_gpsntp()
624 TcGpsDatum * gd in ntpfp_from_gpsdatum() argument
629 retv.l_uf = gd->frac; in ntpfp_from_gpsdatum()
630 retv.l_ui = gd->weeks * (uint32_t)SECSPERWEEK in ntpfp_from_gpsdatum()
631 + (uint32_t)gd->wsecs in ntpfp_from_gpsdatum()
/netbsd/src/common/dist/zlib/examples/
Dgzappend.c388 local void gztack(char *name, int gd, z_stream *strm, int last) in gztack() argument
429 len = write(gd, out + CHUNK - strm->avail_out - left, left); in gztack()
449 ret = write(gd, out + 8 - len, len); in gztack()
453 close(gd); in gztack()
468 int gd, level; in main() local
494 gd = gzscan(*argv++, &strm, level); in main()
498 gztack(NULL, gd, &strm, 1); in main()
501 gztack(*argv, gd, &strm, argv[1] == NULL); in main()
/netbsd/src/sys/arch/i386/i386/
Dmachdep.c894 setgate(struct gate_descriptor *gd, void *func, int args, int type, int dpl, in setgate() argument
898 gd->gd_looffset = (int)func; in setgate()
899 gd->gd_selector = sel; in setgate()
900 gd->gd_stkcpy = args; in setgate()
901 gd->gd_xx = 0; in setgate()
902 gd->gd_type = type; in setgate()
903 gd->gd_dpl = dpl; in setgate()
904 gd->gd_p = 1; in setgate()
905 gd->gd_hioffset = (int)func >> 16; in setgate()
909 unsetgate(struct gate_descriptor *gd) in unsetgate() argument
[all …]
Dtrap.c251 struct gate_descriptor *gd; in ss_shadow() local
264 gd = &idt[i]; in ss_shadow()
265 func = (gd->gd_hioffset << 16) | gd->gd_looffset; in ss_shadow()
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.arch/
Di386-mpx-sigsegv.c24 int gd[OUR_SIZE]; variable
79 upper (gx, ga, gb, gc, gd, OUR_SIZE + 2); in main()
83 lower (gx, ga, gb, gc, gd, 1); in main()
/netbsd/src/sys/arch/amd64/amd64/
Dmachdep.c1418 setgate(struct gate_descriptor *gd, void *func, in setgate() argument
1423 vaddr = ((vaddr_t)gd) & ~PAGE_MASK; in setgate()
1428 gd->gd_looffset = (uint64_t)func & 0xffff; in setgate()
1429 gd->gd_selector = sel; in setgate()
1430 gd->gd_ist = ist; in setgate()
1431 gd->gd_type = type; in setgate()
1432 gd->gd_dpl = dpl; in setgate()
1433 gd->gd_p = 1; in setgate()
1434 gd->gd_hioffset = (uint64_t)func >> 16; in setgate()
1435 gd->gd_zero = 0; in setgate()
[all …]
/netbsd/src/external/bsd/ntp/dist/tests/libntp/
Dcalendar.c925 TGpsDatum gd; in test_GpsRemapFunny() local
935 gd = gpscal_from_calendar(&di, fpz); in test_GpsRemapFunny()
936 gpscal_to_calendar(&dc, &gd); in test_GpsRemapFunny()
942 gd = gpscal_from_calendar(&di, fpz); in test_GpsRemapFunny()
943 gpscal_to_calendar(&dc, &gd); in test_GpsRemapFunny()
949 gd = gpscal_from_calendar(&di, fpz); in test_GpsRemapFunny()
950 gpscal_to_calendar(&dc, &gd); in test_GpsRemapFunny()
956 gd = gpscal_from_calendar(&di, fpz); in test_GpsRemapFunny()
957 gpscal_to_calendar(&dc, &gd); in test_GpsRemapFunny()
/netbsd/src/sys/arch/amiga/dev/
Dgrf_ul.c664 struct grfdyninfo *gd; in ul_mode() local
675 gd = (struct grfdyninfo *)arg; in ul_mode()
677 if (ul_monitor_defs[i].disp_width == gd->gdi_dwidth && in ul_mode()
678 ul_monitor_defs[i].disp_height == gd->gdi_dheight) in ul_mode()
/netbsd/src/sys/arch/i386/include/
Dsegments.h175 struct gate_descriptor gd; member

123