Home
last modified time | relevance | path

Searched refs:mm (Results 1 – 25 of 234) sorted by relevance

12345678910

/freebsd/sys/dev/drm2/
H A Ddrm_mm.c50 static struct drm_mm_node *drm_mm_kmalloc(struct drm_mm *mm, int atomic) in drm_mm_kmalloc() argument
57 mtx_lock(&mm->unused_lock); in drm_mm_kmalloc()
58 if (list_empty(&mm->unused_nodes)) in drm_mm_kmalloc()
62 list_entry(mm->unused_nodes.next, in drm_mm_kmalloc()
65 --mm->num_unused; in drm_mm_kmalloc()
67 mtx_unlock(&mm->unused_lock); in drm_mm_kmalloc()
77 int drm_mm_pre_get(struct drm_mm *mm) in drm_mm_pre_get() argument
81 mtx_lock(&mm->unused_lock); in drm_mm_pre_get()
82 while (mm->num_unused < MM_UNUSED_TARGET) { in drm_mm_pre_get()
83 mtx_unlock(&mm->unused_lock); in drm_mm_pre_get()
[all …]
H A Ddrm_mm.h54 struct drm_mm *mm; member
86 static inline bool drm_mm_initialized(struct drm_mm *mm) in drm_mm_initialized() argument
88 return mm->hole_stack.next; in drm_mm_initialized()
90 #define drm_mm_for_each_node(entry, mm) list_for_each_entry(entry, \ argument
91 &(mm)->head_node.node_list, \
93 #define drm_mm_for_each_scanned_node_reverse(entry, n, mm) \ argument
94 for (entry = (mm)->prev_scanned_node, \
160 extern int drm_mm_insert_node(struct drm_mm *mm,
164 extern int drm_mm_insert_node_in_range(struct drm_mm *mm,
170 extern int drm_mm_insert_node_generic(struct drm_mm *mm,
[all …]
H A Ddrm_gem.c71 struct drm_gem_mm *mm; in drm_gem_init() local
75 mm = malloc(sizeof(*mm), DRM_MEM_DRIVER, M_NOWAIT); in drm_gem_init()
76 if (!mm) { in drm_gem_init()
81 dev->mm_private = mm; in drm_gem_init()
83 if (drm_ht_create(&mm->offset_hash, 19)) { in drm_gem_init()
84 free(mm, DRM_MEM_DRIVER); in drm_gem_init()
88 mm->idxunr = new_unrhdr(0, DRM_GEM_MAX_IDX, NULL); in drm_gem_init()
96 struct drm_gem_mm *mm = dev->mm_private; in drm_gem_destroy() local
99 drm_ht_remove(&mm->offset_hash); in drm_gem_destroy()
100 delete_unrhdr(mm->idxunr); in drm_gem_destroy()
[all …]
/freebsd/contrib/bsddialog/lib/
H A Ddatebox.c87 static int month_days(int yy, int mm) in month_days() argument
91 if (mm == 2) in month_days()
93 else if (mm == 4 || mm == 6 || mm == 9 || mm == 11) in month_days()
101 static int week_day(int yy, int mm, int dd) in week_day() argument
105 dd += mm < 3 ? yy-- : yy - 2; in week_day()
106 wd = 23*mm/9 + dd + 4 + yy/4 - yy/100 + yy/400; in week_day()
114 int *mm, in in init_date() argument
127 datectl(enum operation op,int * yy,int * mm,int * dd) datectl() argument
260 print_calendar(struct bsddialog_conf * conf,WINDOW * win,int yy,int mm,int dd,bool active) print_calendar() argument
335 int retval, sel, yy, mm, dd; bsddialog_calendar() local
544 build_dateitem(const char * format,int * yy,int * mm,int * dd,struct dateitem * dt) build_dateitem() argument
587 int retval, i, sel, yy, mm, dd; bsddialog_datebox() local
[all...]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_mirror.c157 mirror_map_t *mm; in vdev_mirror_map_alloc() local
159 mm = kmem_zalloc(vdev_mirror_map_size(children), KM_SLEEP); in vdev_mirror_map_alloc()
160 mm->mm_children = children; in vdev_mirror_map_alloc()
161 mm->mm_resilvering = resilvering; in vdev_mirror_map_alloc()
162 mm->mm_root = root; in vdev_mirror_map_alloc()
163 mm->mm_preferred = (int *)((uintptr_t)mm + in vdev_mirror_map_alloc()
166 return (mm); in vdev_mirror_map_alloc()
172 mirror_map_t *mm = zio->io_vsd; in vdev_mirror_map_free() local
174 kmem_free(mm, vdev_mirror_map_size(mm->mm_children)); in vdev_mirror_map_free()
182 vdev_mirror_load(mirror_map_t *mm, vdev_t *vd, uint64_t zio_offset) in vdev_mirror_load() argument
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_current.c61 struct mm_struct *mm; in find_other_mm() local
68 mm = ts->mm; in find_other_mm()
69 if (mm == NULL) in find_other_mm()
72 if (atomic_inc_not_zero(&mm->mm_users)) in find_other_mm()
73 return (mm); in find_other_mm()
83 struct mm_struct *mm, *mm_other; in linux_alloc_current() local
98 mm = NULL; in linux_alloc_current()
119 mm = uma_zalloc(linux_mm_zone, flags | M_ZERO); in linux_alloc_current()
120 if (mm == NULL) { in linux_alloc_current()
124 uma_zfree(linux_current_zone, mm); in linux_alloc_current()
[all …]
/freebsd/crypto/openssl/crypto/whrlpool/asm/
H A Dwp-mmx.pl87 @mm=("mm0","mm1","mm2","mm3","mm4","mm5","mm6","mm7");
117 for($i=0;$i<8;$i++) { &movq(@mm[$i],&QWP($i*8,"esi")); } # L=H
119 for($i=0;$i<8;$i++) { &movq(&QWP($i*8,"esp"),@mm[$i]); } # K=L
120 for($i=0;$i<8;$i++) { &pxor(@mm[$i],&QWP($i*8,"edi")); } # L^=inp
121 for($i=0;$i<8;$i++) { &movq(&QWP(64+$i*8,"esp"),@mm[$i]); } # S=L
127 &movq (@mm[0],&QWP(2048*$SCALE,$tbl,"esi",8)); # rc[r]
139 &pxor (@mm[0],&QWP(&row(0),$tbl,"esi",8));
140 &$func (@mm[1],&QWP(&row(1),$tbl,"edi",8));
146 &$func (@mm[2],&QWP(&row(2),$tbl,"esi",8));
147 &$func (@mm[3],&QWP(&row(3),$tbl,"edi",8));
[all …]
H A Dwp-x86_64.pl59 @mm=("%r8","%r9","%r10","%r11","%r12","%r13","%r14","%r15");
104 for($i=0;$i<8;$i++) { $code.="mov $i*8(%rdi),@mm[$i]\n"; } # L=H
106 for($i=0;$i<8;$i++) { $code.="mov @mm[$i],$i*8(%rsp)\n"; } # K=L
107 for($i=0;$i<8;$i++) { $code.="xor $i*8(%rsi),@mm[$i]\n"; } # L^=inp
108 for($i=0;$i<8;$i++) { $code.="mov @mm[$i],64+$i*8(%rsp)\n"; } # S=L
115 mov 4096(%rbp,%rsi,8),@mm[0] # rc[r]
129 xor 0(%rbp,%rsi,8),@mm[0]
130 $func 7(%rbp,%rdi,8),@mm[1]
136 $func 6(%rbp,%rsi,8),@mm[2]
137 $func 5(%rbp,%rdi,8),@mm[3]
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dmm_types.h51 extern void linux_mm_dtor(struct mm_struct *mm);
54 mmdrop(struct mm_struct *mm) in mmdrop() argument
56 if (__predict_false(atomic_dec_and_test(&mm->mm_count))) in mmdrop()
57 linux_mm_dtor(mm); in mmdrop()
61 mmget_not_zero(struct mm_struct *mm) in mmget_not_zero() argument
63 return (atomic_inc_not_zero(&mm->mm_users)); in mmget_not_zero()
67 mmput(struct mm_struct *mm) in mmput() argument
69 if (__predict_false(atomic_dec_and_test(&mm->mm_users))) in mmput()
70 mmdrop(mm); in mmput()
74 mmgrab(struct mm_struct *mm) in mmgrab() argument
[all …]
H A Dmmap_lock.h34 mmap_read_lock(struct mm_struct *mm) in mmap_read_lock() argument
37 down_read(&mm->mmap_sem); in mmap_read_lock()
41 mmap_read_unlock(struct mm_struct *mm) in mmap_read_unlock() argument
44 up_read(&mm->mmap_sem); in mmap_read_unlock()
48 mmap_write_lock_killable(struct mm_struct *mm) in mmap_write_lock_killable() argument
51 down_write_killable(&mm->mmap_sem); in mmap_write_lock_killable()
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.d.out1 fds[0] fi_name = mm@0:null
3 fds[0] fi_pathname = /devices/pseudo/mm@0:null
8 fds[1] fi_name = mm@0:null
10 fds[1] fi_pathname = /devices/pseudo/mm@0:null
15 fds[2] fi_name = mm@0:null
17 fds[2] fi_pathname = /devices/pseudo/mm@0:null
22 fds[3] fi_name = mm@0:null
24 fds[3] fi_pathname = /devices/pseudo/mm@0:null
29 fds[4] fi_name = mm@0:null
31 fds[4] fi_pathname = /devices/pseudo/mm@0:null
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_umem.c159 down_write(&current->mm->mmap_sem); in ib_umem_get()
161 locked = npages + current->mm->pinned_vm; in ib_umem_get()
221 current->mm->pinned_vm = locked; in ib_umem_get()
223 up_write(&current->mm->mmap_sem); in ib_umem_get()
236 down_write(&umem->mm->mmap_sem); in ib_umem_account()
237 umem->mm->pinned_vm -= umem->diff; in ib_umem_account()
238 up_write(&umem->mm->mmap_sem); in ib_umem_account()
239 mmput(umem->mm); in ib_umem_account()
249 struct mm_struct *mm; in ib_umem_release() local
267 mm = get_task_mm(task); in ib_umem_release()
[all …]
/freebsd/sys/dev/drm2/ttm/
H A Dttm_bo_manager.c45 struct drm_mm mm; member
57 struct drm_mm *mm = &rman->mm; in ttm_bo_man_get_node() local
66 ret = drm_mm_pre_get(mm); in ttm_bo_man_get_node()
71 node = drm_mm_search_free_in_range(mm, in ttm_bo_man_get_node()
110 ret = drm_mm_init(&rman->mm, 0, p_size); in ttm_bo_man_init()
124 struct drm_mm *mm = &rman->mm; in ttm_bo_man_takedown() local
127 if (drm_mm_clean(mm)) { in ttm_bo_man_takedown()
128 drm_mm_takedown(mm); in ttm_bo_man_takedown()
145 drm_mm_debug_table(&rman->mm, prefix); in ttm_bo_man_debug()
/freebsd/contrib/unbound/compat/
H A Dgetentropy_osx.c308 struct mm { in getentropy_fallback() struct
311 } mm[] = { in getentropy_fallback() local
320 for (m = 0; m < sizeof mm/sizeof(mm[0]); m++) { in getentropy_fallback()
321 HX(mm[m].p = mmap(NULL, in getentropy_fallback()
322 mm[m].npg * pgs, in getentropy_fallback()
325 (off_t)0), mm[m].p); in getentropy_fallback()
326 if (mm[m].p != MAP_FAILED) { in getentropy_fallback()
330 p = mm[m].p; in getentropy_fallback()
332 (mm[m].npg * pgs - 1); in getentropy_fallback()
334 cnt += (int)((long)(mm[m].p) in getentropy_fallback()
[all …]
H A Dgetentropy_solaris.c330 struct mm { in getentropy_fallback() struct
333 } mm[] = { in getentropy_fallback() local
342 for (m = 0; m < sizeof mm/sizeof(mm[0]); m++) { in getentropy_fallback()
343 HX(mm[m].p = mmap(NULL, in getentropy_fallback()
344 mm[m].npg * pgs, in getentropy_fallback()
347 (off_t)0), mm[m].p); in getentropy_fallback()
348 if (mm[m].p != MAP_FAILED) { in getentropy_fallback()
352 p = mm[m].p; in getentropy_fallback()
354 (mm[m].npg * pgs - 1); in getentropy_fallback()
356 cnt += (int)((long)(mm[m].p) in getentropy_fallback()
[all …]
H A Dgetentropy_linux.c408 struct mm { in getentropy_fallback() struct
411 } mm[] = { in getentropy_fallback() local
420 for (m = 0; m < sizeof mm/sizeof(mm[0]); m++) { in getentropy_fallback()
421 HX(mm[m].p = mmap(NULL, in getentropy_fallback()
422 mm[m].npg * pgs, in getentropy_fallback()
425 (off_t)0), mm[m].p); in getentropy_fallback()
426 if (mm[m].p != MAP_FAILED) { in getentropy_fallback()
430 p = mm[m].p; in getentropy_fallback()
432 (mm[m].npg * pgs - 1); in getentropy_fallback()
434 cnt += (int)((long)(mm[m].p) in getentropy_fallback()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/soc/mediatek/
H A Dscpsys.txt36 Required clocks for MT2701 or MT7623: "mm", "mfg", "ethif"
37 Required clocks for MT2712: "mm", "mfg", "venc", "jpgdec", "audio", "vdec"
38 Required clocks for MT6765: MUX: "mm", "mfg"
39 CG: "mm-0", "mm-1", "mm-2", "mm-3", "isp-0",
42 Required clocks for MT6797: "mm", "mfg", "vdec"
45 Required clocks for MT8173: "mm", "mfg", "venc", "venc_lt"
51 - mm-supply: Power supply for the mm power domain
70 clock-names = "mfg", "mm", "venc", "venc_lt";
/freebsd/sys/riscv/vmm/
H A Dvmm.c176 static bool sysmem_mapping(struct vm *vm, struct mem_map *mm);
450 struct mem_map *mm; in vm_cleanup() local
472 mm = &vm->mem_maps[i]; in vm_cleanup()
473 if (destroy || !sysmem_mapping(vm, mm)) in vm_cleanup()
555 struct mem_map *mm; in vm_mem_allocated() local
566 mm = &vm->mem_maps[i]; in vm_mem_allocated()
567 if (mm->len != 0 && gpa >= mm->gpa && gpa < mm->gpa + mm->len) in vm_mem_allocated()
734 struct mem_map *mm, *mmnext; in vm_mmap_getnext() local
739 mm = &vm->mem_maps[i]; in vm_mmap_getnext()
740 if (mm->len == 0 || mm->gpa < *gpa) in vm_mmap_getnext()
[all …]
/freebsd/sys/security/mac_mls/
H A Dmac_mls.c146 mls_free(struct mac_mls *mm) in mls_free() argument
149 if (mm != NULL) in mls_free()
150 uma_zfree(zone_mls, mm); in mls_free()
156 mls_atmostflags(struct mac_mls *mm, int flags) in mls_atmostflags() argument
159 if ((mm->mm_flags & flags) != mm->mm_flags) in mls_atmostflags()
278 mls_contains_equal(struct mac_mls *mm) in mls_contains_equal() argument
281 if (mm->mm_flags & MAC_MLS_FLAG_EFFECTIVE) in mls_contains_equal()
282 if (mm->mm_effective.mme_type == MAC_MLS_TYPE_EQUAL) in mls_contains_equal()
285 if (mm->mm_flags & MAC_MLS_FLAG_RANGE) { in mls_contains_equal()
286 if (mm->mm_rangelow.mme_type == MAC_MLS_TYPE_EQUAL) in mls_contains_equal()
[all …]
/freebsd/contrib/ntp/scripts/stats/
H A DREADME.timecodes35 "<CR><LF>i ddd hh:mm:ss TZ=zz<CR><LF>"
41 hh:mm:ss = hours, minutes, seconds
53 "<CR><LF>iqyy ddd hh:mm:ss.fff ld"
62 hh:mm:ss.fff = hours, minutes, seconds, milliseconds of day
78 "<CR><LF><^A>ddd:hh:mm:ssq<CR>"
82 hh:mm:ss = hours, minutes, seconds
95 "<CR>hh:mm:ss.f dd/mm/yy<CR>"
99 hh:mm:ss = hours, minutes, seconds
101 dd/mm = day, month
105 hh:mm:ss.? once synch is established and then lost again for about
[all …]
/freebsd/sys/amd64/vmm/
H A Dvmm.c297 static bool sysmem_mapping(struct vm *vm, struct mem_map *mm);
678 struct mem_map *mm; in vm_cleanup() local
715 mm = &vm->mem_maps[i]; in vm_cleanup()
716 if (destroy || !sysmem_mapping(vm, mm)) in vm_cleanup()
814 struct mem_map *mm; in vm_mem_allocated() local
825 mm = &vm->mem_maps[i]; in vm_mem_allocated()
826 if (mm->len != 0 && gpa >= mm->gpa && gpa < mm->gpa + mm->len) in vm_mem_allocated()
993 struct mem_map *mm, *mmnext; in vm_mmap_getnext() local
998 mm = &vm->mem_maps[i]; in vm_mmap_getnext()
999 if (mm->len == 0 || mm->gpa < *gpa) in vm_mmap_getnext()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/display/panel/
H A Dsamsung,s6e8aa0.txt15 - panel-width-mm: physical panel width [mm]
16 - panel-height-mm: physical panel height [mm]
38 panel-width-mm = <58>;
39 panel-height-mm = <103>;
/freebsd/contrib/bsddialog/examples_library/
H A Dcalendar.c18 unsigned int yy, mm, dd; in main() local
26 mm = localtm->tm_mon + 1; in main()
35 output = bsddialog_calendar(&conf, "Example", 18, 40, &yy, &mm, &dd); in main()
42 printf("Date: %u/%u/%u\n", yy, mm, dd); in main()
H A Ddatebox.c18 unsigned int yy, mm, dd; in main() local
26 mm = localtm->tm_mon + 1; in main()
35 output = bsddialog_datebox(&conf, "Example", 9, 35, &yy, &mm, &dd); in main()
41 printf("Date: %u/%u/%u\n", yy, mm, dd); in main()
H A Dtimebox.c18 unsigned int hh, mm, ss; in main() local
26 mm = localtm->tm_min; in main()
35 output = bsddialog_timebox(&conf, "Example", 9, 35, &hh, &mm, &ss); in main()
41 printf("Time: %u:%u:%u\n", hh, mm, ss); in main()

12345678910