Searched refs:buffers (Results 1 - 25 of 36) sorted by relevance

12

/haiku/src/add-ons/accelerants/radeon/
H A DCP.c81 // mark all indirect buffers that have been processed as being free;
93 // mark all sent indirect buffers as free
94 while( cp->buffers.oldest != -1 ) {
96 &cp->buffers.buffers[cp->buffers.oldest];
112 cp->buffers.newest = -1;
115 oldest_buffer->next = cp->buffers.free_list;
116 cp->buffers.free_list = cp->buffers
[all...]
H A DCP.h12 We use both the circular buffer and indirect buffers. To let the CP
25 buffers are currently used for virtual cards only, but could be
28 All indirect buffers have the same size: 4K (Radeons want them to
32 you get consistency problems), there are currently 253 buffers.
33 As the ring buffer only contains calls to indirect buffers and
40 Indirect buffers are recycled if there is none left. To track their
44 compares the tags of submitted buffers with scratch register 1 to
45 detect finished buffers.
67 return (uint32 *)(ai->mapped_memory[ai->si->cp.buffers.mem_type].data + ai->si->cp.buffers
[all...]
/haiku/src/apps/cortex/addons/common/
H A DSoundUtils.cpp121 // secs * ( (frames/sec) / (frames/buffer) ) = secs * (buffers/sec) = buffers
122 int buffers = 0; local
124 buffers = (int) ceil(us_to_s(duration)*(format.frame_rate/frames_per_buffer(format)));
126 return buffers;
/haiku/src/apps/cortex/support/
H A DSoundUtils.cpp121 // secs * ( (frames/sec) / (frames/buffer) ) = secs * (buffers/sec) = buffers
122 int buffers = 0; local
124 buffers = (int) ceil(us_to_s(duration)*(format.frame_rate/frames_per_buffer(format)));
126 return buffers;
/haiku/src/add-ons/kernel/drivers/graphics/radeon/
H A DCP_setup.c13 - 253 indirect buffers a 4k (1024 dwords)
277 // mark all buffers as being finished
332 // ring and indirect buffers can be either in AGP or PCI GART
407 SHOW_ERROR0( 0, "Cannot allocate buffers for status information" );
453 true, &cp->buffers.mem_handle, &offset );
456 SHOW_ERROR0( 0, "Cannot allocate indirect buffers" );
460 cp->buffers.mem_type = memory_type;
461 cp->buffers.mem_offset = offset;
462 cp->buffers.vm_start = MEM2GC( memory_type, cp->buffers
[all...]
/haiku/src/add-ons/kernel/network/stack/
H A Dnet_buffer.cpp136 struct list buffers; member in struct:net_buffer_private
327 out.Print("net buffer merge: buffers: %p + %p, after: %s "
620 while ((node = (data_node*)list_get_next_item(&buffer->buffers, node))
658 kprintf("allocated net buffers: %7" B_PRId32 " / %7" B_PRId32 ", peak %7"
676 data_node* node = (data_node*)list_get_first_item(&buffer->buffers);
684 node = (data_node*)list_get_next_item(&buffer->buffers, node);
1015 data_node* node = (data_node*)list_get_first_item(&buffer->buffers);
1017 node = (data_node*)list_get_next_item(&buffer->buffers, node);
1041 data_node* node = (data_node*)list_get_first_item(&source->buffers);
1053 node = (data_node*)list_get_next_item(&source->buffers, nod
[all...]
H A Dutility.cpp177 list_init(&fifo->buffers);
200 list_add_item(&fifo->buffers, buffer);
237 net_buffer* buffer = (net_buffer*)list_get_first_item(&fifo->buffers);
248 list_remove_item(&fifo->buffers, buffer);
289 net_buffer* buffer = (net_buffer*)list_remove_head_item(&fifo->buffers);
/haiku/src/apps/serialconnect/libvterm/src/
H A Dscreen.c59 /* Primary and Altscreen. buffers[1] is lazily allocated as needed */
60 ScreenCell *buffers[2]; member in struct:VTermScreen
62 /* buffer will == buffers[0] or buffers[1], depending on altscreen */
216 screen->buffer == screen->buffers[0]) { // not altscreen
438 if(val->boolean && !screen->buffers[1])
441 screen->buffer = val->boolean ? screen->buffers[1] : screen->buffers[0];
486 int is_altscreen = (screen->buffers[1] && screen->buffer == screen->buffers[
[all...]
/haiku/src/kits/media/
H A DBufferGroup.cpp71 area_id bufferArea = create_area("some buffers area", &startAddress,
106 BBufferGroup::BBufferGroup(int32 count, const media_buffer_id* buffers) argument
119 info.buffer = buffers[i];
261 // requesting of new buffers
296 // requesting of new buffers
321 BBuffer* buffers[fBufferCount];
322 status_t status = GetBufferList(fBufferCount, buffers);
327 status = message->AddInt32(name, int32(buffers[i]->ID()));
H A DBufferConsumer.cpp289 BBuffer *buffers[buffer_count]; local
291 if (group->GetBufferList(buffer_count, buffers) != B_OK)
294 command->buffers[i] = buffers[i]->ID();
429 // We no longer need to cache the buffers requested by the other end
H A DSharedBufferList.cpp276 // the buffers that don't fit the request
316 // And mark all buffers with the same ID as requested in
423 /*! Returns exactly \a bufferCount buffers from the group specified via its
428 BBuffer** buffers)
439 buffers[found++] = fInfos[i].buffer;
478 // find buffers with same id, but belonging to other groups
427 GetBufferList(sem_id groupReclaimSem, int32 bufferCount, BBuffer** buffers) argument
/haiku/src/add-ons/kernel/drivers/audio/null/
H A Ddriver.h27 void* buffers[STRMAXBUF]; member in struct:__anon1557
H A Dnull_hardware.c33 // Get the correct address for setting up the buffers
36 stream->buffers[i] = buffer + (i * buffer_size);
H A Dnull_multi.c225 // and initialize the virtual buffers properly
232 dprintf("null_audio %s: Error setting up playback buffers (%s)\n",
243 dprintf("null_audio %s: Error setting up recording buffers (%s)\n",
256 = (char*)device->playback_stream.buffers[bidx] + (playback_sample_size * cidx);
269 = (char*)device->record_stream.buffers[bidx] + (record_sample_size * cidx);
324 dprintf("null_audio: %s: %d buffers processed\n",
/haiku/headers/os/media/
H A DBufferGroup.h25 const media_buffer_id* buffers);
/haiku/src/add-ons/kernel/drivers/audio/sb16/
H A Ddriver.h27 void* buffers[STRMAXBUF]; member in struct:__anon538
H A Dsb16_multi_audio.c155 dprintf("%s: playback: %" B_PRId32 " buffers, %" B_PRIu32 " channels, %" B_PRIu32 " samples\n",
158 dprintf("%s: record: %" B_PRId32 " buffers, %" B_PRIu32 " channels, %" B_PRIu32 " samples\n",
189 dprintf("%s: Error setting up playback buffers (%s)\n", __func__, strerror(rc));
197 dprintf("%s: Error setting up recording buffers (%s)\n", __func__, strerror(rc));
209 = (char*)dev->playback_stream.buffers[bidx] + (playback_sample_size * cidx);
222 = (char*)dev->record_stream.buffers[bidx] + (record_sample_size * cidx);
261 dprintf("%s: %d buffers processed\n", __func__, debug_buffers_exchanged);
/haiku/headers/private/media/
H A DSharedBufferList.h51 BBuffer** buffers);
/haiku/src/apps/mediaplayer/supplier/
H A DMediaTrackAudioSupplier.cpp297 // Given two buffers starting at different frame offsets, this function
316 // Given two buffers starting at different frame offsets, this function
331 // Allocates a set of buffers.
357 // Frees the allocated buffers.
393 // Returns the first unused buffer or NULL if all buffers are used.
405 // Returns either an unused buffer or, if all buffers are used, the least
427 // buffer or, if all buffers are used, the least recently used buffer.
440 // Adds pointers to all buffers to the list that contain data of the
443 MediaTrackAudioSupplier::_GetBuffersFor(BList& buffers, int64 position, argument
446 buffers
[all...]
H A DMediaTrackAudioSupplier.h61 void _GetBuffersFor(BList& buffers, int64 position,
/haiku/src/libs/compat/freebsd_network/
H A Dusb.cpp248 usb_page_cache* buffers; member in struct:usb_xfer
329 xfer->buffers = NULL;
354 if (xfer->buffers != NULL) {
356 free(xfer->buffers[i].buffer);
357 free(xfer->buffers);
438 if (xfer->buffers == NULL)
439 xfer->buffers = (usb_page_cache*)calloc(xfer->max_frame_count, sizeof(usb_page_cache));
441 usb_page_cache* cache = &xfer->buffers[frindex];
/haiku/src/kits/game/
H A DGameProducer.cpp317 delete fBufferGroup; // waits for all buffers to recycle
323 BBuffer* buffers[1]; local
324 if (newGroup->GetBufferList(1, buffers) != B_OK)
326 fBufferSize = buffers[0]->SizeAvailable();
356 // A hardware capture node can't adjust; it simply emits buffers at
362 // buffers earlier in order to catch up. This argues that the
365 // to start producing buffers earlier to compensate.
385 // buffers earlier (or later) than we were previously. Make sure that the
458 // Going to start sending buffers so setup the needed bookkeeping
473 // get any more buffers fro
[all...]
/haiku/src/apps/mediaplayer/media_node_framework/audio/
H A DAudioProducer.cpp102 // alloc float buffers of this size
103 const int bufferCount = 10; // number of input buffers
104 float* buffers[bufferCount + 1]; local
106 buffers[i] = new float[sampleCount];
107 float* outBuffer = buffers[bufferCount];
108 // fill all buffers save the last one with arbitrary data and merge them
112 buffers[i][k] = ((float)i * (float)k)
119 outBuffer[k] += buffers[i][k];
124 delete[] buffers[i];
340 delete fBufferGroup; // waits for all buffers t
[all...]
/haiku/headers/private/graphics/radeon/
H A Dradeon_interface.h54 // number of indirect buffers
58 // as hardware wants buffers to be 4k aligned and as we store all
59 // buffers in one chunk, the size per buffer in bytes must be a multiple of 4k
417 overlay_buffer_node *overlay_buffers; // list of allocated overlay buffers
463 uint32 mem_handle; // handle of memory of indirect buffers
478 // indirect buffers (in non-local memory)
488 uint32 mem_offset; // offset of indirect buffers in non-local memory
489 uint32 vm_start; // start of indirect buffers as seen by graphics card
491 indirect_buffer buffers[NUM_INDIRECT_BUFFERS]; // info about buffers member in struct:__anon28::__anon31
493 } buffers; member in struct:__anon28
[all...]
/haiku/src/add-ons/kernel/busses/usb/
H A Dxhci.cpp1342 // create a series of buffers as requested by our caller.
1346 result->buffers = (void**)calloc(bufferCount,
1350 fStack->AllocateChunk((void **)&result->buffers, &dummy,
1353 if (result->buffers == NULL) {
1358 result->buffer_addrs = (phys_addr_t*)&result->buffers[bufferCount];
1362 // Optimization: If the requested total size of all buffers is less
1367 if (fStack->AllocateChunk(&result->buffers[0],
1375 result->buffers[i] = (void*)((addr_t)(result->buffers[i - 1])
1383 if (fStack->AllocateChunk(&result->buffers[
[all...]

Completed in 1038 milliseconds

12