Lines Matching refs:nlimbs
30 MPI mpi_alloc(unsigned nlimbs) in mpi_alloc() argument
38 if (nlimbs) { in mpi_alloc()
39 a->d = mpi_alloc_limb_space(nlimbs); in mpi_alloc()
48 a->alloced = nlimbs; in mpi_alloc()
49 a->nlimbs = 0; in mpi_alloc()
57 mpi_ptr_t mpi_alloc_limb_space(unsigned nlimbs) in mpi_alloc_limb_space() argument
59 size_t len = nlimbs * sizeof(mpi_limb_t); in mpi_alloc_limb_space()
75 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs) in mpi_assign_limb_space() argument
79 a->alloced = nlimbs; in mpi_assign_limb_space()
86 int mpi_resize(MPI a, unsigned nlimbs) in mpi_resize() argument
90 if (nlimbs <= a->alloced) in mpi_resize()
94 p = kmalloc_array(nlimbs, sizeof(mpi_limb_t), GFP_KERNEL); in mpi_resize()
101 a->d = kcalloc(nlimbs, sizeof(mpi_limb_t), GFP_KERNEL); in mpi_resize()
105 a->alloced = nlimbs; in mpi_resize()