Home
last modified time | relevance | path

Searched refs:usize (Results 1 – 21 of 21) sorted by relevance

/Linux-v4.19/lib/mpi/
Dmpi-cmp.c46 mpi_size_t usize, vsize; in mpi_cmp() local
51 usize = u->nlimbs; in mpi_cmp()
57 if (usize != vsize && !u->sign && !v->sign) in mpi_cmp()
58 return usize - vsize; in mpi_cmp()
59 if (usize != vsize && u->sign && v->sign) in mpi_cmp()
60 return vsize - usize; in mpi_cmp()
61 if (!usize) in mpi_cmp()
63 cmp = mpihelp_cmp(u->d, v->d, usize); in mpi_cmp()
Dmpih-mul.c335 mpi_ptr_t up, mpi_size_t usize, in mpihelp_mul_karatsuba_case() argument
354 usize -= vsize; in mpihelp_mul_karatsuba_case()
355 if (usize >= vsize) { in mpihelp_mul_karatsuba_case()
376 usize -= vsize; in mpihelp_mul_karatsuba_case()
377 } while (usize >= vsize); in mpihelp_mul_karatsuba_case()
380 if (usize) { in mpihelp_mul_karatsuba_case()
381 if (usize < KARATSUBA_THRESHOLD) { in mpihelp_mul_karatsuba_case()
383 if (mpihelp_mul(ctx->tspace, vp, vsize, up, usize, &tmp) in mpihelp_mul_karatsuba_case()
394 up, usize, in mpihelp_mul_karatsuba_case()
400 mpihelp_add_1(prodp + vsize, ctx->tspace + vsize, usize, cy); in mpihelp_mul_karatsuba_case()
[all …]
Dgeneric_mpih-lshift.c41 mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned int cnt) in mpihelp_lshift() argument
51 i = usize - 1; in mpihelp_lshift()
Dgeneric_mpih-rshift.c42 mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned cnt) in mpihelp_rshift() argument
55 for (i = 1; i < usize; i++) { in mpihelp_rshift()
Dmpi-internal.h146 int mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize,
153 mpi_ptr_t up, mpi_size_t usize,
167 mpi_limb_t mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize,
169 mpi_limb_t mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize,
/Linux-v4.19/drivers/acpi/apei/
Derst-dbg.c91 size_t usize, loff_t *off) in erst_dbg_read() argument
148 if (len > usize) in erst_dbg_read()
161 size_t usize, loff_t *off) in erst_dbg_write() argument
169 if (usize > ERST_DBG_RECORD_LEN_MAX) { in erst_dbg_write()
176 if (usize > erst_dbg_buf_len) { in erst_dbg_write()
179 p = kmalloc(usize, GFP_KERNEL); in erst_dbg_write()
184 erst_dbg_buf_len = usize; in erst_dbg_write()
186 rc = copy_from_user(erst_dbg_buf, ubuf, usize); in erst_dbg_write()
193 if (rcd->record_length != usize) in erst_dbg_write()
200 return rc < 0 ? rc : usize; in erst_dbg_write()
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_get_stack_rawtp.c60 int max_len, max_buildid_len, usize, ksize, total_size; in bpf_prog1() local
86 usize = bpf_get_stack(ctx, raw_data, max_len, BPF_F_USER_STACK); in bpf_prog1()
87 if (usize < 0) in bpf_prog1()
90 ksize = bpf_get_stack(ctx, raw_data + usize, max_len - usize, 0); in bpf_prog1()
94 total_size = usize + ksize; in bpf_prog1()
/Linux-v4.19/arch/x86/kernel/cpu/mcheck/
Ddev-mcelog.c164 static int __mce_read_apei(char __user **ubuf, size_t usize) in __mce_read_apei() argument
170 if (usize < sizeof(struct mce)) in __mce_read_apei()
205 size_t usize, loff_t *off) in mce_chrdev_read() argument
214 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() argument
309 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()
/Linux-v4.19/tools/perf/util/
Djitdump.c398 int ret, csize, usize; in jit_repipe_code_load() local
408 usize = jd->unwinding_mapped_size; in jit_repipe_code_load()
460 event->mmap2.len = usize ? ALIGN_8(csize) + usize : csize; in jit_repipe_code_load()
511 int usize; in jit_repipe_code_move() local
522 usize = jd->unwinding_mapped_size; in jit_repipe_code_move()
551 event->mmap2.len = usize ? ALIGN_8(jr->move.code_size) + usize in jit_repipe_code_move()
/Linux-v4.19/drivers/pci/pcie/
Daer_inject.c490 size_t usize, loff_t *off) in aer_inject_write() argument
497 if (usize < offsetof(struct aer_error_inj, domain) || in aer_inject_write()
498 usize > sizeof(einj)) in aer_inject_write()
502 if (copy_from_user(&einj, ubuf, usize)) in aer_inject_write()
506 return ret ? ret : usize; in aer_inject_write()
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramgf100.c501 u64 total = 0, lcomm = ~0, lower, ubase, usize; in gf100_ram_ctor() local
520 usize = total - lower; in gf100_ram_ctor()
523 nvkm_debug(subdev, "Upper: %4lld MiB @ %010llx\n", usize >> 20, ubase); in gf100_ram_ctor()
550 (usize - rsvd_tail) >> NVKM_RAM_MM_SHIFT, 1); in gf100_ram_ctor()
/Linux-v4.19/drivers/gpu/drm/amd/amdkfd/
Dkfd_chardev.c1630 unsigned int usize, asize; in kfd_ioctl() local
1642 usize = asize = _IOC_SIZE(cmd); in kfd_ioctl()
1677 if (asize > usize) in kfd_ioctl()
1678 memset(kdata + usize, 0, asize - usize); in kfd_ioctl()
1682 if (copy_from_user(kdata, (void __user *)arg, usize) != 0) { in kfd_ioctl()
1687 memset(kdata, 0, usize); in kfd_ioctl()
1693 if (copy_to_user((void __user *)arg, kdata, usize) != 0) in kfd_ioctl()
/Linux-v4.19/drivers/xen/
Dmcelog.c107 size_t usize, loff_t *off) in xen_mce_chrdev_read() argument
119 if (*off != 0 || usize < XEN_MCE_LOG_LEN*sizeof(struct xen_mce)) in xen_mce_chrdev_read()
/Linux-v4.19/arch/parisc/kernel/
Dcache.c516 unsigned long usize = 0; in mm_total_size() local
519 usize += vma->vm_end - vma->vm_start; in mm_total_size()
520 return usize; in mm_total_size()
/Linux-v4.19/drivers/media/common/videobuf2/
Dvideobuf2-dma-sg.c332 unsigned long usize = vma->vm_end - vma->vm_start; in vb2_dma_sg_mmap() local
350 usize -= PAGE_SIZE; in vb2_dma_sg_mmap()
351 } while (usize > 0); in vb2_dma_sg_mmap()
/Linux-v4.19/fs/fat/
Dnamei_vfat.c592 int err, ulen, usize, i; in vfat_build_slots() local
601 err = xlate_to_uni(name, len, (unsigned char *)uname, &ulen, &usize, in vfat_build_slots()
623 *nr_slots = usize / 13; in vfat_build_slots()
/Linux-v4.19/drivers/crypto/qat/qat_common/
Dqat_hal.c1087 int usize = 0; in qat_hal_concat_micro_code() local
1093 usize = ARRAY_SIZE(inst_4b); in qat_hal_concat_micro_code()
1095 for (i = 0; i < usize; i++) in qat_hal_concat_micro_code()
/Linux-v4.19/arch/arm/mm/
Ddma-mapping.c1587 unsigned long usize = vma->vm_end - vma->vm_start; in __arm_iommu_mmap_attrs() local
1595 if (off >= nr_pages || (usize >> PAGE_SHIFT) > nr_pages - off) in __arm_iommu_mmap_attrs()
1607 usize -= PAGE_SIZE; in __arm_iommu_mmap_attrs()
1608 } while (usize > 0); in __arm_iommu_mmap_attrs()
/Linux-v4.19/drivers/media/platform/coda/
Dcoda-common.c1341 unsigned int max_w, max_h, usize, csize; in set_default_params() local
1347 usize = max_w * max_h * 3 / 2; in set_default_params()
1348 csize = coda_estimate_sizeimage(ctx, usize, max_w, max_h); in set_default_params()
1369 ctx->q_data[V4L2_M2M_SRC].sizeimage = usize; in set_default_params()
1376 ctx->q_data[V4L2_M2M_DST].sizeimage = usize; in set_default_params()
/Linux-v4.19/kernel/sched/
Dcore.c4650 unsigned int usize) in sched_read_attr() argument
4654 if (!access_ok(VERIFY_WRITE, uattr, usize)) in sched_read_attr()
4662 if (usize < sizeof(*attr)) { in sched_read_attr()
4666 addr = (void *)attr + usize; in sched_read_attr()
4674 attr->size = usize; in sched_read_attr()
/Linux-v4.19/net/netfilter/
Dnf_tables_api.c2526 unsigned int size, i, n, ulen = 0, usize = 0; in nf_tables_newrule() local
2614 usize = sizeof(struct nft_userdata) + ulen; in nf_tables_newrule()
2618 rule = kzalloc(sizeof(*rule) + size + usize, GFP_KERNEL); in nf_tables_newrule()