Lines Matching refs:sg
254 struct scatterlist *sg = hwif->sg_table; in ide_build_sglist() local
274 sg[nents - 1].length += bh->b_size; in ide_build_sglist()
282 memset(&sg[nents], 0, sizeof(*sg)); in ide_build_sglist()
285 sg[nents].page = bh->b_page; in ide_build_sglist()
286 sg[nents].offset = bh_offset(bh); in ide_build_sglist()
292 sg[nents].address = bh->b_data; in ide_build_sglist()
296 sg[nents].length = bh->b_size; in ide_build_sglist()
304 return pci_map_sg(hwif->pci_dev, sg, nents, ddir); in ide_build_sglist()
320 struct scatterlist *sg = hwif->sg_table; in ide_raw_build_sglist() local
332 memset(&sg[nents], 0, sizeof(*sg)); in ide_raw_build_sglist()
333 sg[nents].address = virt_addr; in ide_raw_build_sglist()
334 sg[nents].length = 128 * SECTOR_SIZE; in ide_raw_build_sglist()
339 memset(&sg[nents], 0, sizeof(*sg)); in ide_raw_build_sglist()
340 sg[nents].address = virt_addr; in ide_raw_build_sglist()
341 sg[nents].length = sector_count * SECTOR_SIZE; in ide_raw_build_sglist()
345 memset(&sg[nents], 0, sizeof(*sg)); in ide_raw_build_sglist()
346 sg[nents].address = virt_addr; in ide_raw_build_sglist()
347 sg[nents].length = 128 * SECTOR_SIZE; in ide_raw_build_sglist()
352 memset(&sg[nents], 0, sizeof(*sg)); in ide_raw_build_sglist()
353 sg[nents].address = virt_addr; in ide_raw_build_sglist()
354 sg[nents].length = sector_count * SECTOR_SIZE; in ide_raw_build_sglist()
357 return pci_map_sg(hwif->pci_dev, sg, nents, hwif->sg_dma_direction); in ide_raw_build_sglist()
379 struct scatterlist *sg; in ide_build_dmatable() local
389 sg = hwif->sg_table; in ide_build_dmatable()
390 while (i && sg_dma_len(sg)) { in ide_build_dmatable()
394 cur_addr = sg_dma_address(sg); in ide_build_dmatable()
395 cur_len = sg_dma_len(sg); in ide_build_dmatable()
436 sg++; in ide_build_dmatable()
471 struct scatterlist *sg = HWIF(drive)->sg_table; in ide_destroy_dmatable() local
474 pci_unmap_sg(dev, sg, nents, HWIF(drive)->sg_dma_direction); in ide_destroy_dmatable()