Searched refs:sg_map (Results 1 - 19 of 19) sorted by relevance

/freebsd-10.3-release/sys/dev/ata/
H A Data-dma.c178 &slot->sg_map)) {
179 device_printf(ch->dev, "FAILURE - alloc sg_map\n");
183 if (bus_dmamap_load(slot->sg_tag, slot->sg_map, slot->sg, MAXTABSZ,
224 bus_dmamap_unload(slot->sg_tag, slot->sg_map);
227 if (slot->sg_map) {
228 bus_dmamem_free(slot->sg_tag, slot->sg, slot->sg_map);
229 bus_dmamap_destroy(slot->sg_tag, slot->sg_map);
231 slot->sg_map = NULL;
323 bus_dmamap_sync(request->dma->sg_tag, request->dma->sg_map,
341 bus_dmamap_sync(request->dma->sg_tag, request->dma->sg_map,
[all...]
H A Data-all.h344 bus_dmamap_t sg_map; /* SG list DMA map */ member in struct:ata_dmaslot
/freebsd-10.3-release/sys/dev/advansys/
H A Dadwcam.c155 struct sg_map_node *sg_map; local
157 sg_map = malloc(sizeof(*sg_map), M_DEVBUF, M_NOWAIT);
159 if (sg_map == NULL)
163 if (bus_dmamem_alloc(adw->sg_dmat, (void **)&sg_map->sg_vaddr,
164 BUS_DMA_NOWAIT, &sg_map->sg_dmamap) != 0) {
165 free(sg_map, M_DEVBUF);
169 SLIST_INSERT_HEAD(&adw->sg_maps, sg_map, links);
171 bus_dmamap_load(adw->sg_dmat, sg_map->sg_dmamap, sg_map
185 struct sg_map_node *sg_map; local
765 struct sg_map_node *sg_map; local
[all...]
/freebsd-10.3-release/sys/dev/dpt/
H A Ddpt_scsi.c309 struct sg_map_node *sg_map; local
311 sg_map = malloc(sizeof(*sg_map), M_DEVBUF, M_NOWAIT);
313 if (sg_map == NULL)
317 if (bus_dmamem_alloc(dpt->sg_dmat, (void **)&sg_map->sg_vaddr,
318 BUS_DMA_NOWAIT, &sg_map->sg_dmamap) != 0) {
319 free(sg_map, M_DEVBUF);
323 (void)bus_dmamap_load(dpt->sg_dmat, sg_map->sg_dmamap, sg_map->sg_vaddr,
324 PAGE_SIZE, dptmapmem, &sg_map
339 struct sg_map_node *sg_map; local
1159 struct sg_map_node *sg_map; local
1238 struct sg_map_node *sg_map; local
[all...]
/freebsd-10.3-release/sys/dev/aha/
H A Daha.c196 struct sg_map_node *sg_map; local
198 while ((sg_map = SLIST_FIRST(&aha->sg_maps))!= NULL) {
200 bus_dmamap_unload(aha->sg_dmat, sg_map->sg_dmamap);
201 bus_dmamem_free(aha->sg_dmat, sg_map->sg_vaddr,
202 sg_map->sg_dmamap);
203 free(sg_map, M_DEVBUF);
638 struct sg_map_node *sg_map; local
646 sg_map = malloc(sizeof(*sg_map), M_DEVBUF, M_NOWAIT);
648 if (sg_map
[all...]
/freebsd-10.3-release/sys/dev/buslogic/
H A Dbt.c231 struct sg_map_node *sg_map; local
233 while ((sg_map = SLIST_FIRST(&bt->sg_maps))!= NULL) {
236 sg_map->sg_dmamap);
237 bus_dmamem_free(bt->sg_dmat, sg_map->sg_vaddr,
238 sg_map->sg_dmamap);
239 free(sg_map, M_DEVBUF);
1007 struct sg_map_node *sg_map; local
1019 sg_map = malloc(sizeof(*sg_map), M_DEVBUF, M_NOWAIT);
1021 if (sg_map
[all...]
/freebsd-10.3-release/sys/dev/aac/
H A Daac_cam.c458 cm->cm_sgtable = &srb->sg_map;
463 srb->sg_map.SgCount = 1;
464 srb->sg_map.SgEntry[0].SgAddress =
466 srb->sg_map.SgEntry[0].SgByteCount =
475 srb->sg_map.SgCount = 0;
476 srb->sg_map.SgEntry[0].SgByteCount = 0;
H A Daac.c3098 if (srbcmd->sg_map.SgCount > 1) {
3105 srbcmd->sg_map.SgCount * sizeof(struct aac_sg_entry))) {
3106 sge = srbcmd->sg_map.SgEntry;
3113 srbcmd->sg_map.SgCount * sizeof(struct aac_sg_entry64))) {
3115 sge64 = (struct aac_sg_entry64 *)srbcmd->sg_map.SgEntry;
3131 if (srbcmd->sg_map.SgCount == 1)
3134 cm->cm_sgtable = (struct aac_sg_table *)&srbcmd->sg_map;
H A Daacreg.h1397 struct aac_sg_table sg_map; member in struct:aac_srb
/freebsd-10.3-release/sys/powerpc/powermac/
H A Data_dbdma.c244 bus_dmamap_sync(request->dma->sg_tag, request->dma->sg_map,
/freebsd-10.3-release/sys/dev/aic7xxx/
H A Daic7xxx_inline.h211 aic_dmamap_sync(ahc, ahc->scb_data->sg_dmat, scb->sg_map->sg_dmamap,
212 /*offset*/(scb->sg_list - scb->sg_map->sg_vaddr)
H A Daic7xxx.c4485 struct sg_map_node *sg_map; local
4487 while ((sg_map = SLIST_FIRST(&scb_data->sg_maps))!= NULL) {
4490 sg_map->sg_dmamap);
4492 sg_map->sg_vaddr,
4493 sg_map->sg_dmamap);
4494 free(sg_map, M_DEVBUF);
4531 struct sg_map_node *sg_map; local
4544 sg_map = malloc(sizeof(*sg_map), M_DEVBUF, M_NOWAIT);
4546 if (sg_map
[all...]
H A Daic79xx.c5829 struct map_node *sg_map; local
5831 while ((sg_map = SLIST_FIRST(&scb_data->sg_maps)) != NULL) {
5834 sg_map->dmamap);
5836 sg_map->vaddr, sg_map->dmamap);
5837 free(sg_map, M_DEVBUF);
6070 struct map_node *sg_map; local
6123 sg_map = SLIST_FIRST(&scb_data->sg_maps);
6124 segs = sg_map->vaddr + offset;
6125 sg_busaddr = sg_map
[all...]
H A Daic79xx.h633 struct map_node *sg_map; member in struct:scb
H A Daic79xx_inline.h399 scb->sg_map->dmamap,
H A Daic7xxx.h596 struct sg_map_node *sg_map; member in struct:scb
/freebsd-10.3-release/sys/dev/aacraid/
H A Daacraid.c2868 if (srbcmd->sg_map.SgCount > 1) {
2874 srbcmd->sg_map.SgCount * sizeof(struct aac_sg_entry))) {
2875 struct aac_sg_entry *sgp = srbcmd->sg_map.SgEntry;
2879 srbcmd->sg_map.SgCount * sizeof(struct aac_sg_entry64))) {
2882 (struct aac_sg_entry64 *)srbcmd->sg_map.SgEntry;
2898 if (srbcmd->sg_map.SgCount == 1)
2957 cm->cm_sgtable = (struct aac_sg_table *)&srbcmd->sg_map;
H A Daacraid_reg.h1487 struct aac_sg_table sg_map; member in struct:aac_srb
H A Daacraid_cam.c930 cm->cm_sgtable = &srb->sg_map;

Completed in 150 milliseconds