Home
last modified time | relevance | path

Searched refs:nbyte (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-13-stable/crypto/openssl/crypto/pem/
HDpvkfmt.c45 static int read_lebn(const unsigned char **in, unsigned int nbyte, BIGNUM **r) in read_lebn() argument
47 *r = BN_lebin2bn(*in, nbyte, NULL); in read_lebn()
50 *in += nbyte; in read_lebn()
151 unsigned int nbyte, hnbyte; in blob_length() local
152 nbyte = (bitlen + 7) >> 3; in blob_length()
161 return 44 + 3 * nbyte; in blob_length()
167 return 64 + 2 * nbyte; in blob_length()
171 return 4 + nbyte; in blob_length()
177 return 4 + 2 * nbyte + 5 * hnbyte; in blob_length()
251 unsigned int nbyte; in b2i_dss() local
[all …]
/freebsd-13-stable/tools/tools/kttcp/sys/
HDkttcp.c145 static int nbyte = 65536; variable
174 nbyte = MIN(len, (unsigned long long)nbyte); in kttcp_send()
175 aiov.iov_len = nbyte; in kttcp_send()
176 auio.uio_resid = nbyte; in kttcp_send()
222 nbyte = MIN(len, (unsigned long long)nbyte); in kttcp_recv()
223 aiov.iov_len = nbyte; in kttcp_recv()
224 auio.uio_resid = nbyte; in kttcp_recv()
/freebsd-13-stable/stand/libsa/
HDufsread.c166 fsread_size(ufs_ino_t inode, void *buf, size_t nbyte, size_t *fsizep) in fsread_size() argument
187 if ((buf == NULL && nbyte != 0) || dmadat == NULL) in fsread_size()
256 if (nbyte > n) in fsread_size()
257 nbyte = n; in fsread_size()
258 nb = nbyte; in fsread_size()
315 return nbyte; in fsread_size()
319 fsread(ufs_ino_t inode, void *buf, size_t nbyte) in fsread() argument
322 return fsread_size(inode, buf, nbyte, NULL); in fsread()
HDdosfs.c365 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) in dos_read() argument
379 nb = (u_int)nbyte; in dos_read()
417 *resid = nbyte - nb + cnt; in dos_read()
851 u_int val_in, val_out, offset, blknum, nbyte; in fatget() local
862 nbyte = fs->fatsz != 32 ? 2 : 4; in fatget()
863 if (offset + nbyte > secbyt(fs->spf)) in fatget()
867 if (offset + nbyte > FATBLKSZ) in fatget()
912 ioread(DOS_FS *fs, u_int offset, void *buf, size_t nbyte) in ioread() argument
922 if ((n = SECSIZ - off) > nbyte) in ioread()
923 n = nbyte; in ioread()
[all …]
/freebsd-13-stable/usr.sbin/btxld/
HDbtxld.c442 copy(int fdi, int fdo, size_t nbyte, off_t offset) in copy() argument
447 while (nbyte) { in copy()
448 if ((n = sizeof(buf)) > nbyte) in copy()
449 n = nbyte; in copy()
453 nbyte -= n; in copy()
462 readx(int fd, void *buf, size_t nbyte, off_t offset) in readx() argument
468 if ((n = read(fd, buf, nbyte)) == -1) in readx()
477 writex(int fd, const void *buf, size_t nbyte) in writex() argument
481 if ((n = write(fd, buf, nbyte)) == -1) in writex()
483 if ((size_t)n != nbyte) in writex()
/freebsd-13-stable/stand/kboot/
HDhost_syscalls.c116 host_read(int fd, void *buf, size_t nbyte) in host_read() argument
118 return host_syscall(SYS_read, fd, (uintptr_t)buf, nbyte); in host_read()
162 host_write(int fd, const void *buf, size_t nbyte) in host_write() argument
164 return host_syscall(SYS_write, fd, (uintptr_t)buf, nbyte); in host_write()
HDhost_syscall.h191 ssize_t host_read(int fd, void *buf, size_t nbyte);
198 ssize_t host_write(int fd, const void *buf, size_t nbyte);
/freebsd-13-stable/sys/kern/
HDsys_generic.c187 size_t nbyte; member
197 if (uap->nbyte > IOSIZE_MAX) in sys_read()
200 aiov.iov_len = uap->nbyte; in sys_read()
203 auio.uio_resid = uap->nbyte; in sys_read()
216 size_t nbyte; member
225 return (kern_pread(td, uap->fd, uap->buf, uap->nbyte, uap->offset)); in sys_pread()
229 kern_pread(struct thread *td, int fd, void *buf, size_t nbyte, off_t offset) in kern_pread() argument
235 if (nbyte > IOSIZE_MAX) in kern_pread()
238 aiov.iov_len = nbyte; in kern_pread()
241 auio.uio_resid = nbyte; in kern_pread()
[all …]
/freebsd-13-stable/contrib/apr-util/include/
HDapr_buckets.h830 const char *str, apr_size_t nbyte);
1378 apr_size_t nbyte,
1390 apr_size_t nbyte);
1400 apr_size_t nbyte,
1412 apr_size_t nbyte);
1429 apr_size_t nbyte,
1442 apr_size_t nbyte,
/freebsd-13-stable/tools/tools/vhba/medium/
HDvhba_medium.c125 unsigned int nbyte; in vhbamedium_act() local
249 nbyte = (char *)ptr - &junk[0]; in vhbamedium_act()
250 ptr[0] = nbyte - 4; in vhbamedium_act()
258 data_len = min(data_len, nbyte); in vhbamedium_act()
/freebsd-13-stable/tools/tools/vhba/lots/
HDvhba_lots.c125 unsigned int nbyte; in vhbalots_act() local
249 nbyte = (char *)ptr - &junk[0]; in vhbalots_act()
250 ptr[0] = nbyte - 4; in vhbalots_act()
258 data_len = min(data_len, nbyte); in vhbalots_act()
/freebsd-13-stable/tools/tools/vhba/simple/
HDvhba_simple.c125 unsigned int nbyte; in vhbasimple_act() local
249 nbyte = (char *)ptr - &junk[0]; in vhbasimple_act()
250 ptr[0] = nbyte - 4; in vhbasimple_act()
258 data_len = min(data_len, nbyte); in vhbasimple_act()
/freebsd-13-stable/stand/i386/boot2/
HDboot2.c149 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
152 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread()
204 size_t nbyte; in main() local
222 nbyte = fsread(ino, cmd, sizeof(cmd) - 1); in main()
223 cmd[nbyte] = '\0'; in main()
/freebsd-13-stable/tools/tools/vhba/rptluns/
HDvhba_rptluns.c154 unsigned int nbyte; in vhbarptluns_act() local
278 nbyte = (char *)ptr - &junk[0]; in vhbarptluns_act()
279 ptr[0] = nbyte - 4; in vhbarptluns_act()
287 data_len = min(data_len, nbyte); in vhbarptluns_act()
/freebsd-13-stable/tools/tools/vhba/faulty/
HDvhba_faulty.c139 unsigned int nbyte; in faulty_act() local
263 nbyte = (char *)ptr - &junk[0]; in faulty_act()
264 ptr[0] = nbyte - 4; in faulty_act()
272 data_len = min(data_len, nbyte); in faulty_act()
/freebsd-13-stable/contrib/apr-util/buckets/
HDapr_brigade.c432 const char *str, apr_size_t nbyte) in apr_brigade_write() argument
451 if (nbyte > remaining) { in apr_brigade_write()
456 e = apr_bucket_transient_create(str, nbyte, b->bucket_alloc); in apr_brigade_write()
461 e = apr_bucket_heap_create(str, nbyte, NULL, b->bucket_alloc); in apr_brigade_write()
482 memcpy(buf, str, nbyte); in apr_brigade_write()
483 e->length += nbyte; in apr_brigade_write()
/freebsd-13-stable/contrib/tcsh/
HDsh.misc.c684 xread(int fildes, void *buf, size_t nbyte) in xread() argument
693 while ((res = read(fildes, buf, nbyte)) == -1 && errno == EINTR); in xread()
712 xwrite(int fildes, const void *buf, size_t nbyte) in xwrite() argument
721 while ((res = write(fildes, buf, nbyte)) == -1 && errno == EINTR); in xwrite()
/freebsd-13-stable/tools/tools/vhba/mptest/
HDvhba_mptest.c165 unsigned int nbyte; in mptest_act() local
289 nbyte = (char *)ptr - &junk[0]; in mptest_act()
290 ptr[0] = nbyte - 4; in mptest_act()
298 data_len = min(data_len, nbyte); in mptest_act()
/freebsd-13-stable/stand/i386/isoboot/
HDisoboot.c110 xfsread(uint64_t inode, void *buf, size_t nbyte) in xfsread() argument
113 if ((size_t)cd9660_fsread(inode, buf, nbyte) != nbyte) { in xfsread()
/freebsd-13-stable/stand/i386/gptboot/
HDgptboot.c127 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
130 if ((size_t)fsread(inode, buf, nbyte) != nbyte) { in xfsread()
/freebsd-13-stable/contrib/llvm-project/compiler-rt/include/sanitizer/
HDnetbsd_syscall_hooks.h49 #define __sanitizer_syscall_pre_read(fd, buf, nbyte) \ argument
51 (long long)(nbyte))
52 #define __sanitizer_syscall_post_read(res, fd, buf, nbyte) \ argument
54 (long long)(nbyte))
55 #define __sanitizer_syscall_pre_write(fd, buf, nbyte) \ argument
57 (long long)(nbyte))
58 #define __sanitizer_syscall_post_write(res, fd, buf, nbyte) \ argument
60 (long long)(nbyte))
919 #define __sanitizer_syscall_pre_pread(fd, buf, nbyte, PAD, offset) \ argument
921 (long long)(nbyte), (long long)(PAD), \
[all …]
/freebsd-13-stable/sys/dev/bhnd/nvram/
HDbhnd_nvram_data_sprom.c1144 size_t nbyte; in bhnd_nvram_sprom_read_var() local
1228 nbyte = iwidth; in bhnd_nvram_sprom_read_var()
1230 intv_type, ptr, &nbyte, var_btype); in bhnd_nvram_sprom_read_var()
/freebsd-13-stable/sys/sys/
HDsyscallsubr.h254 int kern_pread(struct thread *td, int fd, void *buf, size_t nbyte,
261 int kern_pwrite(struct thread *td, int fd, const void *buf, size_t nbyte,
/freebsd-13-stable/sys/compat/freebsd32/
HDfreebsd32_proto.h414 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; member
422 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; member
460 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; member
467 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; member
1065 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; member
1073 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)]; member
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
HDTargetLibraryInfo.def550 /// void* __kmpc_alloc_shared(size_t nbyte);
555 /// void __kmpc_free_shared(void *ptr, size_t nbyte);
1870 /// ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset);
1905 /// ssize_t pwrite(int fildes, const void *buf, size_t nbyte, off_t offset);
1916 /// ssize_t read(int fildes, void *buf, size_t nbyte);
2472 /// ssize_t write(int fildes, const void *buf, size_t nbyte);

12