Lines Matching refs:ifmsh
52 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_adjust_tsf() local
58 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_adjust_tsf()
59 if (ifmsh->sync_offset_clockdrift_max < beacon_int_fraction) { in mesh_sync_adjust_tsf()
61 (long long) ifmsh->sync_offset_clockdrift_max); in mesh_sync_adjust_tsf()
62 tsfdelta = -ifmsh->sync_offset_clockdrift_max; in mesh_sync_adjust_tsf()
63 ifmsh->sync_offset_clockdrift_max = 0; in mesh_sync_adjust_tsf()
66 (long long) ifmsh->sync_offset_clockdrift_max, in mesh_sync_adjust_tsf()
69 ifmsh->sync_offset_clockdrift_max -= beacon_int_fraction; in mesh_sync_adjust_tsf()
71 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_adjust_tsf()
88 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_offset_rx_bcn_presp() local
93 WARN_ON(ifmsh->mesh_sp_id != IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET); in mesh_sync_offset_rx_bcn_presp()
153 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_rx_bcn_presp()
154 if (t_clockdrift > ifmsh->sync_offset_clockdrift_max) in mesh_sync_offset_rx_bcn_presp()
155 ifmsh->sync_offset_clockdrift_max = t_clockdrift; in mesh_sync_offset_rx_bcn_presp()
156 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_rx_bcn_presp()
173 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_offset_adjust_tsf() local
175 WARN_ON(ifmsh->mesh_sp_id != IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET); in mesh_sync_offset_adjust_tsf()
178 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_adjust_tsf()
180 if (ifmsh->sync_offset_clockdrift_max > TOFFSET_MINIMUM_ADJUSTMENT) { in mesh_sync_offset_adjust_tsf()
188 ifmsh->sync_offset_clockdrift_max); in mesh_sync_offset_adjust_tsf()
189 set_bit(MESH_WORK_DRIFT_ADJUST, &ifmsh->wrkq_flags); in mesh_sync_offset_adjust_tsf()
193 (long long)ifmsh->sync_offset_clockdrift_max); in mesh_sync_offset_adjust_tsf()
194 ifmsh->sync_offset_clockdrift_max = 0; in mesh_sync_offset_adjust_tsf()
196 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_adjust_tsf()