Lines Matching refs:sgx

793 qla24xx_get_one_block_sg(uint32_t blk_sz, struct qla2_sgx *sgx,  in qla24xx_get_one_block_sg()  argument
800 if (sgx->num_bytes == sgx->tot_bytes) in qla24xx_get_one_block_sg()
803 sg = sgx->cur_sg; in qla24xx_get_one_block_sg()
804 cumulative_partial = sgx->tot_partial; in qla24xx_get_one_block_sg()
809 sgx->dma_addr = sg_dma_addr + sgx->bytes_consumed; in qla24xx_get_one_block_sg()
811 if ((cumulative_partial + (sg_len - sgx->bytes_consumed)) >= blk_sz) { in qla24xx_get_one_block_sg()
812 sgx->dma_len = (blk_sz - cumulative_partial); in qla24xx_get_one_block_sg()
813 sgx->tot_partial = 0; in qla24xx_get_one_block_sg()
814 sgx->num_bytes += blk_sz; in qla24xx_get_one_block_sg()
817 sgx->dma_len = sg_len - sgx->bytes_consumed; in qla24xx_get_one_block_sg()
818 sgx->tot_partial += sgx->dma_len; in qla24xx_get_one_block_sg()
822 sgx->bytes_consumed += sgx->dma_len; in qla24xx_get_one_block_sg()
824 if (sg_len == sgx->bytes_consumed) { in qla24xx_get_one_block_sg()
826 sgx->num_sg++; in qla24xx_get_one_block_sg()
827 sgx->cur_sg = sg; in qla24xx_get_one_block_sg()
828 sgx->bytes_consumed = 0; in qla24xx_get_one_block_sg()
847 struct qla2_sgx sgx; in qla24xx_walk_and_build_sglist_no_difb() local
852 memset(&sgx, 0, sizeof(struct qla2_sgx)); in qla24xx_walk_and_build_sglist_no_difb()
857 sgx.tot_bytes = scsi_bufflen(cmd); in qla24xx_walk_and_build_sglist_no_difb()
858 sgx.cur_sg = scsi_sglist(cmd); in qla24xx_walk_and_build_sglist_no_difb()
859 sgx.sp = sp; in qla24xx_walk_and_build_sglist_no_difb()
864 sgx.tot_bytes = tc->bufflen; in qla24xx_walk_and_build_sglist_no_difb()
865 sgx.cur_sg = tc->sg; in qla24xx_walk_and_build_sglist_no_difb()
872 while (qla24xx_get_one_block_sg(prot_int, &sgx, &partial)) { in qla24xx_walk_and_build_sglist_no_difb()
874 sle_dma = sgx.dma_addr; in qla24xx_walk_and_build_sglist_no_difb()
875 sle_dma_len = sgx.dma_len; in qla24xx_walk_and_build_sglist_no_difb()
1758 struct qla2_sgx sgx; in qla24xx_dif_start_scsi() local
1761 memset(&sgx, 0, sizeof(struct qla2_sgx)); in qla24xx_dif_start_scsi()
1762 sgx.tot_bytes = scsi_bufflen(cmd); in qla24xx_dif_start_scsi()
1763 sgx.cur_sg = scsi_sglist(cmd); in qla24xx_dif_start_scsi()
1764 sgx.sp = sp; in qla24xx_dif_start_scsi()
1768 cmd->device->sector_size, &sgx, &partial)) in qla24xx_dif_start_scsi()
2140 struct qla2_sgx sgx; in qla2xxx_dif_start_scsi_mq() local
2143 memset(&sgx, 0, sizeof(struct qla2_sgx)); in qla2xxx_dif_start_scsi_mq()
2144 sgx.tot_bytes = scsi_bufflen(cmd); in qla2xxx_dif_start_scsi_mq()
2145 sgx.cur_sg = scsi_sglist(cmd); in qla2xxx_dif_start_scsi_mq()
2146 sgx.sp = sp; in qla2xxx_dif_start_scsi_mq()
2150 cmd->device->sector_size, &sgx, &partial)) in qla2xxx_dif_start_scsi_mq()