Home
last modified time | relevance | path

Searched full:pub (Results 1 – 25 of 474) sorted by relevance

12345678910>>...19

/linux/rust/kernel/
H A Dlib.rs41 pub use ffi;
43 pub mod acpi;
44 pub mod alloc;
46 pub mod auxiliary;
47 pub mod bitmap;
48 pub mod bits;
50 pub mod block;
51 pub mod bug;
52 pub mod build_assert;
53 pub mod clk;
[all …]
H A Dsizes.rs93 pub const $name: usize = bindings::$name as usize;
110 pub trait SizeConstants {
H A Dprelude.rs15 pub use core::{
25 pub use ::ffi::{
42 pub use macros::{
50 pub use pin_init::{
61 pub use super::{
109 pub use super::dbg;
H A Dsync.rs13 pub mod aref;
14 pub mod atomic;
15 pub mod barrier;
16 pub mod completion;
18 pub mod lock;
20 pub mod poll;
21 pub mod rcu;
25 pub use arc::{Arc, ArcBorrow, UniqueArc};
26 pub use completion::Completion;
27 pub us
[all...]
H A Dalloc.rs5 pub mod allocator;
6 pub mod kbox;
7 pub mod kvec;
8 pub mod layout;
10 pub use self::kbox::Box;
11 pub use self::kbox::KBox;
12 pub use self::kbox::KVBox;
13 pub use self::kbox::VBox;
15 pub use self::kvec::IntoIter;
16 pub use self::kvec::KVVec;
[all …]
/linux/rust/syn/
H A Dexport.rs4 pub use std::clone::Clone;
6 pub use std::cmp::{Eq, PartialEq};
8 pub use std::concat;
10 pub use std::default::Default;
12 pub use std::fmt::Debug;
14 pub use std::hash::{Hash, Hasher};
16 pub use std::marker::Copy;
18 pub use std::option::Option::{None, Some};
20 pub use std::result::Result::{Err, Ok};
22 pub use std::stringify;
[all …]
H A Dtoken.rs20 //! pub struct ItemStatic {
21 //! pub attrs: Vec<Attribute>,
22 //! pub vis: Visibility,
23 //! pub static_token: Token![static],
24 //! pub mutability: Option<Token![mut]>,
25 //! pub ident: Ident,
26 //! pub colon_token: Token![:],
27 //! pub ty: Box<Type>,
28 //! pub eq_token: Token![=],
29 //! pub expr: Box<Expr>,
[all …]
H A Drestriction.rs7 /// The visibility level of an item: inherited or `pub` or
8 /// `pub(restricted)`.
16 pub enum Visibility {
17 /// A public visibility level: `pub`.
18 Public(Token![pub]),
20 /// A visibility level restricted to some path: `pub(self)` or
21 /// `pub(super)` or `pub(crate)` or `pub(in some::module)`.
30 /// A visibility level restricted to some path: `pub(self)` or
31 /// `pub(super)` or `pub(crate)` or `pub(in some::module)`.
33 pub struct VisRestricted {
[all …]
H A Dmacros.rs10 $pub:ident $struct:ident $name:ident #full $body:tt
12 check_keyword_matches!(pub $pub);
16 $(#[$attr])* $pub $struct $name $body
19 $(#[$attr])* $pub $struct $name {
33 $pub:ident $struct:ident $name:ident $body:tt
35 check_keyword_matches!(pub $pub);
38 $(#[$attr])* $pub $struct $name $body
46 $pub:ident $enum:ident $name:ident $body:tt
48 check_keyword_matches!(pub $pub);
51 $(#[$enum_attr])* $pub $enum $name $body
[all …]
H A Ditem.rs32 pub enum Item {
65 /// A trait definition: `pub trait Iterator { ... }`.
68 /// A trait alias: `pub trait SharableIterator = Iterator + Sync`.
106 pub struct ItemConst {
107 pub attrs: Vec<Attribute>,
108 pub vis: Visibility,
109 pub const_token: Token![const],
110 pub ident: Ident,
111 pub generics: Generics,
112 pub colon_token: Token![:],
[all …]
H A Dty.rs25 pub enum Type {
97 pub struct TypeArray {
98 pub bracket_token: token::Bracket,
99 pub elem: Box<Type>,
100 pub semi_token: Token![;],
101 pub len: Expr,
108 pub struct TypeBareFn {
109 pub lifetimes: Option<BoundLifetimes>,
110 pub unsafety: Option<Token![unsafe]>,
111 pub abi: Option<Abi>,
[all …]
H A Dderive.rs14 pub struct DeriveInput {
15 pub attrs: Vec<Attribute>,
16 pub vis: Visibility,
17 pub ident: Ident,
18 pub generics: Generics,
19 pub data: Data,
32 pub enum Data {
42 pub struct DataStruct {
43 pub struct_token: Token![struct],
44 pub fields: Fields,
[all …]
H A Dpat.rs12 pub use crate::expr::{
28 pub enum Pat {
112 pub struct PatIdent {
113 pub attrs: Vec<Attribute>,
114 pub by_ref: Option<Token![ref]>,
115 pub mutability: Option<Token![mut]>,
116 pub ident: Ident,
117 pub subpat: Option<(Token![@], Box<Pat>)>,
124 pub struct PatOr {
125 pub attrs: Vec<Attribute>,
[all …]
H A Dexpr.rs114 pub enum Expr {
274 pub struct ExprArray #full {
275 pub attrs: Vec<Attribute>,
276 pub bracket_token: token::Bracket,
277 pub elems: Punctuated<Expr, Token![,]>,
284 pub struct ExprAssign #full {
285 pub attrs: Vec<Attribute>,
286 pub left: Box<Expr>,
287 pub eq_token: Token![=],
288 pub right: Box<Expr>,
[all …]
H A Dpath.rs16 pub struct Path {
17 pub leading_colon: Option<Token![::]>,
18 pub segments: Punctuated<PathSegment, Token![::]>,
65 pub fn is_ident<I>(&self, ident: &I) -> bool in is_ident()
84 pub fn get_ident(&self) -> Option<&Ident> { in get_ident()
98 pub fn require_ident(&self) -> Result<&Ident> { in require_ident()
112 pub struct PathSegment {
113 pub ident: Ident,
114 pub arguments: PathArguments,
141 pub enum PathArguments {
[all …]
/linux/rust/kernel/net/phy/
H A Dreg.rs18 pub trait Sealed {}
43 pub trait Register: private::Sealed {
56 pub struct C22(u8);
60 pub const BMCR: Self = C22(0x00);
62 pub const BMSR: Self = C22(0x01);
64 pub const PHYSID1: Self = C22(0x02);
66 pub const PHYSID2: Self = C22(0x03);
68 pub const ADVERTISE: Self = C22(0x04);
70 pub const LPA: Self = C22(0x05);
72 pub const EXPANSION: Self = C22(0x06);
[all …]
/linux/rust/kernel/mm/
H A Dvirt.rs35 pub struct VmaRef {
49 pub unsafe fn from_raw<'a>(vma: *const bindings::vm_area_struct) -> &'a Self { in from_raw()
56 pub fn as_ptr(&self) -> *mut bindings::vm_area_struct { in as_ptr()
62 pub fn mm(&self) -> &MmWithUser { in mm()
73 pub fn flags(&self) -> vm_flags_t { in flags()
81 pub fn start(&self) -> usize { in start()
89 pub fn end(&self) -> usize { in end()
116 pub fn zap_vma_range(&self, address: usize, size: usize) { in zap_page_range_single()
136 pub fn as_mixedmap_vma(&self) -> Option<&VmaMixedMap> {
161 pub struc
[all...]
/linux/rust/proc-macro2/
H A Drcvec.rs9 pub(crate) struct RcVec<T> {
13 pub(crate) struct RcVecBuilder<T> {
17 pub(crate) struct RcVecMut<'a, T> {
22 pub(crate) struct RcVecIntoIter<T> {
27 pub(crate) fn is_empty(&self) -> bool { in is_empty()
31 pub(crate) fn len(&self) -> usize { in len()
35 pub(crate) fn iter(&self) -> slice::Iter<T> { in iter()
39 pub(crate) fn make_mut(&mut self) -> RcVecMut<T> in make_mut()
48 pub(crate) fn get_mut(&mut self) -> Option<RcVecMut<T>> { in get_mut()
53 pub(crate) fn make_owned(mut self) -> RcVecBuilder<T> in make_owned()
[all …]
H A Dfallback.rs35 pub fn force() { in force()
42 pub fn unforce() { in unforce()
48 pub(crate) struct TokenStream {
53 pub(crate) struct LexError {
54 pub(crate) span: Span,
58 pub(crate) fn span(&self) -> Span { in span()
62 pub(crate) fn call_site() -> Self { in call_site()
70 pub(crate) fn new() -> Self { in new()
76 pub(crate) fn from_str_checked(src: &str) -> Result<Self, LexError> { in from_str_checked()
90 pub(crate) fn from_str_unchecked(src: &str) -> Self { in from_str_unchecked()
[all …]
/linux/crypto/asymmetric_keys/
H A Dpkcs8_parser.c21 struct public_key *pub; member
76 ctx->pub->pkey_algo = "rsa"; in pkcs8_note_algo()
100 struct public_key *pub; in pkcs8_parse() local
106 ctx.pub = kzalloc_obj(struct public_key); in pkcs8_parse()
107 if (!ctx.pub) in pkcs8_parse()
118 pub = ctx.pub; in pkcs8_parse()
119 pub->key = kmemdup(ctx.key, ctx.key_size, GFP_KERNEL); in pkcs8_parse()
120 if (!pub->key) in pkcs8_parse()
123 pub->keylen = ctx.key_size; in pkcs8_parse()
124 pub->key_is_private = true; in pkcs8_parse()
[all …]
/linux/rust/quote/
H A Druntime.rs11 pub use alloc::format;
13 pub use core::option::Option;
16 pub type Delimiter = proc_macro2::Delimiter;
18 pub type Span = proc_macro2::Span;
20 pub type TokenStream = proc_macro2::TokenStream;
23 pub struct HasIterator; // True
25 pub struct ThereIsNoIteratorInRepetition; // False
62 pub mod ext {
71 pub trait RepIteratorExt: Iterator + Sized {
83 pub trait RepToTokensExt {
[all …]
/linux/rust/kernel/irq/
H A Dflags.rs27 pub struct Flags(c_ulong);
31 pub const TRIGGER_NONE: Flags = Flags::new(bindings::IRQF_TRIGGER_NONE);
34 pub const TRIGGER_RISING: Flags = Flags::new(bindings::IRQF_TRIGGER_RISING);
37 pub const TRIGGER_FALLING: Flags = Flags::new(bindings::IRQF_TRIGGER_FALLING);
40 pub const TRIGGER_HIGH: Flags = Flags::new(bindings::IRQF_TRIGGER_HIGH);
43 pub const TRIGGER_LOW: Flags = Flags::new(bindings::IRQF_TRIGGER_LOW);
46 pub const SHARED: Flags = Flags::new(bindings::IRQF_SHARED);
49 pub const PROBE_SHARED: Flags = Flags::new(bindings::IRQF_PROBE_SHARED);
52 pub const TIMER: Flags = Flags::new(bindings::IRQF_TIMER);
55 pub const PERCPU: Flags = Flags::new(bindings::IRQF_PERCPU);
[all …]
/linux/drivers/android/binder/
H A Dallocation.rs27 pub(crate) struct AllocationInfo {
29 pub(crate) offsets: Option<Range<usize>>,
32 pub(crate) target_node: Option<NodeRef>,
37 pub(crate) oneway_node: Option<DArc<Node>>,
39 pub(crate) clear_on_free: bool,
52 pub(crate) struct Allocation {
53 pub(crate) offset: usize,
55 pub(crate) ptr: usize,
56 pub(crate) process: Arc<Process>,
60 pub(crate) debug_id: usize,
[all …]
/linux/drivers/android/binder/range_alloc/
H A Dmod.rs83 pub(crate) struct FreedRange {
84 pub(crate) start_page_idx: usize,
85 pub(crate) end_page_idx: usize,
111 pub(crate) struct RangeAllocator<T> {
122 pub(crate) fn new(size: usize) -> Self { in new()
128 pub(crate) fn free_oneway_space(&self) -> usize { in free_oneway_space()
136 pub(crate) fn count_buffers(&self) -> usize { in count_buffers()
144 pub(crate) fn debug_print(&self, m: &SeqFile) -> Result<()> { in debug_print()
153 pub(crate) fn reserve_new(&mut self, mut args: ReserveNewArgs<T>) -> Result<ReserveNew<T>> { in reserve_new()
227 pub(crate) fn reservation_abort(&mut self, offset: usize) -> Result<FreedRange> { in reservation_abort()
[all …]
/linux/drivers/gpu/nova-core/gsp/
H A Dfw.rs3 pub(crate) mod commands;
44 pub(super) mod gsp_mem {
61 pub(in crate::gsp) fn gsp_write_ptr(qs: &Coherent<GspMem>) -> u32 { in gsp_write_ptr()
65 pub(in crate::gsp) fn gsp_read_ptr(qs: &Coherent<GspMem>) -> u32 { in gsp_read_ptr()
69 pub(in crate::gsp) fn cpu_read_ptr(qs: &Coherent<GspMem>) -> u32 { in cpu_read_ptr()
73 pub(in crate::gsp) fn advance_cpu_read_ptr(qs: &Coherent<GspMem>, count: u32) { in advance_cpu_read_ptr()
82 pub(in crate::gsp) fn cpu_write_ptr(qs: &Coherent<GspMem>) -> u32 { in cpu_write_ptr()
86 pub(in crate::gsp) fn advance_cpu_write_ptr(qs: &Coherent<GspMem>, count: u32) { in advance_cpu_write_ptr()
97 pub(crate) const GSP_MSG_QUEUE_ELEMENT_SIZE_MAX: usize =
136 pub(crate) struct LibosParams {
[all …]

12345678910>>...19