Lines Matching refs:trans
44 void rds_trans_register(struct rds_transport *trans) in rds_trans_register() argument
46 BUG_ON(strlen(trans->t_name) + 1 > TRANSNAMSIZ); in rds_trans_register()
50 if (transports[trans->t_type]) in rds_trans_register()
52 trans->t_type); in rds_trans_register()
54 transports[trans->t_type] = trans; in rds_trans_register()
55 printk(KERN_INFO "Registered RDS/%s transport\n", trans->t_name); in rds_trans_register()
62 void rds_trans_unregister(struct rds_transport *trans) in rds_trans_unregister() argument
66 transports[trans->t_type] = NULL; in rds_trans_unregister()
67 printk(KERN_INFO "Unregistered RDS/%s transport\n", trans->t_name); in rds_trans_unregister()
73 void rds_trans_put(struct rds_transport *trans) in rds_trans_put() argument
75 if (trans) in rds_trans_put()
76 module_put(trans->t_owner); in rds_trans_put()
84 struct rds_transport *trans; in rds_trans_get_preferred() local
96 trans = transports[i]; in rds_trans_get_preferred()
98 if (trans && (trans->laddr_check(net, addr, scope_id) == 0) && in rds_trans_get_preferred()
99 (!trans->t_owner || try_module_get(trans->t_owner))) { in rds_trans_get_preferred()
100 ret = trans; in rds_trans_get_preferred()
112 struct rds_transport *trans; in rds_trans_get() local
117 trans = transports[i]; in rds_trans_get()
119 if (trans && trans->t_type == t_type && in rds_trans_get()
120 (!trans->t_owner || try_module_get(trans->t_owner))) { in rds_trans_get()
121 ret = trans; in rds_trans_get()
140 struct rds_transport *trans; in rds_trans_stats_info_copy() local
149 trans = transports[i]; in rds_trans_stats_info_copy()
150 if (!trans || !trans->stats_info_copy) in rds_trans_stats_info_copy()
153 part = trans->stats_info_copy(iter, avail); in rds_trans_stats_info_copy()