Lines Matching full:safety
79 /// # Safety
89 // SAFETY: by the function requirements the pointer is valid and we have unique access for
97 // SAFETY: The struct invariant ensures that we may access
105 // SAFETY: The struct invariant ensures that we may access
130 // SAFETY: The struct invariant ensures that we may access
142 // SAFETY: The struct invariant ensures that we may access
155 // SAFETY: The struct invariant ensures that we may access
164 // SAFETY: The struct invariant ensures that we may access
177 // SAFETY: The struct invariant ensures that we may access
196 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
206 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
214 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
222 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
230 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
238 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
246 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
259 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
267 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
275 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
284 // SAFETY: The struct invariant ensures that `mdio.dev` is valid.
309 /// # Safety
314 // SAFETY: This callback is called only in contexts
323 /// # Safety
328 // SAFETY: This callback is called only in contexts
338 /// # Safety
343 // SAFETY: This callback is called only in contexts
352 /// # Safety
357 // SAFETY: The C core code ensures that the accessors on
366 /// # Safety
371 // SAFETY: The C core code ensures that the accessors on
380 /// # Safety
385 // SAFETY: This callback is called only in contexts
394 /// # Safety
399 // SAFETY: This callback is called only in contexts
408 /// # Safety
415 // SAFETY: This callback is called only in contexts
422 /// # Safety
431 // SAFETY: This callback is called only in contexts
441 /// # Safety
451 // SAFETY: This callback is called only in contexts
460 /// # Safety
464 // SAFETY: This callback is called only in contexts
485 // SAFETY: `DriverVTable` doesn't expose any &self method to access internal data, so it's safe to
556 // SAFETY: The rest is zeroed out to initialize `struct phy_driver`,
645 // SAFETY: The only action allowed in a `Registration` instance is dropping it, which is safe to do
658 // SAFETY: The type invariants of [`DriverVTable`] ensure that all elements of
671 // SAFETY: The type invariants guarantee that `self.drivers` is valid.
742 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct mdio_device_id`
893 // SAFETY: The anonymous constant guarantees that nobody else can access