Lines Matching refs:sg_map
534 scb->sg_map->dmamap, in ahd_sync_sglist()
6518 struct map_node *sg_map; in ahd_fini_scbdata() local
6520 while ((sg_map = SLIST_FIRST(&scb_data->sg_maps)) != NULL) { in ahd_fini_scbdata()
6523 sg_map->dmamap); in ahd_fini_scbdata()
6525 sg_map->vaddr, sg_map->dmamap); in ahd_fini_scbdata()
6526 kfree(sg_map); in ahd_fini_scbdata()
6757 struct map_node *sg_map; in ahd_alloc_scbs() local
6809 sg_map = SLIST_FIRST(&scb_data->sg_maps); in ahd_alloc_scbs()
6810 segs = sg_map->vaddr + offset; in ahd_alloc_scbs()
6811 sg_busaddr = sg_map->physaddr + offset; in ahd_alloc_scbs()
6813 sg_map = kmalloc(sizeof(*sg_map), GFP_ATOMIC); in ahd_alloc_scbs()
6815 if (sg_map == NULL) in ahd_alloc_scbs()
6820 (void **)&sg_map->vaddr, in ahd_alloc_scbs()
6821 BUS_DMA_NOWAIT, &sg_map->dmamap) != 0) { in ahd_alloc_scbs()
6822 kfree(sg_map); in ahd_alloc_scbs()
6826 SLIST_INSERT_HEAD(&scb_data->sg_maps, sg_map, links); in ahd_alloc_scbs()
6828 ahd_dmamap_load(ahd, scb_data->sg_dmat, sg_map->dmamap, in ahd_alloc_scbs()
6829 sg_map->vaddr, ahd_sglist_allocsize(ahd), in ahd_alloc_scbs()
6830 ahd_dmamap_cb, &sg_map->physaddr, /*flags*/0); in ahd_alloc_scbs()
6832 segs = sg_map->vaddr; in ahd_alloc_scbs()
6833 sg_busaddr = sg_map->physaddr; in ahd_alloc_scbs()
6896 next_scb->sg_map = sg_map; in ahd_alloc_scbs()