Searched refs:nbytes (Results 1 - 25 of 264) sorted by relevance

1234567891011

/freebsd-current/crypto/heimdal/lib/roken/
H A Dswab.c40 swab (char *from, char *to, int nbytes) argument
42 while(nbytes >= 2) {
47 nbytes -= 2;
H A Dewrite.c43 ewrite (int fd, const void *buf, size_t nbytes) argument
47 ret = net_write (fd, buf, nbytes);
H A Deread.c43 eread (int fd, void *buf, size_t nbytes) argument
47 ret = net_read (fd, buf, nbytes);
H A Dnet_read.c45 net_read (rk_socket_t fd, void *buf, size_t nbytes) argument
49 size_t rem = nbytes;
64 return nbytes;
70 net_read(rk_socket_t sock, void *buf, size_t nbytes) argument
74 size_t rem = nbytes;
115 return nbytes;
H A Dnet_write.c45 net_write (rk_socket_t fd, const void *buf, size_t nbytes) argument
49 size_t rem = nbytes;
62 return nbytes;
68 net_write(rk_socket_t sock, const void *buf, size_t nbytes) argument
72 size_t rem = nbytes;
104 return nbytes;
/freebsd-current/contrib/arm-optimized-routines/networking/
H A Dchksum.c14 slurp_head32(const void **pptr, uint32_t *nbytes) argument
17 Assert(*nbytes >= 4);
26 *nbytes -= 4 - off;
33 __chksum(const void *ptr, unsigned int nbytes) argument
38 if (nbytes > 300)
42 sum = slurp_head32(&ptr, &nbytes);
48 for (uint32_t nquads = nbytes / 16; nquads != 0; nquads--)
57 nbytes %= 16;
58 Assert(nbytes < 16);
61 while (nbytes >
[all...]
/freebsd-current/lib/libc/sys/
H A Dgetdents.c34 getdents(int fd, char *buf, size_t nbytes) argument
37 return (__sys_getdirentries(fd, buf, nbytes, NULL));
H A Dread.c41 read(int fd, void *buf, size_t nbytes) argument
43 return (INTERPOS_SYS(read, fd, buf, nbytes));
H A Dwrite.c41 write(int fd, const void *buf, size_t nbytes) argument
43 return (INTERPOS_SYS(write, fd, buf, nbytes));
/freebsd-current/usr.sbin/bhyve/
H A Dsockstream.h32 ssize_t stream_read(int fd, void *buf, ssize_t nbytes);
33 ssize_t stream_write(int fd, const void *buf, ssize_t nbytes);
H A Dsockstream.c37 stream_read(int fd, void *buf, ssize_t nbytes) argument
45 while (len < nbytes) {
46 n = read(fd, p + len, nbytes - len);
61 stream_write(int fd, const void *buf, ssize_t nbytes) argument
69 while (len < nbytes) {
70 n = write(fd, p + len, nbytes - len);
/freebsd-current/contrib/arm-optimized-routines/networking/aarch64/
H A Dchksum_simd.c19 slurp_head64(const void **pptr, uint32_t *nbytes) argument
21 Assert(*nbytes >= 8);
34 *nbytes -= 8 - off;
41 slurp_tail64(uint64_t sum, const void *ptr, uint32_t nbytes) argument
43 Assert(nbytes < 8);
44 if (likely(nbytes != 0))
46 /* Get rid of bytes 7..nbytes */
47 uint64_t mask = ALL_ONES >> (CHAR_BIT * (8 - nbytes));
48 Assert(__builtin_popcountl(mask) / CHAR_BIT == nbytes);
52 nbytes
59 __chksum_aarch64_simd(const void *ptr, unsigned int nbytes) argument
[all...]
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/speculation/
H A Derr.D_ACT_SPEC.SpeculateWithCopyOut.d43 size_t nbytes;
48 nbytes = 10;
57 copyout(buf, addr, nbytes);
/freebsd-current/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_iores.c162 const void **ptr, size_t nbytes, size_t *navail)
170 void **ptr, size_t nbytes, size_t *navail)
177 * Validate @p offset and @p nbytes:
180 * - If less than @p nbytes are available at @p offset, write the actual number
181 * of bytes available to @p nbytes.
182 * - Verify that @p offset + @p nbytes are correctly aligned.
186 size_t *nbytes)
194 *nbytes = 0;
202 /* Limit nbytes to available range and verify size alignment */
203 *nbytes
161 bhnd_nvram_iores_read_ptr(struct bhnd_nvram_io *io, size_t offset, const void **ptr, size_t nbytes, size_t *navail) argument
169 bhnd_nvram_iores_write_ptr(struct bhnd_nvram_io *io, size_t offset, void **ptr, size_t nbytes, size_t *navail) argument
185 bhnd_nvram_iores_validate_req(struct bhnd_nvram_iores *iores, size_t offset, size_t *nbytes) argument
211 bhnd_nvram_iores_read(struct bhnd_nvram_io *io, size_t offset, void *buffer, size_t nbytes) argument
258 bhnd_nvram_iores_write(struct bhnd_nvram_io *io, size_t offset, void *buffer, size_t nbytes) argument
[all...]
H A Dbhnd_nvram_io.c43 * Read exactly @p nbytes from @p io at @p offset.
47 * @param[out] buffer Output buffer to which @p nbytes from @p io will be
49 * @param nbytes The maximum number of bytes to be read from @p io.
53 * @retval ENXIO if the request for @p offset or @p nbytes exceeds the size
57 * @retval EFAULT if @p io requires I/O request alignment and @p nbytes is
62 size_t nbytes)
64 return (io->iops->read(io, offset, buffer, nbytes));
79 * @param nbytes The minimum number of bytes that must be readable at @p offset.
81 * than @p nbytes. If this value is not required, a NULL pointer may be
90 * @p nbytes ar
61 bhnd_nvram_io_read(struct bhnd_nvram_io *io, size_t offset, void *buffer, size_t nbytes) argument
93 bhnd_nvram_io_read_ptr(struct bhnd_nvram_io *io, size_t offset, const void **ptr, size_t nbytes, size_t *navail) argument
117 bhnd_nvram_io_write(struct bhnd_nvram_io *io, size_t offset, void *buffer, size_t nbytes) argument
151 bhnd_nvram_io_write_ptr(struct bhnd_nvram_io *io, size_t offset, void **ptr, size_t nbytes, size_t *navail) argument
[all...]
/freebsd-current/contrib/ntp/include/
H A Dntp_random.h5 int ntp_crypto_random_buf(void *buf, size_t nbytes);
/freebsd-current/sys/dev/random/fenestrasX/
H A Dfx_pub.h51 void read_random_key(void *buf, size_t nbytes, uint64_t *seed_version_out);
/freebsd-current/libexec/rtld-elf/
H A Drtld_malloc.h38 void *__crt_malloc(size_t nbytes);
39 void *__crt_realloc(void *cp, size_t nbytes);
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_random_private.h34 int archive_random(void *buf, size_t nbytes);
/freebsd-current/contrib/arm-optimized-routines/networking/arm/
H A Dchksum_simd.c18 __chksum_arm_simd(const void *ptr, unsigned int nbytes) argument
23 if (unlikely(nbytes < 40))
25 uint64_t sum = slurp_small(ptr, nbytes);
31 Assert(nbytes >= 8);
47 nbytes -= 8 - off;
57 for (uint32_t i = 0; i < nbytes / 64; i++)
69 nbytes %= 64;
77 while (likely(nbytes >= 16))
82 nbytes -= 16;
84 Assert(nbytes < 1
[all...]
/freebsd-current/contrib/ntp/libntp/
H A Dntp_crypto_rnd.c92 size_t nbytes
99 if (1 != RAND_bytes(buf, size2int_chk(nbytes))) {
110 arc4random_buf(buf, nbytes);
112 evutil_secure_rng_get_bytes(buf, nbytes);
/freebsd-current/lib/libc/stdio/
H A Dfmemopen.c46 static int fmemopen_read(void *cookie, char *buf, int nbytes);
47 static int fmemopen_write(void *cookie, const char *buf, int nbytes);
164 fmemopen_read(void *cookie, char *buf, int nbytes) argument
168 if (nbytes > ck->len - ck->off)
169 nbytes = ck->len - ck->off;
171 if (nbytes == 0)
174 memcpy(buf, ck->buf + ck->off, nbytes);
176 ck->off += nbytes;
178 return (nbytes);
182 fmemopen_write(void *cookie, const char *buf, int nbytes) argument
[all...]
/freebsd-current/lib/libc/locale/
H A Dwcsnrtombs.c67 size_t nbytes; local
71 nbytes = 0;
79 return (nbytes + nb - 1);
81 nbytes += nb;
83 return (nbytes);
115 return (nbytes + nb - 1);
120 nbytes += nb;
123 return (nbytes);
/freebsd-current/libexec/rtld-elf/rtld-libc/
H A Drtld_libc.h79 #define pread(fd, buf, nbytes, offset) __sys_pread(fd, buf, nbytes, offset)
80 #define read(fd, buf, nbytes) __sys_read(fd, buf, nbytes)
83 #define _write(fd, buf, nbytes) __sys_write(fd, buf, nbytes)
84 #define write(fd, buf, nbytes) __sys_write(fd, buf, nbytes)
/freebsd-current/contrib/expat/xmlwf/
H A Dunixfilemap.c64 size_t nbytes; local
88 nbytes = sb.st_size;
90 if (nbytes == 0) {
96 p = (void *)mmap((void *)0, (size_t)nbytes, PROT_READ, MAP_FILE | MAP_PRIVATE,
103 processor(p, nbytes, name, arg);
104 munmap((void *)p, nbytes);

Completed in 187 milliseconds

1234567891011