Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 20 of 20) sorted by relevance

/f-stack/freebsd/contrib/openzfs/lib/libzutil/
H A Dzutil_pool.c105 zpool_history_unpack(char *buf, uint64_t bytes_read, uint64_t *leftover, in zpool_history_unpack() argument
113 while (bytes_read > sizeof (reclen)) { in zpool_history_unpack()
119 if (bytes_read < sizeof (reclen) + reclen) in zpool_history_unpack()
125 bytes_read -= sizeof (reclen) + reclen; in zpool_history_unpack()
143 *leftover = bytes_read; in zpool_history_unpack()
/f-stack/tools/libutil/
H A Duucplock.c211 int bytes_read; in get_pid() local
215 bytes_read = read (fd, buf, sizeof (buf) - 1); in get_pid()
216 if (bytes_read > 0) { in get_pid()
217 buf[bytes_read] = '\0'; in get_pid()
221 *err = bytes_read ? errno : EINVAL; in get_pid()
/f-stack/dpdk/lib/librte_eal/freebsd/
H A Deal_interrupts.c446 int n, bytes_read; in eal_intr_process_interrupts() local
468 bytes_read = 0; in eal_intr_process_interrupts()
473 bytes_read = 0; in eal_intr_process_interrupts()
477 bytes_read = 0; in eal_intr_process_interrupts()
481 bytes_read = 1; in eal_intr_process_interrupts()
485 if (bytes_read > 0) { in eal_intr_process_interrupts()
490 bytes_read = read(event_fd, &buf, bytes_read); in eal_intr_process_interrupts()
491 if (bytes_read < 0) { in eal_intr_process_interrupts()
499 } else if (bytes_read == 0) in eal_intr_process_interrupts()
/f-stack/dpdk/lib/librte_eal/linux/
H A Deal_interrupts.c867 int n, bytes_read, rv; in eal_intr_process_interrupts() local
916 bytes_read = 0; in eal_intr_process_interrupts()
923 bytes_read = 0; in eal_intr_process_interrupts()
927 bytes_read = 0; in eal_intr_process_interrupts()
931 bytes_read = 1; in eal_intr_process_interrupts()
935 if (bytes_read > 0) { in eal_intr_process_interrupts()
940 bytes_read = read(events[n].data.fd, &buf, bytes_read); in eal_intr_process_interrupts()
941 if (bytes_read < 0) { in eal_intr_process_interrupts()
1173 int bytes_read = 0; in eal_intr_proc_rxtx_intr() local
1195 bytes_read = 1; in eal_intr_proc_rxtx_intr()
[all …]
/f-stack/freebsd/security/mac_veriexec_parser/
H A Dmac_veriexec_parser.c263 ssize_t bytes_read, resid; in read_manifest() local
267 bytes_read = 0; in read_manifest()
279 while (bytes_read < va.va_size) { in read_manifest()
282 va.va_size - bytes_read, bytes_read, in read_manifest()
288 bytes_read = va.va_size - resid; in read_manifest()
291 data[bytes_read] = '\0'; in read_manifest()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/xattrtest/
H A Dxattrtest.c423 ssize_t bytes_read = 0; in get_random_bytes() local
430 while (bytes_read < bytes) { in get_random_bytes()
431 ssize_t rc = read(rand, buf + bytes_read, bytes - bytes_read); in get_random_bytes()
434 bytes_read += rc; in get_random_bytes()
439 return (bytes_read); in get_random_bytes()
/f-stack/freebsd/contrib/octeon-sdk/
H A Docteon-pci-console.c369 int bytes_read; in octeon_pci_console_read() local
396 bytes_read = 0; in octeon_pci_console_read()
408 bytes_read += read_size; in octeon_pci_console_read()
411 return(bytes_read); in octeon_pci_console_read()
/f-stack/dpdk/drivers/net/ice/base/
H A Dice_nvm.c72 u32 bytes_read = 0; in ice_read_flat_nvm() local
95 inlen - bytes_read); in ice_read_flat_nvm()
97 last_cmd = !(bytes_read + read_size < inlen); in ice_read_flat_nvm()
105 data + bytes_read, last_cmd, in ice_read_flat_nvm()
110 bytes_read += read_size; in ice_read_flat_nvm()
114 *length = bytes_read; in ice_read_flat_nvm()
/f-stack/freebsd/contrib/openzfs/contrib/pam_zfs_key/
H A Dpam_zfs_key.c221 int bytes_read = 0; in prepare_passphrase() local
224 while (bytes_read < bytes) { in prepare_passphrase()
225 ssize_t len = read(fd, buf + bytes_read, bytes in prepare_passphrase()
226 - bytes_read); in prepare_passphrase()
232 bytes_read += len; in prepare_passphrase()
/f-stack/dpdk/drivers/net/dpaa/
H A Ddpaa_fmc.c391 size_t bytes_read; in dpaa_port_fmc_init() local
406 bytes_read = fread(g_fmc_model, in dpaa_port_fmc_init()
408 if (!bytes_read) { in dpaa_port_fmc_init()
H A Ddpaa_flow.c141 size_t bytes_read; in dpaa_read_fm_config_from_file() local
149 bytes_read = fread(&fm_model, sizeof(struct dpaa_fm_model), 1, fp); in dpaa_read_fm_config_from_file()
150 if (!bytes_read) { in dpaa_read_fm_config_from_file()
H A Ddpaa_ethdev.c386 int bytes_read; in dpaa_interrupt_handler() local
391 bytes_read = read(intr_handle->fd, &buf, sizeof(uint64_t)); in dpaa_interrupt_handler()
392 if (bytes_read < 0) in dpaa_interrupt_handler()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/draid/
H A Ddraid.c845 ssize_t bytes_read = 0; in draid_generate() local
847 while (bytes_read < bytes) { in draid_generate()
848 ssize_t rc = read(fd, ((char *)&map_seed) + bytes_read, in draid_generate()
849 bytes - bytes_read); in draid_generate()
855 bytes_read += rc; in draid_generate()
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_crypto.c78 ssize_t bytes_read = 0; in pkcs11_get_urandom() local
85 while (bytes_read < bytes) { in pkcs11_get_urandom()
86 ssize_t rc = read(rand, buf + bytes_read, bytes - bytes_read); in pkcs11_get_urandom()
89 bytes_read += rc; in pkcs11_get_urandom()
94 return (bytes_read); in pkcs11_get_urandom()
H A Dlibzfs_pool.c4310 uint64_t bytes_read = buflen; in zpool_get_history() local
4313 if ((err = get_history(zhp, buf, off, &bytes_read)) != 0) in zpool_get_history()
4317 if (!bytes_read) { in zpool_get_history()
4322 if ((err = zpool_history_unpack(buf, bytes_read, in zpool_get_history()
4326 if (leftover == bytes_read) { in zpool_get_history()
/f-stack/dpdk/drivers/bus/vmbus/
H A Drte_bus_vmbus.h355 void rte_vmbus_chan_signal_read(struct vmbus_channel *chan, uint32_t bytes_read);
H A Dvmbus_channel.c194 void rte_vmbus_chan_signal_read(struct vmbus_channel *chan, uint32_t bytes_read) in rte_vmbus_chan_signal_read() argument
214 if (write_sz - bytes_read > pending_sz) in rte_vmbus_chan_signal_read()
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Ddmu_recv.c87 uint64_t bytes_read; /* bytes read from stream when record created */ member
113 uint64_t bytes_read; /* bytes read when current record created */ member
1302 ASSERT(rwa->bytes_read != 0); in save_resume_state()
1318 ASSERT3U(rwa->bytes_read, >=, in save_resume_state()
1323 rwa->os->os_dsl_dataset->ds_resume_bytes[txgoff] = rwa->bytes_read; in save_resume_state()
2379 drc->drc_rrd->bytes_read = drc->drc_bytes_read; in receive_read_payload_and_next_header()
2390 drc->drc_next_rrd->bytes_read = drc->drc_bytes_read; in receive_read_payload_and_next_header()
2688 ASSERT3U(rrd->bytes_read, >=, rwa->bytes_read); in receive_process_record()
2689 rwa->bytes_read = rrd->bytes_read; in receive_process_record()
/f-stack/dpdk/drivers/net/netvsc/
H A Dhn_rxtx.c1067 uint32_t bytes_read = 0; in hn_process_events() local
1111 bytes_read += ret; in hn_process_events()
1138 if (bytes_read > 0) in hn_process_events()
1139 rte_vmbus_chan_signal_read(rxq->chan, bytes_read); in hn_process_events()
/f-stack/freebsd/contrib/openzfs/lib/libzfs_core/
H A Dlibzfs_core.abi1483 …<parameter type-id='type-id-6' name='bytes_read' filepath='/home/fedora/zfs/lib/libzutil/zutil_poo…