Home
last modified time | relevance | path

Searched refs:index (Results 1 – 14 of 14) sorted by relevance

/rust/kernel/
A Dxarray.rs106 let mut index = 0; in iter() variables
181 fn load<F, U>(&self, index: usize, f: F) -> Option<U> in load()
186 let ptr = unsafe { bindings::xa_load(self.xa.xa.get(), index) }; in load()
192 pub fn get(&self, index: usize) -> Option<T::Borrowed<'_>> { in get()
193 self.load(index, |ptr| { in get()
200 pub fn get_mut(&mut self, index: usize) -> Option<T::BorrowedMut<'_>> { in get_mut()
201 self.load(index, |ptr| { in get_mut()
208 pub fn remove(&mut self, index: usize) -> Option<T> { in remove()
212 let ptr = unsafe { bindings::__xa_erase(self.xa.xa.get(), index) }.cast(); in remove()
229 index: usize, in store()
[all …]
A Ddevice_id.rs52 fn index(&self) -> usize; in index() method
170 fn id(&self, index: usize) -> &T::RawType; in id()
173 fn info(&self, index: usize) -> &U; in info()
183 fn id(&self, index: usize) -> &T::RawType { in id()
184 &self.raw_ids.ids[index] in id()
187 fn info(&self, index: usize) -> &U { in info()
188 &self.id_infos[index] in info()
A Dopp.rs423 self.required_dev = Some((dev, index)); in set_required_dev()
659 pub fn from_of(dev: &ARef<Device>, index: i32) -> Result<Self> { in from_of()
848 index: Option<u32>, in opp_from_freq()
852 let index = index.unwrap_or(0); in opp_from_freq()
863 raw_dev, rate, index, available, in opp_from_freq()
925 bindings::dev_pm_opp_find_bw_ceil(raw_dev, &mut bw, index) in opp_from_bw()
931 bindings::dev_pm_opp_find_bw_floor(raw_dev, &mut bw, index) in opp_from_bw()
1099 pub fn freq(&self, index: Option<u32>) -> Hertz { in freq()
1100 let index = index.unwrap_or(0); in freq()
1133 pub fn required_pstate(&self, index: u32) -> u32 { in required_pstate()
[all …]
A Dcpufreq.rs181 pub unsafe fn new(index: usize) -> Self { in new()
183 Self(index) in new()
189 fn from(index: TableIndex) -> Self { in from()
190 index.0 in from()
1224 index: c_uint, in target_index_callback()
1233 let index = unsafe { TableIndex::new(index as usize) }; in target_index_callback()
1282 index: c_uint, in get_intermediate_callback()
1290 let index = unsafe { TableIndex::new(index as usize) }; in get_intermediate_callback()
1292 T::get_intermediate(policy, index) in get_intermediate_callback()
1303 index: c_uint, in target_intermediate_callback()
[all …]
A Dstr.rs140 fn index(&self, index: Idx) -> &Self::Output { in index() function
141 BStr::from_bytes(&self.0[index]) in index()
540 fn index(&self, index: ops::RangeFrom<usize>) -> &Self::Output { in index() method
543 let _ = &self.as_bytes()[index.start..]; in index()
545 unsafe { Self::from_bytes_with_nul_unchecked(&self.0[index.start..]) } in index()
553 fn index(&self, _index: ops::RangeFull) -> &Self::Output { in index() method
578 fn index(&self, index: Idx) -> &Self::Output { in index() function
579 &self.as_ref()[index] in index()
A Dplatform.rs232 pub fn resource_by_index(&self, index: u32) -> Option<&Resource> { in resource_by_index()
235 bindings::platform_get_resource(self.as_raw(), bindings::IORESOURCE_MEM, index) in resource_by_index()
271 pub fn io_request_by_index(&self, index: u32) -> Option<IoRequest<'_>> { in io_request_by_index()
272 self.resource_by_index(index) in io_request_by_index()
A Ddriver.rs173 Some(table.info(<acpi::DeviceId as crate::device_id::RawDeviceIdIndex>::index(id))) in acpi_id_info()
208 table.info(<of::DeviceId as crate::device_id::RawDeviceIdIndex>::index( in of_id_info()
A Dof.rs29 fn index(&self) -> usize { in index() method
A Dpci.rs73 let info = T::ID_TABLE.info(id.index()); in probe_callback()
172 fn index(&self) -> usize { in index() method
362 fn index_is_valid(index: u32) -> bool { in index_is_valid()
364 index < bindings::PCI_NUM_RESOURCES in index_is_valid()
A Dacpi.rs29 fn index(&self) -> usize { in index() method
A Dauxiliary.rs68 let info = T::ID_TABLE.info(id.index()); in probe_callback()
148 fn index(&self) -> usize { in index() method
/rust/kernel/alloc/
A Dkvec.rs384 index: usize, in insert_within_capacity()
388 if index > len { in insert_within_capacity()
397 let p = unsafe { self.as_mut_ptr().add(index) }; in insert_within_capacity()
402 unsafe { ptr::copy(p, p.add(1), len - index) }; in insert_within_capacity()
955 fn index(&self, index: I) -> &Self::Output { in index() function
956 Index::index(&**self, index) in index()
965 fn index_mut(&mut self, index: I) -> &mut Self::Output { in index_mut()
966 IndexMut::index_mut(&mut **self, index) in index_mut()
/rust/kernel/device/
A Dproperty.rs262 index: u32, in property_get_reference_args()
288 index, in property_get_reference_args()
/rust/pin-init/
A DREADME.md223 [`sync`]: https://rust.docs.kernel.org/kernel/sync/index.html
224 [pinning]: https://doc.rust-lang.org/std/pin/index.html
225 [structurally pinned fields]: https://doc.rust-lang.org/std/pin/index.html#projections-and-structur…

Completed in 26 milliseconds