Lines Matching defs:as_raw

81     pub fn as_raw(&self) -> *mut bindings::cpumask {
93 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `__cpumask_set_cpu`.
94 unsafe { bindings::__cpumask_set_cpu(u32::from(cpu), self.as_raw()) };
104 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to
106 unsafe { bindings::__cpumask_clear_cpu(i32::from(cpu), self.as_raw()) };
114 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `cpumask_test_cpu`.
115 unsafe { bindings::cpumask_test_cpu(i32::from(cpu), self.as_raw()) }
123 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `cpumask_setall`.
124 unsafe { bindings::cpumask_setall(self.as_raw()) };
132 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `cpumask_empty`.
133 unsafe { bindings::cpumask_empty(self.as_raw()) }
141 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `cpumask_full`.
142 unsafe { bindings::cpumask_full(self.as_raw()) }
150 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `cpumask_weight`.
151 unsafe { bindings::cpumask_weight(self.as_raw()) }
159 // SAFETY: By the type invariant, `Self::as_raw` is a valid argument to `cpumask_copy`.
160 unsafe { bindings::cpumask_copy(dstp.as_raw(), self.as_raw()) };
235 unsafe { bindings::zalloc_cpumask_var(&mut ptr, _flags.as_raw()) };
260 unsafe { bindings::alloc_cpumask_var(&mut ptr, _flags.as_raw()) };
338 // SAFETY: By the type invariant, `self.as_raw` is a valid argument to `free_cpumask_var`.
340 bindings::free_cpumask_var(self.as_raw())