Lines Matching refs:sg_map
542 scb->sg_map->dmamap, in ahd_sync_sglist()
6573 struct map_node *sg_map; in ahd_fini_scbdata() local
6575 while ((sg_map = SLIST_FIRST(&scb_data->sg_maps)) != NULL) { in ahd_fini_scbdata()
6578 sg_map->dmamap); in ahd_fini_scbdata()
6580 sg_map->vaddr, sg_map->dmamap); in ahd_fini_scbdata()
6581 kfree(sg_map); in ahd_fini_scbdata()
6812 struct map_node *sg_map; in ahd_alloc_scbs() local
6864 sg_map = SLIST_FIRST(&scb_data->sg_maps); in ahd_alloc_scbs()
6865 segs = sg_map->vaddr + offset; in ahd_alloc_scbs()
6866 sg_busaddr = sg_map->physaddr + offset; in ahd_alloc_scbs()
6868 sg_map = kmalloc(sizeof(*sg_map), GFP_ATOMIC); in ahd_alloc_scbs()
6870 if (sg_map == NULL) in ahd_alloc_scbs()
6875 (void **)&sg_map->vaddr, in ahd_alloc_scbs()
6876 BUS_DMA_NOWAIT, &sg_map->dmamap) != 0) { in ahd_alloc_scbs()
6877 kfree(sg_map); in ahd_alloc_scbs()
6881 SLIST_INSERT_HEAD(&scb_data->sg_maps, sg_map, links); in ahd_alloc_scbs()
6883 ahd_dmamap_load(ahd, scb_data->sg_dmat, sg_map->dmamap, in ahd_alloc_scbs()
6884 sg_map->vaddr, ahd_sglist_allocsize(ahd), in ahd_alloc_scbs()
6885 ahd_dmamap_cb, &sg_map->physaddr, /*flags*/0); in ahd_alloc_scbs()
6887 segs = sg_map->vaddr; in ahd_alloc_scbs()
6888 sg_busaddr = sg_map->physaddr; in ahd_alloc_scbs()
6954 next_scb->sg_map = sg_map; in ahd_alloc_scbs()