Lines Matching refs:buffer

75 	int offset = 0;					/* used to determine next buffer to create */
76 uintptr_t adress, adress2, temp32; /* used to calculate buffer adresses */
87 /* find first empty slot (room for another buffer?) */
90 if (si->overlay.myBuffer[offset].buffer == NULL) break;
96 /* setup new scaler input buffer */
117 LOG(4, ("Overlay: Sorry, requested buffer pitch not supported, aborted\n"));
142 /* check if the requested buffer width is supported */
144 LOG(4, ("Overlay: Sorry, requested buffer width not supported, aborted\n"));
150 /* check if the requested buffer height is supported */
152 LOG(4, ("Overlay: Sorry, requested buffer height not supported, aborted\n"));
162 /* check if the requested buffer width is supported */
164 LOG(4, ("Overlay: Sorry, requested buffer width not supported, aborted\n"));
170 /* check if the requested buffer height is supported */
172 LOG(4, ("Overlay: Sorry, requested buffer height not supported, aborted\n"));
201 * A *positive* side-effect of assigning the first overlay buffer exactly at the end of the
202 * cardRAM is that apps that try to write beyond the buffer's space get a segfault immediately.
215 /* calculate 'preliminary' buffer size including slopspace */
258 LOG(4, ("Overlay: new buffer needs virtual adress $%08x\n", adress));
260 /* First check now if buffer to be defined is 'last one' in memory (speaking backwards):
261 * this is done to prevent a large buffer getting created in the space a small buffer
266 * If you are going to delete a overlay buffer you created, you should delete them *all* and
269 * If you don't, you might not get a buffer at all if you are trying to set up a larger one
275 if (si->overlay.myBuffer[cnt].buffer != NULL)
277 /* Check if the new buffer would fit into the space the single old one used here */
284 LOG(4,("Overlay: 'squeezing' in buffer:\n"
290 LOG(4, ("Overlay: Other buffer(s) exist after this one:\n"
316 /* continue buffer setup */
317 si->overlay.myBuffer[offset].buffer = (void *) adress;
335 LOG(4, ("Overlay: New buffer: addr $%p, dma_addr $%p, color space $%08x\n",
336 (uint8*)si->overlay.myBuffer[offset].buffer,
338 LOG(4, ("Overlay: New buffer's size is $%08x\n", si->overlay.myBufInfo[offset].size));
363 /* find the buffer */
366 if (si->overlay.myBuffer[offset].buffer == ob->buffer) break;
370 /* delete current buffer */
372 si->overlay.myBuffer[offset].buffer = NULL;
375 LOG(4,("Overlay: Release_buffer offset = %d, buffer released\n",offset));
381 /* this is no buffer of ours! */
388 /* no buffer specified! */
390 LOG(4,("Overlay: Release_overlay_buffer: no buffer specified, aborted!\n"));
410 /* find the buffer */
413 if (si->overlay.myBuffer[offset].buffer == ob->buffer) break;
428 * Note: this has to be in sync with the slopspace setup during buffer allocation.. */
434 * Note: this has to be in sync with the slopspace setup during buffer allocation.. */
508 /* this is no buffer of ours! */
509 LOG(4,("Overlay: Get_overlay_constraints: buffer is not ours, aborted!\n"));
579 int offset = 0; /* used for buffer index */
585 * release all overlay buffers. The buffer currently displayed at that moment, may need some
604 * The app will probably crash because it will want to write into this non-existant buffer
608 LOG(4,("no overlay buffer specified\n"));
624 /* find the buffer's offset */
627 if (si->overlay.myBuffer[offset].buffer == ob->buffer) break;
632 LOG(4,("succesfull, switching to buffer %d\n", offset));
641 /* this is no buffer of ours! */
642 LOG(4,("buffer is not ours, aborted!\n"));