Home
last modified time | relevance | path

Searched refs:cc_state (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dinit.c528 struct cc_state *cc_state; in set_link_ipg() local
540 cc_state = get_cc_state(ppd); in set_link_ipg()
542 if (!cc_state) in set_link_ipg()
557 ccti_limit = cc_state->cct.ccti_limit; in set_link_ipg()
561 cce = cc_state->cct.entries[max_ccti].entry; in set_link_ipg()
583 struct cc_state *cc_state; in cca_timer_fn() local
593 cc_state = get_cc_state(ppd); in cca_timer_fn()
595 if (!cc_state) { in cca_timer_fn()
606 ccti_min = cc_state->cong_setting.entries[sl].ccti_min; in cca_timer_fn()
607 ccti_timer = cc_state->cong_setting.entries[sl].ccti_timer; in cca_timer_fn()
[all …]
Dsysfs.c67 struct cc_state *cc_state; in read_cc_table_bin() local
82 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() local
129 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()
Dhfi.h848 struct cc_state __rcu *cc_state; member
1850 static inline struct cc_state *get_cc_state(struct hfi1_pportdata *ppd) in get_cc_state()
1852 return rcu_dereference(ppd->cc_state); in get_cc_state()
1859 struct cc_state *get_cc_state_protected(struct hfi1_pportdata *ppd) in get_cc_state_protected()
1861 return rcu_dereference_protected(ppd->cc_state, in get_cc_state_protected()
Drc.c1975 struct cc_state *cc_state; in process_becn() local
1981 cc_state = get_cc_state(ppd); in process_becn()
1983 if (!cc_state) in process_becn()
1991 ccti_limit = cc_state->cct.ccti_limit; in process_becn()
1992 ccti_incr = cc_state->cong_setting.entries[sl].ccti_increase; in process_becn()
1993 ccti_timer = cc_state->cong_setting.entries[sl].ccti_timer; in process_becn()
1995 cc_state->cong_setting.entries[sl].trigger_threshold; in process_becn()
Dmad.c3749 struct cc_state *cc_state; in __subn_get_opa_cong_setting() local
3758 cc_state = get_cc_state(ppd); in __subn_get_opa_cong_setting()
3760 if (!cc_state) { in __subn_get_opa_cong_setting()
3765 entries = cc_state->cong_setting.entries; in __subn_get_opa_cong_setting()
3766 p->port_control = cpu_to_be16(cc_state->cong_setting.port_control); in __subn_get_opa_cong_setting()
3767 p->control_map = cpu_to_be32(cc_state->cong_setting.control_map); in __subn_get_opa_cong_setting()
3790 struct cc_state *old_cc_state, *new_cc_state; in apply_cc_state()
3825 rcu_assign_pointer(ppd->cc_state, new_cc_state); in apply_cc_state()
3951 struct cc_state *cc_state; in __subn_get_opa_cc_table() local
3963 cc_state = get_cc_state(ppd); in __subn_get_opa_cc_table()
[all …]
Dmad.h346 struct cc_state { struct