Lines Matching refs:buffer

81 	int offset = 0;					/* used to determine next buffer to create */
82 uintptr_t adress, adress2, temp32; /* used to calculate buffer adresses */
93 /* find first empty slot (room for another buffer?) */
96 if (si->overlay.myBuffer[offset].buffer == NULL) break;
102 /* setup new scaler input buffer */
128 LOG(4,("Overlay: Sorry, requested buffer pitch not supported, aborted\n"));
158 LOG(4,("Overlay: Sorry, requested buffer pitch not supported, aborted\n");
178 /* check if the requested buffer width is supported */
181 LOG(4,("Overlay: Sorry, requested buffer width not supported, aborted\n"));
189 /* check if the requested buffer height is supported */
191 LOG(4,("Overlay: Sorry, requested buffer height not supported, aborted\n"));
200 LOG(4,("Overlay: Sorry, requested buffer width not supported, aborted\n"));
208 /* check if the requested buffer height is supported */
210 LOG(4,("Overlay: Sorry, requested buffer height not supported, aborted\n"));
239 * A *positive* side-effect of assigning the first overlay buffer exactly at the end of the
240 * cardRAM is that apps that try to write beyond the buffer's space get a segfault immediately.
253 /* calculate 'preliminary' buffer size including slopspace */
289 LOG(4,("Overlay: new buffer needs virtual adress $%08x\n", adress));
291 /* First check now if buffer to be defined is 'last one' in memory (speaking backwards):
292 * this is done to prevent a large buffer getting created in the space a small buffer
297 * If you are going to delete a overlay buffer you created, you should delete them *all* and
300 * If you don't, you might not get a buffer at all if you are trying to set up a larger one
306 if (si->overlay.myBuffer[cnt].buffer != NULL)
308 /* Check if the new buffer would fit into the space the single old one used here */
315 LOG(4,("Overlay: 'squeezing' in buffer:\n"
323 LOG(4,("Overlay: Other buffer(s) exist after this one:\n"
349 /* continue buffer setup */
350 si->overlay.myBuffer[offset].buffer = (void *) adress;
371 LOG(4, ("Overlay: New buffer: addr $%p, dma_addr $%p, color space $%08x\n",
372 (uint8*)si->overlay.myBuffer[offset].buffer,
374 LOG(4, ("Overlay: New buffer's size is $%08x\n", si->overlay.myBufInfo[offset].size));
399 /* find the buffer */
402 if (si->overlay.myBuffer[offset].buffer == ob->buffer) break;
406 /* delete current buffer */
408 si->overlay.myBuffer[offset].buffer = NULL;
411 LOG(4,("Overlay: Release_buffer offset = %d, buffer released\n",offset));
417 /* this is no buffer of ours! */
424 /* no buffer specified! */
426 LOG(4,("Overlay: Release_overlay_buffer: no buffer specified, aborted!\n"));
446 /* find the buffer */
449 if (si->overlay.myBuffer[offset].buffer == ob->buffer) break;
462 * Note: this has to be in sync with the slopspace setup during buffer allocation.. */
468 * Note: this has to be in sync with the slopspace setup during buffer allocation.. */
530 /* this is no buffer of ours! */
531 LOG(4,("Overlay: Get_overlay_constraints: buffer is not ours, aborted!\n"));
601 int offset = 0; /* used for buffer index */
607 * release all overlay buffers. The buffer currently displayed at that moment, may need some
626 * The app will probably crash because it will want to write into this non-existant buffer
630 LOG(4,("no overlay buffer specified\n"));
646 /* find the buffer's offset */
649 if (si->overlay.myBuffer[offset].buffer == ob->buffer) break;
654 LOG(4,("succesfull, switching to buffer %d\n", offset));
662 /* this is no buffer of ours! */
663 LOG(4,("buffer is not ours, aborted!\n"));