/linux-4.4.14/drivers/scsi/mpt3sas/mpi/ |
H A D | mpi2.h | 982 #define MPI2_pSGE_GET_FLAGS(psg) MPI2_SGE_GET_FLAGS((psg)->FlagsLength) 983 #define MPI2_pSGE_GET_LENGTH(psg) MPI2_SGE_LENGTH((psg)->FlagsLength) 984 #define MPI2_pSGE_SET_FLAGS_LENGTH(psg, f, l) ((psg)->FlagsLength = \ 988 #define MPI2_pSGE_SET_FLAGS(psg, f) ((psg)->FlagsLength |= \ 990 #define MPI2_pSGE_SET_LENGTH(psg, l) ((psg)->FlagsLength |= \ 1125 #define MPI2_IEEE32_pSGE_GET_FLAGS(psg) \ 1126 MPI2_IEEE32_SGE_GET_FLAGS((psg)->FlagsLength) 1127 #define MPI2_IEEE32_pSGE_GET_LENGTH(psg) \ 1128 MPI2_IEEE32_SGE_LENGTH((psg)->FlagsLength) 1129 #define MPI2_IEEE32_pSGE_SET_FLAGS_LENGTH(psg, f, l) ((psg)->FlagsLength = \ 1133 #define MPI2_IEEE32_pSGE_SET_FLAGS(psg, f) ((psg)->FlagsLength |= \ 1135 #define MPI2_IEEE32_pSGE_SET_LENGTH(psg, l) ((psg)->FlagsLength |= \
|
/linux-4.4.14/drivers/target/ |
H A D | target_core_sbc.c | 1239 struct scatterlist *dsg = cmd->t_data_sg, *psg; sbc_dif_generate() local 1245 for_each_sg(cmd->t_prot_sg, psg, cmd->t_prot_nents, i) { sbc_dif_generate() 1246 paddr = kmap_atomic(sg_page(psg)) + psg->offset; sbc_dif_generate() 1249 for (j = 0; j < psg->length; sbc_dif_generate() 1259 kunmap_atomic(paddr - psg->offset); sbc_dif_generate() 1272 kunmap_atomic(paddr - psg->offset); sbc_dif_generate() 1298 kunmap_atomic(paddr - psg->offset); sbc_dif_generate() 1347 struct scatterlist *psg; sbc_dif_copy_prot() local 1357 for_each_sg(cmd->t_prot_sg, psg, cmd->t_prot_nents, i) { sbc_dif_copy_prot() 1360 paddr = kmap_atomic(sg_page(psg)) + psg->offset; sbc_dif_copy_prot() 1361 psg_len = min(left, psg->length); sbc_dif_copy_prot() 1383 kunmap_atomic(paddr - psg->offset); sbc_dif_copy_prot() 1390 unsigned int ei_lba, struct scatterlist *psg, int psg_off) sbc_dif_verify() 1402 for (; psg && sector < start + sectors; psg = sg_next(psg)) { sbc_dif_verify() 1403 paddr = kmap_atomic(sg_page(psg)) + psg->offset; sbc_dif_verify() 1406 for (i = psg_off; i < psg->length && sbc_dif_verify() 1417 kunmap_atomic(paddr - psg->offset); sbc_dif_verify() 1441 kunmap_atomic(paddr - psg->offset); sbc_dif_verify() 1454 kunmap_atomic(paddr - psg->offset); sbc_dif_verify() 1465 kunmap_atomic(paddr - psg->offset); sbc_dif_verify() 1389 sbc_dif_verify(struct se_cmd *cmd, sector_t start, unsigned int sectors, unsigned int ei_lba, struct scatterlist *psg, int psg_off) sbc_dif_verify() argument
|
/linux-4.4.14/drivers/message/fusion/lsi/ |
H A D | mpi.h | 590 #define MPI_pSGE_GET_FLAGS(psg) MPI_SGE_GET_FLAGS((psg)->FlagsLength) 591 #define MPI_pSGE_GET_LENGTH(psg) MPI_SGE_LENGTH((psg)->FlagsLength) 592 #define MPI_pSGE_SET_FLAGS_LENGTH(psg,f,l) (psg)->FlagsLength = MPI_SGE_SET_FLAGS_LENGTH(f,l) 594 #define MPI_pSGE_SET_FLAGS(psg,f) (psg)->FlagsLength |= MPI_SGE_SET_FLAGS(f) 595 #define MPI_pSGE_SET_LENGTH(psg,l) (psg)->FlagsLength |= MPI_SGE_LENGTH(l)
|
/linux-4.4.14/drivers/scsi/aacraid/ |
H A D | commctrl.c | 590 struct sgmap64* psg = (struct sgmap64*)&srbcmd->sg; aac_send_raw_srb() local 631 psg->sg[i].addr[0] = cpu_to_le32(addr & 0xffffffff); aac_send_raw_srb() 632 psg->sg[i].addr[1] = cpu_to_le32(addr>>32); aac_send_raw_srb() 634 psg->sg[i].count = cpu_to_le32(upsg->sg[i].count); aac_send_raw_srb() 684 psg->sg[i].addr[0] = cpu_to_le32(addr & 0xffffffff); aac_send_raw_srb() 685 psg->sg[i].addr[1] = cpu_to_le32(addr>>32); aac_send_raw_srb() 687 psg->sg[i].count = cpu_to_le32(usg->sg[i].count); aac_send_raw_srb() 693 psg->count = cpu_to_le32(sg_indx+1); aac_send_raw_srb() 695 psg->count = 0; aac_send_raw_srb() 699 struct sgmap* psg = &srbcmd->sg; aac_send_raw_srb() local 737 psg->sg[i].addr = cpu_to_le32(addr & 0xffffffff); aac_send_raw_srb() 739 psg->sg[i].count = cpu_to_le32(usg->sg[i].count); aac_send_raw_srb() 775 psg->sg[i].addr = cpu_to_le32(addr); aac_send_raw_srb() 777 psg->sg[i].count = cpu_to_le32(upsg->sg[i].count); aac_send_raw_srb() 782 psg->count = cpu_to_le32(sg_indx+1); aac_send_raw_srb() 784 psg->count = 0; aac_send_raw_srb()
|
H A D | aachba.c | 213 static long aac_build_sg64(struct scsi_cmnd *scsicmd, struct sgmap64 *psg); 214 static long aac_build_sgraw(struct scsi_cmnd *scsicmd, struct sgmapraw *psg); 3210 static long aac_build_sg(struct scsi_cmnd *scsicmd, struct sgmap *psg) aac_build_sg() argument 3218 psg->count = 0; aac_build_sg() 3219 psg->sg[0].addr = 0; aac_build_sg() 3220 psg->sg[0].count = 0; aac_build_sg() 3229 psg->count = cpu_to_le32(nseg); aac_build_sg() 3232 psg->sg[i].addr = cpu_to_le32(sg_dma_address(sg)); scsi_for_each_sg() 3233 psg->sg[i].count = cpu_to_le32(sg_dma_len(sg)); scsi_for_each_sg() 3238 u32 temp = le32_to_cpu(psg->sg[i-1].count) - 3240 psg->sg[i-1].count = cpu_to_le32(temp); 3253 static long aac_build_sg64(struct scsi_cmnd *scsicmd, struct sgmap64 *psg) aac_build_sg64() argument 3262 psg->count = 0; aac_build_sg64() 3263 psg->sg[0].addr[0] = 0; aac_build_sg64() 3264 psg->sg[0].addr[1] = 0; aac_build_sg64() 3265 psg->sg[0].count = 0; aac_build_sg64() 3277 psg->sg[i].addr[0] = cpu_to_le32(addr & 0xffffffff); scsi_for_each_sg() 3278 psg->sg[i].addr[1] = cpu_to_le32(addr>>32); scsi_for_each_sg() 3279 psg->sg[i].count = cpu_to_le32(count); scsi_for_each_sg() 3282 psg->count = cpu_to_le32(nseg); 3285 u32 temp = le32_to_cpu(psg->sg[i-1].count) - 3287 psg->sg[i-1].count = cpu_to_le32(temp); 3299 static long aac_build_sgraw(struct scsi_cmnd *scsicmd, struct sgmapraw *psg) aac_build_sgraw() argument 3305 psg->count = 0; aac_build_sgraw() 3306 psg->sg[0].next = 0; aac_build_sgraw() 3307 psg->sg[0].prev = 0; aac_build_sgraw() 3308 psg->sg[0].addr[0] = 0; aac_build_sgraw() 3309 psg->sg[0].addr[1] = 0; aac_build_sgraw() 3310 psg->sg[0].count = 0; aac_build_sgraw() 3311 psg->sg[0].flags = 0; aac_build_sgraw() 3323 psg->sg[i].next = 0; scsi_for_each_sg() 3324 psg->sg[i].prev = 0; scsi_for_each_sg() 3325 psg->sg[i].addr[1] = cpu_to_le32((u32)(addr>>32)); scsi_for_each_sg() 3326 psg->sg[i].addr[0] = cpu_to_le32((u32)(addr & 0xffffffff)); scsi_for_each_sg() 3327 psg->sg[i].count = cpu_to_le32(count); scsi_for_each_sg() 3328 psg->sg[i].flags = 0; scsi_for_each_sg() 3331 psg->count = cpu_to_le32(nseg); 3334 u32 temp = le32_to_cpu(psg->sg[i-1].count) - 3336 psg->sg[i-1].count = cpu_to_le32(temp);
|
/linux-4.4.14/drivers/dma/ |
H A D | at_xdmac.c | 1224 struct scatterlist *sg, *psg = NULL, *ppsg = NULL; at_xdmac_prep_dma_memset_sg() local 1252 if (psg) for_each_sg() 1254 (sg_dma_address(psg) + sg_dma_len(psg)); for_each_sg() 1277 (sg_dma_len(ppsg) == sg_dma_len(psg))) { for_each_sg() 1312 sg_dma_address(sg) < sg_dma_address(psg)) { for_each_sg() 1340 sg_dma_len(psg) == sg_dma_len(sg)) { for_each_sg() 1365 ppsg = psg; for_each_sg() 1366 psg = sg; for_each_sg()
|
/linux-4.4.14/drivers/scsi/ |
H A D | hptiop.c | 855 static int hptiop_buildsgl(struct scsi_cmnd *scp, struct hpt_iopsg *psg) hptiop_buildsgl() argument 873 psg[idx].pci_address = cpu_to_le64(sg_dma_address(sg)) | hptiop_buildsgl() 875 psg[idx].size = cpu_to_le32(sg_dma_len(sg)); hptiop_buildsgl() 876 psg[idx].eot = (idx == HPT_SCP(scp)->sgcnt - 1) ? hptiop_buildsgl()
|
/linux-4.4.14/drivers/ata/ |
H A D | libata-core.c | 1741 struct scatterlist *psg = NULL, sg; ata_exec_internal() local 1747 psg = &sg; ata_exec_internal() 1751 return ata_exec_internal_sg(dev, tf, cdb, dma_dir, psg, n_elem, ata_exec_internal()
|