/haiku/src/add-ons/kernel/network/datalink_protocols/loopback_frame/ |
H A D | loopback_frame.cpp | 35 loopback_deframe(net_device* device, net_buffer* buffer) argument 65 // buffer reception is handled internally. 108 loopback_frame_send_data(net_datalink_protocol* protocol, net_buffer* buffer) argument 110 return protocol->next->module->send_data(protocol->next, buffer);
|
/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/add-ons/media/plugins/ffmpeg/ |
H A D | AVFormatWriter.cpp | 351 // need to allocate a separate AVPacket and copy the chunk buffer. 404 av_free(fIOContext->buffer); 418 uint8* buffer = static_cast<uint8*>(av_malloc(kIOBufferSize)); local 419 if (buffer == NULL) 422 // Allocate I/O context and initialize it with buffer 424 fIOContext = avio_alloc_context(buffer, kIOBufferSize, 1, this, 427 av_free(buffer); 615 AVFormatWriter::_Write(void* cookie, uint8* buffer, int bufferSize) argument 618 cookie, buffer, bufferSize); 622 ssize_t written = writer->fTarget->Write(buffer, bufferSiz [all...] |
H A D | AVCodecEncoder.h | 41 virtual status_t Encode(const void* buffer, int64 frameCount, 44 // TODO: Turns out we need Flush() after all. We buffer encoded audio 45 // in a FIFO, since the user suggested buffer size may not fit the 46 // codec buffer size. 54 status_t _EncodeAudio(const void* buffer, 57 status_t _EncodeAudio(const uint8* buffer, 61 status_t _EncodeVideo(const void* buffer,
|
H A D | AVCodecEncoder.cpp | 229 AVCodecEncoder::Encode(const void* buffer, int64 frameCount, argument 232 TRACE("AVCodecEncoder::Encode(%p, %" B_PRId64 ", %p)\n", buffer, frameCount, info); 238 return _EncodeAudio(buffer, frameCount, info); 240 return _EncodeVideo(buffer, frameCount, info); 522 const uint8* buffer = reinterpret_cast<const uint8*>(_buffer); local 540 av_fifo_write(fAudioFifo, const_cast<uint8*>(buffer), bufferSize); 546 av_fifo_generic_write(fAudioFifo, const_cast<uint8*>(buffer), bufferSize, NULL); 573 return _EncodeAudio(buffer, bufferSize, frameCount, 582 AVCodecEncoder::_EncodeAudio(const uint8* buffer, size_t bufferSize, argument 590 // This way we don't risk iving a too small buffer 658 _EncodeVideo(const void* buffer, int64 frameCount, media_encode_info* info) argument [all...] |
/haiku/src/add-ons/kernel/drivers/network/ether/usb_rndis/ |
H A D | RNDISDevice.cpp | 251 RNDISDevice::Read(uint8 *buffer, size_t *numBytes) argument 259 // a single USB transfer. So we need to buffer them, and check if we have something in our 260 // buffer for each Read() call before scheduling a new USB transfer. This would be more 298 TRACE_ALWAYS("Received frame at %ld length %08" B_PRIx32 " out of bounds of receive buffer" 324 memcpy(buffer, (uint8*)fReadHeader + offset, fReadHeader[3]); 332 // Are we past the end of the buffer? If so, prepare to receive another one on the next read 361 RNDISDevice::Write(const uint8 *buffer, size_t *numBytes) argument 379 vec[1].iov_base = (void*)buffer; 422 RNDISDevice::Control(uint32 op, void *buffer, size_t length) argument 429 memcpy(buffer, 718 _GetOID(uint32 oid, void* buffer, size_t length) argument 743 _ReadMACAddress(usb_device device, uint8 *buffer) argument [all...] |
/haiku/src/bin/listusb/ |
H A D | listusb.cpp | 129 char buffer[256]; local 130 usb_descriptor* generic = (usb_descriptor*)buffer;
|
/haiku/src/add-ons/kernel/drivers/audio/usb/ |
H A D | Device.cpp | 117 Device::Read(uint8* buffer, size_t* numBytes) argument 125 Device::Write(const uint8* buffer, size_t* numBytes) argument 133 Device::Control(uint32 op, void* buffer, size_t length) argument 142 if (user_memcpy(&description, buffer, sizeof(multi_description)) 156 if (user_memcpy(buffer, &description, sizeof(multi_description)) 180 if (user_memcpy(&enable, buffer, sizeof(enable)) != B_OK 194 || user_memcpy(buffer, &enable, 207 if (user_memcpy(&enable, buffer, sizeof(enable)) != B_OK 221 || user_memcpy(buffer, &enable, sizeof(multi_channel_enable)) 231 if (user_memcpy(&info, buffer, sizeo [all...] |
H A D | Stream.cpp | 158 // allocate buffer for worst (maximal size) case 195 "bytes size buffer area:%#010x\n", fAreaSize, fArea); 432 // cancel data flow - it will be rewaked at next buffer exchange call 494 // [buffer][channel] init buffers 495 for (size_t buffer = 0; buffer < kSamplesBufferCount; buffer++) { 496 TRACE(DTA, "%s buffer #%d:\n", fIsInput ? "input" : "output", buffer + 1); 507 descs[channel].base += buffer * bufferSiz [all...] |
H A D | Stream.h | 68 status_t _QueueNextTransfer(size_t buffer, bool start);
|
/haiku/src/add-ons/accelerants/intel_extreme/ |
H A D | Ports.cpp | 98 char buffer[32]; local 99 buffer[0] = 0; 101 strlcat(buffer, baseName, sizeof(buffer)); 102 strlcat(buffer, " ", sizeof(buffer)); 103 strlcat(buffer, portID, sizeof(buffer)); 104 fPortName = strdup(buffer); 623 message.buffer [all...] |
/haiku/src/tools/elfsymbolpatcher/ |
H A D | ElfFile.cpp | 43 read_exactly(BPositionIO &file, off_t position, void *buffer, size_t size, argument 47 ssize_t read = file.ReadAt(position, buffer, size);
|
/haiku/src/add-ons/kernel/network/protocols/tcp/ |
H A D | tcp.cpp | 97 add_options(tcp_segment_header &segment, uint8 *buffer, size_t bufferSize) argument 102 tcp_option *option = (tcp_option *)buffer; 184 process_options(tcp_segment_header &segment, net_buffer *buffer, size_t size) argument 192 if (gBufferModule->direct_access(buffer, sizeof(tcp_header), size, 199 gBufferModule->read(buffer, sizeof(tcp_header), optionsBuffer, size); 391 /*! Constructs a TCP header on \a buffer with the specified values 396 tcp_segment_header& segment, net_buffer* buffer) 398 buffer->protocol = IPPROTO_TCP; 404 NetBufferPrepend<tcp_header> bufferHeader(buffer, 411 header.source_port = addressModule->get_port(buffer 395 add_tcp_header(net_address_module_info* addressModule, tcp_segment_header& segment, net_buffer* buffer) argument 628 tcp_send_data(net_protocol* protocol, net_buffer* buffer) argument 635 tcp_send_routed_data(net_protocol* protocol, struct net_route* route, net_buffer* buffer) argument 680 tcp_receive_data(net_buffer* buffer) argument [all...] |
H A D | tcp.h | 302 tcp_segment_header& segment, net_buffer* buffer);
|
H A D | TCPEndpoint.h | 45 status_t SendData(net_buffer* buffer); 66 net_buffer* buffer); 81 status_t _PrepareAndSend(tcp_segment_header& segment, net_buffer* buffer, 92 net_buffer* buffer); 94 net_buffer* buffer); 96 net_buffer* buffer); 98 net_buffer* buffer); 100 net_buffer* buffer); 107 net_buffer* buffer);
|
/haiku/src/add-ons/kernel/generic/tty/ |
H A D | tty.cpp | 797 /*! Processes the input character and puts it into the TTY's input buffer. 820 // we may have to flush the input buffer 868 // point can directly be written to the line buffer. 904 /*! \brief Checks whether bytes can be read from/written to the line buffer of 946 \a buffer. 949 \param buffer The buffer to which to write the converted character. 951 line buffer. 956 process_input_char(struct tty* tty, char c, char* buffer, argument 967 *buffer 1012 process_output_char(struct tty* tty, char c, char* buffer, size_t* _bytesWritten, bool echoed) argument 1215 char buffer[3]; local 1258 const char* buffer = (const char*)_buffer; local 1293 const char* buffer = (const char*)_buffer; local 1557 char* buffer = (char*)_buffer; local 1675 tty_control(tty_cookie* cookie, uint32 op, void* buffer, size_t length) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/ |
H A D | FUSEVolume.cpp | 70 // resize names buffer, if full 102 bool ReadDirent(uint32 index, dev_t volumeID, bool align, dirent* buffer, argument 120 buffer->d_dev = volumeID; 121 buffer->d_ino = entry.nodeID; 122 memcpy(buffer->d_name, fNames + entry.nameOffset, entry.nameSize); 123 buffer->d_reclen = size; 246 dirent* buffer, size_t bufferSize) 264 buffer->d_dev = volumeID; 265 buffer->d_ino = nodeID; 266 memcpy(buffer 245 ReadNextEntry(dev_t volumeID, ino_t nodeID, bool align, dirent* buffer, size_t bufferSize) argument 328 Read(void* buffer, size_t bufferSize, off_t pos, size_t* bytesRead) const argument 372 void* buffer; member in struct:FUSEVolume::ReadDirBuffer 379 ReadDirBuffer(FUSEVolume* volume, FUSENode* directory, DirCookie* cookie, void* buffer, size_t bufferSize, uint32 maxEntries) argument 953 GetVNodeName(void* _node, char* buffer, size_t bufferSize) argument 1181 ReadSymlink(void* _node, char* buffer, size_t bufferSize, size_t* _bytesRead) argument 1937 Read(void* _node, void* _cookie, off_t pos, void* buffer, size_t bufferSize, size_t* _bytesRead) argument 1967 Write(void* _node, void* _cookie, off_t pos, const void* buffer, size_t bufferSize, size_t* _bytesWritten) argument 2218 ReadDir(void* _node, void* _cookie, void* buffer, size_t bufferSize, uint32 count, uint32* _countRead) argument 2386 ReadAttrDir(void* _node, void* _cookie, void* buffer, size_t bufferSize, uint32 count, uint32* _countRead) argument 2576 ReadAttr(void* _node, void* _cookie, off_t pos, void* buffer, size_t bufferSize, size_t* bytesRead) argument 3304 ReadDirBuffer* buffer = (ReadDirBuffer*)_buffer; local 3316 ReadDirBuffer* buffer = (ReadDirBuffer*)_buffer; local 3328 ReadDirBuffer* buffer = (ReadDirBuffer*)handle; local 3334 _AddReadDirEntryLowLevel(ReadDirBuffer* buffer, char* buf, size_t bufsize, const char* name, int type, ino_t nodeID, off_t offset) argument 3456 _AddReadDirEntry(ReadDirBuffer* buffer, const char* name, int type, ino_t nodeID, off_t offset) argument 3611 _InternalIO(FUSENode* node, FileCookie* cookie, const char* path, off_t pos, char* buffer, size_t& length, bool write) argument [all...] |
/haiku/src/add-ons/kernel/drivers/graphics/virtio/ |
H A D | virtio_gpu.cpp | 497 // create command buffer area 498 info->commandArea = create_area("virtiogpu command buffer", (void**)&info->commandBuffer, 692 virtio_gpu_read(void* cookie, off_t pos, void* buffer, size_t* _length) argument 700 virtio_gpu_write(void* cookie, off_t pos, const void* buffer, argument 709 virtio_gpu_ioctl(void* cookie, uint32 op, void* buffer, size_t length) argument 720 if (user_strlcpy((char*)buffer, ACCELERANT_NAME, 728 return user_memcpy(buffer, &info->sharedArea, sizeof(area_id)); 736 if (user_memcpy(&mode, buffer, sizeof(display_mode)) != B_OK)
|
/haiku/src/add-ons/kernel/drivers/disk/usb/usb_disk/ |
H A D | usb_disk.cpp | 276 void* buffer, size_t dataLength) 279 vec.iov_base = buffer; 587 void *buffer, size_t *dataLength, 591 vec.iov_base = buffer; 1564 usb_disk_ioctl(void *cookie, uint32 op, void *buffer, size_t length) argument 1583 return user_memcpy(buffer, &size, sizeof(size)); 1599 if (IS_USER_ADDRESS(buffer)) { 1600 if (user_memcpy(buffer, &ready, sizeof(status_t)) != B_OK) 1605 *(status_t *)buffer = ready; 1616 if (buffer 275 usb_disk_transfer_data(disk_device *device, bool directionIn, void* buffer, size_t dataLength) argument 586 usb_disk_operation(device_lun *lun, uint8* operation, size_t opLength, void *buffer, size_t *dataLength, bool directionIn, err_act *_action = NULL) argument [all...] |
/haiku/src/kits/tracker/ |
H A D | Utilities.h | 447 void HexDump(const void* buffer, int32 length);
|
H A D | QueryPoseView.h | 180 virtual int32 GetNextDirents(struct dirent* buffer, size_t length,
|
H A D | QueryPoseView.cpp | 343 BString buffer; local 352 &buffer); 356 if (tracker != NULL && buffer.Length() > 0) { 358 buffer.String()); 427 BString buffer; 429 buffer.LockBuffer((int32)info.size), 435 buffer.UnlockBuffer(); 446 fStatus = query.SetPredicate(buffer.String()); 462 fQueryListRep->fRefreshEveryMinute = buffer.IFindFirst("second") != -1 463 || buffer 481 char* buffer = NULL; local [all...] |
H A D | OpenWithWindow.h | 81 virtual int32 GetNextDirents(struct dirent* buffer, size_t length, 343 virtual int32 GetNextDirents(struct dirent* buffer, size_t length,
|
H A D | OpenWithWindow.cpp | 132 BString buffer(B_TRANSLATE("Open %name with:")); 133 buffer.ReplaceFirst("%name", ref.name); 135 SetTitle(buffer.String()); 1400 SearchForSignatureEntryList::GetNextDirents(struct dirent* buffer, argument 1403 return fIteratorList->GetNextDirents(buffer, length, count); 1832 ConditionalAllAppsIterator::GetNextDirents(struct dirent* buffer, argument 1839 return fWalker->GetNextDirents(buffer, length, count);
|
H A D | FindPanel.cpp | 480 BString buffer; local 481 status_t result = message.Flatten(buffer.LockBuffer(size), size); 484 buffer.String(), (size_t)size) != size) { 488 buffer.UnlockBuffer(); 1500 char buffer[B_FILE_NAME_LENGTH]; local 1502 strlcpy(buffer, type, sizeof(buffer)); 1503 strlcat(buffer, "/*", sizeof(buffer)); 1504 type = buffer; 1608 BString buffer; local 2306 char* buffer = new char[(size_t)size]; local 2359 BString buffer; local 2407 char* buffer = new char[info.size]; local 2446 char* buffer = new char[info.size]; local 2462 BString buffer; local [all...] |