Lines Matching refs:sg_map
409 ahc_dmamap_sync(ahc, ahc->scb_data->sg_dmat, scb->sg_map->sg_dmamap, in ahc_sync_sglist()
410 /*offset*/(scb->sg_list - scb->sg_map->sg_vaddr) in ahc_sync_sglist()
4882 struct sg_map_node *sg_map; in ahc_fini_scbdata() local
4884 while ((sg_map = SLIST_FIRST(&scb_data->sg_maps))!= NULL) { in ahc_fini_scbdata()
4887 sg_map->sg_dmamap); in ahc_fini_scbdata()
4889 sg_map->sg_vaddr, in ahc_fini_scbdata()
4890 sg_map->sg_dmamap); in ahc_fini_scbdata()
4891 kfree(sg_map); in ahc_fini_scbdata()
4933 struct sg_map_node *sg_map; in ahc_alloc_scbs() local
4946 sg_map = kmalloc(sizeof(*sg_map), GFP_ATOMIC); in ahc_alloc_scbs()
4948 if (sg_map == NULL) in ahc_alloc_scbs()
4953 (void **)&sg_map->sg_vaddr, in ahc_alloc_scbs()
4954 BUS_DMA_NOWAIT, &sg_map->sg_dmamap) != 0) { in ahc_alloc_scbs()
4955 kfree(sg_map); in ahc_alloc_scbs()
4959 SLIST_INSERT_HEAD(&scb_data->sg_maps, sg_map, links); in ahc_alloc_scbs()
4961 ahc_dmamap_load(ahc, scb_data->sg_dmat, sg_map->sg_dmamap, in ahc_alloc_scbs()
4962 sg_map->sg_vaddr, PAGE_SIZE, ahc_dmamap_cb, in ahc_alloc_scbs()
4963 &sg_map->sg_physaddr, /*flags*/0); in ahc_alloc_scbs()
4965 segs = sg_map->sg_vaddr; in ahc_alloc_scbs()
4966 physaddr = sg_map->sg_physaddr; in ahc_alloc_scbs()
4977 next_scb->sg_map = sg_map; in ahc_alloc_scbs()