Lines Matching refs:hw_dif

81 static uint32_t ocs_scsi_count_sgls(ocs_hw_dif_info_t *hw_dif, ocs_scsi_sgl_t *sgl, uint32_t sgl_count);
332 ocs_hw_dif_info_t *dif_info = &io->hw_dif;
512 ocs_hw_dif_info_t *dif_info = &io->hw_dif;
523 blocksize = ocs_hw_dif_mem_blocksize(&io->hw_dif, TRUE);
658 * @param hw_dif Pointer to HW dif information.
665 ocs_scsi_count_sgls(ocs_hw_dif_info_t *hw_dif, ocs_scsi_sgl_t *sgl, uint32_t sgl_count)
671 if (hw_dif->dif_oper != OCS_HW_DIF_OPER_DISABLED) {
674 if (!hw_dif->dif_separate) {
680 if (hw_dif->dif_separate) {
693 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, uint32_t sgl_count, ocs_hw_io_type_e type)
711 if (hw_dif->dif_oper != OCS_HW_DIF_OPER_DISABLED) {
714 if (!hw_dif->dif_separate) {
715 rc = ocs_hw_io_add_seed_sge(hw, hio, hw_dif);
725 if (hw_dif->dif_separate) {
726 switch(hw_dif->blk_size) {
734 ocs_log_test(hw->os, "Inavlid hw_dif blocksize %d\n", hw_dif->blk_size);
751 if (hw_dif->dif_separate) {
752 rc = ocs_hw_io_add_seed_sge(hw, hio, hw_dif);
762 if (hw_dif->dif_oper == OCS_HW_DIF_OPER_INSERT) {
763 hw_dif->ref_tag_repl += blockcount;
765 hw_dif->ref_tag_cmp += blockcount;
1301 total_count = ocs_scsi_count_sgls(&io->hw_dif, io->sgl, io->sgl_count);
1325 rc = ocs_scsi_build_sgls(&ocs->hw, io->hio, &io->hw_dif, io->sgl, io->sgl_count, io->hio_type);
1518 rc = ocs_scsi_convert_dif_info(ocs, dif_info, &io->hw_dif);
1534 io->iparam.fcp_tgt.dif_oper = io->hw_dif.dif;
1535 io->iparam.fcp_tgt.blk_size = io->hw_dif.blk_size;
1663 ocs_scsi_convert_dif_info(ocs, NULL, &io->hw_dif);
1780 ocs_scsi_convert_dif_info(ocs, NULL, &io->hw_dif);
2631 rc = ocs_scsi_convert_dif_info(ocs, dif_info, &io->hw_dif);
2644 io->iparam.fcp_ini.dif_oper = io->hw_dif.dif;
2645 io->iparam.fcp_ini.blk_size = io->hw_dif.blk_size;