/haiku/src/system/boot/loader/net/ |
H A D | IP.cpp | 124 IPService::Send(ip_addr_t destination, uint8 protocol, ChainBuffer *buffer) argument 127 (uint32)protocol, (buffer ? buffer->TotalSize() : 0))); 129 if (!buffer) 137 ChainBuffer headerBuffer(&header, sizeof(header), buffer); 203 ChainBuffer buffer((void*)&header, header.header_length * 4); 204 return ip_checksum(&buffer); 212 ip_checksum(ChainBuffer *buffer) argument 216 Iterator(ChainBuffer *buffer) argument 217 : fBuffer(buffer), [all...] |
/haiku/src/add-ons/input_server/devices/serial_mouse/ |
H A D | SerialMouse.cpp | 163 char buffer[kMaxBytesToRead]; local 196 buffer[bytes_read] = c; // store the garbage for futher processing. 247 SerialMouse::ParseID(char buffer[], uint8 length) argument 251 if ((length == 1) && (buffer[0] == 'M')) 255 if (buffer[0] == 'M' && buffer[1] == '3') 257 else if (buffer[0] == 'H' && buffer[1] == 'H') 262 (buffer[0] == 'M' && buffer[ [all...] |
/haiku/src/kits/midi2/ |
H A D | MidiLocalConsumer.cpp | 329 uint8* buffer = (uint8*) malloc(buf_size); local 348 uint8* tmp_buffer = (uint8*) realloc(buffer, msg_size); 351 buffer = tmp_buffer; 355 read_port(fPort, &msg_code, buffer, msg_size); 361 printf("%02X, ", ((uint8*) buffer)[t]); 366 fCurrentProducer = *((uint32*) (buffer + 0)); 367 int32 targetId = *((uint32*) (buffer + 4)); 368 bigtime_t time = *((bigtime_t*) (buffer + 8)); 369 bool atomic = *((bool*) (buffer + 16)); 372 Data((uchar*) (buffer [all...] |
/haiku/src/kits/debugger/target_host_interface/local/ |
H A D | LocalTargetHostInterface.cpp | 68 char buffer[128]; local 69 snprintf(buffer, sizeof(buffer), "LocalTargetHostInterface %" B_PRId32, 72 fDataPort = create_port(100, buffer); 98 snprintf(buffer, sizeof(buffer), "Local (%s)", hostname); 99 SetName(buffer); 250 char buffer[2048]; local 255 buffer, sizeof(buffer), B_TIMEOU [all...] |
/haiku/src/system/runtime_loader/ |
H A D | elf_haiku_version.cpp | 24 int32 sheaderSize, char* buffer, size_t bufferSize) 36 ssize_t length = _kern_read(fd, eheader.e_shoff, buffer, sheaderSize); 45 = (elf_shdr*)(buffer + eheader.e_shstrndx * eheader.e_shentsize); 53 char* sectionStrings = buffer + bufferSize - sectionHeader->sh_size; 66 sectionHeader = (elf_shdr*)(buffer + i * eheader.e_shentsize); 85 length = _kern_read(fd, commentOffset, buffer, commentSize); 106 while (index < commentSize && buffer[index] == '\0') 108 char* stringStart = buffer + index; 111 while (index < commentSize && buffer[index] != '\0') 114 // ignore the entry at the end of the buffer 23 analyze_object_gcc_version(int fd, image_t* image, elf_ehdr& eheader, int32 sheaderSize, char* buffer, size_t bufferSize) argument 213 analyze_image_haiku_version_and_abi(int fd, image_t* image, elf_ehdr& eheader, int32 sheaderSize, char* buffer, size_t bufferSize) argument [all...] |
/haiku/src/add-ons/print/transports/ipp/ |
H A D | HttpURLConnection.cpp | 250 char buffer[1024]; local 252 if (!is.getline(buffer, sizeof(buffer))) { 256 buffer[is.gcount() - 2] = '\0'; 257 __response_message = buffer; 258 strtok(buffer, " "); 262 while (is.getline(buffer, sizeof(buffer))) { 263 if (buffer[0] == '\r') { 266 buffer[i [all...] |
/haiku/src/system/boot/platform/riscv/ |
H A D | devices.cpp | 39 virtual ssize_t ReadAt(void* cookie, off_t pos, void* buffer, 41 virtual ssize_t WriteAt(void* cookie, off_t pos, const void* buffer, argument 71 VirtioBlockDevice::ReadAt(void* cookie, off_t pos, void* buffer, argument 74 // dprintf("ReadAt(%p, %ld, %p, %ld)\n", cookie, pos, buffer, bufferSize); 101 memcpy(buffer, readBuffer.Get() + offset, bufferSize); 143 char buffer[512]; local 144 ssize_t bytesRead = device->ReadAt(NULL, offset, buffer, sizeof(buffer)); 148 if (bytesRead < (ssize_t)sizeof(buffer)) 149 memset(buffer [all...] |
/haiku/headers/private/bluetooth/ |
H A D | PortListener.h | 53 status_t Trigger(int32 code, TYPE* buffer, size_t size) argument 55 if (buffer == NULL) 58 return write_port(fPort, code, buffer, size); 145 TYPE* buffer = (TYPE*)malloc(MAX_MESSAGE_SIZE); local 159 ssizeRead = read_port(*port, &code, (void*)buffer, ssizePort); 164 status = handler(buffer, code, ssizePort); 181 free(buffer);
|
/haiku/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/ |
H A D | snet_buffer.cpp | 19 uint8* buffer; member in struct:snet_buffer 38 snb->buffer = ((uint8*)snb) + sizeof(snet_buffer); 41 snb->buffer = malloc(size); 55 memcpy( &snb->buffer[snb->puttingSize], data, size); 65 return &snb->buffer[snb->pullingSize - size]; 86 free(snb->buffer); 97 return snb->buffer; 125 // Return true if we canot "put" more data in the buffer 133 // Return true if we cannot pull more more data from the buffer 156 buffer tha [all...] |
/haiku/src/add-ons/media/media-add-ons/reader/ |
H A D | MediaReader.cpp | 344 // buffer period gets initialized in Connect() because 346 // chunk size and bit rate, which are used to compute buffer period 347 // note: you can still make a buffer group before connecting (why?) 356 PRINT("\tdownstream latency = %lld, buffer period = %lld, buffer count = %ld\n", 380 /* that change, you should return an error and ignore the request. Note that the buffer */ 474 // compute the buffer period (must be done before setbuffergroup) 479 PRINT("\tmax chunk size = %ld, max bit rate = %f, buffer period = %lld\n", 498 // buffer group buffer siz 500 BBuffer * buffer = 0; local 642 BBuffer * buffer; local 684 BBuffer * buffer = fBufferGroup->RequestBuffer(output.format.u.multistream.max_chunk_size,fBufferPeriod); local 768 BBuffer * buffer = fBufferGroup->RequestBuffer(output.format.u.multistream.max_chunk_size,-1); local 781 FillFileBuffer( BBuffer * buffer) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/packagefs/nodes/ |
H A D | UnpackingAttributeCookie.cpp | 32 void* buffer, size_t* bufferSize) 44 status_t error = reader->ReadData(offset, buffer, toRead); 101 UnpackingAttributeCookie::ReadAttribute(off_t offset, void* buffer, argument 104 return ReadAttribute(fPackageNode, fAttribute, offset, buffer, bufferSize); 120 PackageNodeAttribute* attribute, off_t offset, void* buffer, 128 return read_package_data(data, &dataReader, offset, buffer, bufferSize); 145 return read_package_data(data, reader, offset, buffer, bufferSize); 31 read_package_data(const PackageData& data, BDataReader* reader, off_t offset, void* buffer, size_t* bufferSize) argument 119 ReadAttribute(PackageNode* packageNode, PackageNodeAttribute* attribute, off_t offset, void* buffer, size_t* bufferSize) argument
|
/haiku/src/add-ons/kernel/drivers/network/ether/usb_davicom/ |
H A D | DavicomDevice.h | 114 status_t Read(uint8 *buffer, size_t *numBytes); 115 status_t Write(const uint8 *buffer, size_t *numBytes); 116 status_t Control(uint32 op, void *buffer, size_t length); 139 uint32 _EthernetCRC32(const uint8* buffer, size_t length); 144 status_t _ReadRegister(uint8 reg, size_t size, uint8* buffer); 145 status_t _WriteRegister(uint8 reg, size_t size, uint8* buffer); 146 status_t _Write1Register(uint8 reg, uint8 buffer);
|
/haiku/src/bin/ |
H A D | fstrim.cpp | 105 char* buffer; local 115 buffer = NULL; 117 inputLength = getline(&buffer, &bufferSize, stdin); 119 MemoryDeleter deleter(buffer); 127 if (strncasecmp(buffer, "yes\n", bufferSize) == 0) 130 if (strncasecmp(buffer, "no\n", bufferSize) == 0 131 || strncmp(buffer, "\n", bufferSize) == 0)
|
/haiku/src/apps/terminal/ |
H A D | ThemeWindow.cpp | 132 char buffer[512]; local 135 int len = snprintf(buffer, sizeof(buffer), "\"%s\" , \"%s\"\n", 137 file.Write(buffer, len); 141 int len = snprintf(buffer, sizeof(buffer), "\"%s\" , \"%s\"\n", 143 file.Write(buffer, len);
|
/haiku/src/system/boot/platform/atari_m68k/ |
H A D | console.cpp | 27 virtual ssize_t ReadAt(void *cookie, off_t pos, void *buffer, 29 virtual ssize_t WriteAt(void *cookie, off_t pos, const void *buffer, 55 Console::ReadAt(void */*cookie*/, off_t /*pos*/, void *buffer, argument 65 Console::WriteAt(void */*cookie*/, off_t /*pos*/, const void *buffer, argument 68 const char *string = (const char *)buffer; 246 char buffer[3]; 249 bytesRead = sInput.ReadAt(NULL, 0, buffer, 3);
|
/haiku/src/tests/system/kernel/ |
H A D | spinlock_contention.cpp | 184 time_string(double timeInUsecs, char* buffer) argument 196 sprintf(buffer, "%.3f %s", time, kUnits[i]); 198 return buffer; 242 char buffer[128]; local 243 printf("\ntotal run time: %s\n", time_string(totalTime, buffer)); 249 time_string(tickTime, buffer)); 262 time_string(wastedUsecs, buffer), wastedUsecs / totalTime * 100);
|
/haiku/src/apps/haikudepot/tar/ |
H A D | TarArchiveService.cpp | 36 uint8 buffer[LENGTH_BLOCK]; local 37 status_t result = tarIo.ReadExactly(buffer, LENGTH_BLOCK); 39 result = _ReadHeader(buffer, header); 52 uint8 buffer[LENGTH_BLOCK]; local 63 buffer, LENGTH_BLOCK))) { 65 if (memcmp(zero_buffer, buffer, sizeof zero_buffer) == 0) { 72 result = _ReadHeader(buffer, header);
|
/haiku/src/add-ons/kernel/drivers/network/ether/ipro1000/dev/e1000/ |
H A D | e1000_manage.c | 40 * e1000_calculate_checksum - Calculate checksum for buffer 41 * @buffer: pointer to EEPROM 44 * Calculates the checksum for some buffer on a specified length. The 47 u8 e1000_calculate_checksum(u8 *buffer, u32 length) argument 54 if (!buffer) 58 sum += buffer[i]; 135 u32 *buffer = (u32 *)&hw->mng_cookie; local 163 *(buffer + i) = E1000_READ_REG_ARRAY_DWORD(hw, E1000_HOST_IF, 217 * @buffer: pointer to the host interface buffer 226 e1000_mng_host_if_write_generic(struct e1000_hw *hw, u8 *buffer, u16 length, u16 offset, u8 *sum) argument 298 e1000_mng_write_dhcp_info_generic(struct e1000_hw *hw, u8 *buffer, u16 length) argument 397 e1000_host_interface_command(struct e1000_hw *hw, u8 *buffer, u32 length) argument 471 e1000_load_firmware(struct e1000_hw *hw, u8 *buffer, u32 length) argument [all...] |
/haiku/src/apps/cortex/RouteApp/ |
H A D | DormantNodeIO.cpp | 233 dormant_node_info buffer[bufferSize]; local 236 buffer, 250 if(buffer[n].flavor_id == m_flavorID) { 251 *outInfo = buffer[n]; 305 BString buffer; local 314 buffer = ""; 315 buffer << m_flavorID; 318 context.writeString(buffer); 373 buffer = ""; 374 buffer << m_recordingDela [all...] |
/haiku/src/kits/debug/ |
H A D | debug_support.cpp | 111 void *buffer, size_t size) 138 memcpy(buffer, reply.data, reply.size); 148 char *buffer = (char*)_buffer; local 151 if (!context || !address || !buffer) 159 ssize_t bytesRead = debug_read_memory_partial(context, address, buffer, 168 buffer += bytesRead; 178 debug_read_string(debug_context *context, const void *_address, char *buffer, argument 184 if (!context || !address || !buffer || size == 0) 190 ssize_t bytesRead = debug_read_memory_partial(context, address, buffer, 195 *buffer 110 debug_read_memory_partial(debug_context *context, const void *address, void *buffer, size_t size) argument 222 debug_write_memory_partial(debug_context *context, const void *address, void *buffer, size_t size) argument 259 char *buffer = (char*)_buffer; local [all...] |
/haiku/src/add-ons/kernel/drivers/pty/ |
H A D | driver.cpp | 87 char buffer[64]; local 89 snprintf(buffer, sizeof(buffer), "pt/%c%x", letter, digit); 90 gDeviceNames[i] = strdup(buffer); 92 snprintf(buffer, sizeof(buffer), "tt/%c%x", letter, digit); 93 gDeviceNames[i + kNumTTYs] = strdup(buffer); 182 master_service(struct tty *tty, uint32 op, void *buffer, size_t length) argument 190 slave_service(struct tty *tty, uint32 op, void *buffer, size_t length) argument 374 pty_ioctl(void *_cookie, uint32 op, void *buffer, size_ argument 436 pty_read(void *_cookie, off_t offset, void *buffer, size_t *_length) argument 453 pty_write(void *_cookie, off_t offset, const void *buffer, size_t *_length) argument [all...] |
/haiku/src/system/kernel/debug/ |
H A D | debug.cpp | 80 extern "C" int kgets(char* buffer, int length); 106 // (relative) buffer offset of the yet unsent syslog messages 110 // (relative) buffer offset of the kernel debugger messages of the current 250 insert_chars_into_line(char* buffer, int32& position, int32& length, argument 255 memmove(buffer + position + charCount, buffer + position, 260 memcpy(buffer + position, chars, charCount); 267 buffer + oldPosition); 276 insert_char_into_line(char* buffer, int32& position, int32& length, char c) argument 278 insert_chars_into_line(buffer, positio 283 remove_char_from_line(char* buffer, int32& position, int32& length) argument 324 TabCompletion(char* buffer, int32 capacity, int32& position, int32& length) argument 453 read_line(char* buffer, int32 maxLength, LineEditingHelper* editingHelper = NULL) argument 716 kgets(char* buffer, int length) argument 1111 char* buffer = (char*)debug_malloc(bufferSize); local 1444 void* buffer = sPreviousSessionSyslogBuffer; local 1959 uint8 buffer[32]; local 2024 char buffer[32]; local 2194 debug_demangle_symbol(const char* symbol, char* buffer, size_t bufferSize, bool* _isObjectMethod) argument 2330 dump_block(const char* buffer, int size, const char* prefix) argument [all...] |
/haiku/src/system/libroot/add-ons/icu/ |
H A D | ICUCtypeData.cpp | 79 char buffer[] = { 0, 0 }; local 81 const char* source = buffer; 82 buffer[0] = (char)i; 83 buffer[1] = '\0'; 119 ucnv_fromUChars(converter, buffer, 1, &lowerChar, 1, &icuStatus); 121 toLower = (unsigned char)buffer[0]; 125 ucnv_fromUChars(converter, buffer, 1, &upperChar, 1, &icuStatus); 127 toUpper = (unsigned char)buffer[0]; 229 const char* buffer = mb; local 232 ucnv_toUnicode(converter, &target, target + 1, &buffer, buffe 458 char buffer[MB_CUR_MAX]; local [all...] |
/haiku/src/tests/add-ons/kernel/file_systems/random_file_actions/ |
H A D | random_file_actions.cpp | 105 char buffer[256]; local 108 snprintf(buffer, sizeof(buffer), "%g GB", 111 snprintf(buffer, sizeof(buffer), "%g MB", size / (1024.0 * 1024)); 113 snprintf(buffer, sizeof(buffer), "%g KB", size / (1024.0)); 115 snprintf(buffer, sizeof(buffer), "%lld B", size); 117 return buffer; 132 char buffer[256]; local 276 char buffer[1024]; local 293 generate_block(char* buffer, const struct entry& entry, off_t offset) argument 353 dump_block(const char* buffer, int size, const char* prefix) argument [all...] |
/haiku/src/add-ons/accelerants/intel_extreme/ |
H A D | overlay.cpp | 386 overlay_buffer* buffer = &overlay->buffer; local 387 buffer->space = colorSpace; 388 buffer->width = width; 389 buffer->height = height; 390 buffer->bytes_per_row = (width * bytesPerPixel + alignment) & ~alignment; 392 status_t status = intel_allocate_memory(buffer->bytes_per_row * height, 415 buffer->buffer = (uint8*)overlay->buffer_base; 416 buffer 428 intel_release_overlay_buffer(const overlay_buffer* buffer) argument 449 intel_get_overlay_constraints(const display_mode* mode, const overlay_buffer* buffer, overlay_constraints* constraints) argument 540 intel_configure_overlay(overlay_token overlayToken, const overlay_buffer* buffer, const overlay_window* window, const overlay_view* view) argument [all...] |