Home
last modified time | relevance | path

Searched +full:col +full:- +full:offset (Results 1 – 25 of 151) sorted by relevance

1234567

/freebsd/contrib/mandoc/
H A Dtbl_term.c3 * Copyright (c) 2011-2022 Ingo Schwarze <schwarze@openbsd.org>
36 #define IS_HORIZ(cp) ((cp)->pos == TBL_CELL_HORIZ || \
37 (cp)->pos == TBL_CELL_DHORIZ)
63 * The following border-character tables are indexed
64 * by ternary (3-based) numbers, as opposed to binary or decimal.
109 ' ', '-', '=', /* 000 right */
112 '-', '-', '=', /* 010 left */
169 static size_t offset; in term_tbl() local
177 tp->flags |= TERMP_NOSPACE | TERMP_NONOSPACE; in term_tbl()
178 save_offset = tp->tcol->offset; in term_tbl()
[all …]
H A Dterm.c3 * Copyright (c) 2010-2022 Ingo Schwarze <schwarze@openbsd.org>
49 if (maxtcol > p->maxtcol) { in term_setcol()
50 p->tcols = mandoc_recallocarray(p->tcols, in term_setcol()
51 p->maxtcol, maxtcol, sizeof(*p->tcols)); in term_setcol()
52 p->maxtcol = maxtcol; in term_setcol()
54 p->lasttcol = maxtcol - 1; in term_setcol()
55 p->tcol = p->tcols; in term_setcol()
62 for (p->tcol = p->tcols; p->tcol < p->tcols + p->maxtcol; p->tcol++) in term_free()
63 free(p->tcol->buf); in term_free()
64 free(p->tcols); in term_free()
[all …]
H A Dout.c64 dst->unit = def == SCALE_MAX ? SCALE_BU : def; in a2roffsu()
65 dst->scale = strtod(src, &endptr); in a2roffsu()
71 dst->unit = SCALE_CM; in a2roffsu()
74 dst->unit = SCALE_IN; in a2roffsu()
77 dst->unit = SCALE_FS; in a2roffsu()
80 dst->unit = SCALE_MM; in a2roffsu()
83 dst->unit = SCALE_EM; in a2roffsu()
86 dst->unit = SCALE_EN; in a2roffsu()
89 dst->unit = SCALE_PC; in a2roffsu()
92 dst->unit = SCALE_PT; in a2roffsu()
[all …]
/freebsd/lib/libiconv_modules/MSKanji/
H A Dcitrus_mskanji.c3 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
84 /* ----------------------------------------------------------------------
98 #define _CEI_TO_EI(_cei_) (&(_cei_)->ei)
99 #define _CEI_TO_STATE(_cei_, _func_) (_cei_)->states.s_##_func_
129 s->chlen = 0; in _citrus_MSKanji_init_state()
170 chlenbak = psenc->chlen; in _citrus_MSKanji_mbrtowc_priv()
173 switch (psenc->chlen) { in _citrus_MSKanji_mbrtowc_priv()
177 psenc->ch[0] = *s0++; in _citrus_MSKanji_mbrtowc_priv()
178 psenc->chlen = 1; in _citrus_MSKanji_mbrtowc_priv()
[all …]
/freebsd/contrib/elftoolchain/size/
H A Dsize.c1 /*-
45 ELFTC_VCSID("$Id: size.c 3458 2016-05-09 15:01:25Z emaste $");
48 #define ELF_ALIGN(val,x) (((val)+(x)-1) & ~((x)-1))
77 int col; member
134 elf_errmsg(-1)); in main()
137 NULL)) != -1) in main()
198 argc -= optind; in main()
222 for (; argc > 0; argc--, argv++) { in main()
251 src.d_version = elfhdr->e_version; in xlatetom()
254 dst.d_version = elfhdr->e_version; in xlatetom()
[all …]
/freebsd/contrib/dialog/
H A Dtailbox.c4 * tailbox.c -- implements the tail box
6 * Copyright 2000-2019,2020 Thomas E. Dickey
47 FILE *fp = obj->obj.input; in get_line()
48 int col = -(obj->hscroll); in get_line() local
57 - ((col + obj->hscroll) % dialog_state.tab_len); in get_line()
59 if (col >= 0 && col < MAX_LEN) in get_line()
60 obj->line[col] = ' '; in get_line()
61 ++col; in get_line()
64 if (col >= 0) in get_line()
65 obj->line[col] = (char) ch; in get_line()
[all …]
/freebsd/sys/contrib/openzfs/cmd/
H A Ddbufstat.in4 # is available through the dbufs kstat and may be post-processed as
15 # or https://opensource.org/licenses/CDDL-1.0.
38 bhdr = ["pool", "objset", "object", "level", "blkid", "offset", "dbsize"]
39 bxhdr = ["pool", "objset", "object", "level", "blkid", "offset", "dbsize",
50 dincompat = ["level", "blkid", "offset", "dbsize", "usize", "meta", "state",
58 tincompat = ["object", "level", "blkid", "offset", "dbsize", "usize", "meta",
66 "pool": [15, -1, "pool name"],
67 "objset": [6, -1, "dataset identification number"],
68 "object": [10, -1, "object number"],
69 "level": [5, -1, "indirection level of buffer"],
[all …]
/freebsd/sys/dev/vt/hw/fb/
H A Dvt_fb.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
69 KASSERT((o < sc->fb_size), ("Offset %#08x out of fb size", o)); in vt_fb_mem_wr1()
70 *(uint8_t *)(sc->fb_vbase + o) = v; in vt_fb_mem_wr1()
77 KASSERT((o < sc->fb_size), ("Offset in vt_fb_mem_wr2()
137 vt_fb_mmap(struct vt_device * vd,vm_ooffset_t offset,vm_paddr_t * paddr,int prot,vm_memattr_t * memattr) vt_fb_mmap() argument
339 unsigned int col, row, x, y; vt_fb_bitblt_text() local
408 unsigned int col, row; vt_fb_invalidate_text() local
[all...]
/freebsd/contrib/llvm-project/llvm/tools/llvm-cxxdump/
H A Dllvm-cxxdump.cpp1 //===- llvm-cxxdump.cpp - Dump C++ data in an Object File -------*
97 uint64_t Offset = Reloc.getOffset(); collectRelocatedSymbols() local
119 uint64_t Offset = Reloc.getOffset(); collectRelocationOffsets() local
236 CompleteObjectLocator COL; dumpCXXData() local
346 uint64_t Offset = VFTableEntry.first.second; dumpCXXData() local
353 for (little32_t Offset : VBTable.second) { dumpCXXData() local
360 const CompleteObjectLocator &COL = COLPair.second; dumpCXXData() local
378 uint64_t Offset = BCAEntry.first.second; dumpCXXData() local
411 __anonef51e77b0202(const char *Name, int Offset) dumpCXXData() argument
479 uint64_t Offset = VTableSymI->first.second; dumpCXXData() local
489 uint64_t Offset = VTableDataI->first.second; dumpCXXData() local
[all...]
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DSerializedDiagnosticReader.h1 //===- SerializedDiagnosticReader.h - Reads diagnostics ---------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
49 unsigned Col; member
50 unsigned Offset; member
52 Location(unsigned FileID, unsigned Line, unsigned Col, unsigned Offset) in Location()
53 : FileID(FileID), Line(Line), Col(Col), Offset(Offset) {} in Location()
/freebsd/lib/libc/regex/grot/
H A Ddebug.c16 - regprint - print a regexp for debugging
24 struct re_guts *g = r->re_g;
29 fprintf(d, "%ld states", (long)g->nstates);
30 fprintf(d, ", first %ld last %ld", (long)g->firststate,
31 (long)g->laststate);
32 if (g->iflags&USEBOL)
34 if (g->iflags&USEEOL)
36 if (g->iflags&BAD)
38 if (g->nsub > 0)
39 fprintf(d, ", nsub=%ld", (long)g->nsub);
[all …]
/freebsd/usr.bin/pr/
H A Dpr.c1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
60 * output. By default, input is separated into 66-line pages, each
72 static int colwd; /* column data width - multiple columns */
73 static int across; /* mult col flag; write across page */
87 static int offst; /* number of page offset spaces */
90 static int sflag; /* -s option for multiple columns */
92 static int pgwd; /* page width with multiple col output */
162 int cnt = -1; in onecol()
207 nbuf[--num] = nmchar; in onecol()
[all …]
/freebsd/sys/dev/fb/
H A Dfbreg.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
43 while (size--) in copyw()
78 while (size--) in fillw()
112 typedef int vi_set_win_org_t(video_adapter_t *adp, off_t offset);
113 typedef int vi_read_hw_cursor_t(video_adapter_t *adp, int *col, int *row);
114 typedef int vi_set_hw_cursor_t(video_adapter_t *adp, int col, int row);
124 typedef int vi_mmap_t(video_adapter_t *adp, vm_ooffset_t offset,
183 (*vidsw[(adp)->va_index]->probe)((unit), (adpp), (arg), (flags))
[all …]
H A Ds3_pci.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2000 Alcove - Nicolas Souchu <nsouch@freebsd.org>
7 * Code based on Peter Horton <pdh@colonel-panic.com> patch.
78 #define outb_p(value, offset) bus_space_write_1(sc->st, sc->sh, offset, value) argument
79 #define inb_p(offset) (bus_space_read_1(sc->st, sc->sh, offset)) argument
80 #define outb_enh(value, offset) bus_space_write_1(sc->enh_st, sc->enh_sh, \ argument
81 offset, value)
82 #define inb_enh(offset) (bus_space_read_1(sc->enh_st, sc->enh_sh, offset)) argument
157 return (*prevvidsw->probe)(unit, adpp, arg, flags); in s3lfb_probe()
[all …]
/freebsd/sys/dev/vt/hw/vga/
H A Dvt_vga.c1 /*-
65 bus_space_read_1(sc->vga_fb_tag, sc->vga_fb_handle, ofs)
67 bus_space_write_1(sc->vga_fb_tag, sc->vga_fb_handle, ofs, val)
69 bus_space_write_2(sc->vga_fb_tag, sc->vga_fb_handle, ofs, val)
71 bus_space_read_1(sc->vga_reg_tag, sc->vga_reg_handle, reg)
73 bus_space_write_1(sc->vga_reg_ta
505 unsigned int i, offset; vga_bitblt_pixels_block_2colors() local
533 unsigned int i, j, plane, color, offset; vga_bitblt_pixels_block_ncolors() local
613 unsigned int i, col, row, src_x, x_count; vga_bitblt_one_text_pixels_block() local
784 unsigned int col, row; vga_bitblt_text_gfxmode() local
867 unsigned int col, row; vga_bitblt_text_txtmode() local
937 unsigned int col, row; vga_invalidate_text() local
[all...]
/freebsd/sys/contrib/device-tree/Bindings/display/
H A Dssd1307fb.txt4 - compatible: Should be "solomon,<chip>fb-<bus>". The only supported bus for
7 - reg: Should contain address of the controller on the I2C bus. Most likely
9 - pwm: Should contain the pwm to use according to the OF device tree PWM
11 - solomon,height: Height in pixel of the screen driven by the controller
12 - solomon,width: Width in pixel of the screen driven by the controller
13 - solomon,page-offset: Offset of pages (band of 8 pixels) that the screen is
17 - reset-gpios: The GPIO used to reset the OLED display, if available. See
19 - vbat-supply: The supply for VBAT
20 - solomon,segment-no-remap: Display needs normal (non-inverted) data column
22 - solomon,col-offset: Offset of columns (COL/SEG) that the screen is mapped to.
[all …]
/freebsd/sys/arm/ti/am335x/
H A Dam335x_lcd_syscons.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
239 video_adapter_t* adp = scp->sc->adp; in am335x_rend_draw()
244 vidd_puts(adp, from, (uint16_t*)sc_vtb_pointer(&scp->vtb, from), count); in am335x_rend_draw()
247 for (i = count; i-- > 0; ++from) { in am335x_rend_draw()
248 c = sc_vtb_getc(&scp->vtb, from); in am335x_rend_draw()
249 a = sc_vtb_geta(&scp->vtb, from) >> 8; in am335x_rend_draw()
263 video_adapter_t* adp = scp->sc->adp; in am335x_rend_draw_cursor()
265 int row, col; in am335x_rend_draw_cursor() local
271 if (scp->curs_attr.height <= 0) in am335x_rend_draw_cursor()
[all …]
/freebsd/usr.bin/sdiff/
H A Dsdiff.c91 { "suppress-common-lines", no_argument, NULL, 's' },
95 { "diff-program", required_argument, NULL, DIFFPROG_OPT },
98 { "ignore-file-name-case", no_argument, NULL, FCASE_IGNORE_OPT },
99 { "no-ignore-file-name-cas
518 printcol(const char * s,size_t * col,const size_t col_max) printcol() argument
642 size_t col; println() local
924 static size_t offset = 0; astrcat() local
[all...]
/freebsd/sys/powerpc/ofw/
H A Dofw_syscons.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
140 * bitmap depth-specific routines
160 * Define the iso6429-1983 colormap
167 /* - - - - ----- */
188 static u_int16_t ofwfb_static_window[ROW*COL];
209 if (sc->sc_tag == &bs_le_tag) in ofwfb_pix32()
250 if (node == -1) { in ofwfb_configure()
261 /* Only support 8 and 32-bit framebuffers */ in ofwfb_configure()
264 sc->sc_blank = ofwfb_blank_display8; in ofwfb_configure()
[all …]
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_fb.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
114 {"broadcom,bcm2835-fb", 1},
115 {"brcm,bcm2708-fb", 1},
129 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0) in bcm_fb_probe()
164 sc->fb_addr = (intptr_t)pmap_mapdev(fb.base, fb.size); in bcm_fb_attach()
165 sc->fb_paddr = fb.base; in bcm_fb_attach()
166 sc->fb_size = fb.size; in bcm_fb_attach()
167 sc->depth = fb.bpp; in bcm_fb_attach()
168 sc->stride = fb.pitch; in bcm_fb_attach()
[all …]
/freebsd/sys/dev/vt/
H A Dvt_buf.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
46 #define VTBUF_LOCK(vb) mtx_lock_spin(&(vb)->vb_lock)
47 #define VTBUF_UNLOCK(vb) mtx_unlock_spin(&(vb)->vb_lock)
63 * line5 <--- curroffset (terminal output to that line)
65 * line1 <--- roffset (history display from that point)
70 vthistory_seek(struct vt_buf *vb, int offset, int whence) in vthistory_seek() argument
75 if ((vb->vb_flags & VBF_SCROLL) == 0) { in vthistory_seek()
76 if (vb->vb_roffset != vb->vb_curroffset) { in vthistory_seek()
77 vb->vb_roffset = vb->vb_curroffset; in vthistory_seek()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/regex/
H A Ddebug.c3 /*-
50 * regprint - print a regexp for debugging
55 struct re_guts *g = r->re_g; in regprint()
60 fprintf(d, "%ld states, %zu categories", (long)g->nstates, in regprint()
61 g->ncategories); in regprint()
62 fprintf(d, ", first %ld last %ld", (long)g->firststate, in regprint()
63 (long)g->laststate); in regprint()
64 if (g->iflags&USEBOL) in regprint()
66 if (g->iflags&USEEOL) in regprint()
68 if (g->iflags&BAD) in regprint()
[all …]
/freebsd/lib/libiconv_modules/mapper_zone/
H A Dcitrus_mapper_zone.c3 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
51 /* ---------------------------------------------------------------------- */
57 /* ---------------------------------------------------------------------- */
110 if (sign == 0 && (c == '+' || c == '-')) { in get_imm()
122 ps->ps_u_imm = strtoul(buf, &p, 0); in get_imm()
123 if ((p - buf) != i) in get_imm()
125 if (sign == '-') in get_imm()
126 ps->ps_u_imm = (unsigned long)-(long)ps->ps_u_imm; in get_imm()
144 switch (ps->ps_state) { in get_tok()
[all …]
/freebsd/contrib/libedit/
H A Dfilecomplete.c3 /*-
86 len = (size_t)(pos - txt + 1); in fn_tilde_expand()
90 (void)strlcpy(temp, txt + 1, len - 1); in fn_tilde_expand()
120 len = strlen(pass->pw_dir) + 1 + strlen(txt) + 1; in fn_tilde_expand()
124 (void)snprintf(temp, len, "%s/%s", pass->pw_dir, txt); in fn_tilde_expand()
200 size_t offset = 0; in escape_filename() local
207 wchar_t *temp = el->el_line.buffer; in escape_filename()
213 while (temp != el->el_line.cursor) { in escape_filename()
219 (temp == el->el_line.buffer || temp[-1] != '\\')) in escape_filename()
262 escaped_str[offset++] = c; in escape_filename()
[all …]
/freebsd/contrib/ntp/scripts/lib/NTP/
H A DUtil.pm17 if (version->parse($Socket::VERSION) >= version->parse(1.94)) {
18 Socket->import(qw(getaddrinfo getnameinfo SOCK_RAW AF_INET));
22 Socket->import(qw(inet_aton SOCK_RAW AF_INET));
27 phase => 'offset',
38 my $cmd = "$ntpq_path -n -c 'rv $peer ".(join ',', @$vars)."'";
79 ($err, $res) = getnameinfo($res->{addr}, 0);
97 my $cmd = "$ntpq_path -npw $host |";
103 my @columns = qw(tally host refid st t when poll reach delay offset jitter);
106 if (/^([ x+#*o-])((?:[\w.*:-]+\s+){10}|([\w.*:-]+\s+))$/) {
107 my $col = 0;
[all …]

1234567