Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 82) sorted by relevance

1234

/f-stack/freebsd/kern/
H A Dvfs_extattr.c199 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 Dtty_outq.c280 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 Dtty_inq.c281 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 Dkern_ctf.c58 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 Dkern_dump.c112 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 Dkern_sendfile.c678 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 Dalias_util.c76 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 Daesni_ccm.c209 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 Daesni.h105 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 Daesni_ghash.c391 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 Disa_dma.c238 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 Dif_nameindex.c86 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 Drandwritecomp.c56 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 Dzy7_qspi.c221 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 Dbcm_nvram_cfe.c391 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 Dzfs_vnops.c269 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 Dblk.c49 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 Deth_common.h566 __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 Dngx_files.c89 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 Dngx_file_aio_read.c95 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 Dzfs_zstd.c557 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 Dtelemetry_data.c100 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 Dvf_edma.h133 uint32_t nbytes; member
162 uint32_t nbytes; member
/f-stack/lib/
H A Dff_api.h87 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 Dff_syscall_wrapper.c691 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()

1234