Home
last modified time | relevance | path

Searched refs:psg (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/drivers/scsi/aacraid/
Dcommctrl.c462 struct sgmap64* psg = (struct sgmap64*)&srbcmd->sg; in aac_send_raw_srb() local
472 …if ((data_dir == SCSI_DATA_NONE) && psg->count) { // Dogs and cats sleeping with eachother - shoul… in aac_send_raw_srb()
478 for (i = 0; i < psg->count; i++) { in aac_send_raw_srb()
482 p = kmalloc(psg->sg[i].count,GFP_KERNEL|__GFP_DMA); in aac_send_raw_srb()
485 psg->sg[i].count,i,psg->count); in aac_send_raw_srb()
489 sg_user[i] = (ulong)psg->sg[i].addr; in aac_send_raw_srb()
494 if(copy_from_user(p,psg->sg[i].addr,psg->sg[i].count)){ in aac_send_raw_srb()
500 addr = pci_map_single(dev->pdev, p, psg->sg[i].count, scsi_to_pci_dma_dir(data_dir)); in aac_send_raw_srb()
503 psg->sg[i].addr[1] = (u32)(le_addr>>32); in aac_send_raw_srb()
504 psg->sg[i].addr[0] = (u32)(le_addr & 0xffffffff); in aac_send_raw_srb()
[all …]
Daachba.c222 static unsigned long aac_build_sg64(Scsi_Cmnd* scsicmd, struct sgmap64* psg);
1633 static unsigned long aac_build_sg(Scsi_Cmnd* scsicmd, struct sgmap* psg) in aac_build_sg() argument
1640 psg->count = cpu_to_le32(0); in aac_build_sg()
1641 psg->sg[0].addr = cpu_to_le32(NULL); in aac_build_sg()
1642 psg->sg[0].count = cpu_to_le32(0); in aac_build_sg()
1651 psg->count = cpu_to_le32(sg_count); in aac_build_sg()
1656 psg->sg[i].addr = cpu_to_le32(sg_dma_address(sg)); in aac_build_sg()
1657 psg->sg[i].count = cpu_to_le32(sg_dma_len(sg)); in aac_build_sg()
1663 psg->sg[i-1].count -= (byte_count - scsicmd->request_bufflen); in aac_build_sg()
1678 psg->count = cpu_to_le32(1); in aac_build_sg()
[all …]
/linux-2.4.37.9/drivers/message/fusion/lsi/
Dmpi.h543 #define MPI_pSGE_GET_FLAGS(psg) MPI_SGE_GET_FLAGS((psg)->FlagsLength) argument
544 #define MPI_pSGE_GET_LENGTH(psg) MPI_SGE_LENGTH((psg)->FlagsLength) argument
545 #define MPI_pSGE_SET_FLAGS_LENGTH(psg,f,l) (psg)->FlagsLength = MPI_SGE_SET_FLAGS_LENGTH(f,l) argument
547 #define MPI_pSGE_SET_FLAGS(psg,f) (psg)->FlagsLength |= MPI_SGE_SET_FLAGS(f) argument
548 #define MPI_pSGE_SET_LENGTH(psg,l) (psg)->FlagsLength |= MPI_SGE_LENGTH(l) argument
/linux-2.4.37.9/drivers/scsi/
Dlibata-core.c2426 struct scatterlist *psg = &qc->pad_sgent; in ata_sg_clean() local
2427 void *addr = kmap_atomic(psg->page, KM_IRQ0); in ata_sg_clean()
2428 memcpy(addr + psg->offset, pad_buf, qc->pad_len); in ata_sg_clean()
2429 kunmap_atomic(psg->page, KM_IRQ0); in ata_sg_clean()
2615 struct scatterlist *psg = &qc->pad_sgent; in ata_sg_setup_one() local
2625 sg_dma_address(psg) = ap->pad_dma + (qc->tag * ATA_DMA_PAD_SZ); in ata_sg_setup_one()
2626 sg_dma_len(psg) = ATA_DMA_PAD_SZ; in ata_sg_setup_one()
2685 struct scatterlist *psg = &qc->pad_sgent; in ata_sg_setup() local
2697 psg->page = nth_page(lsg->page, offset >> PAGE_SHIFT); in ata_sg_setup()
2698 psg->offset = offset_in_page(offset); in ata_sg_setup()
[all …]