Home
last modified time | relevance | path

Searched refs:I2cAdapter (Results 1 – 2 of 2) sorted by relevance

/linux/rust/kernel/
H A Di2c.rs381 pub struct I2cAdapter<Ctx: device::DeviceContext = device::Normal>( struct
386 impl<Ctx: device::DeviceContext> I2cAdapter<Ctx> { impl
392 impl I2cAdapter { implementation
409 Ok(unsafe { (&*adapter.as_ptr().cast::<I2cAdapter<device::Normal>>()).into() }) in get()
415 kernel::impl_device_context_deref!(unsafe { I2cAdapter });
416 kernel::impl_device_context_into_aref!(I2cAdapter);
419 unsafe impl crate::types::AlwaysRefCounted for I2cAdapter { implementation
561 i2c_adapter: &I2cAdapter, in new() argument
568 fn try_new(i2c_adapter: &I2cAdapter, i2c_board_info: &I2cBoardInfo) -> Result<Self> { in try_new() argument
/linux/samples/rust/
H A Drust_i2c_client.rs126 let adapter = i2c::I2cAdapter::get(SAMPLE_I2C_ADAPTER_INDEX)?; in probe()