Lines Matching refs:cc_state
526 struct cc_state *cc_state; in set_link_ipg() local
538 cc_state = get_cc_state(ppd); in set_link_ipg()
540 if (!cc_state) in set_link_ipg()
555 ccti_limit = cc_state->cct.ccti_limit; in set_link_ipg()
559 cce = cc_state->cct.entries[max_ccti].entry; in set_link_ipg()
581 struct cc_state *cc_state; in cca_timer_fn() local
591 cc_state = get_cc_state(ppd); in cca_timer_fn()
593 if (!cc_state) { in cca_timer_fn()
604 ccti_min = cc_state->cong_setting.entries[sl].ccti_min; in cca_timer_fn()
605 ccti_timer = cc_state->cong_setting.entries[sl].ccti_timer; in cca_timer_fn()
634 struct cc_state *cc_state; in hfi1_init_pportdata() local
695 cc_state = kzalloc(sizeof(*cc_state), GFP_KERNEL); in hfi1_init_pportdata()
696 RCU_INIT_POINTER(ppd->cc_state, cc_state); in hfi1_init_pportdata()
697 if (!cc_state) in hfi1_init_pportdata()
1526 struct cc_state *cc_state; in cleanup_device_data() local
1536 cc_state = get_cc_state_protected(ppd); in cleanup_device_data()
1537 RCU_INIT_POINTER(ppd->cc_state, NULL); in cleanup_device_data()
1540 if (cc_state) in cleanup_device_data()
1541 kfree_rcu(cc_state, rcu); in cleanup_device_data()