Lines Matching defs:gmap
145 struct gaps_dmamap *gmap;
160 gmap = malloc(sizeof(*gmap), M_DMAMAP,
162 if (gmap == NULL)
165 memset(gmap, 0, sizeof(*gmap));
167 gmap->gd_buftype = GAPS_DMA_BUFTYPE_INVALID;
169 map = &gmap->gd_dmamap;
194 free(gmap, M_DEVBUF);
230 struct gaps_dmamap *gmap = (void *) map;
268 gmap->gd_origbuf = addr;
269 gmap->gd_buftype = GAPS_DMA_BUFTYPE_LINEAR;
282 struct gaps_dmamap *gmap = (void *) map;
321 gmap->gd_origbuf = m0;
322 gmap->gd_buftype = GAPS_DMA_BUFTYPE_MBUF;
352 struct gaps_dmamap *gmap = (void *) map;
354 if (gmap->gd_buftype == GAPS_DMA_BUFTYPE_INVALID) {
368 gmap->gd_buftype = GAPS_DMA_BUFTYPE_INVALID;
376 struct gaps_dmamap *gmap = (void *) map;
401 switch (gmap->gd_buftype) {
418 (uint8_t *)gmap->gd_origbuf + offset, len);
428 (uint8_t *)gmap->gd_origbuf + offset, len);
438 struct mbuf *m, *m0 = gmap->gd_origbuf;
512 printf("unknown buffer type %d\n", gmap->gd_buftype);