Lines Matching refs:hw_dif
76 static uint32_t ocs_scsi_count_sgls(ocs_hw_dif_info_t *hw_dif, ocs_scsi_sgl_t *sgl, uint32_t sgl_co…
325 ocs_hw_dif_info_t *dif_info = &io->hw_dif; in ocs_target_io_cb()
504 ocs_hw_dif_info_t *dif_info = &io->hw_dif; in ocs_scsi_dif_check_unknown()
515 blocksize = ocs_hw_dif_mem_blocksize(&io->hw_dif, TRUE); in ocs_scsi_dif_check_unknown()
656 ocs_scsi_count_sgls(ocs_hw_dif_info_t *hw_dif, ocs_scsi_sgl_t *sgl, uint32_t sgl_count) in ocs_scsi_count_sgls() argument
662 if (hw_dif->dif_oper != OCS_HW_DIF_OPER_DISABLED) { in ocs_scsi_count_sgls()
664 if (!hw_dif->dif_separate) { in ocs_scsi_count_sgls()
670 if (hw_dif->dif_separate) { in ocs_scsi_count_sgls()
683 ocs_scsi_build_sgls(ocs_hw_t *hw, ocs_hw_io_t *hio, ocs_hw_dif_info_t *hw_dif, ocs_scsi_sgl_t *sgl,… in ocs_scsi_build_sgls() argument
701 if (hw_dif->dif_oper != OCS_HW_DIF_OPER_DISABLED) { in ocs_scsi_build_sgls()
703 if (!hw_dif->dif_separate) { in ocs_scsi_build_sgls()
704 rc = ocs_hw_io_add_seed_sge(hw, hio, hw_dif); in ocs_scsi_build_sgls()
714 if (hw_dif->dif_separate) { in ocs_scsi_build_sgls()
715 switch(hw_dif->blk_size) { in ocs_scsi_build_sgls()
723 ocs_log_test(hw->os, "Inavlid hw_dif blocksize %d\n", hw_dif->blk_size); in ocs_scsi_build_sgls()
740 if (hw_dif->dif_separate) { in ocs_scsi_build_sgls()
741 rc = ocs_hw_io_add_seed_sge(hw, hio, hw_dif); in ocs_scsi_build_sgls()
751 if (hw_dif->dif_oper == OCS_HW_DIF_OPER_INSERT) { in ocs_scsi_build_sgls()
752 hw_dif->ref_tag_repl += blockcount; in ocs_scsi_build_sgls()
754 hw_dif->ref_tag_cmp += blockcount; in ocs_scsi_build_sgls()
1285 total_count = ocs_scsi_count_sgls(&io->hw_dif, io->sgl, io->sgl_count); in ocs_scsi_io_dispatch_hw_io()
1309 rc = ocs_scsi_build_sgls(&ocs->hw, io->hio, &io->hw_dif, io->sgl, io->sgl_count, io->hio_type); in ocs_scsi_io_dispatch_hw_io()
1502 rc = ocs_scsi_convert_dif_info(ocs, dif_info, &io->hw_dif); in ocs_scsi_xfer_data()
1518 io->iparam.fcp_tgt.dif_oper = io->hw_dif.dif; in ocs_scsi_xfer_data()
1519 io->iparam.fcp_tgt.blk_size = io->hw_dif.blk_size; in ocs_scsi_xfer_data()
1646 ocs_scsi_convert_dif_info(ocs, NULL, &io->hw_dif); in ocs_scsi_send_resp()
1763 ocs_scsi_convert_dif_info(ocs, NULL, &io->hw_dif); in ocs_scsi_send_tmf_resp()
2626 rc = ocs_scsi_convert_dif_info(ocs, dif_info, &io->hw_dif); in ocs_scsi_send_io()
2639 io->iparam.fcp_ini.dif_oper = io->hw_dif.dif; in ocs_scsi_send_io()
2640 io->iparam.fcp_ini.blk_size = io->hw_dif.blk_size; in ocs_scsi_send_io()