| /NextBSD/contrib/binutils/binutils/ |
| HD | resbin.c | 427 rc_uint_type off; in bin_to_res_dialog() local 442 off = 8; in bin_to_res_dialog() 456 off = 16; in bin_to_res_dialog() 459 if (length < off + 10) in bin_to_res_dialog() 462 c = windres_get_16 (wrbfd, data + off, 2); in bin_to_res_dialog() 463 d->x = windres_get_16 (wrbfd, data + off + 2, 2); in bin_to_res_dialog() 464 d->y = windres_get_16 (wrbfd, data + off + 4, 2); in bin_to_res_dialog() 465 d->width = windres_get_16 (wrbfd, data + off + 6, 2); in bin_to_res_dialog() 466 d->height = windres_get_16 (wrbfd, data + off + 8, 2); in bin_to_res_dialog() 468 off += 10; in bin_to_res_dialog() [all …]
|
| HD | resres.c | 82 rc_uint_type off, flen; in read_res_file() local 98 off = 0; in read_res_file() 103 skip_null_resource (&wrbfd, &off, flen); in read_res_file() 105 while (read_resource_entry (&wrbfd, &off, flen)) in read_res_file() 169 read_resource_entry (windres_bfd *wrbfd, rc_uint_type *off, rc_uint_type omax) in read_resource_entry() argument 180 off[0] = (off[0] + 3) & ~3; in read_resource_entry() 183 if ((off[0] + 8) > omax) in read_resource_entry() 185 read_res_data_hdr (wrbfd, off, omax, &reshdr); in read_resource_entry() 188 read_res_id (wrbfd, off, omax, &type); in read_resource_entry() 190 read_res_id (wrbfd, off, omax, &name); in read_resource_entry() [all …]
|
| /NextBSD/sys/netgraph/ |
| HD | ng_parse.c | 105 const char *s, int *off, const u_char *start, 108 const u_char *data, int *off, char *cbuf, int cbuflen, 122 static int ng_parse_skip_value(const char *s, int off, int *lenp); 148 const char *string, int *off, u_char *buf, int *buflen) in ng_parse() argument 150 return INVOKE(type, parse)(type, string, off, buf, buf, buflen); in ng_parse() 160 int off = 0; in ng_unparse() local 162 return INVOKE(type, unparse)(type, data, &off, cbuf, cbuflen); in ng_unparse() 185 const char *s, int *off, const u_char *const start, in ng_struct_parse() argument 188 return ng_parse_composite(type, s, off, start, buf, buflen, CT_STRUCT); in ng_struct_parse() 193 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_struct_unparse() argument [all …]
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | kod-cisco.c | 134 int off = 0; /* Where we are in the string. */ in cisco_kod_request() local 183 off += 4; in cisco_kod_request() 187 count = strtol (&buffer[off], &s_end, 16); in cisco_kod_request() 188 if (s_end - &buffer[off] != 2 || buffer[off + 2] != ',') in cisco_kod_request() 194 off += 3; in cisco_kod_request() 197 if ((buffer[off] != '0' && buffer[off] != '1') in cisco_kod_request() 198 || buffer[off + 1] != ',') in cisco_kod_request() 204 done = buffer[off] == '1'; in cisco_kod_request() 205 off += 2; in cisco_kod_request() 209 prev_id = &buffer[off]; in cisco_kod_request() [all …]
|
| /NextBSD/contrib/dialog/samples/ |
| HD | treeview2 | 18 tag1:one:off:0 19 tag2:two:off:1 21 tag4:four:off:1 22 tag5:five:off:2 23 tag6:six:off:3 24 tag7:seven:off:3 25 tag8:eight:off:4 26 tag11:1one:off:0 27 tag12:1two:off:1 29 tag14:1four:off:1 [all …]
|
| HD | radiolist1 | 18 "Apple" "It's an apple." off \ 20 "Dog2" "No2, that's not my dog." off \ 21 "Dog3" "No3, that's not my dog." off \ 22 "Dog4" "No4, that's not my dog." off \ 23 "Dog5" "No5, that's not my dog." off \ 24 "Dog6" "No6, that's not my dog." off \ 25 "Orange" "Yeah, that's juicy." off \ 26 "Chicken" "Normally not a pet." off \ 27 "Cat" "No, never put a dog and a cat together!" off \ 28 "Fish" "Cats like fish." off \ [all …]
|
| /NextBSD/sys/opencrypto/ |
| HD | criov.c | 49 KASSERT(off >= 0, ("%s: off %d < 0", __func__, off)); \ 51 while (off > 0) { \ 53 if (off < iov->iov_len) \ 55 off -= iov->iov_len; \ 62 cuio_copydata(struct uio* uio, int off, int len, caddr_t cp) in cuio_copydata() argument 71 count = min(iov->iov_len - off, len); in cuio_copydata() 72 bcopy(((caddr_t)iov->iov_base) + off, cp, count); in cuio_copydata() 75 off = 0; in cuio_copydata() 82 cuio_copyback(struct uio* uio, int off, int len, caddr_t cp) in cuio_copyback() argument 91 count = min(iov->iov_len - off, len); in cuio_copyback() [all …]
|
| /NextBSD/lib/libc/posix1e/ |
| HD | acl_to_text_nfs4.c | 170 size_t off = 0, min_who_field_length = 18; in format_entry() local 193 off += snprintf(str + off, size - off, "%*s:", len, buf); in format_entry() 199 off += snprintf(str + off, size - off, "%s:", buf); in format_entry() 205 off += snprintf(str + off, size - off, "%s:", buf); in format_entry() 210 off += snprintf(str + off, size - off, "%s", buf); in format_entry() 216 off += snprintf(str + off, size - off, "%s", buf); in format_entry() 219 off += snprintf(str + off, size - off, "\n"); in format_entry() 222 assert (off < size); in format_entry() 230 int error, off = 0, size, entry_id = ACL_FIRST_ENTRY; in _nfs4_acl_to_text_np() local 245 assert(off < size); in _nfs4_acl_to_text_np() [all …]
|
| /NextBSD/sys/arm/xscale/ixp425/ |
| HD | ixp425_pci_space.c | 255 _bs_r(bus_space_tag_t tag, bus_space_handle_t ioh, bus_size_t off, u_int32_t be) in _bs_r() argument 259 CSR_WRITE_4(PCI_NP_AD, (ioh + off) & ~3); in _bs_r() 269 _pci_io_bs_r_1(bus_space_tag_t tag, bus_space_handle_t ioh, bus_size_t off) in _pci_io_bs_r_1() argument 273 n = (ioh + off) % 4; in _pci_io_bs_r_1() 275 data = _bs_r(tag, ioh, off, be); in _pci_io_bs_r_1() 281 _pci_io_bs_r_2(bus_space_tag_t tag, bus_space_handle_t ioh, bus_size_t off) in _pci_io_bs_r_2() argument 285 n = (ioh + off) % 4; in _pci_io_bs_r_2() 287 data = _bs_r(tag, ioh, off, be); in _pci_io_bs_r_2() 293 _pci_io_bs_r_4(bus_space_tag_t tag, bus_space_handle_t ioh, bus_size_t off) in _pci_io_bs_r_4() argument 297 data = _bs_r(tag, ioh, off, 0); in _pci_io_bs_r_4() [all …]
|
| /NextBSD/sys/dev/ex/ |
| HD | if_exvar.h | 95 #define CSR_READ_1(sc, off) (bus_read_1((sc)->ioport, off)) argument 96 #define CSR_READ_2(sc, off) (bus_read_2((sc)->ioport, off)) argument 97 #define CSR_WRITE_1(sc, off, val) \ argument 98 bus_write_1((sc)->ioport, off, val) 99 #define CSR_WRITE_2(sc, off, val) \ argument 100 bus_write_2((sc)->ioport, off, val) 101 #define CSR_WRITE_MULTI_1(sc, off, addr, count) \ argument 102 bus_write_multi_1((sc)->ioport, off, addr, count) 103 #define CSR_WRITE_MULTI_2(sc, off, addr, count) \ argument 104 bus_write_multi_2((sc)->ioport, off, addr, count) [all …]
|
| /NextBSD/contrib/apr-util/test/ |
| HD | testrmm.c | 40 apr_rmm_off_t *off, off2; in test_rmm() local 63 off = apr_palloc(pool, FRAG_COUNT * sizeof(apr_rmm_off_t)); in test_rmm() 65 off[i] = apr_rmm_malloc(rmm, fragsize); in test_rmm() 74 char *c = apr_rmm_addr_get(rmm, off[i]); in test_rmm() 77 ABTS_TRUE(tc, !!off[i]); in test_rmm() 84 char **c = apr_rmm_addr_get(rmm, off[i]); in test_rmm() 93 char **c = apr_rmm_addr_get(rmm, off[i]); in test_rmm() 102 rv = apr_rmm_free(rmm, off[i]); in test_rmm() 107 off[0] = apr_rmm_calloc(rmm, SHARED_SIZE); in test_rmm() 111 char **c = apr_rmm_addr_get(rmm, off[0]); in test_rmm() [all …]
|
| /NextBSD/contrib/pf/libevent/ |
| HD | buffer.c | 88 (x)->off = (y)->off; \ 97 if (outbuf->off == 0) { in evbuffer_add_buffer() 99 size_t oldoff = inbuf->off; in evbuffer_add_buffer() 111 if (inbuf->off != oldoff && inbuf->cb != NULL) in evbuffer_add_buffer() 112 (*inbuf->cb)(inbuf, oldoff, inbuf->off, inbuf->cbarg); in evbuffer_add_buffer() 119 res = evbuffer_add(outbuf, inbuf->buffer, inbuf->off); in evbuffer_add_buffer() 122 evbuffer_drain(inbuf, inbuf->off); in evbuffer_add_buffer() 133 size_t oldoff = buf->off; in evbuffer_add_vprintf() 138 buffer = (char *)buf->buffer + buf->off; in evbuffer_add_vprintf() 139 space = buf->totallen - buf->misalign - buf->off; in evbuffer_add_vprintf() [all …]
|
| /NextBSD/sys/dev/ep/ |
| HD | if_epvar.h | 86 #define CSR_READ_1(sc, off) (bus_space_read_1((sc)->bst, (sc)->bsh, off)) argument 87 #define CSR_READ_2(sc, off) (bus_space_read_2((sc)->bst, (sc)->bsh, off)) argument 88 #define CSR_WRITE_1(sc, off, val) \ argument 89 bus_space_write_1(sc->bst, sc->bsh, off, val) 90 #define CSR_WRITE_2(sc, off, val) \ argument 91 bus_space_write_2(sc->bst, sc->bsh, off, val) 92 #define CSR_WRITE_MULTI_1(sc, off, addr, count) \ argument 93 bus_space_write_multi_1(sc->bst, sc->bsh, off, addr, count) 94 #define CSR_WRITE_MULTI_2(sc, off, addr, count) \ argument 95 bus_space_write_multi_2(sc->bst, sc->bsh, off, addr, count) [all …]
|
| /NextBSD/contrib/apr-util/dbm/sdbm/ |
| HD | sdbm_pair.c | 68 register int off; local 72 off = ((n = ino[0]) > 0) ? ino[n] : PBLKSIZ; 73 avail = off - (n + 1) * sizeof(short); 88 register int off; local 91 off = ((n = ino[0]) > 0) ? ino[n] : PBLKSIZ; 95 off -= key.dsize; 96 (void) memcpy(pag + off, key.dptr, key.dsize); 97 ino[n + 1] = off; 101 off -= val.dsize; 102 (void) memcpy(pag + off, val.dptr, val.dsize); [all …]
|
| /NextBSD/crypto/openssl/crypto/ec/ |
| HD | eck_prn.c | 71 int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off) in ECPKParameters_print_fp() argument 81 ret = ECPKParameters_print(b, x, off); in ECPKParameters_print_fp() 86 int EC_KEY_print_fp(FILE *fp, const EC_KEY *x, int off) in EC_KEY_print_fp() argument 96 ret = EC_KEY_print(b, x, off); in EC_KEY_print_fp() 117 int EC_KEY_print(BIO *bp, const EC_KEY *x, int off) in EC_KEY_print() argument 124 ret = EVP_PKEY_print_private(bp, pk, off, NULL); in EC_KEY_print() 142 size_t len, int off); 144 int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off) in ECPKParameters_print() argument 176 if (!BIO_indent(bp, off, 128)) in ECPKParameters_print() 189 if (!BIO_indent(bp, off, 128)) in ECPKParameters_print() [all …]
|
| /NextBSD/sys/dev/sn/ |
| HD | if_snvar.h | 58 #define CSR_READ_1(sc, off) (bus_read_1((sc)->port_res, off)) argument 59 #define CSR_READ_2(sc, off) (bus_read_2((sc)->port_res, off)) argument 60 #define CSR_WRITE_1(sc, off, val) \ argument 61 bus_write_1((sc)->port_res, off, val) 62 #define CSR_WRITE_2(sc, off, val) \ argument 63 bus_write_2((sc)->port_res, off, val) 64 #define CSR_WRITE_MULTI_1(sc, off, addr, count) \ argument 65 bus_write_multi_1((sc)->port_res, off, addr, count) 66 #define CSR_WRITE_MULTI_2(sc, off, addr, count) \ argument 67 bus_write_multi_2((sc)->port_res, off, addr, count) [all …]
|
| /NextBSD/lib/libc/stdio/ |
| HD | fmemopen.c | 44 size_t off; /* current offset into the buffer */ member 91 ck->off = 0; in fmemopen() 130 ck->off = ck->len = strnlen(ck->buf, ck->size); in fmemopen() 169 if (nbytes > ck->len - ck->off) in fmemopen_read() 170 nbytes = ck->len - ck->off; in fmemopen_read() 175 memcpy(buf, ck->buf + ck->off, nbytes); in fmemopen_read() 177 ck->off += nbytes; in fmemopen_read() 187 if (nbytes > ck->size - ck->off) in fmemopen_write() 188 nbytes = ck->size - ck->off; in fmemopen_write() 193 memcpy(ck->buf + ck->off, buf, nbytes); in fmemopen_write() [all …]
|
| /NextBSD/usr.sbin/uefisign/ |
| HD | pe.c | 141 range_check(const struct executable *x, off_t off, size_t len, in range_check() argument 145 if (off < 0) { in range_check() 147 name, (intmax_t)off); in range_check() 149 if (off >= (off_t)x->x_len) { in range_check() 151 name, (intmax_t)off, x->x_len); in range_check() 157 if (off + len > x->x_len) { in range_check() 159 name, (intmax_t)(off + len), x->x_len); in range_check() 224 parse_section_table(struct executable *x, off_t off, int number_of_sections) in parse_section_table() argument 229 range_check(x, off, sizeof(*psh) * number_of_sections, in parse_section_table() 232 if (x->x_headers_len <= off + sizeof(*psh) * number_of_sections) in parse_section_table() [all …]
|
| /NextBSD/sys/geom/vinum/ |
| HD | geom_vinum_drive.c | 117 int be, off; in gv_read_header() local 120 endian##32toh(*((uint32_t *)&d_hdr[off])); \ in gv_read_header() 121 off += 4 in gv_read_header() 123 endian##64toh(*((uint64_t *)&d_hdr[off])); \ in gv_read_header() 124 off += 8 in gv_read_header() 138 off = 0; in gv_read_header() 149 off = 16; in gv_read_header() 150 bcopy(d_hdr + off, m_hdr->label.sysname, GV_HOSTNAME_LEN); in gv_read_header() 151 off += GV_HOSTNAME_LEN; in gv_read_header() 152 bcopy(d_hdr + off, m_hdr->label.name, GV_MAXDRIVENAME); in gv_read_header() [all …]
|
| /NextBSD/contrib/ncurses/ncurses/tinfo/ |
| HD | trim_sgr0.c | 245 char *off = set_attribute_9(tp, 0); in _nc_trim_sgr0() local 252 TR(TRACE_DATABASE, ("sgr(9:off) %s", _nc_visbuf(off))); in _nc_trim_sgr0() 256 || !rewrite_sgr(off, exit_alt_charset_mode) in _nc_trim_sgr0() 258 FreeIfNeeded(off); in _nc_trim_sgr0() 259 } else if (similar_sgr(off, end) in _nc_trim_sgr0() 260 && !similar_sgr(off, on)) { in _nc_trim_sgr0() 261 TR(TRACE_DATABASE, ("adjusting sgr(9:off) : %s", _nc_visbuf(off))); in _nc_trim_sgr0() 262 result = off; in _nc_trim_sgr0() 268 j = strlen(off); in _nc_trim_sgr0() 273 off + i); in _nc_trim_sgr0() [all …]
|
| /NextBSD/sys/arm/freescale/imx/ |
| HD | imx_sdhci.c | 163 RD4(struct imx_sdhci_softc *sc, bus_size_t off) in RD4() argument 166 return (bus_read_4(sc->mem_res, off)); in RD4() 170 WR4(struct imx_sdhci_softc *sc, bus_size_t off, uint32_t val) in WR4() argument 173 bus_write_4(sc->mem_res, off, val); in WR4() 177 imx_sdhci_read_1(device_t dev, struct sdhci_slot *slot, bus_size_t off) in imx_sdhci_read_1() argument 187 if (off == SDHCI_HOST_CONTROL) { in imx_sdhci_read_1() 223 if (off == SDHCI_POWER_CONTROL) { in imx_sdhci_read_1() 228 return ((RD4(sc, off & ~3) >> (off & 3) * 8) & 0xff); in imx_sdhci_read_1() 232 imx_sdhci_read_2(device_t dev, struct sdhci_slot *slot, bus_size_t off) in imx_sdhci_read_2() argument 242 if (off == SDHCI_HOST_VERSION) { in imx_sdhci_read_2() [all …]
|
| /NextBSD/sys/arm/ti/ |
| HD | ti_sdhci.c | 126 ti_mmchs_read_4(struct ti_sdhci_softc *sc, bus_size_t off) in ti_mmchs_read_4() argument 129 return (bus_read_4(sc->mem_res, off + sc->mmchs_reg_off)); in ti_mmchs_read_4() 133 ti_mmchs_write_4(struct ti_sdhci_softc *sc, bus_size_t off, uint32_t val) in ti_mmchs_write_4() argument 136 bus_write_4(sc->mem_res, off + sc->mmchs_reg_off, val); in ti_mmchs_write_4() 140 RD4(struct ti_sdhci_softc *sc, bus_size_t off) in RD4() argument 143 return (bus_read_4(sc->mem_res, off + sc->sdhci_reg_off)); in RD4() 147 WR4(struct ti_sdhci_softc *sc, bus_size_t off, uint32_t val) in WR4() argument 150 bus_write_4(sc->mem_res, off + sc->sdhci_reg_off, val); in WR4() 154 ti_sdhci_read_1(device_t dev, struct sdhci_slot *slot, bus_size_t off) in ti_sdhci_read_1() argument 158 return ((RD4(sc, off & ~3) >> (off & 3) * 8) & 0xff); in ti_sdhci_read_1() [all …]
|
| /NextBSD/bin/ed/ |
| HD | sub.c | 170 int off = 0; in substitute_matching_text() local 188 REALLOC(rbuf, rbufsz, off + i, ERR); in substitute_matching_text() 191 memcpy(rbuf + off, txt, i); in substitute_matching_text() 192 off += i; in substitute_matching_text() 193 if ((off = apply_subst_template(txt, rm, off, in substitute_matching_text() 198 REALLOC(rbuf, rbufsz, off + i, ERR); in substitute_matching_text() 201 memcpy(rbuf + off, txt, i); in substitute_matching_text() 202 off += i; in substitute_matching_text() 209 REALLOC(rbuf, rbufsz, off + i + 2, ERR); in substitute_matching_text() 216 memcpy(rbuf + off, txt, i); in substitute_matching_text() [all …]
|
| /NextBSD/sys/mips/rt305x/ |
| HD | rt305x_pcireg.h | 63 #define RT_WRITE32(sc, off, val) \ argument 64 bus_space_write_4((sc)->sc_bst, (sc)->sc_bsh, (off), (val)) 65 #define RT_WRITE16(sc, off, val) \ argument 66 bus_space_write_2((sc)->sc_bst, (sc)->sc_bsh, (off), (val)) 67 #define RT_WRITE8(sc, off, val) \ argument 68 bus_space_write_1((sc)->sc_bst, (sc)->sc_bsh, (off), (val)) 69 #define RT_READ32(sc, off) \ argument 70 bus_space_read_4((sc)->sc_bst, (sc)->sc_bsh, (off)) 71 #define RT_READ16(sc, off) \ argument 72 bus_space_read_2((sc)->sc_bst, (sc)->sc_bsh, (off)) [all …]
|
| /NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| HD | zfs_rlock.c | 110 uint64_t off = new->r_off; in zfs_range_lock_writer() local 181 new->r_off = off; in zfs_range_lock_writer() 223 zfs_range_split(avl_tree_t *tree, rl_t *rl, uint64_t off) in zfs_range_split() argument 228 ASSERT3U(off, >, rl->r_off); in zfs_range_split() 229 ASSERT3U(off, <, rl->r_off + rl->r_len); in zfs_range_split() 235 rear->r_off = off; in zfs_range_split() 236 rear->r_len = rl->r_off + rl->r_len - off; in zfs_range_split() 244 front->r_len = off - rl->r_off; in zfs_range_split() 254 zfs_range_new_proxy(avl_tree_t *tree, uint64_t off, uint64_t len) in zfs_range_new_proxy() argument 260 rl->r_off = off; in zfs_range_new_proxy() [all …]
|