Lines Matching defs:Self
58 pub unsafe fn as_mut_ref<'a>(ptr: *mut bindings::cpumask) -> &'a mut Self {
72 pub unsafe fn as_ref<'a>(ptr: *const bindings::cpumask) -> &'a Self {
82 let this: *const Self = self;
158 pub fn copy(&self, dstp: &mut Self) {
159 // SAFETY: By the type invariant, `Self::as_raw` is a valid argument to `cpumask_copy`.
225 pub fn new_zero(_flags: Flags) -> Result<Self, AllocError> {
226 Ok(Self {
250 pub unsafe fn new(_flags: Flags) -> Result<Self, AllocError> {
251 Ok(Self {
274 pub unsafe fn from_raw_mut<'a>(ptr: *mut bindings::cpumask_var_t) -> &'a mut Self {
288 pub unsafe fn from_raw<'a>(ptr: *const bindings::cpumask_var_t) -> &'a Self {
297 pub fn try_clone(cpumask: &Cpumask) -> Result<Self> {
299 let mut cpumask_var = unsafe { Self::new(GFP_KERNEL) }?;
311 fn deref(&self) -> &Self::Target {
317 fn deref(&self) -> &Self::Target {