| /freebsd/sys/contrib/openzfs/module/zcommon/ |
| H A D | simd_stat.c | 43 kmem_scnprintf(s + off, MAX(4095-off, 0), "%-16s\t%1d\n", feat, (val)) 51 static int off = 0; in simd_stat_kstat_data() local 53 if (off == 0) { in simd_stat_kstat_data() 54 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 57 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 59 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 61 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 63 off += SIMD_STAT_PRINT(simd_stat_kstat_payload, in simd_stat_kstat_data() 65 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() [all …]
|
| /freebsd/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 …]
|
| /freebsd/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 …]
|
| /freebsd/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 …]
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | zfs_chksum.c | 77 ssize_t off = 0; in chksum_kstat_headers() local 79 off += kmem_scnprintf(buf + off, size, "%-23s", "implementation"); in chksum_kstat_headers() 80 off += kmem_scnprintf(buf + off, size - off, "%8s", "1k"); in chksum_kstat_headers() 81 off += kmem_scnprintf(buf + off, size - off, "%8s", "4k"); in chksum_kstat_headers() 82 off += kmem_scnprintf(buf + off, size - off, "%8s", "16k"); in chksum_kstat_headers() 83 off += kmem_scnprintf(buf + off, size - off, "%8s", "64k"); in chksum_kstat_headers() 84 off += kmem_scnprintf(buf + off, size - off, "%8s", "256k"); in chksum_kstat_headers() 85 off += kmem_scnprintf(buf + off, size - off, "%8s", "1m"); in chksum_kstat_headers() 86 off += kmem_scnprintf(buf + off, size - off, "%8s", "4m"); in chksum_kstat_headers() 87 (void) kmem_scnprintf(buf + off, size - off, "%8s\n", "16m"); in chksum_kstat_headers() [all …]
|
| /freebsd/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 …]
|
| /freebsd/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 …]
|
| /freebsd/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 …]
|
| /freebsd/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()
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/history/ |
| H A D | history_002_pos.ksh | 65 compression on compression off 66 compression lzjb acltype off 68 atime on atime off 69 devices on devices off 70 exec on exec off 71 setuid on setuid off 72 readonly on readonly off 73 zoned on zoned off 77 canmount off canmount on 82 xattr on xattr off [all …]
|
| /freebsd/sys/netlink/ |
| H A D | netlink_snl_route_parsers.h | 63 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = snl_attr_get_uint32 }, 68 { .type = NL_RTA_GATEWAY, .off = _OUT(gw), .cb = snl_attr_get_ip }, 69 { .type = NL_RTA_PRIORITY, .off = _OUT(rta_metric), .cb = snl_attr_get_uint32 }, 71 { .type = NL_RTA_RTFLAGS, .off = _OUT(rta_rtflags), .cb = snl_attr_get_uint32 }, 72 { .type = NL_RTA_VIA, .off = _OUT(gw), .cb = snl_attr_get_ipvia }, 73 { .type = NL_RTA_EXPIRES, .off = _OUT(rta_expire), .cb = snl_attr_get_uint32 }, 134 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = snl_attr_get_uint32 }, 139 { .type = NL_RTA_DST, .off = _OUT(rta_dst), .cb = snl_attr_get_ip }, 140 { .type = NL_RTA_OIF, .off = _OUT(rta_oif), .cb = snl_attr_get_uint32 }, 141 { .type = NL_RTA_GATEWAY, .off = _OUT(rta_gw), .cb = snl_attr_get_ip }, [all …]
|
| /freebsd/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 …]
|
| /freebsd/sbin/ifconfig/ |
| H A D | ifgeneve.c | 226 { .type = IFLA_GENEVE_ID, .off = _OUT(ifla_vni), .cb = snl_attr_get_uint32 }, 227 { .type = IFLA_GENEVE_PROTOCOL, .off = _OUT(ifla_proto), .cb = snl_attr_get_uint16 }, 228 { .type = IFLA_GENEVE_LOCAL, .off = _OUT(ifla_local), .cb = snl_attr_get_ip }, 229 { .type = IFLA_GENEVE_REMOTE, .off = _OUT(ifla_remote), .cb = snl_attr_get_ip }, 230 { .type = IFLA_GENEVE_LOCAL_PORT, .off = _OUT(ifla_local_port), .cb = snl_attr_get_uint16 }, 231 { .type = IFLA_GENEVE_PORT, .off = _OUT(ifla_remote_port), .cb = snl_attr_get_uint16 }, 232 { .type = IFLA_GENEVE_PORT_RANGE, .off = _OUT(ifla_port_range), .cb = snl_attr_dup_struct }, 233 { .type = IFLA_GENEVE_DF, .off = _OUT(ifla_df), .cb = snl_attr_get_uint8 }, 234 { .type = IFLA_GENEVE_TTL, .off = _OUT(ifla_ttl), .cb = snl_attr_get_uint8 }, 235 { .type = IFLA_GENEVE_TTL_INHERIT, .off = _OUT(ifla_ttl_inherit), .cb = snl_attr_get_bool }, [all …]
|
| /freebsd/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 …]
|
| /freebsd/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 …]
|
| /freebsd/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 …]
|
| /freebsd/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 …]
|
| /freebsd/contrib/llvm-project/lld/COFF/ |
| H A D | Chunks.cpp | 97 static void applySecRel(const SectionChunk *sec, uint8_t *off, in applySecRel() argument 106 add32(off, secRel); in applySecRel() 109 static void applySecIdx(uint8_t *off, OutputSection *os, in applySecIdx() argument 119 add16(off, os->sectionIndex); in applySecIdx() 121 add16(off, numOutputSections + 1); in applySecIdx() 124 void SectionChunk::applyRelX64(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX64() argument 129 add32(off, s + imageBase); in applyRelX64() 132 add64(off, s + imageBase); in applyRelX64() 134 case IMAGE_REL_AMD64_ADDR32NB: add32(off, s); break; in applyRelX64() 135 case IMAGE_REL_AMD64_REL32: add32(off, s - p - 4); break; in applyRelX64() [all …]
|
| /freebsd/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 …]
|
| /freebsd/sys/dev/sdhci/ |
| H A D | fsl_sdhci.c | 183 RD4(struct fsl_sdhci_softc *sc, bus_size_t off) in RD4() argument 186 return (bus_read_4(sc->mem_res, off)); in RD4() 190 WR4(struct fsl_sdhci_softc *sc, bus_size_t off, uint32_t val) in WR4() argument 193 bus_write_4(sc->mem_res, off, val); in WR4() 197 fsl_sdhci_read_1(device_t dev, struct sdhci_slot *slot, bus_size_t off) in fsl_sdhci_read_1() argument 207 if (off == SDHCI_HOST_CONTROL) { in fsl_sdhci_read_1() 243 if (off == SDHCI_POWER_CONTROL) { in fsl_sdhci_read_1() 247 return ((RD4(sc, off & ~3) >> (off & 3) * 8) & 0xff); in fsl_sdhci_read_1() 251 fsl_sdhci_read_2(device_t dev, struct sdhci_slot *slot, bus_size_t off) in fsl_sdhci_read_2() argument 261 if (off == SDHCI_HOST_VERSION) { in fsl_sdhci_read_2() [all …]
|
| /freebsd/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 …]
|
| /freebsd/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 …]
|
| /freebsd/sys/netpfil/pf/ |
| H A D | pf_nl.c | 75 { .type = PF_ST_ID, .off = _OUT(id), .cb = nlattr_get_uint32 }, 76 { .type = PF_ST_CREATORID, .off = _OUT(creatorid), .cb = nlattr_get_uint32 }, 77 …{ .type = PF_ST_IFNAME, .arg = (const void *)IFNAMSIZ, .off = _OUT(ifname), .cb = nlattr_get_chara… 78 { .type = PF_ST_AF, .off = _OUT(af), .cb = nlattr_get_uint8 }, 79 { .type = PF_ST_PROTO, .off = _OUT(proto), .cb = nlattr_get_uint16 }, 80 { .type = PF_ST_FILTER_ADDR, .off = _OUT(addr), .cb = nlattr_get_in6_addr }, 81 { .type = PF_ST_FILTER_MASK, .off = _OUT(mask), .cb = nlattr_get_in6_addr }, 82 { .type = PF_ST_INCLUDE_RULE, .off = _OUT(include_rule), .cb = nlattr_get_bool }, 107 int off = nlattr_add_nested(nw, attr); in dump_state_peer() local 109 if (off == 0) in dump_state_peer() [all …]
|
| /freebsd/stand/libsa/ |
| H A D | bootp.c | 106 int off = 0; in bootp_fill_request() local 113 bp_vend[off++] = TAG_CLASSID; in bootp_fill_request() 114 bp_vend[off++] = 9; in bootp_fill_request() 115 bcopy("PXEClient", &bp_vend[off], 9); in bootp_fill_request() 116 off += 9; in bootp_fill_request() 118 bp_vend[off++] = TAG_USER_CLASS; in bootp_fill_request() 120 bp_vend[off++] = 8; in bootp_fill_request() 122 bp_vend[off++] = 7; in bootp_fill_request() 123 bcopy("FreeBSD", &bp_vend[off], 7); in bootp_fill_request() 124 off += 7; in bootp_fill_request() [all …]
|