Lines Matching refs:sense_map
543 scb->sense_map->dmamap, in ahd_sync_sense()
6758 struct map_node *sense_map; in ahd_alloc_scbs() local
6846 sense_map = SLIST_FIRST(&scb_data->sense_maps); in ahd_alloc_scbs()
6847 sense_data = sense_map->vaddr + offset; in ahd_alloc_scbs()
6848 sense_busaddr = sense_map->physaddr + offset; in ahd_alloc_scbs()
6850 sense_map = kmalloc(sizeof(*sense_map), GFP_ATOMIC); in ahd_alloc_scbs()
6852 if (sense_map == NULL) in ahd_alloc_scbs()
6857 (void **)&sense_map->vaddr, in ahd_alloc_scbs()
6858 BUS_DMA_NOWAIT, &sense_map->dmamap) != 0) { in ahd_alloc_scbs()
6859 kfree(sense_map); in ahd_alloc_scbs()
6863 SLIST_INSERT_HEAD(&scb_data->sense_maps, sense_map, links); in ahd_alloc_scbs()
6865 ahd_dmamap_load(ahd, scb_data->sense_dmat, sense_map->dmamap, in ahd_alloc_scbs()
6866 sense_map->vaddr, PAGE_SIZE, ahd_dmamap_cb, in ahd_alloc_scbs()
6867 &sense_map->physaddr, /*flags*/0); in ahd_alloc_scbs()
6869 sense_data = sense_map->vaddr; in ahd_alloc_scbs()
6870 sense_busaddr = sense_map->physaddr; in ahd_alloc_scbs()
6897 next_scb->sense_map = sense_map; in ahd_alloc_scbs()