Lines Matching refs:dsd_ptr
612 struct dsd_dma *dsd_ptr; in qla24xx_build_scsi_type_6_iocbs() local
650 dsd_ptr = list_first_entry(&ha->gbl_dsd_list, in qla24xx_build_scsi_type_6_iocbs()
652 next_dsd = dsd_ptr->dsd_addr; in qla24xx_build_scsi_type_6_iocbs()
653 list_del(&dsd_ptr->list); in qla24xx_build_scsi_type_6_iocbs()
655 list_add_tail(&dsd_ptr->list, &ctx->dsd_list); in qla24xx_build_scsi_type_6_iocbs()
662 *dsd_seg++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); in qla24xx_build_scsi_type_6_iocbs()
663 *dsd_seg++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); in qla24xx_build_scsi_type_6_iocbs()
666 *cur_dsd++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); in qla24xx_build_scsi_type_6_iocbs()
667 *cur_dsd++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); in qla24xx_build_scsi_type_6_iocbs()
948 struct dsd_dma *dsd_ptr; in qla24xx_walk_and_build_sglist_no_difb() local
982 dsd_ptr = kzalloc(sizeof(struct dsd_dma), GFP_ATOMIC); in qla24xx_walk_and_build_sglist_no_difb()
983 if (!dsd_ptr) in qla24xx_walk_and_build_sglist_no_difb()
987 dsd_ptr->dsd_addr = next_dsd = in qla24xx_walk_and_build_sglist_no_difb()
989 &dsd_ptr->dsd_list_dma); in qla24xx_walk_and_build_sglist_no_difb()
996 kfree(dsd_ptr); in qla24xx_walk_and_build_sglist_no_difb()
1000 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_sglist_no_difb()
1006 *cur_dsd++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); in qla24xx_walk_and_build_sglist_no_difb()
1007 *cur_dsd++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); in qla24xx_walk_and_build_sglist_no_difb()
1045 struct dsd_dma *dsd_ptr; in qla24xx_walk_and_build_sglist() local
1066 dsd_ptr = kzalloc(sizeof(struct dsd_dma), GFP_ATOMIC); in qla24xx_walk_and_build_sglist()
1067 if (!dsd_ptr) in qla24xx_walk_and_build_sglist()
1071 dsd_ptr->dsd_addr = next_dsd = in qla24xx_walk_and_build_sglist()
1073 &dsd_ptr->dsd_list_dma); in qla24xx_walk_and_build_sglist()
1080 kfree(dsd_ptr); in qla24xx_walk_and_build_sglist()
1084 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_sglist()
1090 *cur_dsd++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); in qla24xx_walk_and_build_sglist()
1091 *cur_dsd++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); in qla24xx_walk_and_build_sglist()
1125 struct dsd_dma *dsd_ptr; in qla24xx_walk_and_build_prot_sglist() local
1146 dsd_ptr = kzalloc(sizeof(struct dsd_dma), GFP_ATOMIC); in qla24xx_walk_and_build_prot_sglist()
1147 if (!dsd_ptr) in qla24xx_walk_and_build_prot_sglist()
1151 dsd_ptr->dsd_addr = next_dsd = in qla24xx_walk_and_build_prot_sglist()
1153 &dsd_ptr->dsd_list_dma); in qla24xx_walk_and_build_prot_sglist()
1160 kfree(dsd_ptr); in qla24xx_walk_and_build_prot_sglist()
1164 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_prot_sglist()
1170 *cur_dsd++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); in qla24xx_walk_and_build_prot_sglist()
1171 *cur_dsd++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); in qla24xx_walk_and_build_prot_sglist()
2303 struct dsd_dma *dsd_ptr; in qla82xx_start_scsi() local
2321 dsd_ptr = kzalloc(sizeof(struct dsd_dma), GFP_ATOMIC); in qla82xx_start_scsi()
2322 if (!dsd_ptr) { in qla82xx_start_scsi()
2329 dsd_ptr->dsd_addr = dma_pool_alloc(ha->dl_dma_pool, in qla82xx_start_scsi()
2330 GFP_ATOMIC, &dsd_ptr->dsd_list_dma); in qla82xx_start_scsi()
2331 if (!dsd_ptr->dsd_addr) { in qla82xx_start_scsi()
2332 kfree(dsd_ptr); in qla82xx_start_scsi()
2338 list_add_tail(&dsd_ptr->list, &ha->gbl_dsd_list); in qla82xx_start_scsi()