Searched refs:usize (Results 1 – 3 of 3) sorted by relevance
164 static int __mce_read_apei(char __user **ubuf, size_t usize) in __mce_read_apei() argument170 if (usize < sizeof(struct mce)) in __mce_read_apei()205 size_t usize, loff_t *off) in mce_chrdev_read() argument214 err = __mce_read_apei(&buf, usize); in mce_chrdev_read()221 if (*off != 0 || usize < MCE_LOG_LEN*sizeof(struct mce)) in mce_chrdev_read()296 size_t usize, loff_t *off) in mce_chrdev_write() argument309 if ((unsigned long)usize > sizeof(struct mce)) in mce_chrdev_write()310 usize = sizeof(struct mce); in mce_chrdev_write()311 if (copy_from_user(&m, ubuf, usize)) in mce_chrdev_write()325 return usize; in mce_chrdev_write()
515 unsigned long usize = 0; in mm_total_size() local518 usize += vma->vm_end - vma->vm_start; in mm_total_size()519 return usize; in mm_total_size()
1605 unsigned long usize = vma->vm_end - vma->vm_start; in __arm_iommu_mmap_attrs() local1613 if (off >= nr_pages || (usize >> PAGE_SHIFT) > nr_pages - off) in __arm_iommu_mmap_attrs()1625 usize -= PAGE_SIZE; in __arm_iommu_mmap_attrs()1626 } while (usize > 0); in __arm_iommu_mmap_attrs()