Home
last modified time | relevance | path

Searched refs:try_into (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/gpu/drm/nova/
H A Dfile.rs32 let pdev: &pci::Device = parent.try_into()?; in get_param()
50 let obj = NovaObject::new(dev, req.size.try_into()?)?; in gem_create()
65 req.size = bo.size().try_into()?; in gem_info()
/linux/rust/kernel/pci/
H A Dirq.rs104 fn try_into(self) -> Result<IrqRequest<'a>> { in try_into() method
184 let request = vector.try_into()?; in request_irq()
199 let request = vector.try_into()?; in request_threaded_irq()
/linux/samples/rust/
H A Drust_configfs.rs86 Ok(configfs::Group::new(name.try_into()?, tpe, Child::new())) in make_group()
152 name.try_into()?, in make_group()
H A Drust_driver_auxiliary.rs85 let pdev: &pci::Device<Bound> = dev.try_into()?; in connect()
/linux/drivers/block/rnull/
H A Dconfigfs.rs65 name.try_into()?, in make_group()
76 name: name.try_into()?, in make_group()
/linux/rust/kernel/
H A Duaccess.rs321 let Ok(offset_index) = (*offset).try_into() else { in read_slice_file()
514 let Ok(offset_index) = (*offset).try_into() else { in write_slice_file()
H A Dpci.rs425 Ok(unsafe { bindings::pci_resource_start(self.as_raw(), bar.try_into()?) }) in resource_start()
437 Ok(unsafe { bindings::pci_resource_len(self.as_raw(), bar.try_into()?) }) in resource_len()
H A Dscatterlist.rs281 pages.len().try_into()?, in new()
H A Dcpufreq.rs255 (*self.as_raw().add(index.into())).frequency.try_into()? in freq()
/linux/rust/kernel/debugfs/
H A Dfile_ops.rs277 Ok(written.try_into()?) in blob_read()
331 Ok(read.try_into()?) in blob_write()
/linux/rust/kernel/block/mq/
H A Dtag_set.rs43 .try_into() in new()
/linux/lib/
H A Dfind_bit_benchmark_rust.rs81 unsafe { bindings::__get_random_u32_below(BITMAP_LEN.try_into().unwrap()) as usize }; in find_bit_test()
/linux/rust/kernel/str/
H A Dparse_int.rs137 let value: Self = unsafe { value.try_into().unwrap_unchecked() };
/linux/drivers/gpu/nova-core/gsp/
H A Dfw.rs587 self.0.opCode.try_into() in opcode()
829 .and_then(|v| v.try_into().map_err(|_| EINVAL))?, in init()
867 .try_into() in init()
909 .try_into() in function()
/linux/rust/kernel/drm/
H A Dioctl.rs152 Ok(i) => i.try_into()
/linux/rust/kernel/sync/
H A Dcondvar.rs191 let jiffies = jiffies.try_into().unwrap_or(MAX_SCHEDULE_TIMEOUT); in wait_interruptible_timeout()
/linux/rust/kernel/io/
H A Dmem.rs241 let size = resource.size().try_into()?; in ioremap()
/linux/drivers/gpu/nova-core/
H A Dvbios.rs795 let bytes: [u8; 4] = self.base.data[offset..offset + 4].try_into().map_err(|_| { in falcon_data_ptr()
845 data: u32::from_le_bytes(data[2..6].try_into().map_err(|_| EINVAL)?), in new()
1011 .try_into() in header()
/linux/drivers/android/binder/
H A Dthread.rs713 let obj_length = obj.length.try_into().map_err(|_| EINVAL)?; in translate_object()
969 let data_size = trd.data_size.try_into().map_err(|_| EINVAL)?; in copy_transaction_data()
971 let offsets_size: usize = trd.offsets_size.try_into().map_err(|_| EINVAL)?; in copy_transaction_data()
972 let buffers_size: usize = tr.buffers_size.try_into().map_err(|_| EINVAL)?; in copy_transaction_data()
1043 let offset: usize = offset.try_into().map_err(|_| EINVAL)?; in copy_transaction_data()
/linux/rust/kernel/device/
H A Dproperty.rs464 Ok(str.try_into()?) in read_from_fwnode_property()
/linux/rust/kernel/net/
H A Dphy.rs662 bindings::phy_drivers_register(drivers[0].0.get(), drivers.len().try_into()?, module.0) in register()
/linux/rust/kernel/num/
H A Dbounded.rs525 self.try_into().ok().and_then(Bounded::try_new) in try_into_bounded()