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()
150 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_rx_bcn_presp()
151 if (t_clockdrift > ifmsh->sync_offset_clockdrift_max) in mesh_sync_offset_rx_bcn_presp()
152 ifmsh->sync_offset_clockdrift_max = t_clockdrift; in mesh_sync_offset_rx_bcn_presp()
153 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_rx_bcn_presp()
170 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_offset_adjust_tsf() local
172 WARN_ON(ifmsh->mesh_sp_id != IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET); in mesh_sync_offset_adjust_tsf()
175 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_adjust_tsf()
177 if (ifmsh->sync_offset_clockdrift_max > TOFFSET_MINIMUM_ADJUSTMENT) { in mesh_sync_offset_adjust_tsf()
185 ifmsh->sync_offset_clockdrift_max); in mesh_sync_offset_adjust_tsf()
186 set_bit(MESH_WORK_DRIFT_ADJUST, &ifmsh->wrkq_flags); in mesh_sync_offset_adjust_tsf()
190 (long long)ifmsh->sync_offset_clockdrift_max); in mesh_sync_offset_adjust_tsf()
191 ifmsh->sync_offset_clockdrift_max = 0; in mesh_sync_offset_adjust_tsf()
193 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_adjust_tsf()