Lines Matching refs:cc_state
486 struct cc_state *cc_state; in set_link_ipg() local
498 cc_state = get_cc_state(ppd); in set_link_ipg()
500 if (!cc_state) in set_link_ipg()
515 ccti_limit = cc_state->cct.ccti_limit; in set_link_ipg()
519 cce = cc_state->cct.entries[max_ccti].entry; in set_link_ipg()
541 struct cc_state *cc_state; in cca_timer_fn() local
551 cc_state = get_cc_state(ppd); in cca_timer_fn()
553 if (!cc_state) { in cca_timer_fn()
564 ccti_min = cc_state->cong_setting.entries[sl].ccti_min; in cca_timer_fn()
565 ccti_timer = cc_state->cong_setting.entries[sl].ccti_timer; in cca_timer_fn()
594 struct cc_state *cc_state; in hfi1_init_pportdata() local
650 cc_state = kzalloc(sizeof(*cc_state), GFP_KERNEL); in hfi1_init_pportdata()
651 RCU_INIT_POINTER(ppd->cc_state, cc_state); in hfi1_init_pportdata()
652 if (!cc_state) in hfi1_init_pportdata()
1489 struct cc_state *cc_state; in cleanup_device_data() local
1499 cc_state = get_cc_state_protected(ppd); in cleanup_device_data()
1500 RCU_INIT_POINTER(ppd->cc_state, NULL); in cleanup_device_data()
1503 if (cc_state) in cleanup_device_data()
1504 kfree_rcu(cc_state, rcu); in cleanup_device_data()