Home
last modified time | relevance | path

Searched refs:mpath (Results 1 – 25 of 106) sorted by relevance

12345

/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/mesh/
H A Drtw_mesh_pathtbl.c23 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
25 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
31 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
33 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
34 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
37 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
39 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
44 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
61 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
63 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
H A Drtw_mesh_pathtbl.h176 void rtw_mesh_path_fix_nexthop(struct rtw_mesh_path *mpath, struct sta_info *next_hop);
182 int rtw_mesh_path_add_gate(struct rtw_mesh_path *mpath);
183 void rtw_mesh_gate_del(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
185 int rtw_mesh_path_send_to_gates(struct rtw_mesh_path *mpath);
192 void rtw_mesh_path_assign_nexthop(struct rtw_mesh_path *mpath, struct sta_info *sta);
193 void rtw_mesh_path_flush_pending(struct rtw_mesh_path *mpath);
194 void rtw_mesh_path_tx_pending(struct rtw_mesh_path *mpath);
203 static inline void rtw_mesh_path_activate(struct rtw_mesh_path *mpath) in rtw_mesh_path_activate() argument
205 mpath->flags |= RTW_MESH_PATH_ACTIVE | RTW_MESH_PATH_RESOLVED; in rtw_mesh_path_activate()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/mesh/
H A Drtw_mesh_pathtbl.c23 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
25 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
31 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
33 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
34 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
37 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
39 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
44 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
61 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
63 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
H A Drtw_mesh_pathtbl.h176 void rtw_mesh_path_fix_nexthop(struct rtw_mesh_path *mpath, struct sta_info *next_hop);
182 int rtw_mesh_path_add_gate(struct rtw_mesh_path *mpath);
183 void rtw_mesh_gate_del(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
185 int rtw_mesh_path_send_to_gates(struct rtw_mesh_path *mpath);
192 void rtw_mesh_path_assign_nexthop(struct rtw_mesh_path *mpath, struct sta_info *sta);
193 void rtw_mesh_path_flush_pending(struct rtw_mesh_path *mpath);
194 void rtw_mesh_path_tx_pending(struct rtw_mesh_path *mpath);
203 static inline void rtw_mesh_path_activate(struct rtw_mesh_path *mpath) in rtw_mesh_path_activate() argument
205 mpath->flags |= RTW_MESH_PATH_ACTIVE | RTW_MESH_PATH_RESOLVED; in rtw_mesh_path_activate()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/core/mesh/
H A Drtw_mesh_pathtbl.c24 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
26 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
32 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
34 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
35 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
38 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
40 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
45 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
62 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
64 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/core/mesh/
H A Drtw_mesh_pathtbl.c23 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
25 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
31 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
33 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
34 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
37 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
39 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
44 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
61 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
63 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
H A Drtw_mesh_pathtbl.h176 void rtw_mesh_path_fix_nexthop(struct rtw_mesh_path *mpath, struct sta_info *next_hop);
182 int rtw_mesh_path_add_gate(struct rtw_mesh_path *mpath);
183 void rtw_mesh_gate_del(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
185 int rtw_mesh_path_send_to_gates(struct rtw_mesh_path *mpath);
192 void rtw_mesh_path_assign_nexthop(struct rtw_mesh_path *mpath, struct sta_info *sta);
193 void rtw_mesh_path_flush_pending(struct rtw_mesh_path *mpath);
194 void rtw_mesh_path_tx_pending(struct rtw_mesh_path *mpath);
203 static inline void rtw_mesh_path_activate(struct rtw_mesh_path *mpath) in rtw_mesh_path_activate() argument
205 mpath->flags |= RTW_MESH_PATH_ACTIVE | RTW_MESH_PATH_RESOLVED; in rtw_mesh_path_activate()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188fu/core/mesh/
H A Drtw_mesh_pathtbl.c24 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
26 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
32 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
34 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
35 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
38 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
40 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
45 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
62 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
64 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
H A Drtw_mesh_pathtbl.h177 void rtw_mesh_path_fix_nexthop(struct rtw_mesh_path *mpath, struct sta_info *next_hop);
183 int rtw_mesh_path_add_gate(struct rtw_mesh_path *mpath);
184 void rtw_mesh_gate_del(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
186 int rtw_mesh_path_send_to_gates(struct rtw_mesh_path *mpath);
193 void rtw_mesh_path_assign_nexthop(struct rtw_mesh_path *mpath, struct sta_info *sta);
194 void rtw_mesh_path_flush_pending(struct rtw_mesh_path *mpath);
195 void rtw_mesh_path_tx_pending(struct rtw_mesh_path *mpath);
204 static inline void rtw_mesh_path_activate(struct rtw_mesh_path *mpath) in rtw_mesh_path_activate() argument
206 mpath->flags |= RTW_MESH_PATH_ACTIVE | RTW_MESH_PATH_RESOLVED; in rtw_mesh_path_activate()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/core/mesh/
H A Drtw_mesh_pathtbl.c23 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
25 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
31 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
33 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
34 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
37 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
39 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
44 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
61 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
63 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/core/mesh/
H A Drtw_mesh_pathtbl.c23 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
25 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
31 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
33 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
34 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
37 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
39 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
44 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
61 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
63 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
H A Drtw_mesh_pathtbl.h176 void rtw_mesh_path_fix_nexthop(struct rtw_mesh_path *mpath, struct sta_info *next_hop);
182 int rtw_mesh_path_add_gate(struct rtw_mesh_path *mpath);
183 void rtw_mesh_gate_del(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
185 int rtw_mesh_path_send_to_gates(struct rtw_mesh_path *mpath);
192 void rtw_mesh_path_assign_nexthop(struct rtw_mesh_path *mpath, struct sta_info *sta);
193 void rtw_mesh_path_flush_pending(struct rtw_mesh_path *mpath);
194 void rtw_mesh_path_tx_pending(struct rtw_mesh_path *mpath);
203 static inline void rtw_mesh_path_activate(struct rtw_mesh_path *mpath) in rtw_mesh_path_activate() argument
205 mpath->flags |= RTW_MESH_PATH_ACTIVE | RTW_MESH_PATH_RESOLVED; in rtw_mesh_path_activate()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/core/mesh/
H A Drtw_mesh_pathtbl.c23 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
25 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
31 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
33 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
34 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
37 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
39 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
44 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
61 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
63 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/core/mesh/
H A Drtw_mesh_pathtbl.c23 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
25 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
31 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
33 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
34 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
37 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
39 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
44 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
61 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
63 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
H A Drtw_mesh_pathtbl.h176 void rtw_mesh_path_fix_nexthop(struct rtw_mesh_path *mpath, struct sta_info *next_hop);
182 int rtw_mesh_path_add_gate(struct rtw_mesh_path *mpath);
183 void rtw_mesh_gate_del(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
185 int rtw_mesh_path_send_to_gates(struct rtw_mesh_path *mpath);
192 void rtw_mesh_path_assign_nexthop(struct rtw_mesh_path *mpath, struct sta_info *sta);
193 void rtw_mesh_path_flush_pending(struct rtw_mesh_path *mpath);
194 void rtw_mesh_path_tx_pending(struct rtw_mesh_path *mpath);
203 static inline void rtw_mesh_path_activate(struct rtw_mesh_path *mpath) in rtw_mesh_path_activate() argument
205 mpath->flags |= RTW_MESH_PATH_ACTIVE | RTW_MESH_PATH_RESOLVED; in rtw_mesh_path_activate()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/core/mesh/
H A Drtw_mesh_pathtbl.c24 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
26 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
32 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
34 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
35 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
38 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
40 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
45 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
62 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
64 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/core/mesh/
H A Drtw_mesh_pathtbl.c23 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
25 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
31 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
33 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
34 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
37 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
39 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
44 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
61 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
63 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
H A Drtw_mesh_pathtbl.h176 void rtw_mesh_path_fix_nexthop(struct rtw_mesh_path *mpath, struct sta_info *next_hop);
182 int rtw_mesh_path_add_gate(struct rtw_mesh_path *mpath);
183 void rtw_mesh_gate_del(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
185 int rtw_mesh_path_send_to_gates(struct rtw_mesh_path *mpath);
192 void rtw_mesh_path_assign_nexthop(struct rtw_mesh_path *mpath, struct sta_info *sta);
193 void rtw_mesh_path_flush_pending(struct rtw_mesh_path *mpath);
194 void rtw_mesh_path_tx_pending(struct rtw_mesh_path *mpath);
203 static inline void rtw_mesh_path_activate(struct rtw_mesh_path *mpath) in rtw_mesh_path_activate() argument
205 mpath->flags |= RTW_MESH_PATH_ACTIVE | RTW_MESH_PATH_RESOLVED; in rtw_mesh_path_activate()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189fs/core/mesh/
H A Drtw_mesh_pathtbl.c24 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
26 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
32 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
34 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
35 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
38 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
40 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
45 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
62 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
64 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
H A Drtw_mesh_pathtbl.h177 void rtw_mesh_path_fix_nexthop(struct rtw_mesh_path *mpath, struct sta_info *next_hop);
183 int rtw_mesh_path_add_gate(struct rtw_mesh_path *mpath);
184 void rtw_mesh_gate_del(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
186 int rtw_mesh_path_send_to_gates(struct rtw_mesh_path *mpath);
193 void rtw_mesh_path_assign_nexthop(struct rtw_mesh_path *mpath, struct sta_info *sta);
194 void rtw_mesh_path_flush_pending(struct rtw_mesh_path *mpath);
195 void rtw_mesh_path_tx_pending(struct rtw_mesh_path *mpath);
204 static inline void rtw_mesh_path_activate(struct rtw_mesh_path *mpath) in rtw_mesh_path_activate() argument
206 mpath->flags |= RTW_MESH_PATH_ACTIVE | RTW_MESH_PATH_RESOLVED; in rtw_mesh_path_activate()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8188eu/core/mesh/
H A Drtw_mesh_pathtbl.c24 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
26 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
32 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
34 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
35 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
38 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
40 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
45 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
62 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
64 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
H A Drtw_mesh_pathtbl.h177 void rtw_mesh_path_fix_nexthop(struct rtw_mesh_path *mpath, struct sta_info *next_hop);
183 int rtw_mesh_path_add_gate(struct rtw_mesh_path *mpath);
184 void rtw_mesh_gate_del(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
186 int rtw_mesh_path_send_to_gates(struct rtw_mesh_path *mpath);
193 void rtw_mesh_path_assign_nexthop(struct rtw_mesh_path *mpath, struct sta_info *sta);
194 void rtw_mesh_path_flush_pending(struct rtw_mesh_path *mpath);
195 void rtw_mesh_path_tx_pending(struct rtw_mesh_path *mpath);
204 static inline void rtw_mesh_path_activate(struct rtw_mesh_path *mpath) in rtw_mesh_path_activate() argument
206 mpath->flags |= RTW_MESH_PATH_ACTIVE | RTW_MESH_PATH_RESOLVED; in rtw_mesh_path_activate()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/core/mesh/
H A Drtw_mesh_pathtbl.c23 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
25 kfree_rcu(mpath, rcu); in rtw_mpath_free_rcu()
31 struct rtw_mesh_path *mpath; in rtw_mpath_free_rcu_callback() local
33 mpath = container_of(head, struct rtw_mesh_path, rcu); in rtw_mpath_free_rcu_callback()
34 rtw_mfree(mpath, sizeof(struct rtw_mesh_path)); in rtw_mpath_free_rcu_callback()
37 static void rtw_mpath_free_rcu(struct rtw_mesh_path *mpath) in rtw_mpath_free_rcu() argument
39 call_rcu(&mpath->rcu, rtw_mpath_free_rcu_callback); in rtw_mpath_free_rcu()
44 static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl, struct rtw_mesh_path *mpath);
61 static inline bool rtw_mpath_expired(struct rtw_mesh_path *mpath) in rtw_mpath_expired() argument
63 return (mpath->flags & RTW_MESH_PATH_ACTIVE) && in rtw_mpath_expired()
[all …]
/OK3568_Linux_fs/kernel/net/mac80211/
H A Dmesh_pathtbl.c18 static void mesh_path_free_rcu(struct mesh_table *tbl, struct mesh_path *mpath);
35 static inline bool mpath_expired(struct mesh_path *mpath) in mpath_expired() argument
37 return (mpath->flags & MESH_PATH_ACTIVE) && in mpath_expired()
38 time_after(jiffies, mpath->exp_time) && in mpath_expired()
39 !(mpath->flags & MESH_PATH_FIXED); in mpath_expired()
44 struct mesh_path *mpath = ptr; in mesh_path_rht_free() local
47 mesh_path_free_rcu(tbl, mpath); in mesh_path_rht_free()
86 void mesh_path_assign_nexthop(struct mesh_path *mpath, struct sta_info *sta) in mesh_path_assign_nexthop() argument
92 rcu_assign_pointer(mpath->next_hop, sta); in mesh_path_assign_nexthop()
94 spin_lock_irqsave(&mpath->frame_queue.lock, flags); in mesh_path_assign_nexthop()
[all …]
H A Dmesh_hwmp.c385 struct mesh_path *mpath; in hwmp_route_info_get() local
442 mpath = mesh_path_lookup(sdata, orig_addr); in hwmp_route_info_get()
443 if (mpath) { in hwmp_route_info_get()
444 spin_lock_bh(&mpath->state_lock); in hwmp_route_info_get()
445 if (mpath->flags & MESH_PATH_FIXED) in hwmp_route_info_get()
447 else if ((mpath->flags & MESH_PATH_ACTIVE) && in hwmp_route_info_get()
448 (mpath->flags & MESH_PATH_SN_VALID)) { in hwmp_route_info_get()
449 if (SN_GT(mpath->sn, orig_sn) || in hwmp_route_info_get()
450 (mpath->sn == orig_sn && in hwmp_route_info_get()
451 (rcu_access_pointer(mpath->next_hop) != in hwmp_route_info_get()
[all …]

12345