Searched refs:bytes (Results 151 - 175 of 683) sorted by relevance

1234567891011>>

/freebsd-11-stable/crypto/openssl/apps/
H A Dtsget19 if ($state->{bytes} < $data_len) {
20 $data_len = $data_len - $state->{bytes};
22 $return_data = substr ${$state->{data}}, $state->{bytes}, $data_len;
23 $state->{bytes} += $data_len;
88 $curl->setopt(CURLOPT_INFILE, {data => $body, bytes => 0});
/freebsd-11-stable/sys/dev/etherswitch/rtl8366/
H A Drtl8366rb.c360 char bytes[2]; local
384 bytes[0] = RTL8366RB_CIR & 0xff;
385 bytes[1] = (RTL8366RB_CIR >> 8) & 0xff;
387 bytes[0] = RTL8366SR_CIR & 0xff;
388 bytes[1] = (RTL8366SR_CIR >> 8) & 0xff;
390 err = iicbus_write(iicbus, bytes, 2, &xferd, RTL_IICBUS_TIMEOUT);
393 err = iicbus_read(iicbus, bytes, 2, &xferd, IIC_LAST_READ, 0);
396 chipid = ((bytes[1] & 0xff) << 8) | (bytes[0] & 0xff);
502 char bytes[ local
531 char bytes[4]; local
[all...]
/freebsd-11-stable/usr.bin/fetch/
H A Dfetch.c198 off_t rcvd; /* bytes already received */
199 off_t lastrcvd; /* bytes received since last update */
248 stat_bytes(char *str, size_t strsz, off_t bytes) argument
252 while (bytes > 9999 && prefix[1] != '\0') {
253 bytes /= 1024;
256 snprintf(str, strsz, "%4ju %cB", (uintmax_t)bytes, *prefix);
265 char bytes[16]; local
275 stat_bytes(bytes, sizeof bytes, (off_t)bps);
276 snprintf(str, strsz, "%sps", bytes);
286 char bytes[16], bps[16], eta[16]; local
369 char bytes[16], bps[16], eta[16]; local
[all...]
/freebsd-11-stable/sys/mips/atheros/
H A Dar724x_pci.c96 ar724x_pci_write(uint32_t reg, uint32_t offset, uint32_t data, int bytes) argument
102 if (bytes % 4)
103 mask = (1 << (bytes * 8)) - 1;
112 dprintf("%s: %#x/%#x addr=%#x, data=%#x(%#x), bytes=%d\n", __func__,
113 reg, reg + (offset & ~3), offset, data, val, bytes);
118 u_int reg, int bytes)
126 if (bytes == 2)
128 else if (bytes == 1)
134 func, reg, bytes);
141 /* Get request bytes fro
117 ar724x_pci_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, int bytes) argument
150 ar724x_pci_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, uint32_t data, int bytes) argument
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dmd5.c31 * To compute the message digest of a chunk of bytes, declare an
33 * needed on buffers full of bytes, and then call MD5Final, which
93 ctx->bytes[0] = 0;
94 ctx->bytes[1] = 0;
119 * the data and converts bytes into longwords for this routine.
206 * of bytes.
214 t = ctx->bytes[0];
215 if ((ctx->bytes[0] = t + len) < t)
216 ctx->bytes[1]++; /* Carry from low to high */
239 /* Handle any remaining bytes o
[all...]
/freebsd-11-stable/sys/dev/iicbus/
H A Diicsmb.c357 uint8_t bytes[] = { cmd, byte }; local
359 { slave, IIC_M_WR, nitems(bytes), bytes },
370 uint8_t bytes[] = { cmd, word & 0xff, word >> 8 }; local
372 { slave, IIC_M_WR, nitems(bytes), bytes },
429 uint8_t bytes[2] = { cmd, count }; local
431 { slave, IIC_M_WR | IIC_M_NOSTOP, nitems(bytes), bytes },
/freebsd-11-stable/contrib/wpa/src/ap/
H A Daccounting.c272 u64 bytes; local
307 bytes = data.rx_bytes;
309 bytes = ((u64) sta->last_rx_bytes_hi << 32) |
313 (u32) bytes)) {
319 (u32) (bytes >> 32))) {
324 bytes = data.tx_bytes;
326 bytes = ((u64) sta->last_tx_bytes_hi << 32) |
330 (u32) bytes)) {
336 (u32) (bytes >> 32))) {
/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Devent_iocp.c76 DWORD bytes=0; local
77 int ok = GetQueuedCompletionStatus(p, &bytes, &key,
90 handle_entry(overlapped, key, bytes, ok);
116 DWORD bytes=0; local
120 &bytes, NULL, NULL);
/freebsd-11-stable/lib/libusb/
H A Dusb.h283 int usb_bulk_write(usb_dev_handle * dev, int ep, char *bytes, int size, int timeout);
284 int usb_bulk_read(usb_dev_handle * dev, int ep, char *bytes, int size, int timeout);
285 int usb_interrupt_write(usb_dev_handle * dev, int ep, char *bytes, int size, int timeout);
286 int usb_interrupt_read(usb_dev_handle * dev, int ep, char *bytes, int size, int timeout);
287 int usb_control_msg(usb_dev_handle * dev, int requesttype, int request, int value, int index, char *bytes, int size, int timeout);
/freebsd-11-stable/lib/libc/locale/
H A Dgb18030.c65 u_char bytes[4]; member in struct:__anon6659
102 if (gs->count < 0 || gs->count > sizeof(gs->bytes)) {
113 ncopy = MIN(MIN(n, MB_CUR_MAX), sizeof(gs->bytes) - gs->count);
114 memcpy(gs->bytes + gs->count, s, ncopy);
117 s = (char *)gs->bytes;
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dnet_dim.h63 int bpms; /* bytes per msec */
341 u64 bytes,
346 s->byte_ctr = bytes;
375 u64 packets, u64 bytes)
390 net_dim_sample(dim->event_ctr, packets, bytes, &end_sample);
400 net_dim_sample(dim->event_ctr, packets, bytes, &dim->start_sample);
339 net_dim_sample(u16 event_ctr, u64 packets, u64 bytes, struct net_dim_sample *s) argument
374 net_dim(struct net_dim *dim, u64 packets, u64 bytes) argument
/freebsd-11-stable/sys/kgssapi/krb5/
H A Dkcrypto.c197 uint8_t *bytes, *p, *q; local
202 * Expand the constant to blocklen bytes.
208 * Generate enough bytes for keybits rounded up to a multiple
212 bytes = malloc(randomlen, M_GSSAPI, M_WAITOK);
215 for (i = 0, p = bytes, q = folded; i < randomlen;
224 krb5_random_to_key(dk, bytes);
227 free(bytes, M_GSSAPI);
/freebsd-11-stable/contrib/subversion/subversion/include/
H A Dsvn_string.h28 * strings (or arbitrary bytes) with a counted length. @c svn_stringbuf_t is
51 * allocated/defined as @c len+1 bytes). If code outside of the
65 * NULL. The input data may *contain* null bytes, of course, just
142 /** Create a new string copied from a generic string of bytes, @a bytes, of
143 * length @a size bytes. @a bytes is NOT assumed to be null-terminated, but
146 * @since Since 1.9, @a bytes can be NULL if @a size is zero.
149 svn_string_ncreate(const char *bytes, apr_size_t size, apr_pool_t *pool);
214 /** Create a new stringbuf copied from the generic string of bytes,
[all...]
/freebsd-11-stable/crypto/openssh/
H A Dentropy.c61 * /dev/random), then collect RANDOM_SEED_SIZE bytes of randomness from
69 * Collect 'len' bytes of entropy into 'buf' from PRNGD/EGD daemon
94 fatal("Too many bytes (%d) to read from PRNGD", len);
168 seed_from_prngd(unsigned char *buf, size_t bytes) argument
172 if (get_random_bytes_prngd(buf, bytes, PRNGD_PORT, NULL) == 0)
177 if (get_random_bytes_prngd(buf, bytes, 0, PRNGD_SOCKET) == 0)
189 error("Couldn't obtain random bytes (error %ld)",
204 debug3("rexec_recv_rng_seed: seeding rng with %u bytes", len);
/freebsd-11-stable/tools/tools/zfsboottest/
H A Dzfsboottest.c61 vdev_read(vdev_t *vdev, void *priv, off_t off, void *buf, size_t bytes) argument
65 if (pread(fd, buf, bytes, off) != bytes)
/freebsd-11-stable/sys/amd64/vmm/io/
H A Dvatpic.c628 int bytes, uint32_t *eax)
666 int bytes, uint32_t *eax)
712 vatpic_master_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, argument
721 if (bytes != 1)
725 return (vatpic_read(vatpic, atpic, in, port, bytes, eax));
728 return (vatpic_write(vatpic, atpic, in, port, bytes, eax));
732 vatpic_slave_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, argument
741 if (bytes != 1)
745 return (vatpic_read(vatpic, atpic, in, port, bytes, eax));
748 return (vatpic_write(vatpic, atpic, in, port, bytes, ea
627 vatpic_read(struct vatpic *vatpic, struct atpic *atpic, bool in, int port, int bytes, uint32_t *eax) argument
665 vatpic_write(struct vatpic *vatpic, struct atpic *atpic, bool in, int port, int bytes, uint32_t *eax) argument
752 vatpic_elc_handler(struct vm *vm, int vcpuid, bool in, int port, int bytes, uint32_t *eax) argument
[all...]
/freebsd-11-stable/contrib/openbsm/libbsm/
H A Dbsm_control.c185 * Convert a given disk space value with a multiplier (bytes, kilobytes,
186 * megabytes, gigabytes) to bytes. Return 0 on success.
189 au_spacetobytes(size_t *bytes, u_long value, char mult) argument
191 if (NULL == bytes)
198 *bytes = (size_t)value;
203 *bytes = (size_t)value * 1024;
208 *bytes = (size_t)value * 1024 * 1024;
213 *bytes = (size_t)value * 1024 * 1024 * 1024;
503 /* If no multiplier then assume 'B' (bytes). */
/freebsd-11-stable/sys/powerpc/pseries/
H A Dphyp_console.c335 char bytes[16]; member in union:__anon13233
350 cbuf.bytes[0] = VS_DATA_PACKET_HEADER;
351 cbuf.bytes[1] = 4 + bufsize; /* total length, max 16 bytes */
352 cbuf.bytes[2] = (seqno >> 8) & 0xff;
353 cbuf.bytes[3] = seqno & 0xff;
354 memcpy(&cbuf.bytes[4], buffer, bufsize);
/freebsd-11-stable/lib/libedit/
H A Dchartype.c150 ssize_t bytes; local
168 bytes = (ssize_t)mbstowcs(p, argv[i], bufspace);
170 if (bytes == -1) {
174 bytes++; /* include '\0' in the count */
175 bufspace -= (size_t)bytes;
176 p += bytes;
/freebsd-11-stable/contrib/llvm-project/lldb/source/Core/
H A DCommunication.cpp55 SetEventName(eBroadcastBitReadThreadGotBytes, "got bytes");
254 // If DST is nullptr and we have a thread, then return the number of bytes
269 void Communication::AppendBytesToCache(const uint8_t *bytes, size_t len, argument
275 this, bytes, (uint64_t)len, broadcast); local
276 if ((bytes == nullptr || len == 0) &&
281 m_callback(m_callback_baton, bytes, len);
282 } else if (bytes != nullptr && len > 0) {
284 m_bytes.append((const char *)bytes, len);
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_support_filter_program.c463 ssize_t bytes; local
472 bytes = child_read(self, p, state->out_buf_len - total);
473 if (bytes < 0)
477 if (bytes == 0)
480 total += bytes;
481 p += bytes;
/freebsd-11-stable/sys/sys/
H A Ddevicestat.h154 u_int64_t bytes[DEVSTAT_N_TRANS_FLAGS]; member in struct:devstat
162 u_int32_t block_size; /* Block size, bytes */
197 void devstat_end_transaction(struct devstat *ds, u_int32_t bytes,
/freebsd-11-stable/sys/mips/sibyte/
H A Dsb_zbpci.c221 * automatically swaps bytes when data crosses the pci-cpu
332 zbpci_config_space_va(int bus, int slot, int func, int reg, int bytes) argument
339 reg <= PCI_REGMAX && (bytes == 1 || bytes == 2 || bytes == 4) &&
340 ((reg & (bytes - 1)) == 0)) {
346 pa = pa ^ (4 - bytes);
472 * we are accessing 4 bytes at a time. However if we want to read 1 or 2
473 * bytes then we need to fudge the address generated by the CPU such that
477 sb_match_bit_lane_addr(bus_addr_t addr, int bytes) argument
[all...]
/freebsd-11-stable/sys/net/altq/
H A Daltq.h80 u_int depth; /* depth in bytes */
168 u_int64_t bytes; member in struct:pktcntr
172 do { (cntr)->packets++; (cntr)->bytes += len; } while (/*CONSTCOND*/ 0)
/freebsd-11-stable/sys/arm/versatile/
H A Dversatile_pci.c436 u_int reg, int bytes)
444 switch (bytes) {
463 if (bytes == 2)
465 else if (bytes == 1)
471 func, reg, bytes);
477 /* get request bytes from 32-bit word */
487 u_int reg, uint32_t data, int bytes)
494 func, reg, bytes);
501 switch (bytes) {
435 versatile_pci_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, int bytes) argument
486 versatile_pci_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, uint32_t data, int bytes) argument

Completed in 384 milliseconds

1234567891011>>