Lines Matching refs:new_cc_state
3779 struct cc_state *old_cc_state, *new_cc_state; in apply_cc_state() local
3781 new_cc_state = kzalloc(sizeof(*new_cc_state), GFP_KERNEL); in apply_cc_state()
3782 if (!new_cc_state) in apply_cc_state()
3795 kfree(new_cc_state); in apply_cc_state()
3799 *new_cc_state = *old_cc_state; in apply_cc_state()
3802 new_cc_state->cct.ccti_limit = ppd->total_cct_entry - 1; in apply_cc_state()
3804 new_cc_state->cct.ccti_limit = 0; in apply_cc_state()
3806 memcpy(new_cc_state->cct.entries, ppd->ccti_entries, in apply_cc_state()
3809 new_cc_state->cong_setting.port_control = IB_CC_CCS_PC_SL_BASED; in apply_cc_state()
3810 new_cc_state->cong_setting.control_map = ppd->cc_sl_control_map; in apply_cc_state()
3811 memcpy(new_cc_state->cong_setting.entries, ppd->congestion_entries, in apply_cc_state()
3814 rcu_assign_pointer(ppd->cc_state, new_cc_state); in apply_cc_state()