psg 1728 drivers/ata/libata-core.c struct scatterlist *psg = NULL, sg; psg 1734 drivers/ata/libata-core.c psg = &sg; psg 1738 drivers/ata/libata-core.c return ata_exec_internal_sg(dev, tf, cdb, dma_dir, psg, n_elem, psg 1235 drivers/dma/at_xdmac.c struct scatterlist *sg, *psg = NULL, *ppsg = NULL; psg 1263 drivers/dma/at_xdmac.c if (psg) psg 1265 drivers/dma/at_xdmac.c (sg_dma_address(psg) + sg_dma_len(psg)); psg 1288 drivers/dma/at_xdmac.c (sg_dma_len(ppsg) == sg_dma_len(psg))) { psg 1323 drivers/dma/at_xdmac.c sg_dma_address(sg) < sg_dma_address(psg)) { psg 1351 drivers/dma/at_xdmac.c sg_dma_len(psg) == sg_dma_len(sg)) { psg 1376 drivers/dma/at_xdmac.c ppsg = psg; psg 1377 drivers/dma/at_xdmac.c psg = sg; psg 591 drivers/message/fusion/lsi/mpi.h #define MPI_pSGE_GET_FLAGS(psg) MPI_SGE_GET_FLAGS((psg)->FlagsLength) psg 592 drivers/message/fusion/lsi/mpi.h #define MPI_pSGE_GET_LENGTH(psg) MPI_SGE_LENGTH((psg)->FlagsLength) psg 593 drivers/message/fusion/lsi/mpi.h #define MPI_pSGE_SET_FLAGS_LENGTH(psg,f,l) (psg)->FlagsLength = MPI_SGE_SET_FLAGS_LENGTH(f,l) psg 595 drivers/message/fusion/lsi/mpi.h #define MPI_pSGE_SET_FLAGS(psg,f) (psg)->FlagsLength |= MPI_SGE_SET_FLAGS(f) psg 596 drivers/message/fusion/lsi/mpi.h #define MPI_pSGE_SET_LENGTH(psg,l) (psg)->FlagsLength |= MPI_SGE_LENGTH(l) psg 218 drivers/scsi/aacraid/aachba.c static long aac_build_sg64(struct scsi_cmnd *scsicmd, struct sgmap64 *psg); psg 219 drivers/scsi/aacraid/aachba.c static long aac_build_sgraw(struct scsi_cmnd *scsicmd, struct sgmapraw *psg); psg 3908 drivers/scsi/aacraid/aachba.c static long aac_build_sg(struct scsi_cmnd *scsicmd, struct sgmap *psg) psg 3916 drivers/scsi/aacraid/aachba.c psg->count = 0; psg 3917 drivers/scsi/aacraid/aachba.c psg->sg[0].addr = 0; psg 3918 drivers/scsi/aacraid/aachba.c psg->sg[0].count = 0; psg 3924 drivers/scsi/aacraid/aachba.c psg->count = cpu_to_le32(nseg); psg 3927 drivers/scsi/aacraid/aachba.c psg->sg[i].addr = cpu_to_le32(sg_dma_address(sg)); psg 3928 drivers/scsi/aacraid/aachba.c psg->sg[i].count = cpu_to_le32(sg_dma_len(sg)); psg 3933 drivers/scsi/aacraid/aachba.c u32 temp = le32_to_cpu(psg->sg[i-1].count) - psg 3935 drivers/scsi/aacraid/aachba.c psg->sg[i-1].count = cpu_to_le32(temp); psg 3948 drivers/scsi/aacraid/aachba.c static long aac_build_sg64(struct scsi_cmnd *scsicmd, struct sgmap64 *psg) psg 3957 drivers/scsi/aacraid/aachba.c psg->count = 0; psg 3958 drivers/scsi/aacraid/aachba.c psg->sg[0].addr[0] = 0; psg 3959 drivers/scsi/aacraid/aachba.c psg->sg[0].addr[1] = 0; psg 3960 drivers/scsi/aacraid/aachba.c psg->sg[0].count = 0; psg 3969 drivers/scsi/aacraid/aachba.c psg->sg[i].addr[0] = cpu_to_le32(addr & 0xffffffff); psg 3970 drivers/scsi/aacraid/aachba.c psg->sg[i].addr[1] = cpu_to_le32(addr>>32); psg 3971 drivers/scsi/aacraid/aachba.c psg->sg[i].count = cpu_to_le32(count); psg 3974 drivers/scsi/aacraid/aachba.c psg->count = cpu_to_le32(nseg); psg 3977 drivers/scsi/aacraid/aachba.c u32 temp = le32_to_cpu(psg->sg[i-1].count) - psg 3979 drivers/scsi/aacraid/aachba.c psg->sg[i-1].count = cpu_to_le32(temp); psg 3991 drivers/scsi/aacraid/aachba.c static long aac_build_sgraw(struct scsi_cmnd *scsicmd, struct sgmapraw *psg) psg 3999 drivers/scsi/aacraid/aachba.c psg->count = 0; psg 4000 drivers/scsi/aacraid/aachba.c psg->sg[0].next = 0; psg 4001 drivers/scsi/aacraid/aachba.c psg->sg[0].prev = 0; psg 4002 drivers/scsi/aacraid/aachba.c psg->sg[0].addr[0] = 0; psg 4003 drivers/scsi/aacraid/aachba.c psg->sg[0].addr[1] = 0; psg 4004 drivers/scsi/aacraid/aachba.c psg->sg[0].count = 0; psg 4005 drivers/scsi/aacraid/aachba.c psg->sg[0].flags = 0; psg 4014 drivers/scsi/aacraid/aachba.c psg->sg[i].next = 0; psg 4015 drivers/scsi/aacraid/aachba.c psg->sg[i].prev = 0; psg 4016 drivers/scsi/aacraid/aachba.c psg->sg[i].addr[1] = cpu_to_le32((u32)(addr>>32)); psg 4017 drivers/scsi/aacraid/aachba.c psg->sg[i].addr[0] = cpu_to_le32((u32)(addr & 0xffffffff)); psg 4018 drivers/scsi/aacraid/aachba.c psg->sg[i].count = cpu_to_le32(count); psg 4019 drivers/scsi/aacraid/aachba.c psg->sg[i].flags = 0; psg 4022 drivers/scsi/aacraid/aachba.c psg->count = cpu_to_le32(nseg); psg 4025 drivers/scsi/aacraid/aachba.c u32 temp = le32_to_cpu(psg->sg[i-1].count) - psg 4027 drivers/scsi/aacraid/aachba.c psg->sg[i-1].count = cpu_to_le32(temp); psg 700 drivers/scsi/aacraid/commctrl.c struct sgmap64* psg = (struct sgmap64*)&srbcmd->sg; psg 745 drivers/scsi/aacraid/commctrl.c psg->sg[i].addr[0] = cpu_to_le32(addr & 0xffffffff); psg 746 drivers/scsi/aacraid/commctrl.c psg->sg[i].addr[1] = cpu_to_le32(addr>>32); psg 748 drivers/scsi/aacraid/commctrl.c psg->sg[i].count = cpu_to_le32(sg_count[i]); psg 801 drivers/scsi/aacraid/commctrl.c psg->sg[i].addr[0] = cpu_to_le32(addr & 0xffffffff); psg 802 drivers/scsi/aacraid/commctrl.c psg->sg[i].addr[1] = cpu_to_le32(addr>>32); psg 804 drivers/scsi/aacraid/commctrl.c psg->sg[i].count = cpu_to_le32(sg_count[i]); psg 810 drivers/scsi/aacraid/commctrl.c psg->count = cpu_to_le32(sg_indx+1); psg 812 drivers/scsi/aacraid/commctrl.c psg->count = 0; psg 816 drivers/scsi/aacraid/commctrl.c struct sgmap* psg = &srbcmd->sg; psg 856 drivers/scsi/aacraid/commctrl.c psg->sg[i].addr = cpu_to_le32(addr & 0xffffffff); psg 858 drivers/scsi/aacraid/commctrl.c psg->sg[i].count = cpu_to_le32(sg_count[i]); psg 896 drivers/scsi/aacraid/commctrl.c psg->sg[i].addr = cpu_to_le32(addr); psg 898 drivers/scsi/aacraid/commctrl.c psg->sg[i].count = cpu_to_le32(sg_count[i]); psg 903 drivers/scsi/aacraid/commctrl.c psg->count = cpu_to_le32(sg_indx+1); psg 905 drivers/scsi/aacraid/commctrl.c psg->count = 0; psg 847 drivers/scsi/hptiop.c static int hptiop_buildsgl(struct scsi_cmnd *scp, struct hpt_iopsg *psg) psg 865 drivers/scsi/hptiop.c psg[idx].pci_address = cpu_to_le64(sg_dma_address(sg)) | psg 867 drivers/scsi/hptiop.c psg[idx].size = cpu_to_le32(sg_dma_len(sg)); psg 868 drivers/scsi/hptiop.c psg[idx].eot = (idx == HPT_SCP(scp)->sgcnt - 1) ? psg 1093 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_pSGE_GET_FLAGS(psg) MPI2_SGE_GET_FLAGS((psg)->FlagsLength) psg 1094 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_pSGE_GET_LENGTH(psg) MPI2_SGE_LENGTH((psg)->FlagsLength) psg 1095 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_pSGE_SET_FLAGS_LENGTH(psg, f, l) ((psg)->FlagsLength = \ psg 1099 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_pSGE_SET_FLAGS(psg, f) ((psg)->FlagsLength |= \ psg 1101 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_pSGE_SET_LENGTH(psg, l) ((psg)->FlagsLength |= \ psg 1244 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_pSGE_GET_FLAGS(psg) \ psg 1245 drivers/scsi/mpt3sas/mpi/mpi2.h MPI2_IEEE32_SGE_GET_FLAGS((psg)->FlagsLength) psg 1246 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_pSGE_GET_LENGTH(psg) \ psg 1247 drivers/scsi/mpt3sas/mpi/mpi2.h MPI2_IEEE32_SGE_LENGTH((psg)->FlagsLength) psg 1248 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_pSGE_SET_FLAGS_LENGTH(psg, f, l) ((psg)->FlagsLength = \ psg 1252 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_pSGE_SET_FLAGS(psg, f) ((psg)->FlagsLength |= \ psg 1254 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_pSGE_SET_LENGTH(psg, l) ((psg)->FlagsLength |= \ psg 1226 drivers/target/target_core_sbc.c struct scatterlist *dsg = cmd->t_data_sg, *psg; psg 1232 drivers/target/target_core_sbc.c for_each_sg(cmd->t_prot_sg, psg, cmd->t_prot_nents, i) { psg 1233 drivers/target/target_core_sbc.c paddr = kmap_atomic(sg_page(psg)) + psg->offset; psg 1236 drivers/target/target_core_sbc.c for (j = 0; j < psg->length; psg 1246 drivers/target/target_core_sbc.c kunmap_atomic(paddr - psg->offset); psg 1259 drivers/target/target_core_sbc.c kunmap_atomic(paddr - psg->offset); psg 1285 drivers/target/target_core_sbc.c kunmap_atomic(paddr - psg->offset); psg 1334 drivers/target/target_core_sbc.c struct scatterlist *psg; psg 1344 drivers/target/target_core_sbc.c for_each_sg(cmd->t_prot_sg, psg, cmd->t_prot_nents, i) { psg 1347 drivers/target/target_core_sbc.c paddr = kmap_atomic(sg_page(psg)) + psg->offset; psg 1348 drivers/target/target_core_sbc.c psg_len = min(left, psg->length); psg 1370 drivers/target/target_core_sbc.c kunmap_atomic(paddr - psg->offset); psg 1377 drivers/target/target_core_sbc.c unsigned int ei_lba, struct scatterlist *psg, int psg_off) psg 1389 drivers/target/target_core_sbc.c for (; psg && sector < start + sectors; psg = sg_next(psg)) { psg 1390 drivers/target/target_core_sbc.c paddr = kmap_atomic(sg_page(psg)) + psg->offset; psg 1393 drivers/target/target_core_sbc.c for (i = psg_off; i < psg->length && psg 1404 drivers/target/target_core_sbc.c kunmap_atomic(paddr - psg->offset); psg 1428 drivers/target/target_core_sbc.c kunmap_atomic(paddr - psg->offset); psg 1441 drivers/target/target_core_sbc.c kunmap_atomic(paddr - psg->offset); psg 1452 drivers/target/target_core_sbc.c kunmap_atomic(paddr - psg->offset);