Home
last modified time | relevance | path

Searched refs:ty (Results 1 – 25 of 70) 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)
32 pub const fn [<bit_ $ty>](n: u32) -> $ty {
33 build_assert!(n < <$ty>::BITS);
34 (1 as $ty) << n
47 $ty:ty,
60 pub fn [<genmask_checked_ $ty>](range: RangeInclusive<u32>) -> Option<$ty> {
68 let high = [<checked_bit_ $ty>](end)?;
69 let low = [<checked_bit_ $ty>](start)?;
[all …]
H A Dinit.rs
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.rs743 ($tpe:ty) => {
888 container: $container:ty,
889 data: $data:ty,
907 container: $container:ty,
908 data: $data:ty,
909 child: $child:ty,
927 @container($container:ty),
928 @data($data:ty),
929 @child($($child:ty)?),
964 @container($container:ty),
[all...]
H A Dio.rs156 (infallible, $c_fn:ident, $self:ident, $type:ty, $addr:expr) => {
161 (fallible, $c_fn:ident, $self:ident, $type:ty, $addr:expr) => {{
184 (infallible, $c_fn:ident, $self:ident, $ty:ty, $addr:expr, $value:expr) => {
189 (fallible, $c_fn:ident, $self:ident, $ty:ty, $addr:expr, $value:expr) => {{
198 $type_name:ty) => {
215 $type_name:ty) => {
233 $type_name:ty) => {
249 $type_name:ty) => {
H A Dfmt.rs60 $( { $($generics:tt)* } )? $ty:ty $( { where $($where:tt)* } )?
63 impl$($($generics)*)? Display for $ty $(where $($where)*)? {
/linux/drivers/media/radio/
H A Dradio-typhoon.c78 struct typhoon *ty = kzalloc_obj(*ty); 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()
/linux/rust/kernel/sync/atomic/
H A Dinternal.rs90 $func:ident($($arg:ident : $arg_type:ty),*) $(-> $ret:ty)?
99 $func:ident [$variant:ident $($rest:ident)*]($($arg_sig:tt)*) $(-> $ret:ty)?
115 $func:ident []($($arg_sig:tt)*) $(-> $ret:ty)?
128 ($ctype:ident) $func:ident($($arg:ident: $arg_type:ty),*) $(-> $ret:ty)? {
148 ($ctype:ident) $func:ident[$variant:ident $($rest:ident)*]($($arg_sig:tt)*) $(-> $ret:ty)? {
166 ($ctype:ident) $func:ident[]($($arg_sig:tt)*) $( -> $ret:ty)? {
183 fn $func:ident [$($variant:ident),*]($($arg_sig:tt)*) $( -> $ret:ty)? {
203 $ty
[all...]
/linux/drivers/staging/media/atomisp/pci/
H A Dsh_css_param_shading.c110 int ty, src_y0, src_y1; in crop_and_interpolate() local
117 ty = out_start_row + i * out_cell_size; in crop_and_interpolate()
121 src_y0 = ty / (int)in_cell_size; in crop_and_interpolate()
123 src_y1 = (ty + out_cell_size) / in_cell_size; in crop_and_interpolate()
128 ty = min(clamp(ty, 0, (int)sensor_height - 1), in crop_and_interpolate()
135 dy0 = ty - sy0; in crop_and_interpolate()
136 dy1 = sy1 - ty; in crop_and_interpolate()
/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
186 $(impl$({$($generics:tt)*})? ListItem<$num:tt> for $self:ty {
252 $(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/rust/pin-init/src/
H A Dlib.rs500 (let $var:ident $(: $t:ty)? = $val:expr) => {
578 (let $var:ident $(: $t:ty)? = $val:expr) => {
583 (let $var:ident $(: $t:ty)? =? $val:expr) => {
876 ($ty:ty, $field:ident, $field_ty:ty, inline) => {
879 let data = unsafe { <$ty as $crate::__internal::HasPinData>::__pin_data() };
886 ($ty:ty, $field:ident, $field_ty:ty) => {
888 $crate::assert_pinned!($ty, $field, $field_ty, inline);
1583 ($($({$($generics:tt)*})? $t:ty, )*) => {
H A Dmacros.rs
/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/kernel/pci/
H A Dio.rs105 (infallible, $c_fn:ident, $self:ident, $ty:ty, $addr:expr) => {{
106 let mut val: $ty = 0;
135 (infallible, $c_fn:ident, $self:ident, $ty:ty, $addr:expr, $value:expr) => {
/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