Lines Matching defs:buf
545 struct drm_buf *buf;
620 buf = &entry->buflist[entry->buf_count];
621 buf->idx = dma->buf_count + entry->buf_count;
622 buf->total = alignment;
623 buf->order = order;
624 buf->used = 0;
626 buf->offset = (dma->byte_count + offset);
627 buf->bus_address = agp_offset + offset;
628 buf->address = (void *)(agp_offset + offset);
629 buf->next = NULL;
630 buf->pending = 0;
631 buf->file_priv = NULL;
633 buf->dev_priv_size = dev->driver->buf_priv_size;
634 buf->dev_private = kmalloc(buf->dev_priv_size, GFP_KERNEL);
635 if (!buf->dev_private) {
643 (void) memset(buf->dev_private, 0, buf->dev_priv_size);
645 DRM_DEBUG("buffer %d @ %p\n", entry->buf_count, buf->address);
696 struct drm_buf *buf;
778 buf = &entry->buflist[entry->buf_count];
779 buf->idx = dma->buf_count + entry->buf_count;
780 buf->total = alignment;
781 buf->order = order;
782 buf->used = 0;
784 buf->offset = (dma->byte_count + offset);
785 buf->bus_address = agp_offset + offset;
786 buf->address = (void *)(agp_offset + offset + dev->sg->handle);
787 buf->next = NULL;
788 buf->pending = 0;
789 buf->file_priv = NULL;
791 buf->dev_priv_size = dev->driver->buf_priv_size;
792 buf->dev_private = kmalloc(buf->dev_priv_size, GFP_KERNEL);
793 if (!buf->dev_private) {
802 (void) memset(buf->dev_private, 0, buf->dev_priv_size);
804 DRM_DEBUG("buffer %d @ %p\n", entry->buf_count, buf->address);
1026 struct drm_buf *buf;
1043 buf = dma->buflist[idx];
1044 if (buf->file_priv != file) {
1049 drm_free_buffer(dev, buf);