Home
last modified time | relevance | path

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

12345678910>>...17

/linux-6.12.1/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.12.1/rust/kernel/
Dlib.rs29 pub mod alloc;
31 pub mod block;
33 pub mod device;
34 pub mod error;
36 pub mod firmware;
37 pub mod init;
38 pub mod ioctl;
40 pub mod kunit;
41 pub mod list;
43 pub mod net;
[all …]
Dprelude.rs15 pub use core::pin::Pin;
17 pub use crate::alloc::{box_ext::BoxExt, flags::*, vec_ext::VecExt};
20 pub use alloc::{boxed::Box, vec::Vec};
23 pub use macros::{module, pin_data, pinned_drop, vtable, Zeroable};
25 pub use super::build_assert;
29 pub use super::dbg;
30 pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
32 pub use super::{init, pin_init, try_init, try_pin_init};
34 pub use super::static_assert;
36 pub use super::error::{code::*, Error, Result};
[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;
Dalloc.rs8 pub mod box_ext;
9 pub mod vec_ext;
13 pub struct AllocError;
21 pub struct Flags(u32);
25 pub(crate) fn as_raw(self) -> u32 { in as_raw()
54 pub mod flags {
60 pub const __GFP_ZERO: Flags = Flags(bindings::__GFP_ZERO);
68 pub const __GFP_HIGHMEM: Flags = Flags(bindings::__GFP_HIGHMEM);
75 pub const GFP_ATOMIC: Flags = Flags(bindings::GFP_ATOMIC);
79 pub const GFP_KERNEL: Flags = Flags(bindings::GFP_KERNEL);
[all …]
Dtime.rs12 pub const NSEC_PER_MSEC: i64 = bindings::NSEC_PER_MSEC as i64;
15 pub type Jiffies = core::ffi::c_ulong;
18 pub type Msecs = core::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()
Dsync.rs12 pub mod lock;
15 pub use arc::{Arc, ArcBorrow, UniqueArc};
16 pub use condvar::{new_condvar, CondVar, CondVarTimeoutResult};
17 pub use lock::mutex::{new_mutex, Mutex};
18 pub use lock::spinlock::{new_spinlock, SpinLock};
19 pub use locked_by::LockedBy;
23 pub struct LockClassKey(Opaque<bindings::lock_class_key>);
31 pub const fn new() -> Self { in new()
35 pub(crate) fn as_ptr(&self) -> *mut bindings::lock_class_key { in as_ptr()
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.rs19 pub type UserPtr = usize;
108 pub struct UserSlice {
126 pub fn new(ptr: UserPtr, length: usize) -> Self { in new()
133 pub fn read_all(self, buf: &mut Vec<u8>, flags: Flags) -> Result { in read_all()
138 pub fn reader(self) -> UserSliceReader { in reader()
146 pub fn writer(self) -> UserSliceWriter { in writer()
156 pub fn reader_writer(self) -> (UserSliceReader, UserSliceWriter) { in reader_writer()
173 pub struct UserSliceReader {
182 pub fn skip(&mut self, num_skip: usize) -> Result { in skip()
195 pub fn clone_reader(&self) -> UserSliceReader { in clone_reader()
[all …]
Dtask.rs16 pub const MAX_SCHEDULE_TIMEOUT: c_long = c_long::MAX;
19 pub const TASK_INTERRUPTIBLE: c_int = bindings::TASK_INTERRUPTIBLE as c_int;
21 pub const TASK_UNINTERRUPTIBLE: c_int = bindings::TASK_UNINTERRUPTIBLE as c_int;
24 pub const TASK_NORMAL: c_uint = bindings::TASK_NORMAL as c_uint;
81 pub struct Task(pub(crate) Opaque<bindings::task_struct>);
106 pub unsafe fn current() -> impl Deref<Target = Task> { in current()
133 pub fn group_leader(&self) -> &Task { in group_leader()
145 pub fn pid(&self) -> Pid { in pid()
152 pub fn signal_pending(&self) -> bool { in signal_pending()
158 pub fn wake_up(&self) { in wake_up()
Dstr.rs14 pub struct BStr([u8]);
19 pub const fn len(&self) -> usize { in len()
25 pub const fn is_empty(&self) -> bool { in is_empty()
31 pub const fn from_bytes(bytes: &[u8]) -> &Self { in from_bytes()
133 pub enum CStrConvertError {
153 pub struct CStr([u8]);
158 pub const fn len(&self) -> usize { in len()
164 pub const fn len_with_nul(&self) -> usize { in len_with_nul()
176 pub const fn is_empty(&self) -> bool { in is_empty()
188 pub unsafe fn from_char_ptr<'a>(ptr: *const core::ffi::c_char) -> &'a Self { in from_char_ptr()
[all …]
Dlist.rs15 pub use self::impl_list_item_mod::{
20 pub use self::arc::{impl_list_arc_safe, AtomicTracker, ListArc, ListArcSafe, TryNewListArc};
23 pub use self::arc_field::{define_list_arc_field_getter, ListArcField};
38 pub struct List<T: ?Sized + ListItem<ID>, const ID: u64 = 0> {
68 pub unsafe trait ListItem<const ID: u64 = 0>: ListArcSafe<ID> {
146 pub struct ListLinks<const ID: u64 = 0> {
162 pub fn new() -> impl PinInit<Self> { in new()
195 pub struct ListLinksSelfPtr<T: ?Sized, const ID: u64 = 0> {
199 pub inner: ListLinks<ID>,
216 pub const LIST_LINKS_SELF_PTR_OFFSET: usize = core::mem::offset_of!(Self, self_ptr);
[all …]
/linux-6.12.1/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.12.1/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.12.1/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 void dma_txflush(struct dma_pub *pub);
92 int dma_txpending(struct dma_pub *pub);
93 void dma_kick_tx(struct dma_pub *pub);
[all …]
/linux-6.12.1/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.12.1/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.12.1/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.12.1/rust/kernel/init/
D__internal.rs16 pub(super) type Invariant<T> = PhantomData<fn(*mut T) -> *mut T>;
21 pub(crate) struct InitClosure<F, T: ?Sized, E>(pub(crate) F, pub(crate) Invariant<(E, T)>);
53 pub unsafe trait HasPinData {
64 pub unsafe trait PinData: Copy {
82 pub unsafe trait HasInitData {
93 pub unsafe trait InitData: Copy {
105 pub struct AllData<T: ?Sized>(PhantomData<fn(Box<T>) -> Box<T>>);
134 pub struct StackInit<T> {
156 pub fn uninit() -> Self { in uninit()
165 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
[all …]
/linux-6.12.1/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.12.1/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.12.1/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.12.1/rust/kernel/sync/
Dlock.rs13 pub mod mutex;
14 pub mod spinlock;
31 pub unsafe trait Backend {
85 pub struct Lock<T: ?Sized, B: Backend> {
97 pub(crate) data: UnsafeCell<T>,
109 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
124 pub fn lock(&self) -> Guard<'_, T, B> { in lock()
139 pub struct Guard<'a, T: ?Sized, B: Backend> {
140 pub(crate) lock: &'a Lock<T, B>,
141 pub(crate) state: B::GuardState,
[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>,
105 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
147 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait()
158 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait_interruptible()
169 pub fn wait_interruptible_timeout<T: ?Sized, B: Backend>( in wait_interruptible_timeout()
202 pub fn notify_sync(&self) { in notify_sync()
211 pub fn notify_one(&self) { in notify_one()
[all …]
/linux-6.12.1/include/crypto/
Dcurve25519.h28 void curve25519_base_arch(u8 pub[CURVE25519_KEY_SIZE],
47 __must_check curve25519_generate_public(u8 pub[CURVE25519_KEY_SIZE], in curve25519_generate_public()
55 curve25519_base_arch(pub, secret); in curve25519_generate_public()
57 curve25519_generic(pub, secret, curve25519_base_point); in curve25519_generate_public()
58 return crypto_memneq(pub, curve25519_null_point, CURVE25519_KEY_SIZE); in curve25519_generate_public()

12345678910>>...17