Lines Matching refs:sg_map
416 ahc_dmamap_sync(ahc, ahc->scb_data->sg_dmat, scb->sg_map->sg_dmamap, in ahc_sync_sglist()
417 /*offset*/(scb->sg_list - scb->sg_map->sg_vaddr) in ahc_sync_sglist()
4924 struct sg_map_node *sg_map; in ahc_fini_scbdata() local
4926 while ((sg_map = SLIST_FIRST(&scb_data->sg_maps))!= NULL) { in ahc_fini_scbdata()
4929 sg_map->sg_dmamap); in ahc_fini_scbdata()
4931 sg_map->sg_vaddr, in ahc_fini_scbdata()
4932 sg_map->sg_dmamap); in ahc_fini_scbdata()
4933 kfree(sg_map); in ahc_fini_scbdata()
4970 struct sg_map_node *sg_map; in ahc_alloc_scbs() local
4983 sg_map = kmalloc(sizeof(*sg_map), GFP_ATOMIC); in ahc_alloc_scbs()
4985 if (sg_map == NULL) in ahc_alloc_scbs()
4990 (void **)&sg_map->sg_vaddr, in ahc_alloc_scbs()
4991 BUS_DMA_NOWAIT, &sg_map->sg_dmamap) != 0) { in ahc_alloc_scbs()
4992 kfree(sg_map); in ahc_alloc_scbs()
4996 SLIST_INSERT_HEAD(&scb_data->sg_maps, sg_map, links); in ahc_alloc_scbs()
4998 ahc_dmamap_load(ahc, scb_data->sg_dmat, sg_map->sg_dmamap, in ahc_alloc_scbs()
4999 sg_map->sg_vaddr, PAGE_SIZE, ahc_dmamap_cb, in ahc_alloc_scbs()
5000 &sg_map->sg_physaddr, /*flags*/0); in ahc_alloc_scbs()
5002 segs = sg_map->sg_vaddr; in ahc_alloc_scbs()
5003 physaddr = sg_map->sg_physaddr; in ahc_alloc_scbs()
5016 next_scb->sg_map = sg_map; in ahc_alloc_scbs()