/freebsd-11-stable/contrib/dialog/ |
H A D | dialog.c | 1351 process_trace_option(char **argv, int *offset) argument 1356 dlg_trace(optionString(argv, offset)); 1359 *offset += 1; 1375 process_common_options(int argc, char **argv, int offset, bool output) argument 1379 dlg_trace_msg("# process_common_options, offset %d\n", offset); 1381 while (offset < argc && !done) { /* Common options */ 1382 dlg_trace_msg("#\targv[%d] = %s\n", offset, argv[offset]); 1383 switch (lookupOption(argv[offset], 1700 int offset = 1; local [all...] |
H A D | fselect.c | 77 int offset; /* index of first item on screen */ member in struct:__anon947 95 list->offset = 0; 164 if (list->choice < list->offset) { 165 list->offset = list->choice; 167 if (list->choice - list->offset >= high) 168 list->offset = list->choice - high + 1; 227 for (n = list->offset; n < list->length && list->data[n]; n++) { 228 y = n - list->offset; 244 (long) list->offset, 245 (long) list->offset, 580 int offset = 0; local [all...] |
H A D | inputstr.c | 348 * which byte-offset begins a given wide-character. 384 * Given the character-offset to find in the list, return the corresponding 497 * into that limit. The offset is used to skip over a leading character 501 dlg_limit_columns(const char *string, int limit, int offset) argument 506 while (result > 0 && (cols[result] - cols[offset]) > limit) 512 * Updates the string and character-offset, given various editing characters 513 * or literal characters which are inserted at the character-offset. 522 int offset = dlg_find_index(indx, limit, *chr_offset); local 548 if (*chr_offset && offset > 0) 549 *chr_offset = indx[offset 649 int offset = dlg_find_index(indx, limit, chr_offset); local [all...] |
H A D | menubox.c | 148 int offset = 0; local 170 if (dlg_edit_string(result, &offset, key, fkey, first)) { 171 dlg_show_string(data->menu, result, offset, inputbox_attr,
|
H A D | msgbox.c | 55 int offset = 0; local 113 last = dlg_print_scrolled(dialog, prompt, offset, 167 &offset) == 0) { 178 dlg_print_scrolled(dialog, prompt, offset, page, width, pauseopt);
|
H A D | rangebox.c | 118 int offset = (value - data->min_value); local 124 scaled = (offset + data->slide_inc) / data->slide_inc; 126 scaled = (offset + 1) * data->slide_inc; 128 scaled = offset; 156 dlg_trace_msg("drew %d offset %d scaled %d limit %d inc %d\n", 158 offset,
|
H A D | tailbox.c | 117 long offset = 0; local 141 offset = 0; 145 offset += (long) size_as_read; 150 offset = (long) (inx + 1); 157 offset = 0; 162 if (fseek(fp, fpos + offset, SEEK_SET) == -1)
|
H A D | textbox.c | 53 lseek_obj(MY_OBJ * obj, long offset, int mode) argument 56 if ((fpos = (long) lseek(obj->fd, (off_t) offset, mode)) == -1) { 66 dlg_exiterr("Cannot set file position to %ld", offset); 80 lseek_set(MY_OBJ * obj, long offset) argument 82 long actual = lseek_obj(obj, offset, SEEK_SET); 84 if (actual != offset) { 86 offset, actual); 91 lseek_end(MY_OBJ * obj, long offset) argument 93 long actual = lseek_obj(obj, offset, SEEK_END); 95 if (actual > offset) { 101 lseek_cur(MY_OBJ * obj, long offset) argument 497 int offset = 0; local [all...] |
H A D | util.c | 1022 int offset, 1066 offset + MARGIN, /* sminrow */ 1078 percent = (int) ((height + offset) * 100.0 / y); 1083 if (offset != 0 || percent != 100) { 1099 (void) offset; 1109 dlg_check_scrolled(int key, int last, int page, bool * show, int *offset) argument 1117 if (*offset > 0) { 1118 *offset = 0; 1123 if (*offset < last) { 1124 *offset 1020 dlg_print_scrolled(WINDOW *win, const char *prompt, int offset, int height, int width, int pauseopt) argument 1341 long offset; local [all...] |
H A D | yesno.c | 56 int page, last = 0, offset = 0; local 98 last = dlg_print_scrolled(dialog, prompt, offset, 147 &show, &offset) != 0) {
|
/freebsd-11-stable/contrib/diff/lib/ |
H A D | strftime.c | 1198 DO_NUMBER (1, (era->offset
|
/freebsd-11-stable/contrib/dtc/Documentation/ |
H A D | dtc-paper.tex | 236 Each property, after the \dtprop, has a 32-bit value giving an offset 240 of the blob. The name offset is followed by the length of the 279 usually implemented as a pointer or offset within OF memory.}. This
|
/freebsd-11-stable/contrib/dtc/ |
H A D | checks.c | 424 assert(m->offset == 0); 533 assert(m->offset + sizeof(cell_t) <= prop->val.len); 541 *((cell_t *)(prop->val.val + m->offset)) = 547 *((cell_t *)(prop->val.val + m->offset)) = cpu_to_fdt32(phandle); 566 assert(m->offset <= prop->val.len);
|
H A D | data.c | 132 memmove(d.val + m->offset + len, d.val + m->offset, d.len - m->offset); 133 memcpy(d.val + m->offset, p, len); 139 m->offset += len; 163 m2->offset += d1.len; 245 m->offset = d.len;
|
H A D | dtc.h | 83 int offset; member in struct:marker
|
H A D | fdtput.c | 205 int node, offset = 0; local 211 for (sep = path; *sep; path = sep + 1, offset = node) { 217 node = fdt_subnode_offset_namelen(*blob, offset, path, 221 node = fdt_add_subnode_namelen(*blob, offset, path, 242 * @return new node offset if found, or -1 on failure
|
H A D | flattree.c | 124 static void emit_offset_label(FILE *f, const char *label, int offset) argument 127 fprintf(f, "%s\t= . + %d\n", label, offset); 179 emit_offset_label(f, m->ref, m->offset); 668 static char *flat_read_stringtable(struct inbuf *inb, int offset) argument 672 p = inb->base + offset; 675 die("String offset %d overruns string table\n", 676 offset); 684 return xstrdup(inb->base + offset); 895 die("Mem Reserve structure offset exceeds total size\n"); 898 die("DT structure offset exceed [all...] |
H A D | livetree.c | 848 node->fullpath, prop->name, m->offset); 931 value_32 = cpu_to_fdt32(m->offset);
|
/freebsd-11-stable/contrib/dtc/libfdt/ |
H A D | fdt.c | 77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) argument 79 unsigned absoffset = offset + fdt_off_dt_struct(fdt); 81 if ((absoffset < offset) 87 if (((offset + len) < offset) 88 || ((offset + len) > fdt_size_dt_struct(fdt))) 91 return _fdt_offset_ptr(fdt, offset); 98 int offset = startoffset; local 102 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); 106 offset 144 _fdt_check_node_offset(const void *fdt, int offset) argument 153 _fdt_check_prop_offset(const void *fdt, int offset) argument 162 fdt_next_node(const void *fdt, int offset, int *depth) argument 202 fdt_first_subnode(const void *fdt, int offset) argument 213 fdt_next_subnode(const void *fdt, int offset) argument [all...] |
H A D | fdt_ro.c | 58 static int _fdt_nodename_eq(const void *fdt, int offset, argument 61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); 94 int offset; local 96 for (offset = fdt_next_node(fdt, -1, NULL);; 97 offset = fdt_next_node(fdt, offset, NULL)) { 100 if (offset == -FDT_ERR_NOTFOUND) 103 if (offset < 0) 106 phandle = fdt_get_phandle(fdt, offset); 134 static int _nextprop(const void *fdt, int offset) argument 158 fdt_subnode_offset_namelen(const void *fdt, int offset, const char *name, int namelen) argument 187 int offset = 0; local 255 int offset; local 263 fdt_next_property_offset(const void *fdt, int offset) argument 271 fdt_get_property_by_offset(const void *fdt, int offset, int *lenp) argument 292 fdt_get_property_namelen(const void *fdt, int offset, const char *name, int namelen, int *lenp) argument 336 fdt_getprop_by_offset(const void *fdt, int offset, const char **namep, int *lenp) argument 392 int offset, depth, namelen; local 444 int offset, depth; local 502 int offset; local 527 int offset; local 683 int offset, err; local [all...] |
H A D | fdt_rw.c | 337 int offset, nextoffset; local 345 offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen); 346 if (offset >= 0) 348 else if (offset != -FDT_ERR_NOTFOUND) 349 return offset; 354 offset = nextoffset; 355 tag = fdt_next_tag(fdt, offset, &nextoffset); 358 nh = _fdt_offset_ptr_w(fdt, offset); 371 return offset;
|
H A D | fdt_sw.c | 75 int offset = fdt_size_dt_struct(fdt); local 81 if ((offset + len < offset) || (offset + len > spaceleft)) 84 fdt_set_size_dt_struct(fdt, offset + len); 85 return _fdt_offset_ptr_w(fdt, offset); 145 int offset; local 152 offset = fdt_off_dt_struct(fdt); 153 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) 156 re = (struct fdt_reserve_entry *)((char *)fdt + offset); 206 int struct_top, offset; local 251 int offset, nextoffset; local [all...] |
H A D | fdt_wip.c | 118 int _fdt_node_end_offset(void *fdt, int offset) argument 122 while ((offset >= 0) && (depth >= 0)) 123 offset = fdt_next_node(fdt, offset, &depth); 125 return offset;
|
H A D | libfdt.h | 75 * offset which is out-of-bounds, or which points to an 146 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen); 147 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) argument 149 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen); 152 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset); 158 int fdt_next_node(const void *fdt, int offset, int *depth); 161 * fdt_first_subnode() - get offset of first direct subnode 164 * @offset: Offset of node to check 165 * @return offset of first subnode, or -FDT_ERR_NOTFOUND if there is none 167 int fdt_first_subnode(const void *fdt, int offset); [all...] |
H A D | libfdt_internal.h | 65 int _fdt_check_node_offset(const void *fdt, int offset); 66 int _fdt_check_prop_offset(const void *fdt, int offset); 70 static inline const void *_fdt_offset_ptr(const void *fdt, int offset) argument 72 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; 75 static inline void *_fdt_offset_ptr_w(void *fdt, int offset) argument 77 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset);
|