Lines Matching full:dg
96 static struct dcons_global dg;
175 if (dg.dma_tag != NULL)
176 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_POSTREAD);
180 if (dg.dma_tag != NULL)
181 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_PREREAD);
196 if (dg.dma_tag != NULL)
197 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_POSTWRITE);
201 if (dg.dma_tag != NULL)
202 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_PREWRITE);
310 bzero(&dg, sizeof(dg));
311 dcons_conf = &dg;
312 dg.cdev = &dcons_consdev;
313 dg.buf = NULL;
314 dg.size = DCONS_BUF_SIZE;
330 dg.buf = (struct dcons_buf *)(vm_offset_t)(KERNBASE + addr);
332 dg.buf = (struct dcons_buf *)(vm_offset_t)(PMAP_MAP_LOW +
335 dg.size = size;
336 if (dcons_load_buffer(dg.buf, dg.size, sc) < 0)
337 dg.buf = NULL;
340 if (dg.buf != NULL)
349 dg.buf = (struct dcons_buf *) bssbuf;
350 dcons_init(dg.buf, dg.size, sc);
359 dg.buf = (struct dcons_buf *) contigmalloc(dg.size,
361 if (dg.buf == NULL)
363 dcons_init(dg.buf, dg.size, sc);
367 dcons_buf = dg.buf;
443 dg.buf->magic = 0;
445 free(dg.buf, M_DEVBUF);
454 dg.buf->magic = 0;