Lines Matching defs:phydev
96 let phydev = self.0.get();
99 unsafe { (*phydev).phy_id }
104 let phydev = self.0.get();
107 let state = unsafe { (*phydev).state };
163 let phydev = self.0.get();
166 unsafe { (*phydev).speed = speed as c_int };
171 let phydev = self.0.get();
179 unsafe { (*phydev).duplex = v as c_int };
195 let phydev = self.0.get();
196 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
198 let ret = unsafe { bindings::phy_read_paged(phydev, page.into(), regnum.into()) };
205 let phydev = self.0.get();
206 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
208 unsafe { bindings::phy_resolve_aneg_linkmode(phydev) };
213 let phydev = self.0.get();
214 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
216 to_result(unsafe { bindings::genphy_soft_reset(phydev) })
221 let phydev = self.0.get();
222 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
224 to_result(unsafe { bindings::phy_init_hw(phydev) })
229 let phydev = self.0.get();
230 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
232 to_result(unsafe { bindings::_phy_start_aneg(phydev) })
237 let phydev = self.0.get();
238 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
240 to_result(unsafe { bindings::genphy_resume(phydev) })
245 let phydev = self.0.get();
246 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
248 to_result(unsafe { bindings::genphy_suspend(phydev) })
258 let phydev = self.0.get();
259 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
261 to_result(unsafe { bindings::genphy_update_link(phydev) })
266 let phydev = self.0.get();
267 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
269 to_result(unsafe { bindings::genphy_read_lpa(phydev) })
274 let phydev = self.0.get();
275 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Self`.
277 to_result(unsafe { bindings::genphy_read_abilities(phydev) })
283 let phydev = self.0.get();
285 unsafe { kernel::device::Device::from_raw(addr_of_mut!((*phydev).mdio.dev)) }
311 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
312 unsafe extern "C" fn soft_reset_callback(phydev: *mut bindings::phy_device) -> c_int {
317 let dev = unsafe { Device::from_raw(phydev) };
325 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
326 unsafe extern "C" fn probe_callback(phydev: *mut bindings::phy_device) -> c_int {
332 let dev = unsafe { Device::from_raw(phydev) };
340 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
341 unsafe extern "C" fn get_features_callback(phydev: *mut bindings::phy_device) -> c_int {
346 let dev = unsafe { Device::from_raw(phydev) };
354 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
355 unsafe extern "C" fn suspend_callback(phydev: *mut bindings::phy_device) -> c_int {
360 let dev = unsafe { Device::from_raw(phydev) };
368 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
369 unsafe extern "C" fn resume_callback(phydev: *mut bindings::phy_device) -> c_int {
374 let dev = unsafe { Device::from_raw(phydev) };
382 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
383 unsafe extern "C" fn config_aneg_callback(phydev: *mut bindings::phy_device) -> c_int {
388 let dev = unsafe { Device::from_raw(phydev) };
396 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
397 unsafe extern "C" fn read_status_callback(phydev: *mut bindings::phy_device) -> c_int {
402 let dev = unsafe { Device::from_raw(phydev) };
410 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
412 phydev: *mut bindings::phy_device,
418 let dev = unsafe { Device::from_raw(phydev) };
424 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
426 phydev: *mut bindings::phy_device,
434 let dev = unsafe { Device::from_raw(phydev) };
443 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
445 phydev: *mut bindings::phy_device,
454 let dev = unsafe { Device::from_raw(phydev) };
462 /// `phydev` must be passed by the corresponding callback in `phy_driver`.
463 unsafe extern "C" fn link_change_notify_callback(phydev: *mut bindings::phy_device) {
467 let dev = unsafe { Device::from_raw(phydev) };
593 /// Returns true if this is a suitable driver for the given phydev.
859 /// ::kernel::module_device_table!("mdio", phydev, TABLE);
875 $crate::module_device_table!("mdio", phydev, TABLE);