| /freebsd-14.2/contrib/arm-optimized-routines/networking/aarch64/ |
| H A D | chksum_simd.c | 21 Assert(*nbytes >= 8); in slurp_head64() 34 *nbytes -= 8 - off; in slurp_head64() 43 Assert(nbytes < 8); in slurp_tail64() 52 nbytes = 0; in slurp_tail64() 96 nbytes %= 64; in __chksum_aarch64_simd() 103 if (nbytes & 32) in __chksum_aarch64_simd() 110 nbytes -= 32; in __chksum_aarch64_simd() 118 if (nbytes & 16) in __chksum_aarch64_simd() 123 nbytes -= 16; in __chksum_aarch64_simd() 128 if (nbytes & 8) in __chksum_aarch64_simd() [all …]
|
| /freebsd-14.2/contrib/arm-optimized-routines/networking/ |
| H A D | chksum.c | 17 Assert(*nbytes >= 4); in slurp_head32() 26 *nbytes -= 4 - off; in slurp_head32() 38 if (nbytes > 300) in __chksum() 42 sum = slurp_head32(&ptr, &nbytes); in __chksum() 57 nbytes %= 16; in __chksum() 58 Assert(nbytes < 16); in __chksum() 61 while (nbytes >= 4) in __chksum() 65 nbytes -= 4; in __chksum() 67 Assert(nbytes < 4); in __chksum() 69 if (nbytes & 2) in __chksum() [all …]
|
| /freebsd-14.2/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_iores.c | 195 *nbytes = 0; in bhnd_nvram_iores_validate_req() 204 *nbytes = ummin(*nbytes, iores->size - offset); in bhnd_nvram_iores_validate_req() 213 size_t nbytes) in bhnd_nvram_iores_read() argument 224 navail = nbytes; in bhnd_nvram_iores_read() 233 if (nbytes == 0) in bhnd_nvram_iores_read() 241 nbytes); in bhnd_nvram_iores_read() 245 nbytes / 2); in bhnd_nvram_iores_read() 249 nbytes / 4); in bhnd_nvram_iores_read() 271 navail = nbytes; in bhnd_nvram_iores_write() 284 nbytes); in bhnd_nvram_iores_write() [all …]
|
| H A D | bhnd_nvram_value_prf.c | 215 size_t limit, nbytes; in bhnd_nvram_val_vprintf() local 221 nbytes = 0; in bhnd_nvram_val_vprintf() 228 if (limit > nbytes) \ in bhnd_nvram_val_vprintf() 233 nbytes++; \ in bhnd_nvram_val_vprintf() 545 if (limit > nbytes) in bhnd_nvram_val_vprintf() 751 if (limit > nbytes && limit - nbytes >= slen) in bhnd_nvram_val_vprintf() 758 nbytes += arg_size; in bhnd_nvram_val_vprintf() 864 if (limit > nbytes) in bhnd_nvram_val_vprintf() 868 nbytes++; in bhnd_nvram_val_vprintf() 873 *olen = nbytes; in bhnd_nvram_val_vprintf() [all …]
|
| H A D | bhnd_nvram_ioptr.c | 139 size_t nbytes, size_t *navail) in bhnd_nvram_ioptr_ptr() argument 148 if (avail < nbytes) in bhnd_nvram_ioptr_ptr() 162 const void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_ioptr_read_ptr() argument 171 error = bhnd_nvram_ioptr_ptr(ioptr, offset, &writep, nbytes, navail); in bhnd_nvram_ioptr_read_ptr() 182 void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_ioptr_write_ptr() argument 193 return (bhnd_nvram_ioptr_ptr(ioptr, offset, ptr, nbytes, navail)); in bhnd_nvram_ioptr_write_ptr() 198 size_t nbytes) in bhnd_nvram_ioptr_read() argument 204 if ((error = bhnd_nvram_io_read_ptr(io, offset, &ptr, nbytes, NULL))) in bhnd_nvram_ioptr_read() 208 memcpy(buffer, ptr, nbytes); in bhnd_nvram_ioptr_read() 214 void *buffer, size_t nbytes) in bhnd_nvram_ioptr_write() argument [all …]
|
| H A D | bhnd_nvram_io.c | 62 size_t nbytes) in bhnd_nvram_io_read() argument 64 return (io->iops->read(io, offset, buffer, nbytes)); in bhnd_nvram_io_read() 94 const void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_io_read_ptr() argument 96 return (io->iops->read_ptr(io, offset, ptr, nbytes, navail)); in bhnd_nvram_io_read_ptr() 118 size_t nbytes) in bhnd_nvram_io_write() argument 120 return (io->iops->write(io, offset, buffer, nbytes)); in bhnd_nvram_io_write() 152 size_t nbytes, size_t *navail) in bhnd_nvram_io_write_ptr() argument 154 return (io->iops->write_ptr(io, offset, ptr, nbytes, navail)); in bhnd_nvram_io_write_ptr()
|
| H A D | bhnd_nvram_value.c | 678 nbytes = 0; in bhnd_nvram_val_encode_null() 684 nbytes = 0; in bhnd_nvram_val_encode_null() 692 *olen = nbytes; in bhnd_nvram_val_encode_null() 740 nbytes = 0; in bhnd_nvram_val_encode_bool() 770 *olen = nbytes; in bhnd_nvram_val_encode_bool() 834 nbytes = 0; in bhnd_nvram_val_encode_string() 869 nbytes++; in bhnd_nvram_val_encode_string() 957 nbytes++; in bhnd_nvram_val_encode_string() 1298 *olen = nbytes; in bhnd_nvram_val_encode_int() 1522 nbytes = 0; in bhnd_nvram_val_generic_encode() [all …]
|
| H A D | bhnd_nvram_subr.c | 731 if (nbytes == NULL) in bhnd_nvram_parse_int() 736 *nbytes = 0; in bhnd_nvram_parse_int() 745 for (; *nbytes < maxlen; (*nbytes)++) { in bhnd_nvram_parse_int() 751 if (*nbytes == maxlen) in bhnd_nvram_parse_int() 758 (*nbytes)++; in bhnd_nvram_parse_int() 761 (*nbytes)++; in bhnd_nvram_parse_int() 771 if (maxlen - *nbytes >= 2 && str[*nbytes] == '0' && in bhnd_nvram_parse_int() 772 (str[*nbytes+1] == 'x' || str[*nbytes+1] == 'X')) in bhnd_nvram_parse_int() 775 (*nbytes) += 2; in bhnd_nvram_parse_int() 863 for (; *nbytes < maxlen; (*nbytes)++) { in bhnd_nvram_parse_int() [all …]
|
| H A D | bhnd_nvram_iobuf.c | 254 size_t nbytes, size_t *navail) in bhnd_nvram_iobuf_ptr() argument 263 if (avail < nbytes) in bhnd_nvram_iobuf_ptr() 277 const void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_iobuf_read_ptr() argument 286 error = bhnd_nvram_iobuf_ptr(iobuf, offset, &ioptr, nbytes, navail); in bhnd_nvram_iobuf_read_ptr() 297 void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_iobuf_write_ptr() argument 304 return (bhnd_nvram_iobuf_ptr(iobuf, offset, ptr, nbytes, navail)); in bhnd_nvram_iobuf_write_ptr() 309 size_t nbytes) in bhnd_nvram_iobuf_read() argument 315 if ((error = bhnd_nvram_io_read_ptr(io, offset, &ptr, nbytes, NULL))) in bhnd_nvram_iobuf_read() 319 memcpy(buffer, ptr, nbytes); in bhnd_nvram_iobuf_read() 325 void *buffer, size_t nbytes) in bhnd_nvram_iobuf_write() argument [all …]
|
| /freebsd-14.2/contrib/arm-optimized-routines/networking/arm/ |
| H A D | chksum_simd.c | 23 if (unlikely(nbytes < 40)) in __chksum_arm_simd() 31 Assert(nbytes >= 8); in __chksum_arm_simd() 47 nbytes -= 8 - off; in __chksum_arm_simd() 69 nbytes %= 64; in __chksum_arm_simd() 82 nbytes -= 16; in __chksum_arm_simd() 84 Assert(nbytes < 16); in __chksum_arm_simd() 101 if (nbytes & 8) in __chksum_arm_simd() 107 nbytes -= 8; in __chksum_arm_simd() 109 Assert(nbytes < 8); in __chksum_arm_simd() 112 if (likely(nbytes != 0)) in __chksum_arm_simd() [all …]
|
| /freebsd-14.2/sys/dev/random/fenestrasX/ |
| H A D | fx_brng.c | 164 size_t nbytes) in fxrng_brng_getbytes_internal() argument 170 if (__predict_false(nbytes == 0)) { in fxrng_brng_getbytes_internal() 177 memcpy(buf, &rng->brng_buffer[rng->brng_avail_idx], nbytes); in fxrng_brng_getbytes_internal() 179 rng->brng_avail_idx += nbytes; in fxrng_brng_getbytes_internal() 185 if (nbytes < sizeof(rng->brng_buffer)) { in fxrng_brng_getbytes_internal() 191 ASSERT_DEBUG(nbytes > rem, "invariant"); in fxrng_brng_getbytes_internal() 196 nbytes -= rem; in fxrng_brng_getbytes_internal() 197 ASSERT_DEBUG(nbytes != 0, "invariant"); in fxrng_brng_getbytes_internal() 209 memcpy(buf, &rng->brng_buffer[rng->brng_avail_idx], nbytes); in fxrng_brng_getbytes_internal() 211 rng->brng_avail_idx += nbytes; in fxrng_brng_getbytes_internal() [all …]
|
| /freebsd-14.2/lib/libc/stdio/ |
| H A D | fmemopen.c | 168 if (nbytes > ck->len - ck->off) in fmemopen_read() 169 nbytes = ck->len - ck->off; in fmemopen_read() 171 if (nbytes == 0) in fmemopen_read() 174 memcpy(buf, ck->buf + ck->off, nbytes); in fmemopen_read() 176 ck->off += nbytes; in fmemopen_read() 178 return (nbytes); in fmemopen_read() 186 if (nbytes > ck->size - ck->off) in fmemopen_write() 187 nbytes = ck->size - ck->off; in fmemopen_write() 189 if (nbytes == 0) in fmemopen_write() 194 ck->off += nbytes; in fmemopen_write() [all …]
|
| H A D | xprintf_str.c | 60 size_t clen, nbytes; in __wcsconv() local 66 nbytes = wcsrtombs(NULL, (const wchar_t **)&p, 0, &mbs); in __wcsconv() 67 if (nbytes == (size_t)-1) in __wcsconv() 76 nbytes = prec; in __wcsconv() 78 nbytes = 0; in __wcsconv() 84 (int)(nbytes + clen) > prec) in __wcsconv() 86 nbytes += clen; in __wcsconv() 90 if ((convbuf = malloc(nbytes + 1)) == NULL) in __wcsconv() 96 if ((nbytes = wcsrtombs(convbuf, (const wchar_t **)&p, in __wcsconv() 97 nbytes, &mbs)) == (size_t)-1) { in __wcsconv() [all …]
|
| /freebsd-14.2/sys/kern/ |
| H A D | vfs_extattr.c | 200 cnt = nbytes; in extattr_set_vp() 228 size_t nbytes; member 274 size_t nbytes; member 291 size_t nbytes; member 384 cnt = nbytes; in extattr_get_vp() 416 size_t nbytes; member 462 size_t nbytes; member 478 size_t nbytes; member 730 size_t nbytes; member 783 size_t nbytes; member [all …]
|
| /freebsd-14.2/lib/libc/db/btree/ |
| H A D | bt_split.c | 188 if (n < nbytes) { in __bt_split() 192 nbytes = n; in __bt_split() 200 nbytes = NRINTERNAL; in __bt_split() 519 u_int32_t nbytes; in bt_broot() local 530 nbytes = NBINTERNAL(0); in bt_broot() 602 u_int32_t nbytes; in bt_psplit() local 618 nbytes = ilen; in bt_psplit() 629 nbytes = NBLEAF(bl); in bt_psplit() 725 nbytes = NBLEAF(bl); in bt_psplit() 729 nbytes = NRINTERNAL; in bt_psplit() [all …]
|
| /freebsd-14.2/bin/sh/ |
| H A D | memalloc.c | 63 ckmalloc(size_t nbytes) in ckmalloc() argument 69 p = malloc(nbytes); in ckmalloc() 85 p = realloc(p, nbytes); in ckrealloc() 142 stnewblock(int nbytes) in stnewblock() argument 147 if (nbytes < MINSIZE) in stnewblock() 148 nbytes = MINSIZE; in stnewblock() 164 stalloc(int nbytes) in stalloc() argument 168 nbytes = ALIGN(nbytes); in stalloc() 170 stnewblock(nbytes); in stalloc() 172 stacknxt += nbytes; in stalloc() [all …]
|
| /freebsd-14.2/contrib/file/src/ |
| H A D | encoding.c | 80 size_t nbytes = b->flen; in file_encoding() local 96 if (nbytes > ms->encoding_max) in file_encoding() 97 nbytes = ms->encoding_max; in file_encoding() 157 from_ebcdic(buf, nbytes, nbuf); in file_encoding() 271 for (i = 0; i < nbytes; i++) { \ 361 for (i = 0; i < nbytes; i++) { in file_looks_utf8() 403 if (i >= nbytes) in file_looks_utf8() 472 if (nbytes < 2) in looks_ucs16() 485 for (i = 2; i + 1 < nbytes; i += 2) { in looks_ucs16() 531 if (nbytes < 4) in looks_ucs32() [all …]
|
| /freebsd-14.2/usr.sbin/fdread/ |
| H A D | fdread.c | 180 for (nbytes = 0; nbytes < mediasize;) { in doread() 181 if (lseek(fd, nbytes, SEEK_SET) != nbytes) in doread() 191 nbytes += rv; in doread() 201 if (lseek(fd, nbytes, SEEK_SET) != nbytes) in doread() 205 nbytes += rv; in doread() 208 nbytes / 1024); in doread() 266 nbytes, in doread() 267 nbytes + secsize - 1); in doread() 269 nbytes += secsize; in doread() 281 nbytes += rv; in doread() [all …]
|
| /freebsd-14.2/crypto/openssl/engines/ |
| H A D | e_padlock.c | 360 if (nbytes == 0) in padlock_cfb_cipher() 368 nbytes -= chunk; in padlock_cfb_cipher() 371 if (nbytes) { in padlock_cfb_cipher() 383 while (nbytes) { in padlock_cfb_cipher() 392 while (nbytes) { in padlock_cfb_cipher() 422 chunk++, nbytes--; in padlock_ofb_cipher() 428 if (nbytes == 0) in padlock_ofb_cipher() 436 nbytes -= chunk; in padlock_ofb_cipher() 439 if (nbytes) { in padlock_ofb_cipher() 448 while (nbytes) { in padlock_ofb_cipher() [all …]
|
| /freebsd-14.2/lib/libsecureboot/openpgp/ |
| H A D | dearmor.c | 42 dearmor(char *pem, size_t nbytes, size_t *len) in dearmor() argument 59 memmove(cp, ep, nbytes - (size_t)(ep - pem)); in dearmor() 60 nbytes -= (size_t)(ep - cp); in dearmor() 61 pem[nbytes] = '\0'; in dearmor() 69 memmove(cp, ep, nbytes - (size_t)(ep - pem)); in dearmor() 70 nbytes -= (size_t)(ep - cp); in dearmor() 71 pem[nbytes] = '\0'; in dearmor() 73 if ((po = decode_pem(pem, nbytes, &npo))) { in dearmor() 78 if ((bp = BIO_new_mem_buf(pem, (int)nbytes))) { in dearmor() 79 long llen = (long)nbytes; in dearmor()
|
| /freebsd-14.2/sys/netinet/libalias/ |
| H A D | alias_util.c | 74 int nbytes) in LibAliasInternetChecksum() argument 80 while (nbytes > 1) { in LibAliasInternetChecksum() 82 nbytes -= 2; in LibAliasInternetChecksum() 84 if (nbytes == 1) { in LibAliasInternetChecksum() 110 int nhdr, ntcp, nbytes; in TcpChecksum() local 120 nbytes = ntcp; in TcpChecksum() 122 while (nbytes > 1) { in TcpChecksum() 124 nbytes -= 2; in TcpChecksum() 126 if (nbytes == 1) { in TcpChecksum()
|
| /freebsd-14.2/libexec/rtld-elf/rtld-libc/ |
| H A D | rtld_libc.h | 80 #define pread(fd, buf, nbytes, offset) __sys_pread(fd, buf, nbytes, offset) argument 81 #define read(fd, buf, nbytes) __sys_read(fd, buf, nbytes) argument 84 #define _write(fd, buf, nbytes) __sys_write(fd, buf, nbytes) argument 85 #define write(fd, buf, nbytes) __sys_write(fd, buf, nbytes) argument
|
| /freebsd-14.2/lib/libc/locale/ |
| H A D | wcsnrtombs.c | 67 size_t nbytes; in __wcsnrtombs_std() local 71 nbytes = 0; in __wcsnrtombs_std() 79 return (nbytes + nb - 1); in __wcsnrtombs_std() 81 nbytes += nb; in __wcsnrtombs_std() 83 return (nbytes); in __wcsnrtombs_std() 115 return (nbytes + nb - 1); in __wcsnrtombs_std() 120 nbytes += nb; in __wcsnrtombs_std() 123 return (nbytes); in __wcsnrtombs_std()
|
| /freebsd-14.2/contrib/tcsh/ |
| H A D | tc.alloc.c | 177 malloc(size_t nbytes) in malloc() argument 198 nbytes++; in malloc() 201 nbytes = MEMALIGN(MEMALIGN(sizeof(union overhead)) + nbytes + RSLOP); in malloc() 202 shiftr = (nbytes - 1) >> 2; in malloc() 240 if (nbytes) in malloc() 386 realloc(ptr_t cp, size_t nbytes) in realloc() argument 396 return (malloc(nbytes)); in realloc() 423 nbytes = MEMALIGN(MEMALIGN(sizeof(union overhead))+nbytes+RSLOP); in realloc() 430 if ((res = malloc(nbytes)) == NULL) in realloc() 438 (void) memmove(res, cp, onb < nbytes ? onb : nbytes); in realloc() [all …]
|
| /freebsd-14.2/contrib/ntp/libntp/lib/isc/ |
| H A D | netaddr.c | 107 nbytes = prefixlen / 8; in isc_netaddr_eqprefix() 110 if (nbytes > 0) { in isc_netaddr_eqprefix() 116 INSIST(nbytes < ipabytes); in isc_netaddr_eqprefix() 118 bytea = pa[nbytes]; in isc_netaddr_eqprefix() 119 byteb = pb[nbytes]; in isc_netaddr_eqprefix() 237 nbytes = prefixlen / 8; in isc_netaddr_prefixok() 242 nbytes++; in isc_netaddr_prefixok() 244 if (memcmp(p + nbytes, zeros, ipbytes - nbytes) != 0) in isc_netaddr_prefixok() 270 nbytes = i; in isc_netaddr_masktoprefixlen() 272 unsigned int c = p[nbytes]; in isc_netaddr_masktoprefixlen() [all …]
|