Lines Matching refs:buffer

73 	int offset = 0;					/* used to determine next buffer to create */
74 uint32 adress, adress2, temp32; /* used to calculate buffer adresses */
85 /* find first empty slot (room for another buffer?) */
88 if (si->overlay.myBuffer[offset].buffer == NULL) break;
94 /* setup new scaler input buffer */
117 LOG(4,("Overlay: Sorry, requested buffer pitch not supported, aborted\n"));
136 /* check if the requested buffer width is supported */
139 LOG(4,("Overlay: Sorry, requested buffer width not supported, aborted\n"));
146 /* check if the requested buffer height is supported */
149 LOG(4,("Overlay: Sorry, requested buffer height not supported, aborted\n"));
177 * A *positive* side-effect of assigning the first overlay buffer exactly at the end of the
178 * cardRAM is that apps that try to write beyond the buffer's space get a segfault immediately.
191 /* calculate 'preliminary' buffer size including slopspace */
227 LOG(4,("Overlay: new buffer needs virtual adress $%08x\n", adress));
229 /* First check now if buffer to be defined is 'last one' in memory (speaking backwards):
230 * this is done to prevent a large buffer getting created in the space a small buffer
235 * If you are going to delete a overlay buffer you created, you should delete them *all* and
238 * If you don't, you might not get a buffer at all if you are trying to set up a larger one
244 if (si->overlay.myBuffer[cnt].buffer != NULL)
246 /* Check if the new buffer would fit into the space the single old one used here */
253 LOG(4,("Overlay: 'squeezing' in buffer:\n"
261 LOG(4,("Overlay: Other buffer(s) exist after this one:\n"
287 /* continue buffer setup */
288 si->overlay.myBuffer[offset].buffer = (void *) adress;
299 LOG(4,("Overlay: New buffer: addr $%08x, dma_addr $%08x, color space $%08x\n",
300 (uint32)((uint8*)si->overlay.myBuffer[offset].buffer),
302 LOG(4,("Overlay: New buffer's size is $%08x\n", si->overlay.myBufInfo[offset].size));
328 /* find the buffer */
331 if (si->overlay.myBuffer[offset].buffer == ob->buffer) break;
335 /* delete current buffer */
337 si->overlay.myBuffer[offset].buffer = NULL;
340 LOG(4,("Overlay: Release_buffer offset = %d, buffer released\n",offset));
346 /* this is no buffer of ours! */
353 /* no buffer specified! */
355 LOG(4,("Overlay: Release_overlay_buffer: no buffer specified, aborted!\n"));
375 /* find the buffer */
378 if (si->overlay.myBuffer[offset].buffer == ob->buffer) break;
393 * Note: this has to be in sync with the slopspace setup during buffer allocation.. */
399 * Note: this has to be in sync with the slopspace setup during buffer allocation.. */
473 /* this is no buffer of ours! */
474 LOG(4,("Overlay: Get_overlay_constraints: buffer is not ours, aborted!\n"));
544 int offset = 0; /* used for buffer index */
550 * release all overlay buffers. The buffer currently displayed at that moment, may need some
569 * The app will probably crash because it will want to write into this non-existant buffer
573 LOG(4,("no overlay buffer specified\n"));
589 /* find the buffer's offset */
592 if (si->overlay.myBuffer[offset].buffer == ob->buffer) break;
597 LOG(4,("succesfull, switching to buffer %d\n", offset));
606 /* this is no buffer of ours! */
607 LOG(4,("buffer is not ours, aborted!\n"));