Lines Matching refs:num_mapped
65 uint_t num_mapped;
99 error = copyin(elements, &num_mapped, sizeof (uint_t));
105 num_in = num_mapped;
144 if (num_mapped > MOBJ_STACK_SEGS) {
145 num_mapped = MOBJ_STACK_SEGS;
148 error = mmapobj(vp, flags, mrp, &num_mapped, padding, fp->f_cred);
151 if (num_mapped > MOBJ_STACK_SEGS && num_mapped <= num_in) {
152 mrp = kmem_alloc(sizeof (mmapobj_result_t) * num_mapped,
154 alloc_num = num_mapped;
161 error = copyout(&num_mapped, elements, sizeof (uint_t));
169 mmapobj_unmap(mrp, num_mapped, num_mapped, 0);
171 } else if (num_in < num_mapped) {
178 mrp32 = kmem_alloc(num_mapped * sizeof (*mrp32),
180 mmapobj_copy_64to32(mrp, mrp32, num_mapped);
182 num_mapped * sizeof (mmapobj_result32_t));
183 kmem_free(mrp32, num_mapped * sizeof (*mrp32));
186 num_mapped * sizeof (mmapobj_result_t));
190 mmapobj_unmap(mrp, num_mapped, num_mapped, 0);
201 ASSERT(num_mapped > MOBJ_STACK_SEGS);