Lines Matching refs:sg_map
4412 struct sg_map_node *sg_map; in ahc_fini_scbdata() local
4414 while ((sg_map = SLIST_FIRST(&scb_data->sg_maps))!= NULL) { in ahc_fini_scbdata()
4417 sg_map->sg_dmamap); in ahc_fini_scbdata()
4419 sg_map->sg_vaddr, in ahc_fini_scbdata()
4420 sg_map->sg_dmamap); in ahc_fini_scbdata()
4421 free(sg_map, M_DEVBUF); in ahc_fini_scbdata()
4458 struct sg_map_node *sg_map; in ahc_alloc_scbs() local
4471 sg_map = malloc(sizeof(*sg_map), M_DEVBUF, M_NOWAIT); in ahc_alloc_scbs()
4473 if (sg_map == NULL) in ahc_alloc_scbs()
4478 (void **)&sg_map->sg_vaddr, in ahc_alloc_scbs()
4479 BUS_DMA_NOWAIT, &sg_map->sg_dmamap) != 0) { in ahc_alloc_scbs()
4480 free(sg_map, M_DEVBUF); in ahc_alloc_scbs()
4484 SLIST_INSERT_HEAD(&scb_data->sg_maps, sg_map, links); in ahc_alloc_scbs()
4486 ahc_dmamap_load(ahc, scb_data->sg_dmat, sg_map->sg_dmamap, in ahc_alloc_scbs()
4487 sg_map->sg_vaddr, PAGE_SIZE, ahc_dmamap_cb, in ahc_alloc_scbs()
4488 &sg_map->sg_physaddr, /*flags*/0); in ahc_alloc_scbs()
4490 segs = sg_map->sg_vaddr; in ahc_alloc_scbs()
4491 physaddr = sg_map->sg_physaddr; in ahc_alloc_scbs()
4505 next_scb->sg_map = sg_map; in ahc_alloc_scbs()