/openbsd/lib/libcbor/src/cbor/ |
H A D | encoding.c | 12 size_t buffer_size) { in cbor_encode_uint8() argument 17 size_t buffer_size) { in cbor_encode_uint16() argument 22 size_t buffer_size) { in cbor_encode_uint32() argument 27 size_t buffer_size) { in cbor_encode_uint64() argument 32 size_t buffer_size) { in cbor_encode_uint() argument 37 size_t buffer_size) { in cbor_encode_negint8() argument 67 size_t buffer_size) { in _cbor_encode_byte() argument 68 if (buffer_size >= 1) { in _cbor_encode_byte() 110 size_t buffer_size) { in cbor_encode_tag() argument 183 buffer_size, 0xE0); in cbor_encode_single() [all …]
|
H A D | serialization.c | 21 size_t buffer_size) { in cbor_serialize() argument 155 size_t *buffer_size) { in cbor_serialize_alloc() argument 159 if (buffer_size != NULL) *buffer_size = 0; in cbor_serialize_alloc() 164 if (buffer_size != NULL) *buffer_size = 0; in cbor_serialize_alloc() 170 if (buffer_size != NULL) *buffer_size = serialized_size; in cbor_serialize_alloc() 175 size_t buffer_size) { in cbor_serialize_uint() argument 271 size_t buffer_size) { in cbor_serialize_array() argument 302 size_t buffer_size) { in cbor_serialize_map() argument 340 size_t buffer_size) { in cbor_serialize_tag() argument 363 buffer_size); in cbor_serialize_float_ctrl() [all …]
|
H A D | serialization.h | 33 size_t buffer_size); 66 size_t *buffer_size);
|
/openbsd/lib/libcbor/src/cbor/internal/ |
H A D | encoders.c | 12 size_t buffer_size, uint8_t offset) { in _cbor_encode_uint8() argument 14 if (buffer_size >= 1) { in _cbor_encode_uint8() 19 if (buffer_size >= 2) { in _cbor_encode_uint8() 29 size_t buffer_size, uint8_t offset) { in _cbor_encode_uint16() argument 30 if (buffer_size >= 3) { in _cbor_encode_uint16() 46 size_t buffer_size, uint8_t offset) { in _cbor_encode_uint32() argument 47 if (buffer_size >= 5) { in _cbor_encode_uint32() 65 size_t buffer_size, uint8_t offset) { in _cbor_encode_uint64() argument 66 if (buffer_size >= 9) { in _cbor_encode_uint64() 88 size_t buffer_size, uint8_t offset) { in _cbor_encode_uint() argument [all …]
|
H A D | encoders.h | 19 size_t buffer_size, uint8_t offset); 23 size_t buffer_size, uint8_t offset); 27 size_t buffer_size, uint8_t offset); 31 size_t buffer_size, uint8_t offset); 35 size_t buffer_size, uint8_t offset);
|
/openbsd/gnu/usr.bin/binutils/bfd/ |
H A D | cpu-arm.c | 233 bfd_size_type buffer_size; 288 bfd_size_type buffer_size; local 301 buffer_size = arm_arch_section->_raw_size; 302 if (buffer_size == 0) 305 buffer = bfd_malloc (buffer_size); 310 (file_ptr) 0, buffer_size)) 341 (file_ptr) 0, buffer_size)) 387 bfd_size_type buffer_size; local 401 if (buffer_size == 0) 404 buffer = bfd_malloc (buffer_size); [all …]
|
/openbsd/gnu/usr.bin/binutils-2.17/bfd/ |
H A D | cpu-arm.c | 218 bfd_size_type buffer_size, in arm_check_note() argument 227 if (buffer_size < offsetof (arm_Note, name)) in arm_check_note() 238 if (namesz + descsz + offsetof (arm_Note, name) > buffer_size) in arm_check_note() 271 bfd_size_type buffer_size; in bfd_arm_update_notes() local 284 buffer_size = arm_arch_section->size; in bfd_arm_update_notes() 285 if (buffer_size == 0) in bfd_arm_update_notes() 292 if (! arm_check_note (abfd, buffer, buffer_size, NOTE_ARCH_STRING, & arch_string)) in bfd_arm_update_notes() 321 (file_ptr) 0, buffer_size)) in bfd_arm_update_notes() 366 bfd_size_type buffer_size; in bfd_arm_get_mach_from_notes() local 379 buffer_size = arm_arch_section->size; in bfd_arm_get_mach_from_notes() [all …]
|
/openbsd/gnu/lib/libreadline/ |
H A D | histfile.c | 407 int buffer_size; local 412 for (buffer_size = 1, i = history_length - nelements; i < history_length; i++) 413 buffer_size += 1 + strlen (the_history[i]->line); 417 if (ftruncate (file, buffer_size+cursize) == -1) 419 buffer = (char *)mmap (0, buffer_size, PROT_READ|PROT_WRITE, MAP_WFLAGS, file, cursize); 429 buffer = (char *)malloc (buffer_size); 442 strlcat (buffer, the_history[i]->line, buffer_size); 443 strlcat (buffer, "\n", buffer_size); 447 if (msync (buffer, buffer_size, 0) != 0 || munmap (buffer, buffer_size) != 0) 450 if (write (file, buffer, buffer_size - 1) < 0)
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_printf.cpp | 249 int buffer_size, in SharedPrintfCodeNoBuffer() argument 264 buffer_size = v.capacity(); in SharedPrintfCodeNoBuffer() 265 v.resize(buffer_size); in SharedPrintfCodeNoBuffer() 275 needed_length += internal_snprintf(buffer, buffer_size, in SharedPrintfCodeNoBuffer() 277 if (needed_length >= buffer_size) in SharedPrintfCodeNoBuffer() 281 buffer + needed_length, buffer_size - needed_length, "==%d==", pid); in SharedPrintfCodeNoBuffer() 282 if (needed_length >= buffer_size) in SharedPrintfCodeNoBuffer() 286 buffer_size - needed_length, format, args); in SharedPrintfCodeNoBuffer() 287 if (needed_length >= buffer_size) in SharedPrintfCodeNoBuffer()
|
H A D | sanitizer_suppressions.cpp | 79 uptr buffer_size; in ParseFromFile() local 81 if (!ReadFileToBuffer(filename, &file_contents, &buffer_size, in ParseFromFile()
|
/openbsd/usr.sbin/dhcpd/ |
H A D | options.c | 371 store_option_fragment(unsigned char *buffer, int buffer_size, in store_option_fragment() argument 374 buffer_size -= 2; /* Space for option code and option length. */ in store_option_fragment() 376 if (buffer_size < 1) in store_option_fragment() 379 if (buffer_size > 255) in store_option_fragment() 380 buffer_size = 255; in store_option_fragment() 381 if (length > buffer_size) in store_option_fragment() 382 length = buffer_size; in store_option_fragment()
|
/openbsd/gnu/gcc/gcc/config/ |
H A D | host-linux.c | 99 size_t buffer_size = 32 * 1024 * 1024; in linux_gt_pch_get_address() local 144 buffer = mmap (0, buffer_size, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); in linux_gt_pch_get_address() 147 munmap (buffer, buffer_size); in linux_gt_pch_get_address()
|
/openbsd/gnu/llvm/libcxx/src/support/win32/ |
H A D | support.cpp | 33 size_t buffer_size = static_cast<size_t>(count) + 1; in __libcpp_vasprintf() local 34 char* p = static_cast<char*>(malloc(buffer_size)); in __libcpp_vasprintf() 41 if (vsnprintf(p, buffer_size, format, ap) != count) { in __libcpp_vasprintf()
|
/openbsd/sys/dev/pci/drm/i915/gt/uc/ |
H A D | intel_guc_log.c | 388 unsigned int buffer_size, read_offset, write_offset, bytes_to_copy, full_cnt; in _guc_log_copy_debuglogs_for_relay() local 431 buffer_size = intel_guc_get_log_buffer_size(log, type); in _guc_log_copy_debuglogs_for_relay() 462 write_offset = buffer_size; in _guc_log_copy_debuglogs_for_relay() 463 } else if (unlikely((read_offset > buffer_size) || in _guc_log_copy_debuglogs_for_relay() 464 (write_offset > buffer_size))) { in _guc_log_copy_debuglogs_for_relay() 468 write_offset = buffer_size; in _guc_log_copy_debuglogs_for_relay() 474 bytes_to_copy = buffer_size - read_offset; in _guc_log_copy_debuglogs_for_relay() 481 src_data += buffer_size; in _guc_log_copy_debuglogs_for_relay() 482 dst_data += buffer_size; in _guc_log_copy_debuglogs_for_relay()
|
H A D | intel_guc_capture.c | 667 u32 buffer_size = intel_guc_log_section_size_capture(&guc->log); in check_guc_capture_size() local 680 else if (min_size > buffer_size) in check_guc_capture_size() 682 buffer_size, min_size); in check_guc_capture_size() 683 else if (spare_size > buffer_size) in check_guc_capture_size() 685 buffer_size, spare_size, min_size); in check_guc_capture_size() 1333 write_offset = buffer_size; in __guc_capture_process_output() 1334 } else if (unlikely((read_offset > buffer_size) || in __guc_capture_process_output() 1335 (write_offset > buffer_size))) { in __guc_capture_process_output() 1337 read_offset, buffer_size); in __guc_capture_process_output() 1340 write_offset = buffer_size; in __guc_capture_process_output() [all …]
|
/openbsd/sys/dev/usb/ |
H A D | uticom.c | 839 int buffer_size, pos; in uticom_download_fw() local 851 buffer_size = UTICOM_FW_BUFSZ + sizeof(struct uticom_fw_header); in uticom_download_fw() 852 buffer = malloc(buffer_size, M_USBDEV, M_WAITOK | M_CANFAIL); in uticom_download_fw() 862 memset(buffer + firmware_size, 0xff, buffer_size - firmware_size); in uticom_download_fw() 864 for (pos = sizeof(struct uticom_fw_header); pos < buffer_size; pos++) in uticom_download_fw() 868 header->length = (uint16_t)(buffer_size - in uticom_download_fw() 890 obuf = usbd_alloc_buffer(oxfer, buffer_size); in uticom_download_fw() 896 memcpy(obuf, buffer, buffer_size); in uticom_download_fw() 898 usbd_setup_xfer(oxfer, pipe, (void *)sc, obuf, buffer_size, in uticom_download_fw() 912 free(buffer, M_USBDEV, buffer_size); in uticom_download_fw()
|
/openbsd/sys/dev/pci/drm/amd/display/dc/basics/ |
H A D | conversion.c | 82 uint32_t buffer_size) in convert_float_matrix() argument 90 for (i = 0; i < buffer_size; ++i) { in convert_float_matrix()
|
H A D | conversion.h | 39 uint32_t buffer_size);
|
/openbsd/gnu/llvm/lldb/source/Commands/ |
H A D | CommandObjectLog.cpp | 108 buffer_size.SetValueFromString(option_arg, eVarSetOperationAssign); in SetOptionValue() 143 buffer_size.Clear(); in OptionParsingStarting() 153 OptionValueUInt64 buffer_size; member in CommandObjectLogEnable::CommandOptions 174 m_options.buffer_size.GetCurrentValue() == 0) { in DoExecute() 193 m_options.buffer_size.GetCurrentValue(), m_options.handler, in DoExecute()
|
/openbsd/sys/arch/amd64/stand/libsa/ |
H A D | pxe.c | 135 uw->buffer_size = len; in pxesendudp() 170 ur->buffer_size = len; in pxereadudp() 190 return ur->buffer_size; in pxereadudp()
|
/openbsd/sys/arch/i386/stand/libsa/ |
H A D | pxe.c | 135 uw->buffer_size = len; in pxesendudp() 170 ur->buffer_size = len; in pxereadudp() 190 return ur->buffer_size; in pxereadudp()
|
/openbsd/gnu/llvm/lldb/source/Utility/ |
H A D | Log.cpp | 366 size_t buffer_size) in StreamLogHandler() argument 367 : m_stream(fd, should_close, buffer_size == 0) { in StreamLogHandler() 368 if (buffer_size > 0) in StreamLogHandler() 369 m_stream.SetBufferSize(buffer_size); in StreamLogHandler()
|
/openbsd/lib/libpcap/ |
H A D | pcap.c | 235 pcap_set_buffer_size(pcap_t *p, int buffer_size) in pcap_set_buffer_size() argument 239 p->opt.buffer_size = buffer_size; in pcap_set_buffer_size()
|
/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/27_io/ |
H A D | filebuf_virtuals.cc | 71 const int buffer_size = 8192; variable 99 fb_01.set_size(buffer_size); in test03() 100 fb_02.set_size(buffer_size); in test03() 101 fb_03.set_size(buffer_size); in test03() 212 char carray2[buffer_size] = ""; in test05()
|
/openbsd/gnu/usr.bin/cvs/diff/ |
H A D | analyze.c | 864 size_t buffer_size = buffer_lcm (STAT_BLOCKSIZE (filevec[0].stat), local 867 filevec[i].buffer = xrealloc (filevec[i].buffer, buffer_size); 874 while (filevec[i].buffered_chars != buffer_size) 879 buffer_size - filevec[i].buffered_chars); 899 if (filevec[0].buffered_chars != buffer_size)
|