Lines Matching refs:last_buf
393 drm_buf_t *last_buf = NULL; in gamma_dma_priority() local
500 if (last_buf) { in gamma_dma_priority()
501 drm_free_buffer(dev, last_buf); in gamma_dma_priority()
503 last_buf = buf; in gamma_dma_priority()
508 if (last_buf) { in gamma_dma_priority()
510 drm_free_buffer(dev, last_buf); in gamma_dma_priority()
526 drm_buf_t *last_buf = NULL; in gamma_dma_send_buffers() local
531 last_buf = dma->buflist[d->send_indices[d->send_count-1]]; in gamma_dma_send_buffers()
532 add_wait_queue(&last_buf->dma_wait, &entry); in gamma_dma_send_buffers()
537 remove_wait_queue(&last_buf->dma_wait, &entry); in gamma_dma_send_buffers()
547 if (!last_buf->waiting && !last_buf->pending) in gamma_dma_send_buffers()
557 remove_wait_queue(&last_buf->dma_wait, &entry); in gamma_dma_send_buffers()
559 || (last_buf->list==DRM_LIST_PEND && !last_buf->pending)) { in gamma_dma_send_buffers()
560 if (!waitqueue_active(&last_buf->dma_wait)) { in gamma_dma_send_buffers()
561 drm_free_buffer(dev, last_buf); in gamma_dma_send_buffers()
567 last_buf->waiting, in gamma_dma_send_buffers()
568 last_buf->pending, in gamma_dma_send_buffers()
570 last_buf->idx, in gamma_dma_send_buffers()
571 last_buf->list, in gamma_dma_send_buffers()
572 last_buf->pid, in gamma_dma_send_buffers()