| /f-stack/freebsd/kern/ |
| H A D | vfs_extattr.c | 199 cnt = nbytes; in extattr_set_vp() 227 size_t nbytes; member 263 size_t nbytes; member 280 size_t nbytes; member 362 cnt = nbytes; in extattr_get_vp() 394 size_t nbytes; member 430 size_t nbytes; member 446 size_t nbytes; member 650 cnt = nbytes; in extattr_list_vp() 681 size_t nbytes; member [all …]
|
| H A D | tty_outq.c | 280 ttyoutq_write(struct ttyoutq *to, const void *buf, size_t nbytes) in ttyoutq_write() argument 287 while (nbytes > 0) { in ttyoutq_write() 312 l = MIN(nbytes, TTYOUTQ_DATASIZE - boff); in ttyoutq_write() 317 nbytes -= l; in ttyoutq_write() 325 ttyoutq_write_nofrag(struct ttyoutq *to, const void *buf, size_t nbytes) in ttyoutq_write_nofrag() argument 329 if (ttyoutq_bytesleft(to) < nbytes) in ttyoutq_write_nofrag() 333 ret = ttyoutq_write(to, buf, nbytes); in ttyoutq_write_nofrag() 334 MPASS(ret == nbytes); in ttyoutq_write_nofrag()
|
| H A D | tty_inq.c | 281 ttyinq_write(struct ttyinq *ti, const void *buf, size_t nbytes, int quote) in ttyinq_write() argument 288 while (nbytes > 0) { in ttyinq_write() 313 l = MIN(nbytes, TTYINQ_DATASIZE - boff); in ttyinq_write() 321 nbytes -= l; in ttyinq_write() 329 ttyinq_write_nofrag(struct ttyinq *ti, const void *buf, size_t nbytes, int quote) in ttyinq_write_nofrag() argument 333 if (ttyinq_bytesleft(ti) < nbytes) in ttyinq_write_nofrag() 337 ret = ttyinq_write(ti, buf, nbytes, quote); in ttyinq_write_nofrag() 338 MPASS(ret == nbytes); in ttyinq_write_nofrag()
|
| H A D | kern_ctf.c | 58 int nbytes; local 125 nbytes = hdr->e_shnum * hdr->e_shentsize; 126 if (nbytes == 0 || hdr->e_shoff == 0 || 133 shdr = malloc(nbytes, M_LINKER, M_WAITOK); 136 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, (caddr_t)shdr, nbytes,
|
| H A D | kern_dump.c | 112 size_t nbytes; in dumpsys_buf_seek() local 118 nbytes = MIN(sz, sizeof(buf)); in dumpsys_buf_seek() 120 error = dump_append(di, buf, 0, nbytes); in dumpsys_buf_seek() 123 sz -= nbytes; in dumpsys_buf_seek()
|
| H A D | kern_sendfile.c | 678 struct uio *trl_uio, off_t offset, size_t nbytes, off_t *sent, int flags, in vn_sendfile() argument 736 rem = nbytes ? omin(nbytes, obj_size - offset) : obj_size - offset; in vn_sendfile() 889 rem = nbytes ? omin(nbytes + offset, obj_size) : in vn_sendfile() 1296 if (uap->nbytes > hdr_uio->uio_resid) in sendfile() 1297 uap->nbytes -= hdr_uio->uio_resid; in sendfile() 1299 uap->nbytes = 0; in sendfile() 1321 uap->nbytes, &sbytes, uap->flags, td); in sendfile() 1360 args.nbytes = uap->nbytes; in freebsd4_sendfile()
|
| /f-stack/freebsd/netinet/libalias/ |
| H A D | alias_util.c | 76 int nbytes) in LibAliasInternetChecksum() argument 82 while (nbytes > 1) { in LibAliasInternetChecksum() 84 nbytes -= 2; in LibAliasInternetChecksum() 86 if (nbytes == 1) { in LibAliasInternetChecksum() 112 int nhdr, ntcp, nbytes; in TcpChecksum() local 122 nbytes = ntcp; in TcpChecksum() 124 while (nbytes > 1) { in TcpChecksum() 126 nbytes -= 2; in TcpChecksum() 128 if (nbytes == 1) { in TcpChecksum()
|
| /f-stack/freebsd/crypto/aesni/ |
| H A D | aesni_ccm.c | 209 if (nbytes == 0 && abytes == 0) in AES_CCM_encrypt() 229 KASSERT(nbytes <= ((1 << (8 * L)) - 1), in AES_CCM_encrypt() 231 __FUNCTION__, nbytes, L)); in AES_CCM_encrypt() 239 key, nr, nbytes, tag_length); in AES_CCM_encrypt() 251 while (total < nbytes) { in AES_CCM_encrypt() 256 copy_amt = MIN(nbytes - total, sizeof(staging_block)); in AES_CCM_encrypt() 326 while (total < nbytes) { in decrypt_loop() 389 if (nbytes == 0 && abytes == 0) in AES_CCM_decrypt() 406 if (nbytes > ((1 << (8 * L)) - 1)) in AES_CCM_decrypt() 408 __FUNCTION__, nbytes, L); in AES_CCM_decrypt() [all …]
|
| H A D | aesni.h | 105 unsigned char *tag, uint32_t nbytes, uint32_t abytes, int ibytes, 109 const unsigned char *tag, uint32_t nbytes, uint32_t abytes, int ibytes, 115 unsigned char *tag, uint32_t nbytes, uint32_t abytes, int ibytes, 119 const unsigned char *tag, uint32_t nbytes, uint32_t abytes, int ibytes,
|
| H A D | aesni_ghash.c | 391 for (i=0; i<nbytes/16/8; i++) { in AES_GCM_encrypt() 480 for (k=i*8; k<nbytes/16; k++) { in AES_GCM_encrypt() 498 if (nbytes%16) { in AES_GCM_encrypt() 510 for (j=0; j<nbytes%16; j++) in AES_GCM_encrypt() 643 for (i = 0; i<nbytes/16/4; i++) { in AES_GCM_decrypt() 664 if (nbytes%16) { in AES_GCM_decrypt() 666 for (j=0; j<nbytes%16; j++) in AES_GCM_decrypt() 695 for (i=0; i<nbytes/16/8; i++) { in AES_GCM_decrypt() 777 for (k=i*8; k<nbytes/16; k++) { in AES_GCM_decrypt() 792 if (nbytes%16) { in AES_GCM_decrypt() [all …]
|
| /f-stack/freebsd/x86/isa/ |
| H A D | isa_dma.c | 238 dma_range_checked = isa_dmarangecheck(addr, nbytes, chan); in isa_dmastart() 244 if ((chan < 4 && nbytes > (1<<16)) in isa_dmastart() 269 || dma_bouncebufsize[chan] < nbytes) in isa_dmastart() 276 bcopy(addr, newaddr, nbytes); in isa_dmastart() 317 outb(waport + 1, --nbytes); in isa_dmastart() 318 outb(waport + 1, nbytes>>8); in isa_dmastart() 350 nbytes >>= 1; in isa_dmastart() 351 outb(waport + 2, --nbytes); in isa_dmastart() 352 outb(waport + 2, nbytes>>8); in isa_dmastart() 361 isa_dmadone(int flags, caddr_t addr, int nbytes, int chan) in isa_dmadone() argument [all …]
|
| /f-stack/tools/compat/ |
| H A D | if_nameindex.c | 86 int nbytes; in if_nameindex() local 98 nbytes = 0; in if_nameindex() 102 nbytes += strlen(ifa->ifa_name) + 1; in if_nameindex() 112 cp = malloc((ni + 1) * sizeof(struct if_nameindex) + nbytes); in if_nameindex()
|
| /f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/randwritecomp/ |
| H A D | randwritecomp.c | 56 rwc_pwrite(int fd, const void *buf, size_t nbytes, off_t offset) in rwc_pwrite() argument 58 size_t nleft = nbytes; in rwc_pwrite() 61 nwrite = pwrite(fd, buf, nbytes, offset); in rwc_pwrite() 71 (nbytes - nleft), nbytes); in rwc_pwrite()
|
| /f-stack/freebsd/arm/xilinx/ |
| H A D | zy7_qspi.c | 221 while (nbytes > 0) { in zy7_qspi_write_fifo() 222 nvalid = MIN(4, nbytes); in zy7_qspi_write_fifo() 267 nbytes -= nvalid; in zy7_qspi_write_fifo() 275 int n, nbytes; in zy7_qspi_read_fifo() local 286 if (nbytes < 4) in zy7_qspi_read_fifo() 287 data >>= 8 * (4 - nbytes); in zy7_qspi_read_fifo() 291 n = MIN(nbytes, sc->cmd->rx_cmd_sz - in zy7_qspi_read_fifo() 296 nbytes -= n; in zy7_qspi_read_fifo() 300 if (nbytes > 0) { in zy7_qspi_read_fifo() 304 &data, nbytes); in zy7_qspi_read_fifo() [all …]
|
| /f-stack/freebsd/mips/broadcom/ |
| H A D | bcm_nvram_cfe.c | 391 const void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_iocfe_read_ptr() argument 399 void **ptr, size_t nbytes, size_t *navail) in bhnd_nvram_iocfe_write_ptr() argument 407 size_t nbytes) in bhnd_nvram_iocfe_write() argument 415 size_t nbytes) in bhnd_nvram_iocfe_read() argument 436 if (INT64_MAX - cfe_offset < nbytes) in bhnd_nvram_iocfe_read() 440 for (remain = nbytes; remain > 0;) { in bhnd_nvram_iocfe_read() 445 nread = (nbytes - remain); in bhnd_nvram_iocfe_read()
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | zfs_vnops.c | 269 error = mappedread(zp, nbytes, uio); in zfs_read() 272 uio, nbytes); in zfs_read() 282 n -= nbytes; in zfs_read() 526 const ssize_t nbytes = in zfs_write() local 534 uio, nbytes, tx); in zfs_write() 568 ASSERT3S(nbytes, ==, max_blksz); in zfs_write() 583 ASSERT3S(nbytes, <=, uio->uio_resid); in zfs_write() 584 uioskip(uio, nbytes); in zfs_write() 585 tx_bytes = nbytes; in zfs_write() 656 ASSERT3S(tx_bytes, ==, nbytes); in zfs_write() [all …]
|
| /f-stack/dpdk/examples/vhost_blk/ |
| H A D | blk.c | 49 uint32_t nbytes = 0; in vhost_bdev_blk_readwrite() local 64 nbytes += task->iovs[i].iov_len; in vhost_bdev_blk_readwrite() 67 return nbytes; in vhost_bdev_blk_readwrite()
|
| /f-stack/dpdk/drivers/net/qede/base/ |
| H A D | eth_common.h | 566 __le16 nbytes /* Number of bytes in this BD. */; member 577 __le16 nbytes /* Number of bytes in this BD. */; member 612 __le16 nbytes /* Number of bytes in this BD. */; member 647 __le16 nbytes /* Number of bytes in this BD. */; member 673 __le16 nbytes /* Number of bytes in this BD. */; member
|
| /f-stack/app/nginx-1.16.1/src/os/unix/ |
| H A D | ngx_files.c | 89 size_t nbytes; member 133 return ctx->nbytes; in ngx_thread_read() 170 ctx->nbytes = n; in ngx_thread_read_handler() 510 if (ctx->err || ctx->nbytes == 0) { in ngx_thread_write_chain_to_file() 516 file->offset += ctx->nbytes; in ngx_thread_write_chain_to_file() 517 return ctx->nbytes; in ngx_thread_write_chain_to_file() 556 ctx->nbytes = 0; in ngx_thread_write_chain_to_file_handler() 581 ctx->nbytes = 0; in ngx_thread_write_chain_to_file_handler() 585 ctx->nbytes += n; in ngx_thread_write_chain_to_file_handler()
|
| H A D | ngx_file_aio_read.c | 95 return aio->nbytes; in ngx_file_aio_read() 192 aio->nbytes = n; in ngx_file_aio_result()
|
| /f-stack/freebsd/contrib/openzfs/module/zstd/ |
| H A D | zfs_zstd.c | 557 size_t nbytes = sizeof (struct zstd_kmem) + size; in zstd_alloc() local 560 z = (struct zstd_kmem *)zstd_mempool_alloc(zstd_mempool_cctx, nbytes); in zstd_alloc() 577 size_t nbytes = sizeof (struct zstd_kmem) + size; in zstd_dctx_alloc() local 581 z = (struct zstd_kmem *)zstd_mempool_alloc(zstd_mempool_dctx, nbytes); in zstd_dctx_alloc() 584 z = vmem_alloc(nbytes, KM_SLEEP); in zstd_dctx_alloc() 613 z->kmem_size = nbytes; in zstd_dctx_alloc()
|
| /f-stack/dpdk/lib/librte_telemetry/ |
| H A D | telemetry_data.c | 100 size_t nbytes, vbytes; in rte_tel_data_add_dict_string() local 110 nbytes = strlcpy(e->name, name, RTE_TEL_MAX_STRING_LEN); in rte_tel_data_add_dict_string() 112 nbytes >= RTE_TEL_MAX_STRING_LEN) in rte_tel_data_add_dict_string()
|
| /f-stack/freebsd/arm/freescale/vybrid/ |
| H A D | vf_edma.h | 133 uint32_t nbytes; member 162 uint32_t nbytes; member
|
| /f-stack/lib/ |
| H A D | ff_api.h | 87 ssize_t ff_read(int d, void *buf, size_t nbytes); 90 ssize_t ff_write(int fd, const void *buf, size_t nbytes);
|
| H A D | ff_syscall_wrapper.c | 691 ff_read(int fd, void *buf, size_t nbytes) in ff_read() argument 697 if (nbytes > INT_MAX) { in ff_read() 703 aiov.iov_len = nbytes; in ff_read() 706 auio.uio_resid = nbytes; in ff_read() 743 ff_write(int fd, const void *buf, size_t nbytes) in ff_write() argument 749 if (nbytes > INT_MAX) { in ff_write() 755 aiov.iov_len = nbytes; in ff_write() 758 auio.uio_resid = nbytes; in ff_write()
|