Home
last modified time | relevance | path

Searched defs:usize (Results 1 – 25 of 65) sorted by relevance

123

/linux/rust/kernel/
H A Dio.rs30 pub fn new(addr: usize, maxsize: usize) -> Result<Self> { in new()
40 pub fn addr(&self) -> usize { in addr()
46 pub fn maxsize(&self) -> usize { in maxsize()
188 pub fn addr(&self) -> usize { in addr()
194 pub fn maxsize(&self) -> usize { in maxsize()
199 const fn offset_valid<U>(offset: usize, size: usize) -> bool { in offset_valid()
209 fn io_addr<U>(&self, offset: usize) -> Result<usize> { in io_addr()
220 fn io_addr_assert<U>(&self, offset: usize) -> usize { in io_addr_assert()
H A Dpage.rs27 pub const fn page_align(addr: usize) -> usize { in page_align()
147 off: usize, in with_pointer_into_page()
148 len: usize, in with_pointer_into_page()
174 pub unsafe fn read_raw(&self, dst: *mut u8, offset: usize, len: usize) -> Result { in read_raw()
196 pub unsafe fn write_raw(&self, src: *const u8, offset: usize, len: usize) -> Result { in write_raw()
216 pub unsafe fn fill_zero_raw(&self, offset: usize, len: usize) -> Result { in fill_zero_raw()
242 offset: usize, in copy_from_user_slice_raw()
243 len: usize, in copy_from_user_slice_raw()
H A Ddma.rs300 count: usize, in alloc_attrs()
345 count: usize, in alloc_coherent()
355 pub fn count(&self) -> usize { in count()
360 pub fn size(&self) -> usize { in size()
399 fn validate_range(&self, offset: usize, count: usize) -> Result { in validate_range()
419 pub unsafe fn as_slice(&self, offset: usize, count: usize) -> Result<&[T]> { in as_slice()
439 pub unsafe fn as_slice_mut(&mut self, offset: usize, count: usize) -> Result<&mut [T]> { in as_slice_mut()
H A Duaccess.rs243 pub fn len(&self) -> usize { in len()
410 pub fn len(&self) -> usize { in len()
485 fn raw_strncpy_from_user(dst: &mut [MaybeUninit<u8>], src: UserPtr) -> Result<usize> { in raw_strncpy_from_user()
H A Ddevice_id.rs52 fn index(&self) -> usize; in index()
64 pub const fn size(&self) -> usize { in size()
H A Dstr.rs18 pub const fn len(&self) -> usize { in len()
214 pub const fn len(&self) -> usize { in len()
220 pub const fn len_with_nul(&self) -> usize { in len_with_nul()
564 impl CStrIndex for usize {} implementation
793 pub(crate) fn bytes_written(&self) -> usize { in bytes_written()
H A Dxarray.rs181 fn load<F, U>(&self, index: usize, f: F) -> Option<U> in load()
229 index: usize, in store()
H A Dfirmware.rs95 pub fn size(&self) -> usize { in size()
334 pub const fn build_length(self) -> usize { in build_length()
H A Dsecurity.rs46 pub fn len(&self) -> usize { in len()
H A Dof.rs29 fn index(&self) -> usize { in index()
/linux/drivers/gpu/drm/
H A Ddrm_panic_qr.rs221 fn max_data(&self) -> usize { in max_data()
225 fn ec_size(&self) -> usize { in ec_size()
229 fn g1_blocks(&self) -> usize { in g1_blocks()
233 fn g2_blocks(&self) -> usize { in g2_blocks()
237 fn g1_blk_size(&self) -> usize { in g1_blk_size()
311 fn get_header(&self) -> (u16, usize) { in get_header() argument
319 fn length_bits_count(&self, version: Version) -> usize { in length_bits_count()
335 fn character_count(&self) -> usize { in character_count()
346 fn get_length_field(&self, version: Version) -> (u16, usize) { in get_length_field() argument
353 fn total_size_bits(&self, version: Version) -> usize { in total_size_bits()
[all …]
/linux/rust/kernel/alloc/
H A Dkvec.rs178 pub fn capacity(&self) -> usize { in capacity()
188 pub fn len(&self) -> usize { in len()
199 pub unsafe fn inc_len(&mut self, additional: usize) { in inc_len()
384 index: usize, in insert_within_capacity()
488 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity()
537 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts()
563 pub fn into_raw_parts(self) -> (*mut T, usize, usize) { in into_raw_parts() argument
609 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve()
664 pub fn truncate(&mut self, len: usize) { in truncate()
726 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with()
[all …]
/linux/samples/rust/
H A Drust_configfs.rs95 fn show(container: &Configuration, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show()
107 fn show(container: &Configuration, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show()
164 fn show(_container: &Child, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show()
186 fn show(_container: &GrandChild, page: &mut [u8; PAGE_SIZE]) -> Result<usize> { in show()
/linux/rust/kernel/mm/
H A Dvirt.rs81 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()
194 pub fn vm_insert_page(&self, address: usize, page: &Page) -> Result { in vm_insert_page()
/linux/arch/x86/kernel/cpu/mce/
H A Ddev-mcelog.c162 static int __mce_read_apei(char __user **ubuf, size_t usize) in __mce_read_apei()
203 size_t usize, loff_t *off) in mce_chrdev_read()
287 size_t usize, loff_t *off) in mce_chrdev_write()
/linux/rust/kernel/device/
H A Dproperty.rs113 pub fn property_match_string(&self, name: &CStr, match_str: &CStr) -> Result<usize> { in property_match_string()
132 len: usize, in property_read_array_vec()
157 pub fn property_count_elem<T: PropertyInt>(&self, name: &CStr) -> Result<usize> { in property_count_elem()
344 pub fn len(&self) -> usize { in len()
483 fn read_array_len_from_fwnode_property(fwnode: &FwNode, name: &CStr) -> Result<usize>; in read_array_len_from_fwnode_property()
/linux/drivers/gpu/nova-core/
H A Dvbios.rs90 fn read_more_at_offset(&mut self, offset: usize, len: usize) -> Result { in read_more_at_offset()
110 offset: usize, in read_bios_image_at_offset()
111 len: usize, in read_bios_image_at_offset()
337 fn image_size_bytes(&self) -> usize { in image_size_bytes()
581 fn image_size_bytes(&self) -> usize { in image_size_bytes()
658 fn image_size_bytes(&self) -> usize { in image_size_bytes()
826 fn find_byte_pattern(haystack: &[u8], needle: &[u8]) -> Result<usize> { in find_byte_pattern()
834 fn find_bit_header(data: &[u8]) -> Result<(BitHeader, usize)> { in find_bit_header() argument
H A Dfirmware.rs86 pub(crate) fn size(&self) -> usize { in size()
125 sig_base_img: usize, in patch_signature()
/linux/fs/
H A Dnsfs.c131 struct mnt_ns_info __user *uinfo, size_t usize, in copy_ns_info_to_user()
277 size_t usize = _IOC_SIZE(ioctl); in ns_ioctl() local
298 size_t usize = _IOC_SIZE(ioctl); in ns_ioctl() local
H A Dfile_attr.c383 struct file_attr __user *, ufattr, size_t, usize, in SYSCALL_DEFINE5() argument
438 struct file_attr __user *, ufattr, size_t, usize, in SYSCALL_DEFINE5() argument
/linux/lib/crypto/mpi/
H A Dmpih-mul.c322 mpi_ptr_t up, mpi_size_t usize, in mpihelp_mul_karatsuba_case()
427 mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize, in mpihelp_mul()
H A Dmpi-cmp.c52 mpi_size_t usize, vsize; in mpi_cmp() local
H A Dgeneric_mpih-rshift.c29 mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned cnt) in mpihelp_rshift()
H A Dgeneric_mpih-lshift.c28 mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned int cnt) in mpihelp_lshift()
H A Dmpi-mul.c20 mpi_size_t usize, vsize, wsize; in mpi_mul() local

123