Home
last modified time | relevance | path

Searched refs:lnd (Results 1 – 4 of 4) sorted by relevance

/drivers/staging/lustre/include/linux/lnet/
Dnidstr.h62 int libcfs_isknown_lnd(__u32 lnd);
63 char *libcfs_lnd2modname(__u32 lnd);
64 char *libcfs_lnd2str_r(__u32 lnd, char *buf, size_t buf_size);
65 static inline char *libcfs_lnd2str(__u32 lnd) in libcfs_lnd2str() argument
67 return libcfs_lnd2str_r(lnd, libcfs_next_nidstring(), in libcfs_lnd2str()
Dlib-lnet.h622 void lnet_register_lnd(lnd_t *lnd);
623 void lnet_unregister_lnd(lnd_t *lnd);
/drivers/staging/lustre/lnet/lnet/
Dapi-ni.c268 lnd_t *lnd; in lnet_find_lnd_by_type() local
273 lnd = list_entry(tmp, lnd_t, lnd_list); in lnet_find_lnd_by_type()
275 if (lnd->lnd_type == type) in lnet_find_lnd_by_type()
276 return lnd; in lnet_find_lnd_by_type()
283 lnet_register_lnd(lnd_t *lnd) in lnet_register_lnd() argument
288 LASSERT(libcfs_isknown_lnd(lnd->lnd_type)); in lnet_register_lnd()
289 LASSERT(lnet_find_lnd_by_type(lnd->lnd_type) == NULL); in lnet_register_lnd()
291 list_add_tail(&lnd->lnd_list, &the_lnet.ln_lnds); in lnet_register_lnd()
292 lnd->lnd_refcount = 0; in lnet_register_lnd()
294 CDEBUG(D_NET, "%s LND registered\n", libcfs_lnd2str(lnd->lnd_type)); in lnet_register_lnd()
[all …]
Dnidstrings.c1023 libcfs_lnd2netstrfns(__u32 lnd) in libcfs_lnd2netstrfns() argument
1028 if (lnd == libcfs_netstrfns[i].nf_type) in libcfs_lnd2netstrfns()
1061 libcfs_isknown_lnd(__u32 lnd) in libcfs_isknown_lnd() argument
1063 return libcfs_lnd2netstrfns(lnd) != NULL; in libcfs_isknown_lnd()
1068 libcfs_lnd2modname(__u32 lnd) in libcfs_lnd2modname() argument
1070 struct netstrfns *nf = libcfs_lnd2netstrfns(lnd); in libcfs_lnd2modname()
1089 libcfs_lnd2str_r(__u32 lnd, char *buf, size_t buf_size) in libcfs_lnd2str_r() argument
1093 nf = libcfs_lnd2netstrfns(lnd); in libcfs_lnd2str_r()
1095 snprintf(buf, buf_size, "?%u?", lnd); in libcfs_lnd2str_r()
1107 __u32 lnd = LNET_NETTYP(net); in libcfs_net2str_r() local
[all …]