| /linux/drivers/gpu/drm/nova/ |
| H A D | file.rs | 32 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 D | irq.rs | 104 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 D | rust_configfs.rs | 86 Ok(configfs::Group::new(name.try_into()?, tpe, Child::new())) in make_group() 152 name.try_into()?, in make_group()
|
| H A D | rust_driver_auxiliary.rs | 85 let pdev: &pci::Device<Bound> = dev.try_into()?; in connect()
|
| /linux/drivers/block/rnull/ |
| H A D | configfs.rs | 65 name.try_into()?, in make_group() 76 name: name.try_into()?, in make_group()
|
| /linux/rust/kernel/ |
| H A D | uaccess.rs | 321 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 D | pci.rs | 425 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 D | scatterlist.rs | 281 pages.len().try_into()?, in new()
|
| H A D | cpufreq.rs | 255 (*self.as_raw().add(index.into())).frequency.try_into()? in freq()
|
| /linux/rust/kernel/debugfs/ |
| H A D | file_ops.rs | 277 Ok(written.try_into()?) in blob_read() 331 Ok(read.try_into()?) in blob_write()
|
| /linux/rust/kernel/block/mq/ |
| H A D | tag_set.rs | 43 .try_into() in new()
|
| /linux/lib/ |
| H A D | find_bit_benchmark_rust.rs | 81 unsafe { bindings::__get_random_u32_below(BITMAP_LEN.try_into().unwrap()) as usize }; in find_bit_test()
|
| /linux/rust/kernel/str/ |
| H A D | parse_int.rs | 137 let value: Self = unsafe { value.try_into().unwrap_unchecked() };
|
| /linux/drivers/gpu/nova-core/gsp/ |
| H A D | fw.rs | 587 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 D | ioctl.rs | 152 Ok(i) => i.try_into()
|
| /linux/rust/kernel/sync/ |
| H A D | condvar.rs | 191 let jiffies = jiffies.try_into().unwrap_or(MAX_SCHEDULE_TIMEOUT); in wait_interruptible_timeout()
|
| /linux/rust/kernel/io/ |
| H A D | mem.rs | 241 let size = resource.size().try_into()?; in ioremap()
|
| /linux/drivers/gpu/nova-core/ |
| H A D | vbios.rs | 795 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 D | thread.rs | 713 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 D | property.rs | 464 Ok(str.try_into()?) in read_from_fwnode_property()
|
| /linux/rust/kernel/net/ |
| H A D | phy.rs | 662 bindings::phy_drivers_register(drivers[0].0.get(), drivers.len().try_into()?, module.0) in register()
|
| /linux/rust/kernel/num/ |
| H A D | bounded.rs | 525 self.try_into().ok().and_then(Bounded::try_new) in try_into_bounded()
|