Searched refs:clt_path (Results 1 – 5 of 5) sorted by relevance
/linux-6.6.21/drivers/infiniband/ulp/rtrs/ |
D | rtrs-clt.c | 54 struct rtrs_clt_path *clt_path; in rtrs_clt_is_connected() local 58 list_for_each_entry_rcu(clt_path, &clt->paths_list, s.entry) in rtrs_clt_is_connected() 59 if (READ_ONCE(clt_path->state) == RTRS_CLT_CONNECTED) { in rtrs_clt_is_connected() 180 struct rtrs_clt_con *rtrs_permit_to_clt_con(struct rtrs_clt_path *clt_path, in rtrs_permit_to_clt_con() argument 186 id = (permit->cpu_id % (clt_path->s.irq_con_num - 1)) + 1; in rtrs_permit_to_clt_con() 188 return to_clt_con(clt_path->s.con[id]); in rtrs_permit_to_clt_con() 203 static bool rtrs_clt_change_state(struct rtrs_clt_path *clt_path, in rtrs_clt_change_state() argument 209 lockdep_assert_held(&clt_path->state_wq.lock); in rtrs_clt_change_state() 211 old_state = clt_path->state; in rtrs_clt_change_state() 285 clt_path->state = new_state; in rtrs_clt_change_state() [all …]
|
D | rtrs-clt-sysfs.c | 21 struct rtrs_clt_path *clt_path; in rtrs_clt_path_release() local 23 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_path_release() 25 free_path(clt_path); in rtrs_clt_path_release() 201 struct rtrs_clt_path *clt_path; in rtrs_clt_state_show() local 203 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_state_show() 204 if (clt_path->state == RTRS_CLT_CONNECTED) in rtrs_clt_state_show() 223 struct rtrs_clt_path *clt_path; in rtrs_clt_reconnect_store() local 226 clt_path = container_of(kobj, struct rtrs_clt_path, kobj); in rtrs_clt_reconnect_store() 228 rtrs_err(clt_path->clt, "%s: unknown value: '%s'\n", in rtrs_clt_reconnect_store() 232 ret = rtrs_clt_reconnect_from_sysfs(clt_path); in rtrs_clt_reconnect_store() [all …]
|
D | rtrs-clt-trace.h | 37 TP_PROTO(struct rtrs_clt_path *clt_path), 39 TP_ARGS(clt_path), 51 struct rtrs_clt_sess *clt = clt_path->clt; 53 __entry->state = clt_path->state; 54 __entry->reconnect_attempts = clt_path->reconnect_attempts; 56 __entry->fail_cnt = clt_path->stats->reconnects.fail_cnt; 57 __entry->success_cnt = clt_path->stats->reconnects.successful_cnt; 58 memcpy(__entry->sessname, kobject_name(&clt_path->kobj), NAME_MAX); 73 TP_PROTO(struct rtrs_clt_path *clt_path), \ 74 TP_ARGS(clt_path))
|
D | rtrs-clt.h | 207 void rtrs_clt_close_conns(struct rtrs_clt_path *clt_path, bool wait); 215 void free_path(struct rtrs_clt_path *clt_path); 247 int rtrs_clt_create_path_files(struct rtrs_clt_path *clt_path); 248 void rtrs_clt_destroy_path_files(struct rtrs_clt_path *clt_path,
|
D | rtrs-clt-stats.c | 16 struct rtrs_clt_path *clt_path = to_clt_path(con->c.path); in rtrs_clt_update_wc_stats() local 17 struct rtrs_clt_stats *stats = clt_path->stats; in rtrs_clt_update_wc_stats() 175 struct rtrs_clt_path *clt_path = to_clt_path(con->c.path); in rtrs_clt_update_all_stats() local 176 struct rtrs_clt_stats *stats = clt_path->stats; in rtrs_clt_update_all_stats()
|