Home
last modified time | relevance | path

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

/drivers/infiniband/hw/hfi1/
Dinit.c486 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()
[all …]
Dsysfs.c35 struct cc_state *cc_state; in cc_table_bin_read() local
50 cc_state = get_cc_state(ppd); in cc_table_bin_read()
51 if (!cc_state) { in cc_table_bin_read()
55 memcpy(buf, (void *)&cc_state->cct + pos, count); in cc_table_bin_read()
73 struct cc_state *cc_state; in cc_setting_bin_read() local
86 cc_state = get_cc_state(ppd); in cc_setting_bin_read()
87 if (!cc_state) { in cc_setting_bin_read()
91 memcpy(buf, (void *)&cc_state->cong_setting + pos, count); in cc_setting_bin_read()
Dhfi.h870 struct cc_state __rcu *cc_state; member
2010 static inline struct cc_state *get_cc_state(struct hfi1_pportdata *ppd) in get_cc_state()
2012 return rcu_dereference(ppd->cc_state); in get_cc_state()
2019 struct cc_state *get_cc_state_protected(struct hfi1_pportdata *ppd) in get_cc_state_protected()
2021 return rcu_dereference_protected(ppd->cc_state, in get_cc_state_protected()
Dmad.c3696 struct cc_state *cc_state; in __subn_get_opa_cong_setting() local
3705 cc_state = get_cc_state(ppd); in __subn_get_opa_cong_setting()
3707 if (!cc_state) { in __subn_get_opa_cong_setting()
3712 entries = cc_state->cong_setting.entries; in __subn_get_opa_cong_setting()
3713 p->port_control = cpu_to_be16(cc_state->cong_setting.port_control); in __subn_get_opa_cong_setting()
3714 p->control_map = cpu_to_be32(cc_state->cong_setting.control_map); in __subn_get_opa_cong_setting()
3737 struct cc_state *old_cc_state, *new_cc_state; in apply_cc_state()
3772 rcu_assign_pointer(ppd->cc_state, new_cc_state); in apply_cc_state()
3898 struct cc_state *cc_state; in __subn_get_opa_cc_table() local
3910 cc_state = get_cc_state(ppd); in __subn_get_opa_cc_table()
[all …]
Drc.c2706 struct cc_state *cc_state; in process_becn() local
2712 cc_state = get_cc_state(ppd); in process_becn()
2714 if (!cc_state) in process_becn()
2722 ccti_limit = cc_state->cct.ccti_limit; in process_becn()
2723 ccti_incr = cc_state->cong_setting.entries[sl].ccti_increase; in process_becn()
2724 ccti_timer = cc_state->cong_setting.entries[sl].ccti_timer; in process_becn()
2726 cc_state->cong_setting.entries[sl].trigger_threshold; in process_becn()
Dmad.h305 struct cc_state { struct