Lines Matching refs:cur_dsd
194 struct dsd32 *cur_dsd; in qla2x00_build_scsi_iocbs_32() local
216 cur_dsd = cmd_pkt->dsd32; in qla2x00_build_scsi_iocbs_32()
229 cur_dsd = cont_pkt->dsd; in qla2x00_build_scsi_iocbs_32()
233 append_dsd32(&cur_dsd, sg); in qla2x00_build_scsi_iocbs_32()
250 struct dsd64 *cur_dsd; in qla2x00_build_scsi_iocbs_64() local
272 cur_dsd = cmd_pkt->dsd64; in qla2x00_build_scsi_iocbs_64()
285 cur_dsd = cont_pkt->dsd; in qla2x00_build_scsi_iocbs_64()
289 append_dsd64(&cur_dsd, sg); in qla2x00_build_scsi_iocbs_64()
586 struct dsd64 *cur_dsd = NULL, *next_dsd; in qla24xx_build_scsi_type_6_iocbs() local
648 &cur_dsd->address); in qla24xx_build_scsi_type_6_iocbs()
649 cur_dsd->length = cpu_to_le32(dsd_list_len); in qla24xx_build_scsi_type_6_iocbs()
650 cur_dsd++; in qla24xx_build_scsi_type_6_iocbs()
652 cur_dsd = next_dsd; in qla24xx_build_scsi_type_6_iocbs()
654 append_dsd64(&cur_dsd, cur_seg); in qla24xx_build_scsi_type_6_iocbs()
661 cur_dsd->address = 0; in qla24xx_build_scsi_type_6_iocbs()
662 cur_dsd->length = 0; in qla24xx_build_scsi_type_6_iocbs()
663 cur_dsd++; in qla24xx_build_scsi_type_6_iocbs()
702 struct dsd64 *cur_dsd; in qla24xx_build_scsi_iocbs() local
735 cur_dsd = &cmd_pkt->dsd; in qla24xx_build_scsi_iocbs()
749 cur_dsd = cont_pkt->dsd; in qla24xx_build_scsi_iocbs()
753 append_dsd64(&cur_dsd, sg); in qla24xx_build_scsi_iocbs()
896 struct dsd64 *cur_dsd = dsd; in qla24xx_walk_and_build_sglist_no_difb() local
970 &cur_dsd->address); in qla24xx_walk_and_build_sglist_no_difb()
971 cur_dsd->length = cpu_to_le32(dsd_list_len); in qla24xx_walk_and_build_sglist_no_difb()
972 cur_dsd = next_dsd; in qla24xx_walk_and_build_sglist_no_difb()
974 put_unaligned_le64(sle_dma, &cur_dsd->address); in qla24xx_walk_and_build_sglist_no_difb()
975 cur_dsd->length = cpu_to_le32(sle_dma_len); in qla24xx_walk_and_build_sglist_no_difb()
976 cur_dsd++; in qla24xx_walk_and_build_sglist_no_difb()
995 cur_dsd->address = 0; in qla24xx_walk_and_build_sglist_no_difb()
996 cur_dsd->length = 0; in qla24xx_walk_and_build_sglist_no_difb()
997 cur_dsd++; in qla24xx_walk_and_build_sglist_no_difb()
1010 struct dsd64 *cur_dsd = dsd; in qla24xx_walk_and_build_sglist() local
1066 &cur_dsd->address); in qla24xx_walk_and_build_sglist()
1067 cur_dsd->length = cpu_to_le32(dsd_list_len); in qla24xx_walk_and_build_sglist()
1068 cur_dsd = next_dsd; in qla24xx_walk_and_build_sglist()
1070 append_dsd64(&cur_dsd, sg); in qla24xx_walk_and_build_sglist()
1075 cur_dsd->address = 0; in qla24xx_walk_and_build_sglist()
1076 cur_dsd->length = 0; in qla24xx_walk_and_build_sglist()
1077 cur_dsd++; in qla24xx_walk_and_build_sglist()
1083 struct dsd64 *cur_dsd, uint16_t tot_dsds, struct qla_tgt_cmd *tc) in qla24xx_walk_and_build_prot_sglist() argument
1305 &cur_dsd->address); in qla24xx_walk_and_build_prot_sglist()
1306 cur_dsd->length = cpu_to_le32(dsd_list_len); in qla24xx_walk_and_build_prot_sglist()
1307 cur_dsd = dsd_ptr->dsd_addr; in qla24xx_walk_and_build_prot_sglist()
1310 &cur_dsd->address); in qla24xx_walk_and_build_prot_sglist()
1311 cur_dsd->length = cpu_to_le32(sglen); in qla24xx_walk_and_build_prot_sglist()
1312 cur_dsd++; in qla24xx_walk_and_build_prot_sglist()
1363 &cur_dsd->address); in qla24xx_walk_and_build_prot_sglist()
1364 cur_dsd->length = cpu_to_le32(dsd_list_len); in qla24xx_walk_and_build_prot_sglist()
1365 cur_dsd = dsd_ptr->dsd_addr; in qla24xx_walk_and_build_prot_sglist()
1367 append_dsd64(&cur_dsd, sg); in qla24xx_walk_and_build_prot_sglist()
1372 cur_dsd->address = 0; in qla24xx_walk_and_build_prot_sglist()
1373 cur_dsd->length = 0; in qla24xx_walk_and_build_prot_sglist()
1374 cur_dsd++; in qla24xx_walk_and_build_prot_sglist()
1392 struct dsd64 *cur_dsd; in qla24xx_build_scsi_crc_2_iocbs() local
1529 cur_dsd = &crc_ctx_pkt->u.nobundling.data_dsd[0]; in qla24xx_build_scsi_crc_2_iocbs()
1539 cur_dsd = &crc_ctx_pkt->u.bundling.data_dsd[0]; in qla24xx_build_scsi_crc_2_iocbs()
1563 cur_dsd, tot_dsds, NULL)) in qla24xx_build_scsi_crc_2_iocbs()
1565 } else if (qla24xx_walk_and_build_sglist(ha, sp, cur_dsd, in qla24xx_build_scsi_crc_2_iocbs()
1572 cur_dsd = &crc_ctx_pkt->u.bundling.dif_dsd; in qla24xx_build_scsi_crc_2_iocbs()
1573 if (qla24xx_walk_and_build_prot_sglist(ha, sp, cur_dsd, in qla24xx_build_scsi_crc_2_iocbs()
3100 struct dsd64 *cur_dsd; in qla2x00_ct_iocb() local
3135 cur_dsd = &ct_iocb->rsp_dsd; in qla2x00_ct_iocb()
3150 cur_dsd = cont_pkt->dsd; in qla2x00_ct_iocb()
3155 append_dsd64(&cur_dsd, sg); in qla2x00_ct_iocb()
3167 struct dsd64 *cur_dsd; in qla24xx_ct_iocb() local
3196 cur_dsd = ct_iocb->dsd; in qla24xx_ct_iocb()
3208 cur_dsd = cont_pkt->dsd; in qla24xx_ct_iocb()
3213 append_dsd64(&cur_dsd, sg); in qla24xx_ct_iocb()
3228 cur_dsd = cont_pkt->dsd; in qla24xx_ct_iocb()
3233 append_dsd64(&cur_dsd, sg); in qla24xx_ct_iocb()
3808 struct dsd64 *cur_dsd; in qla25xx_build_bidir_iocb() local
3843 cur_dsd = &cmd_pkt->fcp_dsd; in qla25xx_build_bidir_iocb()
3857 cur_dsd = cont_pkt->dsd; in qla25xx_build_bidir_iocb()
3861 append_dsd64(&cur_dsd, sg); in qla25xx_build_bidir_iocb()
3879 cur_dsd = cont_pkt->dsd; in qla25xx_build_bidir_iocb()
3883 append_dsd64(&cur_dsd, sg); in qla25xx_build_bidir_iocb()