Lines Matching refs:new_cc_state
3737 struct cc_state *old_cc_state, *new_cc_state; in apply_cc_state() local
3739 new_cc_state = kzalloc(sizeof(*new_cc_state), GFP_KERNEL); in apply_cc_state()
3740 if (!new_cc_state) in apply_cc_state()
3753 kfree(new_cc_state); in apply_cc_state()
3757 *new_cc_state = *old_cc_state; in apply_cc_state()
3760 new_cc_state->cct.ccti_limit = ppd->total_cct_entry - 1; in apply_cc_state()
3762 new_cc_state->cct.ccti_limit = 0; in apply_cc_state()
3764 memcpy(new_cc_state->cct.entries, ppd->ccti_entries, in apply_cc_state()
3767 new_cc_state->cong_setting.port_control = IB_CC_CCS_PC_SL_BASED; in apply_cc_state()
3768 new_cc_state->cong_setting.control_map = ppd->cc_sl_control_map; in apply_cc_state()
3769 memcpy(new_cc_state->cong_setting.entries, ppd->congestion_entries, in apply_cc_state()
3772 rcu_assign_pointer(ppd->cc_state, new_cc_state); in apply_cc_state()