Searched refs:cc_state (Results 1 – 7 of 7) sorted by relevance
526 struct cc_state *cc_state; in set_link_ipg() local538 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() local591 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()[all …]
67 struct cc_state *cc_state; in read_cc_table_bin() local82 cc_state = get_cc_state(ppd); in read_cc_table_bin()83 if (!cc_state) { in read_cc_table_bin()87 memcpy(buf, (void *)&cc_state->cct + pos, count); in read_cc_table_bin()116 struct cc_state *cc_state; in read_cc_setting_bin() local129 cc_state = get_cc_state(ppd); in read_cc_setting_bin()130 if (!cc_state) { in read_cc_setting_bin()134 memcpy(buf, (void *)&cc_state->cong_setting + pos, count); in read_cc_setting_bin()
921 struct cc_state __rcu *cc_state; member2059 static inline struct cc_state *get_cc_state(struct hfi1_pportdata *ppd) in get_cc_state()2061 return rcu_dereference(ppd->cc_state); in get_cc_state()2068 struct cc_state *get_cc_state_protected(struct hfi1_pportdata *ppd) in get_cc_state_protected()2070 return rcu_dereference_protected(ppd->cc_state, in get_cc_state_protected()
3738 struct cc_state *cc_state; in __subn_get_opa_cong_setting() local3747 cc_state = get_cc_state(ppd); in __subn_get_opa_cong_setting()3749 if (!cc_state) { in __subn_get_opa_cong_setting()3754 entries = cc_state->cong_setting.entries; in __subn_get_opa_cong_setting()3755 p->port_control = cpu_to_be16(cc_state->cong_setting.port_control); in __subn_get_opa_cong_setting()3756 p->control_map = cpu_to_be32(cc_state->cong_setting.control_map); in __subn_get_opa_cong_setting()3779 struct cc_state *old_cc_state, *new_cc_state; in apply_cc_state()3814 rcu_assign_pointer(ppd->cc_state, new_cc_state); in apply_cc_state()3940 struct cc_state *cc_state; in __subn_get_opa_cc_table() local3952 cc_state = get_cc_state(ppd); in __subn_get_opa_cc_table()[all …]
346 struct cc_state { struct
2747 struct cc_state *cc_state; in process_becn() local2753 cc_state = get_cc_state(ppd); in process_becn()2755 if (!cc_state) in process_becn()2763 ccti_limit = cc_state->cct.ccti_limit; in process_becn()2764 ccti_incr = cc_state->cong_setting.entries[sl].ccti_increase; in process_becn()2765 ccti_timer = cc_state->cong_setting.entries[sl].ccti_timer; in process_becn()2767 cc_state->cong_setting.entries[sl].trigger_threshold; in process_becn()
4934 uint8_t cc_state; /* enum pd_cc_states representing cc state */ member