Home
last modified time | relevance | path

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

12345678910>>...19

/linux-6.14.4/rust/kernel/
Dlib.rs36 pub use ffi;
38 pub mod alloc;
40 pub mod block;
42 pub mod build_assert;
43 pub mod cred;
44 pub mod device;
45 pub mod device_id;
46 pub mod devres;
47 pub mod driver;
48 pub mod error;
[all …]
Dprelude.rs15 pub use core::pin::Pin;
17 pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec, Vec};
20 pub use macros::{module, pin_data, pinned_drop, vtable, Zeroable};
22 pub use super::{build_assert, build_error};
26 pub use super::dbg;
27 pub use super::fmt;
28 pub use super::{dev_alert, dev_crit, dev_dbg, dev_emerg, dev_err, dev_info, dev_notice, dev_warn};
29 pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
31 pub use super::{init, pin_init, try_init, try_pin_init};
33 pub use super::static_assert;
[all …]
Dalloc.rs6 pub mod allocator;
7 pub mod kbox;
8 pub mod kvec;
9 pub mod layout;
12 pub mod allocator_test;
15 pub use self::allocator_test as allocator;
17 pub use self::kbox::Box;
18 pub use self::kbox::KBox;
19 pub use self::kbox::KVBox;
20 pub use self::kbox::VBox;
[all …]
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;
Dsync.rs12 pub mod lock;
14 pub mod poll;
15 pub mod rcu;
17 pub use arc::{Arc, ArcBorrow, UniqueArc};
18 pub use condvar::{new_condvar, CondVar, CondVarTimeoutResult};
19 pub use lock::global::{global_lock, GlobalGuard, GlobalLock, GlobalLockBackend, GlobalLockedBy};
20 pub use lock::mutex::{new_mutex, Mutex, MutexGuard};
21 pub use lock::spinlock::{new_spinlock, SpinLock, SpinLockGuard};
22 pub use locked_by::LockedBy;
26 pub struct LockClassKey(Opaque<bindings::lock_class_key>);
[all …]
Dtime.rs12 pub const NSEC_PER_MSEC: i64 = bindings::NSEC_PER_MSEC as i64;
15 pub type Jiffies = crate::ffi::c_ulong;
18 pub type Msecs = crate::ffi::c_uint;
22 pub fn msecs_to_jiffies(msecs: Msecs) -> Jiffies { in msecs_to_jiffies()
31 pub struct Ktime {
38 pub fn from_raw(inner: bindings::ktime_t) -> Self { in from_raw()
44 pub fn ktime_get() -> Self { in ktime_get()
57 pub fn to_ns(self) -> i64 { in to_ns()
63 pub fn to_ms(self) -> i64 { in to_ms()
70 pub fn ktime_ms_delta(later: Ktime, earlier: Ktime) -> i64 { in ktime_ms_delta()
Dtask.rs20 pub const MAX_SCHEDULE_TIMEOUT: c_long = c_long::MAX;
23 pub const TASK_INTERRUPTIBLE: c_int = bindings::TASK_INTERRUPTIBLE as c_int;
25 pub const TASK_UNINTERRUPTIBLE: c_int = bindings::TASK_UNINTERRUPTIBLE as c_int;
28 pub const TASK_NORMAL: c_uint = bindings::TASK_NORMAL as c_uint;
95 pub struct Task(pub(crate) Opaque<bindings::task_struct>);
113 pub struct Kuid {
122 pub fn current_raw() -> *mut bindings::task_struct { in current_raw()
135 pub unsafe fn current() -> impl Deref<Target = Task> { in current()
169 pub unsafe fn current_pid_ns() -> impl Deref<Target = PidNamespace> { in current_pid_ns()
252 pub fn as_ptr(&self) -> *mut bindings::task_struct { in as_ptr()
[all …]
Dioctl.rs27 pub const fn _IO(ty: u32, nr: u32) -> u32 { in _IO()
33 pub const fn _IOR<T>(ty: u32, nr: u32) -> u32 { in _IOR()
39 pub const fn _IOW<T>(ty: u32, nr: u32) -> u32 { in _IOW()
45 pub const fn _IOWR<T>(ty: u32, nr: u32) -> u32 { in _IOWR()
55 pub const fn _IOC_DIR(nr: u32) -> u32 { in _IOC_DIR()
60 pub const fn _IOC_TYPE(nr: u32) -> u32 { in _IOC_TYPE()
65 pub const fn _IOC_NR(nr: u32) -> u32 { in _IOC_NR()
70 pub const fn _IOC_SIZE(nr: u32) -> usize { in _IOC_SIZE()
Duaccess.rs18 pub type UserPtr = usize;
105 pub struct UserSlice {
123 pub fn new(ptr: UserPtr, length: usize) -> Self { in new()
130 pub fn read_all<A: Allocator>(self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all()
135 pub fn reader(self) -> UserSliceReader { in reader()
143 pub fn writer(self) -> UserSliceWriter { in writer()
153 pub fn reader_writer(self) -> (UserSliceReader, UserSliceWriter) { in reader_writer()
170 pub struct UserSliceReader {
179 pub fn skip(&mut self, num_skip: usize) -> Result { in skip()
192 pub fn clone_reader(&self) -> UserSliceReader { in clone_reader()
[all …]
Dio.rs18 pub struct IoRaw<const SIZE: usize = 0> {
25 pub fn new(addr: usize, maxsize: usize) -> Result<Self> { in new()
35 pub fn addr(&self) -> usize { in addr()
41 pub fn maxsize(&self) -> usize { in maxsize()
108 pub struct Io<const SIZE: usize = 0>(IoRaw<SIZE>);
118 pub fn $name(&self, offset: usize) -> $type_name {
130 pub fn $try_name(&self, offset: usize) -> Result<$type_name> {
147 pub fn $name(&self, value: $type_name, offset: usize) {
159 pub fn $try_name(&self, value: $type_name, offset: usize) -> Result {
176 pub unsafe fn from_raw(raw: &IoRaw<SIZE>) -> &Self { in from_raw()
[all …]
/linux-6.14.4/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dchip.c220 struct brcmf_core pub; member
227 struct brcmf_chip pub; member
257 address = CORE_SB(core->pub.base, sbtmstatelow); in brcmf_chip_sb_iscoreup()
287 base = core->pub.base; in brcmf_chip_sb_coredisable()
392 base = core->pub.base; in brcmf_chip_sb_resetcore()
445 if (core->pub.id == BCMA_CORE_80211) { in brcmf_chip_ai_resetcore()
446 d11core2 = brcmf_chip_get_d11core(&ci->pub, 1); in brcmf_chip_ai_resetcore()
450 struct brcmf_core_priv, pub); in brcmf_chip_ai_resetcore()
514 core->pub.id = coreid; in brcmf_chip_add_core()
515 core->pub.base = base; in brcmf_chip_add_core()
[all …]
/linux-6.14.4/rust/kernel/net/phy/
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-6.14.4/crypto/asymmetric_keys/
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-6.14.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddma.h83 void dma_rxinit(struct dma_pub *pub);
84 int dma_rx(struct dma_pub *pub, struct sk_buff_head *skb_list);
85 bool dma_rxfill(struct dma_pub *pub);
86 bool dma_rxreset(struct dma_pub *pub);
87 bool dma_txreset(struct dma_pub *pub);
88 void dma_txinit(struct dma_pub *pub);
89 int dma_txfast(struct brcms_c_info *wlc, struct dma_pub *pub,
91 int dma_txpending(struct dma_pub *pub);
92 void dma_kick_tx(struct dma_pub *pub);
93 void dma_txsuspend(struct dma_pub *pub);
[all …]
/linux-6.14.4/rust/kernel/fs/
Dfile.rs19 pub mod flags {
21 pub const O_APPEND: u32 = bindings::O_APPEND;
24 pub const O_ASYNC: u32 = bindings::FASYNC;
27 pub const O_CLOEXEC: u32 = bindings::O_CLOEXEC;
30 pub const O_CREAT: u32 = bindings::O_CREAT;
33 pub const O_DIRECT: u32 = bindings::O_DIRECT;
36 pub const O_DIRECTORY: u32 = bindings::O_DIRECTORY;
39 pub const O_DSYNC: u32 = bindings::O_DSYNC;
42 pub const O_EXCL: u32 = bindings::O_EXCL;
45 pub const O_LARGEFILE: u32 = bindings::O_LARGEFILE;
[all …]
/linux-6.14.4/net/wireless/
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.transmitted_bss) { in bss_ref_put()
[all …]
/linux-6.14.4/drivers/media/dvb-core/
Ddvb_ca_en50221.c117 struct dvb_ca_en50221 *pub; member
240 slot_status = ca->pub->poll_slot_status(ca->pub, slot, ca->open); in dvb_ca_en50221_check_camstatus()
293 res = ca->pub->read_cam_control(ca->pub, slot, CTRLIF_STATUS); in dvb_ca_en50221_wait_if_status()
345 ret = ca->pub->write_cam_control(ca->pub, slot, CTRLIF_COMMAND, in dvb_ca_en50221_link_init()
355 ret = ca->pub->write_cam_control(ca->pub, slot, CTRLIF_COMMAND, IRQEN); in dvb_ca_en50221_link_init()
372 ret = ca->pub->write_cam_control(ca->pub, slot, CTRLIF_COMMAND, in dvb_ca_en50221_link_init()
382 ret = ca->pub->write_cam_control(ca->pub, slot, CTRLIF_COMMAND, IRQEN); in dvb_ca_en50221_link_init()
412 _tuple_type = ca->pub->read_attribute_mem(ca->pub, slot, _address); in dvb_ca_en50221_read_tuple()
422 _tuple_length = ca->pub->read_attribute_mem(ca->pub, slot, in dvb_ca_en50221_read_tuple()
432 tuple[i] = ca->pub->read_attribute_mem(ca->pub, slot, in dvb_ca_en50221_read_tuple()
[all …]
/linux-6.14.4/net/mac80211/
Dvht.c122 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->pub->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap()
130 if (!link_sta->pub->ht_cap.ht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
320 link_sta->pub->bandwidth = ieee80211_sta_cur_vht_bw(link_sta); in ieee80211_vht_cap_ie_to_sta_vht_cap()
338 link_sta->pub->agg.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_VHT_11454; in ieee80211_vht_cap_ie_to_sta_vht_cap()
341 link_sta->pub->agg.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_VHT_7991; in ieee80211_vht_cap_ie_to_sta_vht_cap()
345 link_sta->pub->agg.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_VHT_3895; in ieee80211_vht_cap_ie_to_sta_vht_cap()
359 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->pub->vht_cap; in __ieee80211_sta_cap_rx_bw()
360 struct ieee80211_sta_he_cap *he_cap = &link_sta->pub->he_cap; in __ieee80211_sta_cap_rx_bw()
361 struct ieee80211_sta_eht_cap *eht_cap = &link_sta->pub->eht_cap; in __ieee80211_sta_cap_rx_bw()
405 return link_sta->pub->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in __ieee80211_sta_cap_rx_bw()
[all …]
/linux-6.14.4/rust/kernel/init/
D__internal.rs16 pub(super) type Invariant<T> = PhantomData<fn(*mut T) -> *mut T>;
22 pub(crate) struct InitClosure<F, T: ?Sized, E>(pub(crate) F, pub(crate) Invariant<(E, T)>);
54 pub unsafe trait HasPinData {
66 pub unsafe trait PinData: Copy {
84 pub unsafe trait HasInitData {
96 pub unsafe trait InitData: Copy {
108 pub struct AllData<T: ?Sized>(PhantomData<fn(KBox<T>) -> KBox<T>>);
139 pub struct StackInit<T> {
161 pub fn uninit() -> Self { in uninit()
170 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
[all …]
/linux-6.14.4/rust/kernel/list/
Darc_field.rs17 pub struct ListArcField<T, const ID: u64 = 0> {
28 pub fn new(value: T) -> Self { in new()
37 pub fn get_mut(&mut self) -> &mut T { in get_mut()
47 pub unsafe fn assert_ref(&self) -> &T { in assert_ref()
60 pub unsafe fn assert_mut(&self) -> &mut T { in assert_mut()
70 ($pub:vis fn $name:ident(&self $(<$id:tt>)?) -> &$typ:ty { $field:ident }
73 $pub fn $name<'a>(self: &'a $crate::list::ListArc<Self $(, $id)?>) -> &'a $typ {
82 ($pub:vis fn $name:ident(&mut self $(<$id:tt>)?) -> &mut $typ:ty { $field:ident }
85 $pub fn $name<'a>(self: &'a mut $crate::list::ListArc<Self $(, $id)?>) -> &'a mut $typ {
96 pub use define_list_arc_field_getter;
/linux-6.14.4/rust/macros/
Dhelpers.rs5 pub(crate) fn try_ident(it: &mut token_stream::IntoIter) -> Option<String> { in try_ident()
13 pub(crate) fn try_literal(it: &mut token_stream::IntoIter) -> Option<String> { in try_literal()
21 pub(crate) fn try_string(it: &mut token_stream::IntoIter) -> Option<String> { in try_string()
37 pub(crate) fn expect_ident(it: &mut token_stream::IntoIter) -> String { in expect_ident()
41 pub(crate) fn expect_punct(it: &mut token_stream::IntoIter) -> char { in expect_punct()
49 pub(crate) fn expect_string(it: &mut token_stream::IntoIter) -> String { in expect_string()
53 pub(crate) fn expect_string_ascii(it: &mut token_stream::IntoIter) -> String { in expect_string_ascii()
59 pub(crate) fn expect_group(it: &mut token_stream::IntoIter) -> Group { in expect_group()
67 pub(crate) fn expect_end(it: &mut token_stream::IntoIter) { in expect_end()
94 pub(crate) struct Generics {
[all …]
/linux-6.14.4/rust/kernel/sync/lock/
Dglobal.rs21 pub trait GlobalLockBackend {
35 pub struct GlobalLock<B: GlobalLockBackend> {
46 pub const unsafe fn new(data: B::Item) -> Self { in new()
61 pub unsafe fn init(&'static self) { in init()
79 pub fn lock(&'static self) -> GlobalGuard<B> { in lock()
86 pub fn try_lock(&'static self) -> Option<GlobalGuard<B>> { in try_lock()
96 pub struct GlobalGuard<B: GlobalLockBackend> {
117 pub struct GlobalLockedBy<T: ?Sized, B: GlobalLockBackend> {
144 pub fn new(val: T) -> Self { in new()
156 pub fn as_ref<'a>(&'a self, _guard: &'a GlobalGuard<B>) -> &'a T { in as_ref()
[all …]
/linux-6.14.4/rust/kernel/net/
Dphy.rs12 pub mod reg;
22 pub enum DeviceState {
44 pub enum DuplexMode {
74 pub struct Device(Opaque<bindings::phy_device>);
95 pub fn phy_id(&self) -> u32 { in phy_id()
103 pub fn state(&self) -> DeviceState { in state()
126 pub fn is_link_up(&self) -> bool { in is_link_up()
139 pub fn is_autoneg_enabled(&self) -> bool { in is_autoneg_enabled()
151 pub fn is_autoneg_completed(&self) -> bool { in is_autoneg_completed()
162 pub fn set_speed(&mut self, speed: u32) { in set_speed()
[all …]
/linux-6.14.4/rust/kernel/sync/
Dlock.rs18 pub mod mutex;
19 pub mod spinlock;
21 pub(super) mod global;
22 pub use global::{GlobalGuard, GlobalLock, GlobalLockBackend, GlobalLockedBy};
39 pub unsafe trait Backend {
108 pub struct Lock<T: ?Sized, B: Backend> {
120 pub(crate) data: UnsafeCell<T>,
132 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
156 pub unsafe fn from_raw<'a>(ptr: *mut B::State) -> &'a Self { in from_raw()
169 pub fn lock(&self) -> Guard<'_, T, B> { in lock()
[all …]
Dcondvar.rs29 pub use new_condvar;
50 /// pub struct Example {
83 pub struct CondVar {
85 pub(crate) wait_queue_head: Opaque<bindings::wait_queue_head>,
104 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
146 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait()
157 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait_interruptible()
168 pub fn wait_interruptible_timeout<T: ?Sized, B: Backend>( in wait_interruptible_timeout()
201 pub fn notify_sync(&self) { in notify_sync()
210 pub fn notify_one(&self) { in notify_one()
[all …]

12345678910>>...19