Lines Matching defs:mpath

1857 	struct mesh_path *mpath;
1869 mpath = mesh_path_add(sdata, dst);
1870 if (IS_ERR(mpath)) {
1872 return PTR_ERR(mpath);
1875 mesh_path_fix_nexthop(mpath, sta);
1897 struct mesh_path *mpath;
1910 mpath = mesh_path_lookup(sdata, dst);
1911 if (!mpath) {
1916 mesh_path_fix_nexthop(mpath, sta);
1922 static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop,
1925 struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop);
1934 pinfo->generation = mpath->sdata->u.mesh.mesh_paths_generation;
1946 pinfo->frame_qlen = mpath->frame_queue.qlen;
1947 pinfo->sn = mpath->sn;
1948 pinfo->metric = mpath->metric;
1949 if (time_before(jiffies, mpath->exp_time))
1950 pinfo->exptime = jiffies_to_msecs(mpath->exp_time - jiffies);
1952 jiffies_to_msecs(mpath->discovery_timeout);
1953 pinfo->discovery_retries = mpath->discovery_retries;
1954 if (mpath->flags & MESH_PATH_ACTIVE)
1956 if (mpath->flags & MESH_PATH_RESOLVING)
1958 if (mpath->flags & MESH_PATH_SN_VALID)
1960 if (mpath->flags & MESH_PATH_FIXED)
1962 if (mpath->flags & MESH_PATH_RESOLVED)
1964 pinfo->hop_count = mpath->hop_count;
1965 pinfo->path_change_count = mpath->path_change_count;
1973 struct mesh_path *mpath;
1978 mpath = mesh_path_lookup(sdata, dst);
1979 if (!mpath) {
1983 memcpy(dst, mpath->dst, ETH_ALEN);
1984 mpath_set_pinfo(mpath, next_hop, pinfo);
1994 struct mesh_path *mpath;
1999 mpath = mesh_path_lookup_by_idx(sdata, idx);
2000 if (!mpath) {
2004 memcpy(dst, mpath->dst, ETH_ALEN);
2005 mpath_set_pinfo(mpath, next_hop, pinfo);
2010 static void mpp_set_pinfo(struct mesh_path *mpath, u8 *mpp,
2014 memcpy(mpp, mpath->mpp, ETH_ALEN);
2016 pinfo->generation = mpath->sdata->u.mesh.mpp_paths_generation;
2024 struct mesh_path *mpath;
2029 mpath = mpp_path_lookup(sdata, dst);
2030 if (!mpath) {
2034 memcpy(dst, mpath->dst, ETH_ALEN);
2035 mpp_set_pinfo(mpath, mpp, pinfo);
2045 struct mesh_path *mpath;
2050 mpath = mpp_path_lookup_by_idx(sdata, idx);
2051 if (!mpath) {
2055 memcpy(dst, mpath->dst, ETH_ALEN);
2056 mpp_set_pinfo(mpath, mpp, pinfo);