| /freebsd-13.1/contrib/elftoolchain/libdwarf/ |
| H A D | libdwarf_rw.c | 33 _dwarf_read_lsb(uint8_t *data, uint64_t *offsetp, int bytes_to_read) in _dwarf_read_lsb() argument 41 switch (bytes_to_read) { in _dwarf_read_lsb() 59 *offsetp += bytes_to_read; in _dwarf_read_lsb() 65 _dwarf_decode_lsb(uint8_t **data, int bytes_to_read) in _dwarf_decode_lsb() argument 73 switch (bytes_to_read) { in _dwarf_decode_lsb() 91 *data += bytes_to_read; in _dwarf_decode_lsb() 104 switch (bytes_to_read) { in _dwarf_read_msb() 125 *offsetp += bytes_to_read; in _dwarf_read_msb() 131 _dwarf_decode_msb(uint8_t **data, int bytes_to_read) in _dwarf_decode_msb() argument 139 switch (bytes_to_read) { in _dwarf_decode_msb() [all …]
|
| /freebsd-13.1/sys/contrib/octeon-sdk/ |
| H A D | octeon-pci-console.c | 203 int bytes_to_read = octeon_pci_console_buffer_avail_bytes(console_buffer_size, wr_idx, rd_idx); in octeon_pci_console_host_read() local 204 if (bytes_to_read <= 0) in octeon_pci_console_host_read() 205 return bytes_to_read; in octeon_pci_console_host_read() 208 bytes_to_read = MIN(bytes_to_read, buf_size); in octeon_pci_console_host_read() 210 if (rd_idx + bytes_to_read >= console_buffer_size) in octeon_pci_console_host_read() 211 bytes_to_read = console_buffer_size - rd_idx; in octeon_pci_console_host_read() 214 octeon_pci_read_mem(buffer, base_addr + rd_idx, bytes_to_read,OCTEON_PCI_ENDIAN_64BIT_SWAP); in octeon_pci_console_host_read() 215 …e_addr + offsetof(octeon_pci_console_t, output_read_index), (rd_idx + bytes_to_read)%console_buffe… in octeon_pci_console_host_read() 217 return bytes_to_read; in octeon_pci_console_host_read()
|
| /freebsd-13.1/contrib/diff/src/ |
| H A D | cmp.c | 409 size_t bytes_to_read = MIN (ig, buf_size); in cmp() local 410 size_t r = block_read (file_desc[f], buf0, bytes_to_read); in cmp() 411 if (r != bytes_to_read) in cmp() 425 size_t bytes_to_read = buf_size; in cmp() local 429 if (remaining < bytes_to_read) in cmp() 430 bytes_to_read = remaining; in cmp() 431 remaining -= bytes_to_read; in cmp() 434 read0 = block_read (file_desc[0], buf0, bytes_to_read); in cmp() 437 read1 = block_read (file_desc[1], buf1, bytes_to_read); in cmp()
|
| H A D | diff3.c | 1236 size_t bytes_to_read = current_chunk_size - total; in read_diff() local 1237 size_t bytes = block_read (fd, diff_result + total, bytes_to_read); in read_diff() 1239 if (bytes != bytes_to_read) in read_diff()
|
| /freebsd-13.1/contrib/diff/lib/ |
| H A D | cmpbuf.c | 92 size_t bytes_to_read = MIN (buflim - bp, readlim); in block_read() local 93 ssize_t nread = read (fd, bp, bytes_to_read); in block_read() 101 if (errno == EINVAL && INT_MAX < bytes_to_read) in block_read()
|
| /freebsd-13.1/sys/dev/liquidio/base/ |
| H A D | lio_console.c | 729 int bytes_to_read; in lio_console_read() local 749 bytes_to_read = lio_console_avail_bytes(console->buffer_size, in lio_console_read() 751 if (bytes_to_read <= 0) in lio_console_read() 752 return (bytes_to_read); in lio_console_read() 754 bytes_to_read = min(bytes_to_read, buf_size); in lio_console_read() 760 if (rd_idx + bytes_to_read >= console->buffer_size) in lio_console_read() 761 bytes_to_read = console->buffer_size - rd_idx; in lio_console_read() 764 (uint8_t *) buffer, bytes_to_read); in lio_console_read() 768 (rd_idx + bytes_to_read) % console->buffer_size); in lio_console_read() 770 return (bytes_to_read); in lio_console_read()
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_fs_fs/ |
| H A D | recovery.c | 121 apr_size_t bytes_to_read = *len; in read_handler_recover() local 130 if ((apr_int64_t)bytes_to_read > (apr_int64_t)b->remaining) in read_handler_recover() 131 bytes_to_read = (apr_size_t)b->remaining; in read_handler_recover() 132 b->remaining -= bytes_to_read; in read_handler_recover() 134 return svn_stream_read_full(b->stream, buffer, &bytes_to_read); in read_handler_recover()
|
| /freebsd-13.1/contrib/libpcap/ |
| H A D | sf-pcap.c | 597 size_t bytes_to_read, bytes_read; in pcap_next_packet() local 638 bytes_to_read = bytes_to_discard; in pcap_next_packet() 639 if (bytes_to_read > sizeof (discard_buf)) in pcap_next_packet() 640 bytes_to_read = sizeof (discard_buf); in pcap_next_packet() 641 amt_read = fread(discard_buf, 1, bytes_to_read, fp); in pcap_next_packet() 643 if (amt_read != bytes_to_read) { in pcap_next_packet()
|
| H A D | sf-pcapng.c | 255 read_bytes(FILE *fp, void *buf, size_t bytes_to_read, int fail_on_eof, in read_bytes() argument 260 amt_read = fread(buf, 1, bytes_to_read, fp); in read_bytes() 261 if (amt_read != bytes_to_read) { in read_bytes() 270 bytes_to_read, amt_read); in read_bytes()
|
| /freebsd-13.1/sys/mips/atheros/ |
| H A D | ar71xx_pci.c | 135 uint32_t bytes_to_read = 0; in ar71xx_get_bytes_to_read() local 138 bytes_to_read = 0; in ar71xx_get_bytes_to_read() 140 bytes_to_read = (~(1 << (reg % 4))) & 0xf; in ar71xx_get_bytes_to_read() 142 bytes_to_read = (~(3 << (reg % 4))) & 0xf; in ar71xx_get_bytes_to_read() 146 return (bytes_to_read); in ar71xx_get_bytes_to_read()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Process/elf-core/ |
| H A D | ProcessElfCore.cpp | 354 size_t bytes_to_read = size; // Number of bytes to read from the core file in DoReadMemory() local 369 if (bytes_to_read > bytes_left) in DoReadMemory() 370 bytes_to_read = bytes_left; in DoReadMemory() 373 if (bytes_to_read) in DoReadMemory() 375 core_objfile->CopyData(offset + file_start, bytes_to_read, buf); in DoReadMemory()
|
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_read_support_format_mtree.c | 1867 size_t bytes_to_read; in read_data() local 1891 bytes_to_read = (size_t)(mtree->cur_size - mtree->offset); in read_data() 1893 bytes_to_read = mtree->buffsize; in read_data() 1894 bytes_read = read(mtree->fd, mtree->buff, bytes_to_read); in read_data()
|
| H A D | archive_read_support_format_7zip.c | 813 size_t bytes_to_read = max_read_size; in archive_read_format_7zip_read_data() local 814 if ((uint64_t)bytes_to_read > zip->entry_bytes_remaining) { in archive_read_format_7zip_read_data() 815 bytes_to_read = zip->entry_bytes_remaining; in archive_read_format_7zip_read_data() 817 bytes = read_stream(a, buff, bytes_to_read, 0); in archive_read_format_7zip_read_data()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | NativeProcessProtocol.cpp | 658 addr_t bytes_to_read = std::min<addr_t>(bytes_left, cache_line_bytes_left); in ReadCStringFromMemory() local 660 bytes_to_read, bytes_read); in ReadCStringFromMemory()
|
| /freebsd-13.1/contrib/elftoolchain/readelf/ |
| H A D | readelf.c | 404 int bytes_to_read); 406 int bytes_to_read); 7630 switch (bytes_to_read) { in _read_lsb() 7648 *offsetp += bytes_to_read; in _read_lsb() 7661 switch (bytes_to_read) { in _read_msb() 7682 *offsetp += bytes_to_read; in _read_msb() 7688 _decode_lsb(uint8_t **data, int bytes_to_read) in _decode_lsb() argument 7696 switch (bytes_to_read) { in _decode_lsb() 7714 *data += bytes_to_read; in _decode_lsb() 7728 switch (bytes_to_read) { in _decode_msb() [all …]
|
| /freebsd-13.1/contrib/ntp/sntp/libevent/ |
| H A D | bufferevent_openssl.c | 729 bytes_to_read(struct bufferevent_openssl *bev) in bytes_to_read() function 789 n_to_read = bytes_to_read(bev_ssl); in consider_reading() 826 n_to_read = bytes_to_read(bev_ssl); in consider_reading()
|
| H A D | ChangeLog | 829 o Move SSL rate-limit enforcement into bytes_to_read() (96c562f)
|
| H A D | ChangeLog-2.0 | 160 o Move SSL rate-limit enforcement into bytes_to_read() (96c562f)
|
| /freebsd-13.1/contrib/libevent/ |
| H A D | bufferevent_openssl.c | 735 bytes_to_read(struct bufferevent_openssl *bev) in bytes_to_read() function 795 n_to_read = bytes_to_read(bev_ssl); in consider_reading() 832 n_to_read = bytes_to_read(bev_ssl); in consider_reading()
|
| H A D | ChangeLog-2.0 | 160 o Move SSL rate-limit enforcement into bytes_to_read() (96c562f)
|
| H A D | ChangeLog | 1276 o Move SSL rate-limit enforcement into bytes_to_read() (96c562f)
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Target/ |
| H A D | Process.cpp | 1978 addr_t bytes_to_read = in ReadStringFromMemory() local 1980 size_t bytes_read = ReadMemory(curr_addr, curr_dst, bytes_to_read, error); in ReadStringFromMemory() 2026 addr_t bytes_to_read = in ReadCStringFromMemory() local 2028 size_t bytes_read = ReadMemory(curr_addr, curr_dst, bytes_to_read, error); in ReadCStringFromMemory() 2039 if (len < bytes_to_read) in ReadCStringFromMemory()
|
| H A D | Target.cpp | 1878 addr_t bytes_to_read = in ReadCStringFromMemory() local 1881 ReadMemory(address, curr_dst, bytes_to_read, error, true); in ReadCStringFromMemory() 1892 if (len < bytes_to_read) in ReadCStringFromMemory()
|