Home
last modified time | relevance | path

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

12345678910>>...21

/linux/rust/kernel/
H A Dlib.rs65 pub use ffi;
67 pub mod acpi;
68 pub mod alloc;
70 pub mod auxiliary;
71 pub mod bitmap;
72 pub mod bits;
74 pub mod block;
75 pub mod bug;
77 pub mod build_assert;
78 pub mod clk;
[all …]
H A Dsizes.rs8 pub const SZ_1K: usize = bindings::SZ_1K as usize;
10 pub const SZ_2K: usize = bindings::SZ_2K as usize;
12 pub const SZ_4K: usize = bindings::SZ_4K as usize;
14 pub const SZ_8K: usize = bindings::SZ_8K as usize;
16 pub const SZ_16K: usize = bindings::SZ_16K as usize;
18 pub const SZ_32K: usize = bindings::SZ_32K as usize;
20 pub const SZ_64K: usize = bindings::SZ_64K as usize;
22 pub const SZ_128K: usize = bindings::SZ_128K as usize;
24 pub const SZ_256K: usize = bindings::SZ_256K as usize;
26 pub const SZ_512K: usize = bindings::SZ_512K as usize;
[all …]
H A Dprelude.rs15 pub use core::{
20 pub use ::ffi::{
25 pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec, Vec};
28 pub use macros::{export, fmt, kunit_tests, module, vtable};
30 pub use pin_init::{init, pin_data, pin_init, pinned_drop, InPlaceWrite, Init, PinInit, Zeroable};
32 pub use super::{build_assert, build_error};
36 pub use super::dbg;
37 pub use super::{dev_alert, dev_crit, dev_dbg, dev_emerg, dev_err, dev_info, dev_notice, dev_warn};
38 pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
40 pub us
[all...]
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 use condvar::{new_condvar, CondVar, CondVarTimeoutResult};
[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 …]
H A Dgenerics.rs28 pub struct Generics {
29 pub lt_token: Option<Token![<]>,
30 pub params: Punctuated<GenericParam, Token![,]>,
31 pub gt_token: Option<Token![>]>,
32 pub where_clause: Option<WhereClause>,
46 pub enum GenericParam {
61 pub struct LifetimeParam {
62 pub attrs: Vec<Attribute>,
63 pub lifetime: Lifetime,
64 pub colon_token: Option<Token![:]>,
[all …]
H A Ddata.rs14 pub struct Variant {
15 pub attrs: Vec<Attribute>,
18 pub ident: Ident,
21 pub fields: Fields,
24 pub discriminant: Option<(Token![=], Expr)>,
37 pub enum Fields {
54 pub struct FieldsNamed {
55 pub brace_token: token::Brace,
56 pub named: Punctuated<Field, Token![,]>,
63 pub struct FieldsUnnamed {
[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_page_range_single(&self, address: usize, size: usize) { in zap_page_range_single()
138 pub fn as_mixedmap_vma(&self) -> Option<&VmaMixedMap> { in as_mixedmap_vma()
163 pub struct VmaMixedMap {
[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(sizeof(struct public_key), GFP_KERNEL); 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/fs/
H A Dfile.rs23 pub type Offset = bindings::loff_t;
26 pub mod flags {
28 pub const O_APPEND: u32 = bindings::O_APPEND;
31 pub const O_ASYNC: u32 = bindings::FASYNC;
34 pub const O_CLOEXEC: u32 = bindings::O_CLOEXEC;
37 pub const O_CREAT: u32 = bindings::O_CREAT;
40 pub const O_DIRECT: u32 = bindings::O_DIRECT;
43 pub const O_DIRECTORY: u32 = bindings::O_DIRECTORY;
46 pub const O_DSYNC: u32 = bindings::O_DSYNC;
49 pub const O_EXCL: u32 = bindings::O_EXCL;
[all …]
/linux/net/wireless/
H A Dscan.c87 ies = (void *)rcu_access_pointer(bss->pub.beacon_ies); in bss_free()
88 if (ies && !bss->pub.hidden_beacon_bss) in bss_free()
90 ies = (void *)rcu_access_pointer(bss->pub.proberesp_ies); in bss_free()
111 if (bss->pub.hidden_beacon_bss) in bss_ref_get()
112 bss_from_pub(bss->pub.hidden_beacon_bss)->refcount++; in bss_ref_get()
114 if (bss->pub.transmitted_bss) in bss_ref_get()
115 bss_from_pub(bss->pub.transmitted_bss)->refcount++; in bss_ref_get()
123 if (bss->pub.hidden_beacon_bss) { in bss_ref_put()
126 hbss = bss_from_pub(bss->pub.hidden_beacon_bss); in bss_ref_put()
132 if (bss->pub in bss_ref_put()
3338 cfg80211_ref_bss(struct wiphy * wiphy,struct cfg80211_bss * pub) cfg80211_ref_bss() argument
3351 cfg80211_put_bss(struct wiphy * wiphy,struct cfg80211_bss * pub) cfg80211_put_bss() argument
3364 cfg80211_unlink_bss(struct wiphy * wiphy,struct cfg80211_bss * pub) cfg80211_unlink_bss() argument
[all...]

12345678910>>...21