Lines Matching refs:dsd_ptr

599 	struct dsd_dma *dsd_ptr;  in qla24xx_build_scsi_type_6_iocbs()  local
635 dsd_ptr = list_first_entry(&qpair->dsd_list, struct dsd_dma, list); in qla24xx_build_scsi_type_6_iocbs()
636 next_dsd = dsd_ptr->dsd_addr; in qla24xx_build_scsi_type_6_iocbs()
637 list_del(&dsd_ptr->list); in qla24xx_build_scsi_type_6_iocbs()
639 list_add_tail(&dsd_ptr->list, &ctx->dsd_list); in qla24xx_build_scsi_type_6_iocbs()
645 put_unaligned_le64(dsd_ptr->dsd_list_dma, in qla24xx_build_scsi_type_6_iocbs()
649 put_unaligned_le64(dsd_ptr->dsd_list_dma, in qla24xx_build_scsi_type_6_iocbs()
841 struct dsd_dma *dsd_ptr; in qla24xx_walk_and_build_sglist_no_difb() local
885 dsd_ptr = kzalloc(sizeof(struct dsd_dma), GFP_ATOMIC); in qla24xx_walk_and_build_sglist_no_difb()
886 if (!dsd_ptr) in qla24xx_walk_and_build_sglist_no_difb()
890 dsd_ptr->dsd_addr = next_dsd = in qla24xx_walk_and_build_sglist_no_difb()
892 &dsd_ptr->dsd_list_dma); in qla24xx_walk_and_build_sglist_no_difb()
899 kfree(dsd_ptr); in qla24xx_walk_and_build_sglist_no_difb()
904 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_sglist_no_difb()
909 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_sglist_no_difb()
916 put_unaligned_le64(dsd_ptr->dsd_list_dma, in qla24xx_walk_and_build_sglist_no_difb()
955 struct dsd_dma *dsd_ptr; in qla24xx_walk_and_build_sglist() local
982 dsd_ptr = kzalloc(sizeof(struct dsd_dma), GFP_ATOMIC); in qla24xx_walk_and_build_sglist()
983 if (!dsd_ptr) in qla24xx_walk_and_build_sglist()
987 dsd_ptr->dsd_addr = next_dsd = in qla24xx_walk_and_build_sglist()
989 &dsd_ptr->dsd_list_dma); in qla24xx_walk_and_build_sglist()
996 kfree(dsd_ptr); in qla24xx_walk_and_build_sglist()
1001 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_sglist()
1006 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_sglist()
1012 put_unaligned_le64(dsd_ptr->dsd_list_dma, in qla24xx_walk_and_build_sglist()
1032 struct dsd_dma *dsd_ptr = NULL, *dif_dsd, *nxt_dsd; in qla24xx_walk_and_build_prot_sglist() local
1126 dsd_ptr = kzalloc(sizeof(*dsd_ptr), in qla24xx_walk_and_build_prot_sglist()
1128 if (!dsd_ptr) { in qla24xx_walk_and_build_prot_sglist()
1137 dsd_ptr->dsd_addr = dma_pool_alloc in qla24xx_walk_and_build_prot_sglist()
1139 &dsd_ptr->dsd_list_dma); in qla24xx_walk_and_build_prot_sglist()
1140 if (!dsd_ptr->dsd_addr) { in qla24xx_walk_and_build_prot_sglist()
1149 kfree(dsd_ptr); in qla24xx_walk_and_build_prot_sglist()
1156 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_prot_sglist()
1168 dsd_ptr->dsd_addr + ldma_sg_len, xfrlen, in qla24xx_walk_and_build_prot_sglist()
1212 dsd_ptr = kzalloc(sizeof(*dsd_ptr), GFP_ATOMIC); in qla24xx_walk_and_build_prot_sglist()
1213 if (!dsd_ptr) { in qla24xx_walk_and_build_prot_sglist()
1223 dsd_ptr->dsd_addr = in qla24xx_walk_and_build_prot_sglist()
1225 &dsd_ptr->dsd_list_dma); in qla24xx_walk_and_build_prot_sglist()
1226 if (!dsd_ptr->dsd_addr) { in qla24xx_walk_and_build_prot_sglist()
1234 kfree(dsd_ptr); in qla24xx_walk_and_build_prot_sglist()
1241 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_prot_sglist()
1245 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_prot_sglist()
1251 put_unaligned_le64(dsd_ptr->dsd_list_dma, in qla24xx_walk_and_build_prot_sglist()
1254 cur_dsd = dsd_ptr->dsd_addr; in qla24xx_walk_and_build_prot_sglist()
1278 dsd_ptr = kzalloc(sizeof(*dsd_ptr), GFP_ATOMIC); in qla24xx_walk_and_build_prot_sglist()
1279 if (!dsd_ptr) { in qla24xx_walk_and_build_prot_sglist()
1288 dsd_ptr->dsd_addr = in qla24xx_walk_and_build_prot_sglist()
1290 &dsd_ptr->dsd_list_dma); in qla24xx_walk_and_build_prot_sglist()
1291 if (!dsd_ptr->dsd_addr) { in qla24xx_walk_and_build_prot_sglist()
1294 kfree(dsd_ptr); in qla24xx_walk_and_build_prot_sglist()
1299 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_prot_sglist()
1303 list_add_tail(&dsd_ptr->list, in qla24xx_walk_and_build_prot_sglist()
1309 put_unaligned_le64(dsd_ptr->dsd_list_dma, in qla24xx_walk_and_build_prot_sglist()
1312 cur_dsd = dsd_ptr->dsd_addr; in qla24xx_walk_and_build_prot_sglist()
3435 struct dsd_dma *dsd_ptr; in qla82xx_start_scsi() local
3453 dsd_ptr = kzalloc(sizeof(struct dsd_dma), GFP_ATOMIC); in qla82xx_start_scsi()
3454 if (!dsd_ptr) { in qla82xx_start_scsi()
3461 dsd_ptr->dsd_addr = dma_pool_alloc(ha->dl_dma_pool, in qla82xx_start_scsi()
3462 GFP_ATOMIC, &dsd_ptr->dsd_list_dma); in qla82xx_start_scsi()
3463 if (!dsd_ptr->dsd_addr) { in qla82xx_start_scsi()
3464 kfree(dsd_ptr); in qla82xx_start_scsi()
3470 list_add_tail(&dsd_ptr->list, &qpair->dsd_list); in qla82xx_start_scsi()
4253 struct dsd_dma *dsd_ptr; in qla_start_scsi_type6() local
4318 dsd_ptr = kzalloc(sizeof(*dsd_ptr), GFP_ATOMIC); in qla_start_scsi_type6()
4319 if (!dsd_ptr) { in qla_start_scsi_type6()
4324 INIT_LIST_HEAD(&dsd_ptr->list); in qla_start_scsi_type6()
4326 dsd_ptr->dsd_addr = dma_pool_alloc(ha->dl_dma_pool, in qla_start_scsi_type6()
4327 GFP_ATOMIC, &dsd_ptr->dsd_list_dma); in qla_start_scsi_type6()
4328 if (!dsd_ptr->dsd_addr) { in qla_start_scsi_type6()
4329 kfree(dsd_ptr); in qla_start_scsi_type6()
4334 list_add_tail(&dsd_ptr->list, &qpair->dsd_list); in qla_start_scsi_type6()