Lines Matching defs:Device
11 use super::Device;
31 /// fn link_change_notify(dev: &mut Device) {
47 fn read(&self, dev: &mut Device) -> Result<u16>;
50 fn write(&self, dev: &mut Device, val: u16) -> Result;
53 fn read_status(dev: &mut Device) -> Result<u16>;
107 fn read(&self, dev: &mut Device) -> Result<u16> {
109 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Device`.
119 fn write(&self, dev: &mut Device, val: u16) -> Result {
121 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Device`.
129 fn read_status(dev: &mut Device) -> Result<u16> {
199 fn read(&self, dev: &mut Device) -> Result<u16> {
201 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Device`.
209 fn write(&self, dev: &mut Device, val: u16) -> Result {
211 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Device`.
218 fn read_status(dev: &mut Device) -> Result<u16> {