Home
last modified time | relevance | path

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

123

/linux/rust/kernel/
H A Dbits.rs13 $ty:ty
21 pub fn [<checked_bit_ $ty>](n: u32) -> Option<$ty> {
22 (1 as $ty).checked_shl(n)
31 pub const fn [<bit_ $ty>](n: u32) -> $ty {
32 build_assert!(n < <$ty>::BITS);
33 (1 as $ty) << n
46 $ty:ty,
59 pub fn [<genmask_checked_ $ty>](range: RangeInclusive<u32>) -> Option<$ty> {
67 let high = [<checked_bit_ $ty>](end)?;
68 let low = [<checked_bit_ $ty>](start)?;
[all …]
H A Dinit.rs222 ($(&$this:ident in)? $t:ident $(::<$($generics:ty),* $(,)?>)? {
229 ($(&$this:ident in)? $t:ident $(::<$($generics:ty),* $(,)?>)? {
231 }? $err:ty) => {
282 ($(&$this:ident in)? $t:ident $(::<$($generics:ty),* $(,)?>)? {
289 ($(&$this:ident in)? $t:ident $(::<$($generics:ty),* $(,)?>)? {
291 }? $err:ty) => {
H A Dmodule_param.rs89 ($ty:ident) => {
90 impl ModuleParam for $ty {
92 <$ty as crate::str::parse_int::ParseInt>::from_str(arg)
162 ($ops:ident, $ty:ty) => {
166 set: Some(set_param::<$ty>),
H A Dconfigfs.rs744 ($tpe:ty) => {
889 container: $container:ty,
890 data: $data:ty,
908 container: $container:ty,
909 data: $data:ty,
910 child: $child:ty,
928 @container($container:ty),
929 @data($data:ty),
930 @child($($child:ty)?),
965 @container($container:ty),
[all …]
H A Dfmt.rs60 $( { $($generics:tt)* } )? $ty:ty $( { where $($where:tt)* } )?
63 impl$($($generics)*)? Display for $ty $(where $($where)*)? {
H A Djump_label.rs22 ($key:path, $keytyp:ty, $field:ident) => {{
49 ($key:path, $keytyp:ty, $field:ident, $branch:expr) => {'my_label: {
H A Dnum.rs55 ($($type:ty: $signedness:ty), *) => {
/linux/drivers/media/radio/
H A Dradio-typhoon.c78 struct typhoon *ty = kzalloc(sizeof(*ty), GFP_KERNEL); in typhoon_alloc() local
80 return ty ? &ty->isa : NULL; in typhoon_alloc()
113 struct typhoon *ty = container_of(isa, struct typhoon, isa); in typhoon_s_mute_volume() local
122 if (vol == 0 && !ty->muted) { in typhoon_s_mute_volume()
123 ty->muted = true; in typhoon_s_mute_volume()
126 if (vol && ty->muted) { in typhoon_s_mute_volume()
127 ty->muted = false; in typhoon_s_mute_volume()
/linux/rust/kernel/str/
H A Dparse_int.rs106 ($($ty:ty),*) => {
108 impl private::FromStrRadix for $ty {
110 <$ty>::from_str_radix(core::str::from_utf8(src).map_err(|_| EINVAL)?, radix)
117 if <$ty>::MIN < 0 {
118 1u64 << (<$ty>::BITS - 1)
129 return Ok(<$ty>::MIN);
143 impl ParseInt for $ty {}
/linux/rust/syn/
H A Dclassify.rs12 use crate::ty::{ReturnType, Type};
73 pub(crate) fn trailing_unparameterized_path(mut ty: &Type) -> bool { in trailing_unparameterized_path()
75 match ty { in trailing_unparameterized_path()
78 ReturnType::Type(_, ret) => ty = ret, in trailing_unparameterized_path()
82 ControlFlow::Continue(t) => ty = t, in trailing_unparameterized_path()
86 ControlFlow::Continue(t) => ty = t, in trailing_unparameterized_path()
88 Type::Ptr(t) => ty = &t.elem, in trailing_unparameterized_path()
89 Type::Reference(t) => ty = &t.elem, in trailing_unparameterized_path()
92 ControlFlow::Continue(t) => ty = t, in trailing_unparameterized_path()
207 Expr::Cast(e) => return type_trailing_brace(&e.ty), in expr_trailing_brace()
[all …]
H A Ditem.rs17 use crate::ty::{Abi, ReturnType, Type};
113 pub ty: Box<Type>,
226 pub ty: Box<Type>,
291 pub ty: Box<Type>,
565 pub ty: Box<Type>,
648 pub ty: Type,
747 pub ty: Type,
777 pub ty: Type,
849 pub ty: Box<Type>,
935 use crate::ty::{Abi, ReturnType, Type, TypePath, TypeReference};
[all …]
H A Dty.rs247 pub ty: Type,
289 use crate::ty::{
330 if let Type::Path(mut ty) = *group.elem { in ambig_ty()
331 Path::parse_rest(input, &mut ty.path, false)?; in ambig_ty()
332 return Ok(Type::Path(ty)); in ambig_ty()
340 ty: group.elem, in ambig_ty()
348 if let Type::Path(mut ty) = *group.elem { in ambig_ty()
349 let arguments = &mut ty.path.segments.last_mut().unwrap().arguments; in ambig_ty()
352 Path::parse_rest(input, &mut ty.path, false)?; in ambig_ty()
353 return Ok(Type::Path(ty)); in ambig_ty()
[all …]
H A Dpath.rs11 use crate::ty::{ReturnType, Type};
218 pub ty: Type,
278 pub ty: Box<Type>,
306 use crate::ty::{ReturnType, Type};
331 Type::Path(mut ty) in parse()
332 if ty.qself.is_none() in parse()
333 && ty.path.leading_colon.is_none() in parse()
334 && ty.path.segments.len() == 1 in parse()
335 && match &ty.path.segments[0].arguments { in parse()
341 let segment = ty.path.segments.pop().unwrap().into_value(); in parse()
[all …]
H A Dparse_macro_input.rs111 ($tokenstream:ident as $ty:ty) => {
112 match $crate::parse::<$ty>($tokenstream) {
H A Ddata.rs9 use crate::ty::Type;
200 pub ty: Type,
218 let span = crate::spanned::Spanned::span(&field.ty); in next()
256 use crate::ty::Type;
339 let ty: Type = if unnamed_field in parse_named() localVariable
357 ty, in parse_named()
370 ty: input.parse()?, in parse_unnamed()
423 self.ty.to_tokens(tokens); in to_tokens()
H A Dgenerics.rs10 use crate::ty::Type;
90 pub ty: Type,
297 ($ty:ident) => {
300 impl<'a> Clone for $ty<'a> {
302 $ty(self.0)
308 impl<'a> Debug for $ty<'a> {
311 .debug_tuple(stringify!($ty))
319 impl<'a> Eq for $ty<'a> {}
323 impl<'a> PartialEq for $ty<'a> {
331 impl<'a> Hash for $ty<'a> {
[all …]
/linux/rust/kernel/sync/atomic/
H A Dinternal.rs71 $func:ident($($arg:ident : $arg_type:ty),*) $(-> $ret:ty)?
80 $func:ident [$variant:ident $($rest:ident)*]($($arg_sig:tt)*) $(-> $ret:ty)?
96 $func:ident []($($arg_sig:tt)*) $(-> $ret:ty)?
109 ($ctype:ident) $func:ident($($arg:ident: $arg_type:ty),*) $(-> $ret:ty)? {
129 ($ctype:ident) $func:ident[$variant:ident $($rest:ident)*]($($arg_sig:tt)*) $(-> $ret:ty)? {
147 ($ctype:ident) $func:ident[]($($arg_sig:tt)*) $( -> $ret:ty)? {
164 fn $func:ident [$($variant:ident),*]($($arg_sig:tt)*) $( -> $ret:ty)? {
/linux/rust/pin-init/src/
H A Dlib.rs497 (let $var:ident $(: $t:ty)? = $val:expr) => {
575 (let $var:ident $(: $t:ty)? = $val:expr) => {
580 (let $var:ident $(: $t:ty)? =? $val:expr) => {
783 ($(&$this:ident in)? $t:ident $(::<$($generics:ty),* $(,)?>)? {
834 ($(&$this:ident in)? $t:ident $(::<$($generics:ty),* $(,)?>)? {
836 }? $err:ty) => {
890 ($(&$this:ident in)? $t:ident $(::<$($generics:ty),* $(,)?>)? {
939 ($(&$this:ident in)? $t:ident $(::<$($generics:ty),* $(,)?>)? {
941 }? $err:ty) => {
1009 ($ty:ty, $field:ident, $field_ty:ty, inline) => {
[all …]
H A Dmacros.rs643 @fields_munch($field:ident : $type:ty, $($rest:tt)*),
678 @fields_munch($field:ident : $type:ty, $($rest:tt)*),
1003 @pinned($($(#[$($p_attr:tt)*])* $pvis:vis $p_field:ident : $p_type:ty),* $(,)?),
1004 @not_pinned($($(#[$($attr:tt)*])* $fvis:vis $field:ident : $type:ty),* $(,)?),
1051 @pinned($($(#[$($p_attr:tt)*])* $pvis:vis $p_field:ident : $p_type:ty),* $(,)?),
1052 @not_pinned($($(#[$($attr:tt)*])* $fvis:vis $field:ident : $type:ty),* $(,)?),
1125 @error($err:ty),
1150 @error($err:ty),
1175 @error($err:ty),
1200 @error($err:ty),
[all …]
/linux/lib/crypto/
H A Darc4.c42 u32 ty, ta, tb; in arc4_crypt() local
60 ty = (y + ta) & 0xff; in arc4_crypt()
61 tb = S[ty]; in arc4_crypt()
65 y = ty; in arc4_crypt()
/linux/rust/kernel/list/
H A Dimpl_list_item_mod.rs35 for $self:ty
79 HasSelfPtr<$item_type:ty $(, $id:tt)?>
80 for $self:ty
185 $(impl$({$($generics:tt)*})? ListItem<$num:tt> for $self:ty {
251 $(impl$({$($generics:tt)*})? ListItem<$num:tt> for $self:ty {
/linux/rust/
H A Dffi.rs14 ($($name:ident = $ty:ty;)*) => {$(
16 pub type $name = $ty;
/linux/net/mctp/test/
H A Droute-test.c1387 u8 ty; in mctp_test_route_gw_output()
1405 { .hdr = LK(20, 10), .ty = 1, .net = 1, .expect = "remote20" }, in mctp_test_route_gw_output()
1407 { .hdr = LK(20, 255), .ty = 1, .net = 1, .expect = "remote20" }, in mctp_test_route_gw_output()
1408 { .hdr = LK(20, 0), .ty = 1, .net = 1, .expect = "remote20" }, in mctp_test_route_gw_output()
1409 { .hdr = LK(0, 255), .ty = 1, .net = 1, .expect = "any" }, in mctp_test_route_gw_output()
1410 { .hdr = LK(0, 11), .ty = 1, .net = 1, .expect = "any" },
1411 { .hdr = LK(0, 0), .ty = 1, .net = 1, .expect = "any" },
1412 { .hdr = LK(0, 10), .ty = 1, .net = 1, .expect = "local10" },
1413 { .hdr = LK(21, 10), .ty = 1, .net = 1, .expect = "local10" },
1414 { .hdr = LK(21, 11), .ty member
[all...]
/linux/drivers/gpu/drm/nouveau/include/nvhw/
H A Ddrf.h140 #define DRF_MR_X(er,ew,ty,p,o,dr,m,v) ({ \ argument
141 ty _t = DRF_RD_X(er, (p), (o), dr); \
145 #define DRF_MR_N(X,er,ew,ty,p,o,d,r ,m,v) DRF_MR_X(er, ew, ty, (p), (o), d##_##r , (m), (v)) argument
146 #define DRF_MR_I(X,er,ew,ty,p,o,d,r,i,m,v) DRF_MR_X(er, ew, ty, (p), (o), d##_##r(i), (m), (v)) argument
174 #define DRF_MV_N(X,er,ew,ty,p,o,d,r, f,v) \ argument
175 NVVAL_GET_X(DRF_MR_X(er, ew, ty, (p), (o), d##_##r , DRF_SMASK(d##_##r##_##f), \
177 #define DRF_MV_I(X,er,ew,ty,p,o,d,r,i,f,v) \ argument
178 NVVAL_GET_X(DRF_MR_X(er, ew, ty, (p), (o), d##_##r(i), DRF_SMASK(d##_##r##_##f), \
184 #define DRF_MD_N(X,er,ew,ty,p,o,d,r, f,v) \ argument
185 NVVAL_GET_X(DRF_MR_X(er, ew, ty, (p), (o), d##_##r , DRF_SMASK(d##_##r##_##f), \
[all …]
/linux/rust/syn/gen/
H A Dclone.rs63 ty: self.ty.clone(), in clone()
96 ty: self.ty.clone(), in clone()
165 ty: self.ty.clone(), in clone()
415 ty: self.ty.clone(), in clone()
793 ty: self.ty.clone(), in clone()
929 ty: self.ty.clone(), in clone()
1022 ty: self.ty.clone(), in clone()
1065 ty: self.ty.clone(), in clone()
1122 ty: self.ty.clone(), in clone()
1239 ty: self.ty.clone(), in clone()
[all …]

123