/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | gen_caster.rs | 11 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 D | args.rs | 62 pub ty: Type, field 68 let ty: Type = input.parse()?; in parse() localVariable 72 ty, in parse()
|
H A D | lib.rs | 135 ty, in castable_to() 141 .map(|t| generate_caster(&ty, t, flags.contains(&Flag::Sync))) in castable_to()
|
H A D | item_impl.rs | 53 ty: assoc_ty.ty.to_owned(), in fully_bound_trait()
|
/DragonOS/kernel/src/perf/ |
H A D | util.rs | 56 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 D | mod.rs | 40 ty => { in bpf() 41 unimplemented!("bpf cmd {:?} not implemented", ty) in bpf()
|
/DragonOS/kernel/crates/rbpf/src/ |
H A D | cranelift.rs | 282 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 D | jit.rs | 80 ( $mem:ident, $data:tt, $t:ty ) => {{
|
/DragonOS/kernel/src/bpf/prog/ |
H A D | verifier.rs | 93 ty => { in relocation() 96 ty, index in relocation()
|
/DragonOS/kernel/src/init/ |
H A D | cmdline.rs | 40 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 D | lib.rs | 90 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 D | tables.rs | 168 pub ty: MemoryType, field 204 match self.ty { in is_usable_memory() 232 ty: MemoryType::RESERVED, in default()
|
H A D | init.rs | 283 if md.ty == MemoryType::ACPI_RECLAIM { in reserve_memory_regions()
|
/DragonOS/docs/kernel/trace/ |
H A D | eBPF.md | 140 ty => { 141 unimplemented!("bpf cmd {:?} not implemented", ty)
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | traits.rs | 30 ($target:ty) => {
|