Home
last modified time | relevance | path

Searched refs:ty (Results 1 – 15 of 15) sorted by relevance

/DragonOS/kernel/crates/intertrait/macros/src/
H A Dgen_caster.rs11 pub fn generate_caster(ty: &impl ToTokens, trait_: &impl ToTokens, sync: bool) -> TokenStream { in generate_caster()
18 |from| from.downcast_ref::<#ty>().unwrap(), in generate_caster()
19 |from| from.downcast_mut::<#ty>().unwrap(), in generate_caster()
20 |from| from.downcast::<#ty>().unwrap(), in generate_caster()
21 |from| from.downcast::<#ty>().unwrap(), in generate_caster()
22 |from| from.downcast::<#ty>().unwrap() in generate_caster()
28 |from| from.downcast_ref::<#ty>().unwrap(), in generate_caster()
29 |from| from.downcast_mut::<#ty>().unwrap(), in generate_caster()
30 |from| from.downcast::<#ty>().unwrap(), in generate_caster()
31 |from| from.downcast::<#ty>().unwrap(), in generate_caster()
[all …]
H A Dargs.rs62 pub ty: Type, field
68 let ty: Type = input.parse()?; in parse() localVariable
72 ty, in parse()
H A Dlib.rs135 ty, in castable_to()
141 .map(|t| generate_caster(&ty, t, flags.contains(&Flag::Sync))) in castable_to()
H A Ditem_impl.rs53 ty: assoc_ty.ty.to_owned(), in fully_bound_trait()
/DragonOS/kernel/src/perf/
H A Dutil.rs56 let ty = perf_type_id::from_u32(attr.type_).ok_or(SystemError::EINVAL)?; in try_from() localVariable
58 let name = if ty == perf_type_id::PERF_TYPE_MAX { in try_from()
71 type_: ty, in try_from()
/DragonOS/kernel/src/bpf/
H A Dmod.rs40 ty => { in bpf()
41 unimplemented!("bpf cmd {:?} not implemented", ty) in bpf()
/DragonOS/kernel/crates/rbpf/src/
H A Dcranelift.rs282 let ty = match insn.opc { in translate_program() localVariable
307 let loaded = self.reg_load(bcx, ty, addr, 0); in translate_program()
309 let ext = if ty != I64 { in translate_program()
328 let ty = match insn.opc { in translate_program() localVariable
337 let loaded = self.reg_load(bcx, ty, base, insn.off); in translate_program()
339 let ext = if ty != I64 { in translate_program()
357 let ty = match insn.opc { in translate_program() localVariable
376 let narrow = if ty != I64 { in translate_program()
377 bcx.ins().ireduce(ty, value) in translate_program()
383 self.reg_store(bcx, ty, base, insn.off, narrow); in translate_program()
[all …]
H A Djit.rs80 ( $mem:ident, $data:tt, $t:ty ) => {{
/DragonOS/kernel/src/bpf/prog/
H A Dverifier.rs93 ty => { in relocation()
96 ty, index in relocation()
/DragonOS/kernel/src/init/
H A Dcmdline.rs40 ty: KCmdlineParamType, field
48 pub const fn new(name: &'static str, ty: KCmdlineParamType) -> Self { in new()
51 ty, in new()
74 if matches!(self.ty, KCmdlineParamType::EarlyKV) { in build_early_kv()
88 match self.ty { in build()
/DragonOS/kernel/crates/unified-init/macros/src/
H A Dlib.rs90 if let syn::ReturnType::Type(_, ty) = &function.sig.output { in check_function_signature()
94 let output_type: syn::Type = syn::parse2(ty.clone().into_token_stream())?; in check_function_signature()
/DragonOS/kernel/src/driver/firmware/efi/
H A Dtables.rs168 pub ty: MemoryType, field
204 match self.ty { in is_usable_memory()
232 ty: MemoryType::RESERVED, in default()
H A Dinit.rs283 if md.ty == MemoryType::ACPI_RECLAIM { in reserve_memory_regions()
/DragonOS/docs/kernel/trace/
H A DeBPF.md140 ty => {
141 unimplemented!("bpf cmd {:?} not implemented", ty)
/DragonOS/kernel/crates/bitmap/src/
H A Dtraits.rs30 ($target:ty) => {