Lines Matching full:safety

79     /// # Safety
89 // SAFETY: by the function requirements the pointer is valid and we have unique access for in from_raw()
97 // SAFETY: The struct invariant ensures that we may access in phy_id()
105 // SAFETY: The struct invariant ensures that we may access in state()
130 // SAFETY: The struct invariant ensures that we may access in is_link_up()
142 // SAFETY: The struct invariant ensures that we may access in is_autoneg_enabled()
155 // SAFETY: The struct invariant ensures that we may access in is_autoneg_completed()
164 // SAFETY: The struct invariant ensures that we may access in set_speed()
177 // SAFETY: The struct invariant ensures that we may access in set_duplex()
196 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`. in read_paged()
209 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`. in resolve_aneg_linkmode()
217 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`. in genphy_soft_reset()
225 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`. in init_hw()
233 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`. in start_aneg()
241 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`. in genphy_resume()
249 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`. in genphy_suspend()
262 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`. in genphy_update_link()
270 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`. in genphy_read_lpa()
278 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`. in genphy_read_abilities()
287 // SAFETY: The struct invariant ensures that `mdio.dev` is valid. in as_ref()
312 /// # Safety
319 // SAFETY: This callback is called only in contexts in soft_reset_callback()
328 /// # Safety
333 // SAFETY: This callback is called only in contexts in probe_callback()
343 /// # Safety
350 // SAFETY: This callback is called only in contexts in get_features_callback()
359 /// # Safety
364 // SAFETY: The C core code ensures that the accessors on in suspend_callback()
373 /// # Safety
378 // SAFETY: The C core code ensures that the accessors on in resume_callback()
387 /// # Safety
394 // SAFETY: This callback is called only in contexts in config_aneg_callback()
403 /// # Safety
410 // SAFETY: This callback is called only in contexts in read_status_callback()
419 /// # Safety
425 // SAFETY: This callback is called only in contexts in match_phy_device_callback()
432 /// # Safety
441 // SAFETY: This callback is called only in contexts in read_mmd_callback()
451 /// # Safety
461 // SAFETY: This callback is called only in contexts in write_mmd_callback()
470 /// # Safety
474 // SAFETY: This callback is called only in contexts in link_change_notify_callback()
495 // SAFETY: `DriverVTable` doesn't expose any &self method to access internal data, so it's safe to
566 // SAFETY: The rest is zeroed out to initialize `struct phy_driver`, in create_phy_driver()
655 // SAFETY: The only action allowed in a `Registration` instance is dropping it, which is safe to do
668 // SAFETY: The type invariants of [`DriverVTable`] ensure that all elements of in register()
681 // SAFETY: The type invariants guarantee that `self.drivers` is valid. in drop()
874 // SAFETY: C will not read off the end of this constant since the last element is zero.
907 // SAFETY: The anonymous constant guarantees that nobody else can access