| /src/sys/contrib/openzfs/module/zcommon/ |
| H A D | simd_stat.c | 53 kmem_scnprintf(s + off, MAX(4095-off, 0), "%-16s\t%1d\n", feat, (val)) 61 static int off = 0; in simd_stat_kstat_data() local 63 if (off == 0) { in simd_stat_kstat_data() 64 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 67 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 69 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 71 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 73 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 75 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 77 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() [all …]
|
| /src/contrib/llvm-project/lld/MachO/ |
| H A D | EhFrame.cpp | 21 uint64_t EhReader::readLength(size_t *off) const { in readLength() 22 const size_t errOff = *off; in readLength() 23 if (*off + 4 > data.size()) in readLength() 25 uint64_t len = read32le(data.data() + *off); in readLength() 26 *off += 4; in readLength() 29 if (*off + 8 > data.size()) in readLength() 31 len = read64le(data.data() + *off); in readLength() 32 *off += 8; in readLength() 34 if (*off + len > data.size()) in readLength() 39 void EhReader::skipValidLength(size_t *off) const { in skipValidLength() [all …]
|
| /src/contrib/bearssl/T0/ |
| H A D | ConstData.cs | 99 void CheckIndex(int off, int dlen) in CheckIndex() argument 101 if (off < 0 || off > (len - dlen)) { in CheckIndex() 106 internal void Set8(int off, byte v) in Set8() argument 108 CheckIndex(off, 1); in Set8() 109 buf[off] = v; in Set8() 112 internal byte Read8(int off) in Read8() argument 114 CheckIndex(off, 1); in Read8() 115 return buf[off]; in Read8() 118 internal int Read16(int off) in Read16() argument 120 CheckIndex(off, 2); in Read16() [all …]
|
| /src/sys/netgraph/ |
| H A D | ng_parse.c | 103 const char *s, int *off, const u_char *start, 106 const u_char *data, int *off, char *cbuf, int cbuflen, 120 static int ng_parse_skip_value(const char *s, int off, int *lenp); 146 const char *string, int *off, u_char *buf, int *buflen) in ng_parse() argument 148 return INVOKE(type, parse)(type, string, off, buf, buf, buflen); in ng_parse() 158 int off = 0; in ng_unparse() local 160 return INVOKE(type, unparse)(type, data, &off, cbuf, cbuflen); in ng_unparse() 182 const char *s, int *off, const u_char *const start, in ng_struct_parse() argument 185 return ng_parse_composite(type, s, off, start, buf, buflen, CT_STRUCT); in ng_struct_parse() 190 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_struct_unparse() argument [all …]
|
| /src/contrib/dialog/samples/ |
| H A D | 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 …]
|
| H A D | 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 …]
|
| /src/sys/contrib/openzfs/module/zfs/ |
| H A D | zfs_chksum.c | 87 ssize_t off = 0; in chksum_kstat_headers() local 89 off += kmem_scnprintf(buf + off, size, "%-23s", "implementation"); in chksum_kstat_headers() 90 off += kmem_scnprintf(buf + off, size - off, "%8s", "1k"); in chksum_kstat_headers() 91 off += kmem_scnprintf(buf + off, size - off, "%8s", "4k"); in chksum_kstat_headers() 92 off += kmem_scnprintf(buf + off, size - off, "%8s", "16k"); in chksum_kstat_headers() 93 off += kmem_scnprintf(buf + off, size - off, "%8s", "64k"); in chksum_kstat_headers() 94 off += kmem_scnprintf(buf + off, size - off, "%8s", "256k"); in chksum_kstat_headers() 95 off += kmem_scnprintf(buf + off, size - off, "%8s", "1m"); in chksum_kstat_headers() 96 off += kmem_scnprintf(buf + off, size - off, "%8s", "4m"); in chksum_kstat_headers() 97 (void) kmem_scnprintf(buf + off, size - off, "%8s\n", "16m"); in chksum_kstat_headers() [all …]
|
| /src/sys/dev/usb/net/ |
| H A D | if_cdceem.c | 321 int actlen, off; in cdceem_handle_cmd() local 324 off = *offp; in cdceem_handle_cmd() 340 if (pktlen > (actlen - off)) { in cdceem_handle_cmd() 343 pktlen, actlen - off); in cdceem_handle_cmd() 356 usbd_copy_out(pc, off, sc->sc_echo_buffer, pktlen); in cdceem_handle_cmd() 357 off += pktlen; in cdceem_handle_cmd() 364 if (pktlen > (actlen - off)) { in cdceem_handle_cmd() 368 pktlen, actlen - off); in cdceem_handle_cmd() 379 usbd_copy_out(pc, off, sc->sc_echo_buffer, pktlen); in cdceem_handle_cmd() 380 off += pktlen; in cdceem_handle_cmd() [all …]
|
| /src/contrib/bearssl/src/ec/ |
| H A D | ecdsa_rta.c | 58 size_t hlen, rlen, slen, zlen, off; in br_ecdsa_raw_to_asn1() local 84 off = 3; in br_ecdsa_raw_to_asn1() 87 off = 2; in br_ecdsa_raw_to_asn1() 93 tmp[off ++] = 0x02; in br_ecdsa_raw_to_asn1() 94 tmp[off ++] = rlen; in br_ecdsa_raw_to_asn1() 96 tmp[off] = 0x00; in br_ecdsa_raw_to_asn1() 97 memcpy(tmp + off + 1, buf, hlen); in br_ecdsa_raw_to_asn1() 99 memcpy(tmp + off, buf + hlen - rlen, rlen); in br_ecdsa_raw_to_asn1() 101 off += rlen; in br_ecdsa_raw_to_asn1() 106 tmp[off ++] = 0x02; in br_ecdsa_raw_to_asn1() [all …]
|
| /src/lib/libc/posix1e/ |
| H A D | acl_to_text_nfs4.c | 171 size_t off = 0, min_who_field_length = 18; in format_entry() local 194 off += snprintf(str + off, size - off, "%*s:", len, buf); in format_entry() 200 off += snprintf(str + off, size - off, "%s:", buf); in format_entry() 206 off += snprintf(str + off, size - off, "%s:", buf); in format_entry() 211 off += snprintf(str + off, size - off, "%s", buf); in format_entry() 217 off += snprintf(str + off, size - off, "%s", buf); in format_entry() 220 off += snprintf(str + off, size - off, "\n"); in format_entry() 223 assert (off < size); in format_entry() 231 int error, off = 0, size, entry_id = ACL_FIRST_ENTRY; in _nfs4_acl_to_text_np() local 246 assert(off < size); in _nfs4_acl_to_text_np() [all …]
|
| /src/contrib/elftoolchain/libpe/ |
| H A D | pe_update.c | 38 off_t off; in pe_update() local 58 off = 0; in pe_update() 61 if ((off = libpe_write_msdos_stub(pe, off)) < 0) in pe_update() 64 if ((off = libpe_write_pe_header(pe, off)) < 0) in pe_update() 68 if (libpe_resync_sections(pe, off) < 0) in pe_update() 71 if ((off = libpe_write_coff_header(pe, off)) < 0) in pe_update() 74 if ((off = libpe_write_section_headers(pe, off)) < 0) in pe_update() 77 if ((off = libpe_write_sections(pe, off)) < 0) in pe_update() 80 if (ftruncate(pe->pe_fd, off) < 0) { in pe_update() 85 return (off); in pe_update()
|
| /src/contrib/llvm-project/lld/COFF/ |
| H A D | Chunks.cpp | 86 static void applySecRel(const SectionChunk *sec, uint8_t *off, in applySecRel() argument 95 add32(off, secRel); in applySecRel() 98 static void applySecIdx(uint8_t *off, OutputSection *os, in applySecIdx() argument 108 add16(off, os->sectionIndex); in applySecIdx() 110 add16(off, numOutputSections + 1); in applySecIdx() 113 void SectionChunk::applyRelX64(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX64() argument 118 add32(off, s + imageBase); in applyRelX64() 121 add64(off, s + imageBase); in applyRelX64() 123 case IMAGE_REL_AMD64_ADDR32NB: add32(off, s); break; in applyRelX64() 124 case IMAGE_REL_AMD64_REL32: add32(off, s - p - 4); break; in applyRelX64() [all …]
|
| /src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/history/ |
| H A D | history_002_pos.ksh | 75 compression on compression off 76 compression lzjb acltype off 78 atime on atime off 79 devices on devices off 80 exec on exec off 81 setuid on setuid off 82 readonly on readonly off 83 zoned on zoned off 87 canmount off canmount on 92 xattr on xattr off [all …]
|
| /src/contrib/pf/libevent/ |
| H A D | 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 …]
|
| /src/crypto/openssl/crypto/ec/ |
| H A D | eck_prn.c | 21 int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off) in ECPKParameters_print_fp() argument 31 ret = ECPKParameters_print(b, x, off); in ECPKParameters_print_fp() 36 int EC_KEY_print_fp(FILE *fp, const EC_KEY *x, int off) in EC_KEY_print_fp() argument 46 ret = EC_KEY_print(b, x, off); in EC_KEY_print_fp() 68 size_t len, int off); 70 int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off) in ECPKParameters_print() argument 101 if (!BIO_indent(bp, off, 128)) in ECPKParameters_print() 113 if (!BIO_indent(bp, off, 128)) in ECPKParameters_print() 160 if (!BIO_indent(bp, off, 128)) in ECPKParameters_print() 174 if (!BIO_indent(bp, off, 128)) in ECPKParameters_print() [all …]
|
| /src/contrib/sendmail/src/ |
| H A D | arpadate.c | 61 register int off; variable 128 off = (lt->tm_hour - gmt.tm_hour) * 60 + lt->tm_min - gmt.tm_min; 132 off -= 24 * 60; 134 off += 24 * 60; 136 off -= 24 * 60; 138 off += 24 * 60; 141 if (off == 0) 172 tz = timezone(off, lt->tm_isdst); 175 if (off < 0) 177 off = -off; [all …]
|
| /src/sys/kern/ |
| H A D | subr_memdesc.c | 45 phys_copyback(vm_paddr_t pa, int off, int size, const void *src) in phys_copyback() argument 55 pa += off; in phys_copyback() 69 vlist_copyback(struct bus_dma_segment *vlist, int sglist_cnt, int off, in vlist_copyback() argument 75 while (vlist->ds_len <= off) { in vlist_copyback() 78 off -= vlist->ds_len; in vlist_copyback() 88 if (todo > vlist->ds_len - off) in vlist_copyback() 89 todo = vlist->ds_len - off; in vlist_copyback() 91 memcpy((char *)(uintptr_t)vlist->ds_addr + off, p, todo); in vlist_copyback() 92 off = 0; in vlist_copyback() 101 plist_copyback(struct bus_dma_segment *plist, int sglist_cnt, int off, in plist_copyback() argument [all …]
|
| H A D | uipc_mbufhash.c | 44 m_common_hash_gethdr(const struct mbuf *m, const u_int off, in m_common_hash_gethdr() argument 48 if (m->m_pkthdr.len < (off + len)) { in m_common_hash_gethdr() 50 } else if (m->m_len < (off + len)) { in m_common_hash_gethdr() 51 m_copydata(m, off, len, buf); in m_common_hash_gethdr() 54 return (mtod(m, char *) + off); in m_common_hash_gethdr() 77 uint32_t p, int off, const uint16_t etype) in m_tcpip_hash() argument 99 ip = m_common_hash_gethdr(m, off, sizeof(*ip), &buf); in m_tcpip_hash() 117 off += iphlen; in m_tcpip_hash() 119 off, sizeof(*ports), &buf); in m_tcpip_hash() 132 ip6 = m_common_hash_gethdr(m, off, sizeof(*ip6), &buf); in m_tcpip_hash() [all …]
|
| /src/lib/libc/stdio/ |
| H A D | fmemopen.c | 43 size_t off; /* current offset into the buffer */ member 89 ck->off = 0; in fmemopen() 128 ck->off = ck->len = strnlen(ck->buf, ck->size); in fmemopen() 168 if (nbytes > ck->len - ck->off) in fmemopen_read() 169 nbytes = ck->len - ck->off; in fmemopen_read() 174 memcpy(buf, ck->buf + ck->off, nbytes); in fmemopen_read() 176 ck->off += nbytes; in fmemopen_read() 186 if (nbytes > ck->size - ck->off) in fmemopen_write() 187 nbytes = ck->size - ck->off; in fmemopen_write() 192 memcpy(ck->buf + ck->off, buf, nbytes); in fmemopen_write() [all …]
|
| /src/sys/opencrypto/ |
| H A D | criov.c | 57 KASSERT(off >= 0, ("%s: off %d < 0", __func__, off)); \ 59 while (off > 0) { \ 61 if (off < iov->iov_len) \ 63 off -= iov->iov_len; \ 70 KASSERT(off >= 0, ("%s: off %d < 0", __func__, off)); \ 72 while (off > 0) { \ 73 if (off < PAGE_SIZE) \ 75 processed += PAGE_SIZE - off; \ 76 off -= PAGE_SIZE - off; \ 82 cuio_copydata(struct uio* uio, int off, int len, caddr_t cp) in cuio_copydata() argument [all …]
|
| /src/sys/netlink/ |
| H A D | netlink_snl_route_parsers.h | 62 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = snl_attr_get_uint32 }, 67 { .type = NL_RTA_GATEWAY, .off = _OUT(gw), .cb = snl_attr_get_ip }, 69 { .type = NL_RTA_RTFLAGS, .off = _OUT(rta_rtflags), .cb = snl_attr_get_uint32 }, 70 { .type = NL_RTA_VIA, .off = _OUT(gw), .cb = snl_attr_get_ipvia }, 71 { .type = NL_RTA_EXPIRES, .off = _OUT(rta_expire), .cb = snl_attr_get_uint32 }, 133 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = snl_attr_get_uint32 }, 138 { .type = NL_RTA_DST, .off = _OUT(rta_dst), .cb = snl_attr_get_ip }, 139 { .type = NL_RTA_OIF, .off = _OUT(rta_oif), .cb = snl_attr_get_uint32 }, 140 { .type = NL_RTA_GATEWAY, .off = _OUT(rta_gw), .cb = snl_attr_get_ip }, 142 { .type = NL_RTA_MULTIPATH, .off = _OUT(rta_multipath), .cb = nlattr_get_multipath }, [all …]
|
| /src/sys/dev/tpm/ |
| H A D | tpm_spibus.c | 61 tpm_spi_read_n(device_t dev, bus_size_t off, void *buf, size_t size) in tpm_spi_read_n() argument 70 off += TPM_BASE_ADDR; in tpm_spi_read_n() 72 tx[1] = (off >> 16) & 0xff; in tpm_spi_read_n() 73 tx[2] = (off >> 8) & 0xff; in tpm_spi_read_n() 74 tx[3] = off & 0xff; in tpm_spi_read_n() 97 tpm_spi_write_n(device_t dev, bus_size_t off, void *buf, size_t size) in tpm_spi_write_n() argument 104 off += TPM_BASE_ADDR; in tpm_spi_write_n() 106 tx[1] = (off >> 16) & 0xff; in tpm_spi_write_n() 107 tx[2] = (off >> 8) & 0xff; in tpm_spi_write_n() 108 tx[3] = off & 0xff; in tpm_spi_write_n() [all …]
|
| /src/sys/arm/ti/ |
| H A D | ti_sdhci.c | 133 ti_mmchs_read_4(struct ti_sdhci_softc *sc, bus_size_t off) in ti_mmchs_read_4() argument 136 return (bus_read_4(sc->mem_res, off + sc->mmchs_reg_off)); in ti_mmchs_read_4() 140 ti_mmchs_write_4(struct ti_sdhci_softc *sc, bus_size_t off, uint32_t val) in ti_mmchs_write_4() argument 143 bus_write_4(sc->mem_res, off + sc->mmchs_reg_off, val); in ti_mmchs_write_4() 147 RD4(struct ti_sdhci_softc *sc, bus_size_t off) in RD4() argument 150 return (bus_read_4(sc->mem_res, off + sc->sdhci_reg_off)); in RD4() 154 WR4(struct ti_sdhci_softc *sc, bus_size_t off, uint32_t val) in WR4() argument 157 bus_write_4(sc->mem_res, off + sc->sdhci_reg_off, val); in WR4() 161 ti_sdhci_read_1(device_t dev, struct sdhci_slot *slot, bus_size_t off) in ti_sdhci_read_1() argument 165 return ((RD4(sc, off & ~3) >> (off & 3) * 8) & 0xff); in ti_sdhci_read_1() [all …]
|
| /src/sys/dev/sdhci/ |
| H A D | fsl_sdhci.c | 190 RD4(struct fsl_sdhci_softc *sc, bus_size_t off) in RD4() argument 193 return (bus_read_4(sc->mem_res, off)); in RD4() 197 WR4(struct fsl_sdhci_softc *sc, bus_size_t off, uint32_t val) in WR4() argument 200 bus_write_4(sc->mem_res, off, val); in WR4() 204 fsl_sdhci_read_1(device_t dev, struct sdhci_slot *slot, bus_size_t off) in fsl_sdhci_read_1() argument 214 if (off == SDHCI_HOST_CONTROL) { in fsl_sdhci_read_1() 250 if (off == SDHCI_POWER_CONTROL) { in fsl_sdhci_read_1() 254 return ((RD4(sc, off & ~3) >> (off & 3) * 8) & 0xff); in fsl_sdhci_read_1() 258 fsl_sdhci_read_2(device_t dev, struct sdhci_slot *slot, bus_size_t off) in fsl_sdhci_read_2() argument 268 if (off == SDHCI_HOST_VERSION) { in fsl_sdhci_read_2() [all …]
|
| /src/bin/ed/ |
| H A D | 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 …]
|