Lines Matching refs:ifmsh

50 	struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;  in mesh_sync_adjust_tsf()  local
56 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_adjust_tsf()
57 if (ifmsh->sync_offset_clockdrift_max < beacon_int_fraction) { in mesh_sync_adjust_tsf()
59 (long long) ifmsh->sync_offset_clockdrift_max); in mesh_sync_adjust_tsf()
60 tsfdelta = -ifmsh->sync_offset_clockdrift_max; in mesh_sync_adjust_tsf()
61 ifmsh->sync_offset_clockdrift_max = 0; in mesh_sync_adjust_tsf()
64 (long long) ifmsh->sync_offset_clockdrift_max, in mesh_sync_adjust_tsf()
67 ifmsh->sync_offset_clockdrift_max -= beacon_int_fraction; in mesh_sync_adjust_tsf()
69 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_adjust_tsf()
86 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_offset_rx_bcn_presp() local
91 WARN_ON(ifmsh->mesh_sp_id != IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET); in mesh_sync_offset_rx_bcn_presp()
148 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_rx_bcn_presp()
149 if (t_clockdrift > ifmsh->sync_offset_clockdrift_max) in mesh_sync_offset_rx_bcn_presp()
150 ifmsh->sync_offset_clockdrift_max = t_clockdrift; in mesh_sync_offset_rx_bcn_presp()
151 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_rx_bcn_presp()
168 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_offset_adjust_tsf() local
170 WARN_ON(ifmsh->mesh_sp_id != IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET); in mesh_sync_offset_adjust_tsf()
173 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_adjust_tsf()
175 if (ifmsh->sync_offset_clockdrift_max > TOFFSET_MINIMUM_ADJUSTMENT) { in mesh_sync_offset_adjust_tsf()
183 ifmsh->sync_offset_clockdrift_max); in mesh_sync_offset_adjust_tsf()
184 set_bit(MESH_WORK_DRIFT_ADJUST, &ifmsh->wrkq_flags); in mesh_sync_offset_adjust_tsf()
188 (long long)ifmsh->sync_offset_clockdrift_max); in mesh_sync_offset_adjust_tsf()
189 ifmsh->sync_offset_clockdrift_max = 0; in mesh_sync_offset_adjust_tsf()
191 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_adjust_tsf()