Lines Matching refs:cc_state
527 struct cc_state *cc_state; in set_link_ipg() local
539 cc_state = get_cc_state(ppd); in set_link_ipg()
541 if (!cc_state) in set_link_ipg()
556 ccti_limit = cc_state->cct.ccti_limit; in set_link_ipg()
560 cce = cc_state->cct.entries[max_ccti].entry; in set_link_ipg()
582 struct cc_state *cc_state; in cca_timer_fn() local
592 cc_state = get_cc_state(ppd); in cca_timer_fn()
594 if (!cc_state) { in cca_timer_fn()
605 ccti_min = cc_state->cong_setting.entries[sl].ccti_min; in cca_timer_fn()
606 ccti_timer = cc_state->cong_setting.entries[sl].ccti_timer; in cca_timer_fn()
635 struct cc_state *cc_state; in hfi1_init_pportdata() local
691 cc_state = kzalloc(sizeof(*cc_state), GFP_KERNEL); in hfi1_init_pportdata()
692 RCU_INIT_POINTER(ppd->cc_state, cc_state); in hfi1_init_pportdata()
693 if (!cc_state) in hfi1_init_pportdata()
1530 struct cc_state *cc_state; in cleanup_device_data() local
1540 cc_state = get_cc_state_protected(ppd); in cleanup_device_data()
1541 RCU_INIT_POINTER(ppd->cc_state, NULL); in cleanup_device_data()
1544 if (cc_state) in cleanup_device_data()
1545 kfree_rcu(cc_state, rcu); in cleanup_device_data()