Home
last modified time | relevance | path

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

/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dinit.c486 struct cc_state *cc_state; in set_link_ipg() local
500 if (!cc_state) in set_link_ipg()
541 struct cc_state *cc_state; in cca_timer_fn() local
553 if (!cc_state) { in cca_timer_fn()
594 struct cc_state *cc_state; in hfi1_init_pportdata() local
650 cc_state = kzalloc(sizeof(*cc_state), GFP_KERNEL); in hfi1_init_pportdata()
651 RCU_INIT_POINTER(ppd->cc_state, cc_state); in hfi1_init_pportdata()
652 if (!cc_state) in hfi1_init_pportdata()
1489 struct cc_state *cc_state; in cleanup_device_data() local
1503 if (cc_state) in cleanup_device_data()
[all …]
H A 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()
H A Dhfi.h870 struct cc_state __rcu *cc_state; member
2008 static inline struct cc_state *get_cc_state(struct hfi1_pportdata *ppd) in get_cc_state()
2010 return rcu_dereference(ppd->cc_state); in get_cc_state()
2017 struct cc_state *get_cc_state_protected(struct hfi1_pportdata *ppd) in get_cc_state_protected()
2019 return rcu_dereference_protected(ppd->cc_state, in get_cc_state_protected()
H A 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()
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()
3912 if (!cc_state) { in __subn_get_opa_cc_table()
[all …]
H A Dmad.h305 struct cc_state { struct
H A 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()
/openbmc/linux/include/linux/platform_data/
H A Dcros_ec_commands.h4972 uint8_t cc_state; /* enum pd_cc_states representing cc state */ member
5886 uint8_t cc_state; /* enum pd_cc_states */ member