Lines Matching refs:new_cc_state
3790 struct cc_state *old_cc_state, *new_cc_state; in apply_cc_state() local
3792 new_cc_state = kzalloc(sizeof(*new_cc_state), GFP_KERNEL); in apply_cc_state()
3793 if (!new_cc_state) in apply_cc_state()
3806 kfree(new_cc_state); in apply_cc_state()
3810 *new_cc_state = *old_cc_state; in apply_cc_state()
3813 new_cc_state->cct.ccti_limit = ppd->total_cct_entry - 1; in apply_cc_state()
3815 new_cc_state->cct.ccti_limit = 0; in apply_cc_state()
3817 memcpy(new_cc_state->cct.entries, ppd->ccti_entries, in apply_cc_state()
3820 new_cc_state->cong_setting.port_control = IB_CC_CCS_PC_SL_BASED; in apply_cc_state()
3821 new_cc_state->cong_setting.control_map = ppd->cc_sl_control_map; in apply_cc_state()
3822 memcpy(new_cc_state->cong_setting.entries, ppd->congestion_entries, in apply_cc_state()
3825 rcu_assign_pointer(ppd->cc_state, new_cc_state); in apply_cc_state()