Home
last modified time | relevance | path

Searched refs:bytes_to_write (Results 1 – 8 of 8) sorted by relevance

/NextBSD/sys/contrib/octeon-sdk/
HDocteon-pci-console.c160 int bytes_to_write = octeon_pci_console_buffer_free_bytes(console_buffer_size, wr_idx, rd_idx); in octeon_pci_console_host_write() local
161 if (bytes_to_write <= 0) in octeon_pci_console_host_write()
162 return bytes_to_write; in octeon_pci_console_host_write()
163 bytes_to_write = MIN(bytes_to_write, write_reqest_size); in octeon_pci_console_host_write()
165 if (wr_idx + bytes_to_write >= console_buffer_size) in octeon_pci_console_host_write()
166 bytes_to_write = console_buffer_size - wr_idx; in octeon_pci_console_host_write()
170 octeon_pci_write_mem(base_addr + wr_idx, buffer, bytes_to_write, OCTEON_PCI_ENDIAN_64BIT_SWAP); in octeon_pci_console_host_write()
171 …_addr + offsetof(octeon_pci_console_t, input_write_index), (wr_idx + bytes_to_write)%console_buffe… in octeon_pci_console_host_write()
173 return bytes_to_write; in octeon_pci_console_host_write()
307 …onsole_desc_addr, unsigned int console_num, const char * buffer, int bytes_to_write, uint32_t flag… in octeon_pci_console_write() argument
[all …]
HDocteon-pci-console.h128 …onsole_desc_addr, unsigned int console_num, const char * buffer, int bytes_to_write, uint32_t flag…
/NextBSD/contrib/elftoolchain/libdwarf/
HDlibdwarf_rw.c162 int bytes_to_write) in _dwarf_write_lsb() argument
168 switch (bytes_to_write) { in _dwarf_write_lsb()
186 *offsetp += bytes_to_write; in _dwarf_write_lsb()
191 uint64_t value, int bytes_to_write, Dwarf_Error *error) in _dwarf_write_lsb_alloc() argument
196 while (*offsetp + bytes_to_write > *size) { in _dwarf_write_lsb_alloc()
205 _dwarf_write_lsb(*block, offsetp, value, bytes_to_write); in _dwarf_write_lsb_alloc()
212 int bytes_to_write) in _dwarf_write_msb() argument
218 switch (bytes_to_write) { in _dwarf_write_msb()
239 *offsetp += bytes_to_write; in _dwarf_write_msb()
244 uint64_t value, int bytes_to_write, Dwarf_Error *error) in _dwarf_write_msb_alloc() argument
[all …]
/NextBSD/contrib/libarchive/libarchive/
HDarchive_read_data_into_fd.c86 size_t size, bytes_to_write; in archive_read_data_into_fd() local
112 bytes_to_write = size; in archive_read_data_into_fd()
113 if (bytes_to_write > MAX_WRITE) in archive_read_data_into_fd()
114 bytes_to_write = MAX_WRITE; in archive_read_data_into_fd()
115 bytes_written = write(fd, p, bytes_to_write); in archive_read_data_into_fd()
HDarchive_write_disk_posix.c760 ssize_t block_size = 0, bytes_to_write; in write_data_block() local
791 bytes_to_write = size; in write_data_block()
814 bytes_to_write = size; in write_data_block()
815 if (a->offset + bytes_to_write > block_end) in write_data_block()
816 bytes_to_write = block_end - a->offset; in write_data_block()
827 bytes_written = write(a->fd, buff, bytes_to_write); in write_data_block()
1047 ssize_t bytes_written, bytes_to_write; in hfs_decompress() local
1064 bytes_to_write = data_size -1; in hfs_decompress()
1078 bytes_to_write = dest_len; in hfs_decompress()
1082 bytes_written = write(a->fd, b, bytes_to_write); in hfs_decompress()
[all …]
/NextBSD/sys/dev/flash/
HDmx25l.c242 long bytes_to_write, bytes_writen; in mx25l_write() local
288 bytes_to_write = MIN(FLASH_PAGE_SIZE, in mx25l_write()
293 cmd.tx_data_sz = bytes_to_write; in mx25l_write()
295 cmd.rx_data_sz = bytes_to_write; in mx25l_write()
309 bytes_writen += bytes_to_write; in mx25l_write()
310 write_offset += bytes_to_write; in mx25l_write()
/NextBSD/contrib/compiler-rt/lib/sanitizer_common/
HDsanitizer_coverage_libcdep.cc615 uptr bytes_to_write = max_idx * sizeof(tr_event_array[0]); in DumpTrace() local
618 while (bytes_to_write) { in DumpTrace()
620 if (WriteToFile(fd, event_bytes, bytes_to_write, &actually_written) && in DumpTrace()
621 actually_written <= bytes_to_write) { in DumpTrace()
622 bytes_to_write -= actually_written; in DumpTrace()
/NextBSD/sys/netinet/
HDsiftr.c1203 uint32_t bytes_to_write, total_skipped_pkts; in siftr_manage_ops() local
1420 bytes_to_write = min(SIFTR_ALQ_BUFLEN, sbuf_len(s)-i); in siftr_manage_ops()
1421 alq_writen(siftr_alq, sbuf_data(s)+i, bytes_to_write, ALQ_WAITOK); in siftr_manage_ops()
1422 i += bytes_to_write; in siftr_manage_ops()