Searched refs:cc_state (Results 1 – 7 of 7) sorted by relevance
540 struct cc_state *cc_state; in set_link_ipg() local552 cc_state = get_cc_state(ppd); in set_link_ipg()554 if (!cc_state) in set_link_ipg()569 ccti_limit = cc_state->cct.ccti_limit; in set_link_ipg()573 cce = cc_state->cct.entries[max_ccti].entry; in set_link_ipg()595 struct cc_state *cc_state; in cca_timer_fn() local605 cc_state = get_cc_state(ppd); in cca_timer_fn()607 if (!cc_state) { in cca_timer_fn()618 ccti_min = cc_state->cong_setting.entries[sl].ccti_min; in cca_timer_fn()619 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()
912 struct cc_state __rcu *cc_state; member1923 static inline struct cc_state *get_cc_state(struct hfi1_pportdata *ppd) in get_cc_state()1925 return rcu_dereference(ppd->cc_state); in get_cc_state()1932 struct cc_state *get_cc_state_protected(struct hfi1_pportdata *ppd) in get_cc_state_protected()1934 return rcu_dereference_protected(ppd->cc_state, in get_cc_state_protected()
3739 struct cc_state *cc_state; in __subn_get_opa_cong_setting() local3748 cc_state = get_cc_state(ppd); in __subn_get_opa_cong_setting()3750 if (!cc_state) { in __subn_get_opa_cong_setting()3755 entries = cc_state->cong_setting.entries; in __subn_get_opa_cong_setting()3756 p->port_control = cpu_to_be16(cc_state->cong_setting.port_control); in __subn_get_opa_cong_setting()3757 p->control_map = cpu_to_be32(cc_state->cong_setting.control_map); in __subn_get_opa_cong_setting()3780 struct cc_state *old_cc_state, *new_cc_state; in apply_cc_state()3815 rcu_assign_pointer(ppd->cc_state, new_cc_state); in apply_cc_state()3941 struct cc_state *cc_state; in __subn_get_opa_cc_table() local3953 cc_state = get_cc_state(ppd); in __subn_get_opa_cc_table()[all …]
346 struct cc_state { struct
2748 struct cc_state *cc_state; in process_becn() local2754 cc_state = get_cc_state(ppd); in process_becn()2756 if (!cc_state) in process_becn()2764 ccti_limit = cc_state->cct.ccti_limit; in process_becn()2765 ccti_incr = cc_state->cong_setting.entries[sl].ccti_increase; in process_becn()2766 ccti_timer = cc_state->cong_setting.entries[sl].ccti_timer; in process_becn()2768 cc_state->cong_setting.entries[sl].trigger_threshold; in process_becn()
4770 uint8_t cc_state; /* USBC_PD_CC_*Encoded cc state */ member