Lines Matching refs:sgx

900 qla24xx_get_one_block_sg(uint32_t blk_sz, struct qla2_sgx *sgx,  in qla24xx_get_one_block_sg()  argument
907 if (sgx->num_bytes == sgx->tot_bytes) in qla24xx_get_one_block_sg()
910 sg = sgx->cur_sg; in qla24xx_get_one_block_sg()
911 cumulative_partial = sgx->tot_partial; in qla24xx_get_one_block_sg()
916 sgx->dma_addr = sg_dma_addr + sgx->bytes_consumed; in qla24xx_get_one_block_sg()
918 if ((cumulative_partial + (sg_len - sgx->bytes_consumed)) >= blk_sz) { in qla24xx_get_one_block_sg()
919 sgx->dma_len = (blk_sz - cumulative_partial); in qla24xx_get_one_block_sg()
920 sgx->tot_partial = 0; in qla24xx_get_one_block_sg()
921 sgx->num_bytes += blk_sz; in qla24xx_get_one_block_sg()
924 sgx->dma_len = sg_len - sgx->bytes_consumed; in qla24xx_get_one_block_sg()
925 sgx->tot_partial += sgx->dma_len; in qla24xx_get_one_block_sg()
929 sgx->bytes_consumed += sgx->dma_len; in qla24xx_get_one_block_sg()
931 if (sg_len == sgx->bytes_consumed) { in qla24xx_get_one_block_sg()
933 sgx->num_sg++; in qla24xx_get_one_block_sg()
934 sgx->cur_sg = sg; in qla24xx_get_one_block_sg()
935 sgx->bytes_consumed = 0; in qla24xx_get_one_block_sg()
955 struct qla2_sgx sgx; in qla24xx_walk_and_build_sglist_no_difb() local
962 memset(&sgx, 0, sizeof(struct qla2_sgx)); in qla24xx_walk_and_build_sglist_no_difb()
963 sgx.tot_bytes = scsi_bufflen(cmd); in qla24xx_walk_and_build_sglist_no_difb()
964 sgx.cur_sg = scsi_sglist(cmd); in qla24xx_walk_and_build_sglist_no_difb()
965 sgx.sp = sp; in qla24xx_walk_and_build_sglist_no_difb()
969 while (qla24xx_get_one_block_sg(prot_int, &sgx, &partial)) { in qla24xx_walk_and_build_sglist_no_difb()
971 sle_dma = sgx.dma_addr; in qla24xx_walk_and_build_sglist_no_difb()
972 sle_dma_len = sgx.dma_len; in qla24xx_walk_and_build_sglist_no_difb()
1679 struct qla2_sgx sgx; in qla24xx_dif_start_scsi() local
1682 memset(&sgx, 0, sizeof(struct qla2_sgx)); in qla24xx_dif_start_scsi()
1683 sgx.tot_bytes = scsi_bufflen(cmd); in qla24xx_dif_start_scsi()
1684 sgx.cur_sg = scsi_sglist(cmd); in qla24xx_dif_start_scsi()
1685 sgx.sp = sp; in qla24xx_dif_start_scsi()
1689 cmd->device->sector_size, &sgx, &partial)) in qla24xx_dif_start_scsi()