Lines Matching refs:hw_qcn
545 struct mlx4_congestion_control_mb_prio_802_1_qau_params *hw_qcn; in mlx4_en_dcbnl_ieee_getqcn() local
557 hw_qcn = in mlx4_en_dcbnl_ieee_getqcn()
576 be32_to_cpu(hw_qcn->extended_enable) >> RPG_ENABLE_BIT; in mlx4_en_dcbnl_ieee_getqcn()
578 be32_to_cpu(hw_qcn->rppp_max_rps); in mlx4_en_dcbnl_ieee_getqcn()
580 be32_to_cpu(hw_qcn->rpg_time_reset); in mlx4_en_dcbnl_ieee_getqcn()
582 be32_to_cpu(hw_qcn->rpg_byte_reset); in mlx4_en_dcbnl_ieee_getqcn()
584 be32_to_cpu(hw_qcn->rpg_threshold); in mlx4_en_dcbnl_ieee_getqcn()
586 be32_to_cpu(hw_qcn->rpg_max_rate); in mlx4_en_dcbnl_ieee_getqcn()
588 be32_to_cpu(hw_qcn->rpg_ai_rate); in mlx4_en_dcbnl_ieee_getqcn()
590 be32_to_cpu(hw_qcn->rpg_hai_rate); in mlx4_en_dcbnl_ieee_getqcn()
592 be32_to_cpu(hw_qcn->rpg_gd); in mlx4_en_dcbnl_ieee_getqcn()
594 be32_to_cpu(hw_qcn->rpg_min_dec_fac); in mlx4_en_dcbnl_ieee_getqcn()
596 be32_to_cpu(hw_qcn->rpg_min_rate); in mlx4_en_dcbnl_ieee_getqcn()
608 struct mlx4_congestion_control_mb_prio_802_1_qau_params *hw_qcn; in mlx4_en_dcbnl_ieee_setqcn() local
624 hw_qcn = in mlx4_en_dcbnl_ieee_setqcn()
634 hw_qcn->modify_enable_high = cpu_to_be32( in mlx4_en_dcbnl_ieee_setqcn()
636 hw_qcn->modify_enable_low = cpu_to_be32(MODIFY_ENABLE_LOW_MASK); in mlx4_en_dcbnl_ieee_setqcn()
638 hw_qcn->extended_enable = cpu_to_be32(qcn->rpg_enable[i] << RPG_ENABLE_BIT); in mlx4_en_dcbnl_ieee_setqcn()
639 hw_qcn->rppp_max_rps = cpu_to_be32(qcn->rppp_max_rps[i]); in mlx4_en_dcbnl_ieee_setqcn()
640 hw_qcn->rpg_time_reset = cpu_to_be32(qcn->rpg_time_reset[i]); in mlx4_en_dcbnl_ieee_setqcn()
641 hw_qcn->rpg_byte_reset = cpu_to_be32(qcn->rpg_byte_reset[i]); in mlx4_en_dcbnl_ieee_setqcn()
642 hw_qcn->rpg_threshold = cpu_to_be32(qcn->rpg_threshold[i]); in mlx4_en_dcbnl_ieee_setqcn()
643 hw_qcn->rpg_max_rate = cpu_to_be32(qcn->rpg_max_rate[i]); in mlx4_en_dcbnl_ieee_setqcn()
644 hw_qcn->rpg_ai_rate = cpu_to_be32(qcn->rpg_ai_rate[i]); in mlx4_en_dcbnl_ieee_setqcn()
645 hw_qcn->rpg_hai_rate = cpu_to_be32(qcn->rpg_hai_rate[i]); in mlx4_en_dcbnl_ieee_setqcn()
646 hw_qcn->rpg_gd = cpu_to_be32(qcn->rpg_gd[i]); in mlx4_en_dcbnl_ieee_setqcn()
647 hw_qcn->rpg_min_dec_fac = cpu_to_be32(qcn->rpg_min_dec_fac[i]); in mlx4_en_dcbnl_ieee_setqcn()
648 hw_qcn->rpg_min_rate = cpu_to_be32(qcn->rpg_min_rate[i]); in mlx4_en_dcbnl_ieee_setqcn()
651 hw_qcn->extended_enable |= cpu_to_be32(1 << CN_TAG_BIT); in mlx4_en_dcbnl_ieee_setqcn()