Lines Matching refs:hscb_map
522 scb->hscb_map->dmamap, in ahd_sync_scb()
523 /*offset*/(uint8_t*)scb->hscb - scb->hscb_map->vaddr, in ahd_sync_scb()
829 ahd->next_queued_hscb_map = scb->hscb_map; in ahd_swap_with_next_hscb()
831 scb->hscb_map = q_hscb_map; in ahd_swap_with_next_hscb()
6533 struct map_node *hscb_map; in ahd_fini_scbdata() local
6535 while ((hscb_map = SLIST_FIRST(&scb_data->hscb_maps)) != NULL) { in ahd_fini_scbdata()
6538 hscb_map->dmamap); in ahd_fini_scbdata()
6540 hscb_map->vaddr, hscb_map->dmamap); in ahd_fini_scbdata()
6541 kfree(hscb_map); in ahd_fini_scbdata()
6756 struct map_node *hscb_map; in ahd_alloc_scbs() local
6776 hscb_map = SLIST_FIRST(&scb_data->hscb_maps); in ahd_alloc_scbs()
6777 hscb = &((struct hardware_scb *)hscb_map->vaddr)[offset]; in ahd_alloc_scbs()
6778 hscb_busaddr = hscb_map->physaddr + (offset * sizeof(*hscb)); in ahd_alloc_scbs()
6780 hscb_map = kmalloc(sizeof(*hscb_map), GFP_ATOMIC); in ahd_alloc_scbs()
6782 if (hscb_map == NULL) in ahd_alloc_scbs()
6787 (void **)&hscb_map->vaddr, in ahd_alloc_scbs()
6788 BUS_DMA_NOWAIT, &hscb_map->dmamap) != 0) { in ahd_alloc_scbs()
6789 kfree(hscb_map); in ahd_alloc_scbs()
6793 SLIST_INSERT_HEAD(&scb_data->hscb_maps, hscb_map, links); in ahd_alloc_scbs()
6795 ahd_dmamap_load(ahd, scb_data->hscb_dmat, hscb_map->dmamap, in ahd_alloc_scbs()
6796 hscb_map->vaddr, PAGE_SIZE, ahd_dmamap_cb, in ahd_alloc_scbs()
6797 &hscb_map->physaddr, /*flags*/0); in ahd_alloc_scbs()
6799 hscb = (struct hardware_scb *)hscb_map->vaddr; in ahd_alloc_scbs()
6800 hscb_busaddr = hscb_map->physaddr; in ahd_alloc_scbs()
6895 next_scb->hscb_map = hscb_map; in ahd_alloc_scbs()