Searched refs:buffer (Results 76 - 100 of 2144) sorted by last modified time

1234567891011>>

/haiku/src/apps/haikudepot/server/
H A DWebAppInterface.cpp1141 char buffer[LOG_PAYLOAD_LIMIT]; local
1146 if (B_OK != requestData->ReadExactly(buffer, size)) {
1150 bool esc = buffer[i] > 126 ||
1151 (buffer[i] < 0x20 && buffer[i] != 0x0a);
1154 printf("\\u%02x", buffer[i]);
1156 putchar(buffer[i]);
/haiku/src/apps/powerstatus/
H A DPowerStatusView.cpp368 PowerStatusView::_SetLabel(char* buffer, size_t bufferLength) argument
373 buffer[0] = '\0';
393 snprintf(buffer, bufferLength, "%s%s%s", open, data.String(), close);
395 snprintf(buffer, bufferLength, "%s%" B_PRIdTIME ":%02" B_PRIdTIME "%s",
/haiku/src/apps/deskcalc/
H A DCalcView.cpp833 char buffer[256]; local
834 memset(buffer, 0, sizeof(buffer));
838 read = file.Read(buffer, sizeof(buffer) - 1);
841 BString expression(buffer);
/haiku/src/add-ons/kernel/network/protocols/tcp/
H A DEndpointManager.cpp549 EndpointManager::ReplyWithReset(tcp_segment_header& segment, net_buffer* buffer) argument
557 AddressModule()->set_to(reply->source, buffer->destination);
558 AddressModule()->set_to(reply->destination, buffer->source);
568 outSegment.acknowledge = segment.sequence + buffer->size;
H A DEndpointManager.h90 net_buffer* buffer);
/haiku/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/pci/
H A Dif_iwm.c2243 /* Enable RX DMA, 4KB buffer size. */
5033 * To be used only in order to compare reorder buffer head with NSSN.
5103 struct iwm_reorder_buffer *buffer, uint32_t reorder_data, uint32_t gp2)
5107 if (gp2 != buffer->consec_oldsn_ampdu_gp2) {
5114 if (!buffer->consec_oldsn_prev_drop)
5115 buffer->consec_oldsn_drops = 0;
5118 buffer->consec_oldsn_ampdu_gp2 = gp2;
5119 } else if (buffer->consec_oldsn_prev_drop) {
5134 buffer->consec_oldsn_prev_drop = 1;
5135 buffer
5102 iwm_oldsn_workaround(struct iwm_softc *sc, struct ieee80211_node *ni, int tid, struct iwm_reorder_buffer *buffer, uint32_t reorder_data, uint32_t gp2) argument
5164 struct iwm_reorder_buffer *buffer; local
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/
H A Dif_iwx.c780 DPRINTF(("%s: Sorry - debug buffer is only %luK while you requested %luK\n",
798 DPRINTF(("%s: External buffer size for monitor is too big %d, "
4823 * To be used only in order to compare reorder buffer head with NSSN.
4893 struct iwx_reorder_buffer *buffer, uint32_t reorder_data, uint32_t gp2)
4897 if (gp2 != buffer->consec_oldsn_ampdu_gp2) {
4904 if (!buffer->consec_oldsn_prev_drop)
4905 buffer->consec_oldsn_drops = 0;
4908 buffer->consec_oldsn_ampdu_gp2 = gp2;
4909 } else if (buffer->consec_oldsn_prev_drop) {
4924 buffer
4892 iwx_oldsn_workaround(struct iwx_softc *sc, struct ieee80211_node *ni, int tid, struct iwx_reorder_buffer *buffer, uint32_t reorder_data, uint32_t gp2) argument
4954 struct iwx_reorder_buffer *buffer; local
[all...]
/haiku/src/add-ons/kernel/drivers/disk/nvme/
H A Dnvme_disk.cpp638 IOBuffer* buffer = request->Buffer(); local
640 if (!buffer->IsPhysical()) {
641 status = buffer->LockMemory(request->TeamID(), request->IsWrite());
663 for (size_t i = 0; i < buffer->VecCount(); i++) {
664 generic_io_vec virt = buffer->VecAt(i);
681 // Try again, with the larger buffer this time.
695 nvme_request.iovecs = (physical_entry*)buffer->Vecs();
696 nvme_request.iovec_count = buffer->VecCount();
798 nvme_disk_read(void* cookie, off_t pos, void* buffer, size_t* length) argument
810 status_t status = request.Init(pos, (addr_t)buffer, *lengt
821 nvme_disk_write(void* cookie, off_t pos, const void* buffer, size_t* length) argument
932 nvme_disk_ioctl(void* cookie, uint32 op, void* buffer, size_t length) argument
[all...]
/haiku/src/add-ons/kernel/drivers/audio/hda/
H A Dhda_controller.cpp283 dprintf("hda: stream buffer not completed (id:%" B_PRIu32 ")\n",
292 // for determining the currently active buffer, it should be good enough.
299 // Determine the buffer we're switching to. Some chipsets seem to trigger
301 // round it, so we still get the right buffer.
486 // reset DMA position buffer
529 the DMA position buffer.
875 // Calculate size of buffer (aligned to 128 bytes)
880 "buffer length %" B_PRIu32 "\n", stream->sample_size,
891 uint8* buffer; local
892 stream->buffer_area = create_area("hda buffers", (void**)&buffer,
[all...]
/haiku/src/add-ons/kernel/busses/virtio/virtio_pci/
H A Dvirtio_pci.cpp76 void* buffer, size_t size)
87 } * v = (union regs*)buffer;
317 uint8* buffer = (uint8*)_buffer; local
323 *buffer = *(uint8*)offset;
325 *buffer = bus->pci->read_io_8(bus->device, offset);
330 *(uint16*)buffer = *(uint16*)offset;
332 *(uint16*)buffer = bus->pci->read_io_16(bus->device, offset);
336 *(uint32*)buffer = *(uint32*)offset;
338 *(uint32*)buffer = bus->pci->read_io_32(bus->device,
342 buffer
75 virtio_pci_find_capability(virtio_pci_sim_info* bus, uint8 cfgType, void* buffer, size_t size) argument
361 const uint8* buffer = (const uint8*)_buffer; local
[all...]
/haiku/src/add-ons/kernel/busses/i2c/pch/
H A Dpch_i2c.h104 void* buffer; member in struct:__anon7
H A Dpch_i2c.cpp148 TRACE("exec_command: write command buffer\n");
158 uint8* buffer = (uint8*)cmdBuffer; local
160 uint32 cmd = buffer[i];
167 TRACE("exec_command: processing buffer %" B_PRIuSIZE " bytes\n",
171 uint8* buffer = (uint8*)dataBuffer; local
177 cmd = buffer[i];
216 buffer[readPos++] = read;
219 if (IS_BLOCK_OP(op) && readPos > 0 && dataLength > buffer[0])
220 dataLength = buffer[0] + 1;
329 acpi_data buffer; local
[all...]
/haiku/src/system/kernel/vm/
H A Dvm.cpp4582 // this keeps a user space thread from passing a buffer that crosses
5530 \param buffer A safely accessible kernel buffer to be copied from/to.
5532 \param copyToUnsafe If \c true, memory is copied from \a buffer to
5536 vm_debug_copy_page_memory(team_id teamID, void* unsafeMemory, void* buffer, argument
5594 return vm_memcpy_to_physical(physicalAddress, buffer, size, false);
5597 return vm_memcpy_from_physical(buffer, physicalAddress, size, false);
5638 \param size Size in bytes of the string buffer pointed to by \a to.
/haiku/src/kits/tracker/
H A DUtilities.cpp1118 char* buffer = string->LockBuffer(length + 1); local
1119 stream->Read(buffer, (size_t)length + 1);
1243 char* buffer = new char [strlen(text) + 1]; local
1244 strcpy(buffer, text);
1246 if (strstr(buffer, "k") || strstr(buffer, "K")) {
1247 val = strtoll(buffer, &end, 10);
1249 } else if (strstr(buffer, "mb") || strstr(buffer, "MB")) {
1250 val = strtoll(buffer,
1329 unsigned char* buffer = (unsigned char*)buf; local
[all...]
H A DTracker.cpp435 char* buffer = new char[size]; local
436 message.Flatten(buffer, size);
437 deskDir.WriteAttr(kAttrOpenWindows, B_MESSAGE_TYPE, 0, buffer,
439 delete[] buffer;
1492 char* buffer = (char*)malloc((size_t)attrInfo.size); local
1494 if (deskDir.ReadAttr(kAttrOpenWindows, B_MESSAGE_TYPE, 0, buffer,
1496 || message.Unflatten(buffer) != B_OK) {
1497 free(buffer);
1501 free(buffer);
H A DPoseView.cpp422 char* buffer = new char[size]; local
423 off_t result = node->Read(name, 0, B_RAW_TYPE, size, buffer);
426 stream.WriteAt(0, buffer, size);
443 delete[] buffer;
543 char* buffer = new char[size]; local
544 off_t result = node->Read(name, 0, B_RAW_TYPE, size, buffer);
547 stream.WriteAt(0, buffer, size);
557 delete[] buffer;
2504 const void* buffer; local
2507 B_MIME_TYPE, &buffer,
3042 char* buffer = new char[ExtendedPoseInfo::SizeWithHeadroom(size)]; local
3419 char* buffer = new char[1024]; local
4395 char buffer[256]; local
4844 char* buffer = new char [size]; local
5666 BString buffer; local
[all...]
/haiku/src/add-ons/media/media-add-ons/usb_webcam/addons/uvc/
H A DUVCCamDevice.cpp80 uint8 buffer[1024]; local
82 generic = (usb_descriptor*)buffer;
101 sizeof(buffer)) == B_OK; k++) {
124 sizeof(buffer)) == B_OK; k++) {
961 uint8 buffer[1024]; local
963 usb_descriptor* generic = (usb_descriptor*)buffer;
978 sizeof(buffer)) == B_OK; k++) {
1236 UVCCamDevice::FillFrameBuffer(BBuffer* buffer, bigtime_t* stamp) argument
1238 memset(buffer->Data(), 0, buffer
[all...]
/haiku/src/add-ons/media/media-add-ons/multi_audio/
H A DMultiAudioNode.cpp214 // we'll use the consumer's preferred buffer size, if any
241 // we'll use the consumer's preferred buffer size, if any
611 MultiAudioNode::BufferReceived(BBuffer* buffer) argument
614 switch (buffer->Header()->type) {
617 status_t status = ApplyParameterData(buffer->Data(),buffer->SizeUsed());
621 buffer->Recycle();
625 if ((buffer->Flags() & BBuffer::B_SMALL_BUFFER) != 0) {
629 buffer->Recycle();
631 media_timed_event event(buffer
1163 BBuffer* buffer = const_cast<BBuffer*>((BBuffer*)event->pointer); local
1871 BBuffer* buffer = _FillNextBuffer(bufferInfo, *output); local
1998 _FillNextBuffer(node_input& input, BBuffer* buffer) argument
2169 void* buffer = malloc(bufferSize); local
[all...]
/haiku/src/add-ons/kernel/network/protocols/ipv6/
H A Dipv6.cpp69 uint16 GetHeaderOffset(net_buffer* buffer, uint32 headerCode = ~0u) const;
93 net_buffer* buffer, bool lastFragment);
234 IPv6Header::GetHeaderOffset(net_buffer* buffer, uint32 headerCode) const argument
248 status_t status = gBufferModule->read(buffer, offset,
268 buffer->protocol = next;
299 net_buffer* buffer; local
300 while ((buffer = fFragments.RemoveHead()) != NULL) {
301 gBufferModule->free(buffer);
307 FragmentPacket::AddFragment(uint16 start, uint16 end, net_buffer* buffer, argument
337 gBufferModule->free(buffer);
541 net_buffer* buffer = *_buffer; local
612 send_fragments(ipv6_protocol* protocol, struct net_route* route, net_buffer* buffer, uint32 mtu) argument
725 deliver_multicast(net_protocol_module_info* module, net_buffer* buffer, bool deliverToRaw, net_interface *interface) argument
751 deliver_multicast(net_protocol_module_info* module, net_buffer* buffer, bool deliverToRaw) argument
786 raw_receive_data(net_buffer* buffer) argument
1246 ip6_select_hoplimit(net_protocol* _protocol, net_buffer* buffer) argument
1266 ipv6_send_routed_data(net_protocol* _protocol, struct net_route* route, net_buffer* buffer) argument
1356 ipv6_send_data(net_protocol* _protocol, net_buffer* buffer) argument
1453 ipv6_receive_data(net_buffer* buffer) argument
1563 ipv6_deliver_data(net_protocol* _protocol, net_buffer* buffer) argument
1590 ipv6_process_ancillary_data_no_container(net_protocol* _protocol, net_buffer* buffer, void* msgControl, size_t msgControlLen) argument
[all...]
/haiku/src/add-ons/kernel/network/protocols/ipv4/
H A Dipv4.cpp78 net_buffer* buffer, bool lastFragment);
260 net_buffer* buffer; local
261 while ((buffer = fFragments.RemoveHead()) != NULL) {
262 gBufferModule->free(buffer);
268 FragmentPacket::AddFragment(uint16 start, uint16 end, net_buffer* buffer, argument
298 gBufferModule->free(buffer);
302 fIndex = buffer->index;
303 // adopt the buffer's device index
311 gBufferModule->remove_header(buffer, previous->fragment.end - start);
316 gBufferModule->remove_trailer(buffer, en
541 net_buffer* buffer = *_buffer; local
606 send_fragments(ipv4_protocol* protocol, struct net_route* route, net_buffer* buffer, uint32 mtu) argument
695 deliver_multicast(net_protocol_module_info* module, net_buffer* buffer, bool deliverToRaw) argument
751 raw_receive_data(net_buffer* buffer) argument
1474 ipv4_send_routed_data(net_protocol* _protocol, struct net_route* route, net_buffer* buffer) argument
1612 ipv4_send_data(net_protocol* _protocol, net_buffer* buffer) argument
1722 ipv4_receive_data(net_buffer* buffer) argument
1866 ipv4_deliver_data(net_protocol* _protocol, net_buffer* buffer) argument
1878 ipv4_error_received(net_error error, net_buffer* buffer) argument
1947 ipv4_process_ancillary_data_no_container(net_protocol* protocol, net_buffer* buffer, void* msgControl, size_t msgControlLen) argument
[all...]
/haiku/src/add-ons/kernel/drivers/power/acpi_thermal/
H A Dacpi_thermal.c149 acpi_thermal_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
165 acpi_data buffer; local
166 buffer.pointer = &object;
167 buffer.length = sizeof(object);
175 NULL, &buffer);
182 NULL, &buffer);
189 NULL, &buffer);
/haiku/src/add-ons/kernel/drivers/power/acpi_lid/
H A Dacpi_lid.cpp136 acpi_lid_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
/haiku/src/add-ons/kernel/drivers/power/acpi_ac/
H A Dacpi_ac.cpp125 acpi_ac_write(void* cookie, off_t position, const void* buffer, size_t* num_bytes) argument
/haiku/src/add-ons/media/plugins/raw_decoder/
H A DRawDecoderPlugin.cpp110 // since we can translate to a different buffer size,
113 // I don't believe we can negotiate the buffer size with the reader
205 // I don't believe we can negotiate the buffer size with the reader
206 // the decoder might use a different buffer for output but it must read all bytes given.
479 RawDecoder::Decode(void *buffer, int64 *frameCount, argument
482 char *output_buffer = (char *)buffer;
496 fSwapInput(const_cast<void *>(fChunkBuffer), fChunkSize / fInputSampleSize); // XXX TODO! FIX THIS, we write to a const buffer!!!
517 fSwapOutput(buffer, *frameCount * fInputFormat.u.raw_audio.channel_count);
/haiku/src/servers/app/
H A DBitmapManager.cpp117 uint8* buffer = NULL; local
128 // and buffer location to the BBitmap
140 buffer = (uint8*)overlay->OverlayBuffer()->buffer;
148 buffer = (uint8*)bitmap->fClientMemory.Allocate(allocator,
150 if (buffer != NULL) {
158 buffer = (uint8*)malloc(bitmap->BitsLength());
159 if (buffer != NULL) {
168 if (buffer != NULL) {
178 bitmap->fBuffer = buffer;
209 int8* buffer = (int8*)memory->Clone(clientArea, areaOffset); local
[all...]

Completed in 436 milliseconds

1234567891011>>