Home
last modified time | relevance | path

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

1234

/titanic_50/usr/src/uts/common/fs/zfs/
H A Dvdev_mirror.c62 mirror_map_t *mm = zio->io_vsd; in vdev_mirror_map_free() local
64 kmem_free(mm, offsetof(mirror_map_t, mm_child[mm->mm_children])); in vdev_mirror_map_free()
75 mirror_map_t *mm = NULL; in vdev_mirror_map_alloc() local
86 mm = kmem_zalloc(offsetof(mirror_map_t, mm_child[c]), KM_SLEEP); in vdev_mirror_map_alloc()
87 mm->mm_children = c; in vdev_mirror_map_alloc()
88 mm->mm_replacing = B_FALSE; in vdev_mirror_map_alloc()
89 mm->mm_preferred = spa_get_random(c); in vdev_mirror_map_alloc()
90 mm->mm_root = B_TRUE; in vdev_mirror_map_alloc()
99 for (c = mm->mm_preferred, d = c - 1; d >= 0; d--) { in vdev_mirror_map_alloc()
101 mm->mm_preferred = d; in vdev_mirror_map_alloc()
[all …]
/titanic_50/usr/src/uts/common/io/drm/
H A Ddrm_mm.c54 drm_mm_tail_space(struct drm_mm *mm) in drm_mm_tail_space() argument
59 tail_node = mm->ml_entry.prev; in drm_mm_tail_space()
68 drm_mm_remove_space_from_tail(struct drm_mm *mm, unsigned long size) in drm_mm_remove_space_from_tail() argument
73 tail_node = mm->ml_entry.prev; in drm_mm_remove_space_from_tail()
87 drm_mm_create_tail_node(struct drm_mm *mm, in drm_mm_create_tail_node() argument
101 child->mm = mm; in drm_mm_create_tail_node()
103 list_add_tail(&child->ml_entry, &mm->ml_entry, (caddr_t)child); in drm_mm_create_tail_node()
104 list_add_tail(&child->fl_entry, &mm->fl_entry, (caddr_t)child); in drm_mm_create_tail_node()
111 drm_mm_add_space_to_tail(struct drm_mm *mm, unsigned long size) in drm_mm_add_space_to_tail() argument
116 tail_node = mm->ml_entry.prev; in drm_mm_add_space_to_tail()
[all …]
/titanic_50/usr/src/lib/libast/common/vmalloc/
H A Dvmmopen.c81 Mmvm_t* mm; /* mmap data */ member
85 static int mmvminit(char* file, Void_t* addr, size_t round, Mmvm_t* mm) in mmvminit() argument
87 static int mmvminit(file, addr, round, mm) in mmvminit()
91 Mmvm_t* mm; /* to return some mapped info */
109 if(read(fd, mm, sizeof(Mmvm_t)) != sizeof(Mmvm_t))
111 if(mm->magic != MM_MAGIC || !mm->base ||
112 (off_t)mm->size != size || mm->busy > mm->size )
114 base = (Void_t*)mmap(mm->base, mm->size, PROT_READ|PROT_WRITE,
143 memcpy(mm, hdr, sizeof(Mmvm_t));
171 if(mmdc->fd < 0 || !mmdc->mm)
[all …]
/titanic_50/usr/src/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
/titanic_50/usr/src/lib/libast/common/features/
H A Dmmap28 caddr_t mm;
69 mm = mmap((caddr_t)0, sizeof(buf), (PROT_READ|PROT_WRITE),
71 if(mm == (caddr_t)0 || mm == (caddr_t)(-1))
73 mm = mmap(mm, sizeof(buf), (PROT_READ|PROT_WRITE),
75 okfixed = (mm == (caddr_t)0 || mm == (caddr_t)(-1)) ? 0 : 1;
76 munmap(mm, sizeof(buf));
94 for(i = 0, mm = (caddr_t)0; i < WRITE; ++i)
96 { mm = (caddr_t)mmap(mm, MAPSIZE,
98 (MAP_PRIVATE | (mm ? MAP_FIXED : MAP_VARIABLE)),
102 { if(mm)
[all …]
/titanic_50/usr/src/cmd/date/
H A Ddate.c184 int mm; in setdate() local
233 mm = current_date->tm_mon + 1; /* tm_mon goes from 1 to 11 */ in setdate()
254 mm = atoi(&date[0]); in setdate()
262 if (mm >= 1 && mm <= 12) { in setdate()
263 dd_check = month_size[mm - 1]; /* get days in this month */ in setdate()
264 if (mm == 2 && isleap(yy)) /* adjust for leap year */ in setdate()
267 if (!((mm >= 1 && mm <= 12) && (dd >= 1 && dd <= dd_check) && in setdate()
277 if (isleap(yy) && mm >= 3) in setdate()
280 while (--mm) in setdate()
281 clock_val += (time_t)month_size[mm - 1]; in setdate()
/titanic_50/usr/src/uts/intel/io/drm/
H A Di915_gem.c51 extern int drm_mm_init(struct drm_mm *mm,
105 (void) drm_mm_init(&dev_priv->mm.gtt_space, in i915_gem_init_ioctl()
107 …x, dev_priv->mm.gtt_space 0x%x gtt_start 0x%lx", dev->gtt_total, dev_priv->mm.gtt_space, args.gtt_… in i915_gem_init_ioctl()
545 &dev_priv->mm.active_list, (caddr_t)obj_priv); in i915_gem_object_move_to_active()
556 list_move_tail(&obj_priv->list, &dev_priv->mm.flushing_list, (caddr_t)obj_priv); in i915_gem_object_move_to_flushing()
571 list_move_tail(&obj_priv->list, &dev_priv->mm.inactive_list, (caddr_t)obj_priv); in i915_gem_object_move_to_inactive()
605 seqno = dev_priv->mm.next_gem_seqno; in i915_add_request()
606 dev_priv->mm.next_gem_seqno++; in i915_add_request()
607 if (dev_priv->mm.next_gem_seqno == 0) in i915_add_request()
608 dev_priv->mm.next_gem_seqno++; in i915_add_request()
[all …]
H A Di915_gem_tiling.c187 dev_priv->mm.bit_6_swizzle_x = swizzle_x; in i915_gem_detect_bit_6_swizzle()
188 dev_priv->mm.bit_6_swizzle_y = swizzle_y; in i915_gem_detect_bit_6_swizzle()
300 args.swizzle_mode = dev_priv->mm.bit_6_swizzle_x; in i915_gem_set_tiling()
302 args.swizzle_mode = dev_priv->mm.bit_6_swizzle_y; in i915_gem_set_tiling()
368 args.swizzle_mode = dev_priv->mm.bit_6_swizzle_x; in i915_gem_get_tiling()
371 args.swizzle_mode = dev_priv->mm.bit_6_swizzle_y; in i915_gem_get_tiling()
/titanic_50/usr/src/lib/libast/common/comp/
H A Dfmtmsglib.c47 } mm;
215 if (!mm.init)
217 mm.init = INIT_VERB;
219 mm.mask = MM_default;
226 mm.mask = MM_default;
231 mm.mask |= p->value;
273 if (!(mm.init & INIT_CONSOLE))
274 mm.console = open("/dev/console", O_WRONLY|O_APPEND|O_NOCTTY);
275 if (mm.console < 0)
281 fd = mm.console;
[all …]
/titanic_50/usr/src/cmd/sa/
H A Dtimex.c213 long mm; /* number of minutes */ in printt() local
221 mm = total % 60; /* ticks / hz / 60 % 60 */ in printt()
237 if (mm == 0L && hh == 0L) { in printt()
239 } else if (mm != 0L && hh == 0L) { in printt()
240 (void) fprintf(stderr, "%2ld:", mm); in printt()
242 (void) fprintf(stderr, "%02ld:", mm); in printt()
249 if (hh == 0L && mm == 0L) { in printt()
H A DREADME63 sa2 [-options] [-s hh:mm] [-e hh:mm] [-i ss]
/titanic_50/usr/src/cmd/stat/common/
H A Ddsr.c118 minor_match_t *mm, **mma = mma_disk_tape_misc; in drvinstpart2dev() local
143 for (mm = *mma++; mm != NULL; mm = *mma++) { in drvinstpart2dev()
145 driver, instance, mm->minor_name)) != NULL) in drvinstpart2dev()
168 if (part == NULL && mm->minor_isdisk) { in drvinstpart2dev()
/titanic_50/usr/src/uts/common/fs/udfs/
H A Dudf_vnops.c3431 mio_master_t *mm = NULL; in ud_multi_strat() local
3477 mm = (mio_master_t *)kmem_zalloc(alloc_sz, KM_SLEEP); in ud_multi_strat()
3478 if (mm == NULL) { in ud_multi_strat()
3486 mutex_init(&mm->mm_mutex, NULL, MUTEX_DEFAULT, NULL); in ud_multi_strat()
3487 mm->mm_size = alloc_sz; in ud_multi_strat()
3488 mm->mm_bp = bp; in ud_multi_strat()
3489 mm->mm_resid = 0; in ud_multi_strat()
3490 mm->mm_error = 0; in ud_multi_strat()
3491 mm->mm_index = master_index++; in ud_multi_strat()
3493 ms = (mio_slave_t *)(((caddr_t)mm) + sizeof (mio_master_t)); in ud_multi_strat()
[all …]
/titanic_50/usr/src/cmd/fs.d/nfs/mountd/
H A Drmtab.c155 struct mntentry *m, mm; in mntlist_delete() local
157 mm.m_host = host; in mntlist_delete()
158 mm.m_path = path; in mntlist_delete()
162 if ((m = (struct mntentry *)h_get(mntlist, &mm)) != NULL) { in mntlist_delete()
/titanic_50/usr/src/uts/common/io/
H A Dmem.c110 } mm[] = { in mm_attach() local
122 for (i = 0; i < (sizeof (mm) / sizeof (mm[0])); i++) { in mm_attach()
123 if (ddi_create_priv_minor_node(devi, mm[i].name, S_IFCHR, in mm_attach()
124 mm[i].minor, DDI_PSEUDO, mm[i].privonly, in mm_attach()
125 mm[i].rdpriv, mm[i].wrpriv, mm[i].priv_mode) == in mm_attach()
/titanic_50/usr/src/cmd/mdb/intel/modules/mdb_kb/
H A Dmdb_kb.c700 xkb_map_mfn(xkb_t *xkb, mfn_t mfn, mfn_map_t *mm) in xkb_map_mfn() argument
705 if (mm->mm_mfn == mfn) in xkb_map_mfn()
706 return (mm->mm_map); in xkb_map_mfn()
708 mm->mm_mfn = mfn; in xkb_map_mfn()
711 if (mm->mm_map != (char *)MAP_FAILED) { in xkb_map_mfn()
712 (void) munmap(mm->mm_map, PAGE_SIZE); in xkb_map_mfn()
713 mm->mm_map = (void *)MAP_FAILED; in xkb_map_mfn()
719 mm->mm_map = mmap(NULL, PAGE_SIZE, PROT_READ, MAP_SHARED, in xkb_map_mfn()
722 if (mm->mm_map == (char *)MAP_FAILED) in xkb_map_mfn()
727 mm->mm_map = NULL; in xkb_map_mfn()
[all …]
/titanic_50/usr/src/uts/sun4u/starfire/io/
H A Didn_dlpi.c134 #define DLERRORACK(qq, mm, cc, ee, xx) \ argument
139 dlerrorack((qq), (mm), (cc), (ee), (xx)); \
141 #define DLOKACK(qq, mm, cc) \ argument
144 dlokack((qq), (mm), (cc)); \
146 #define DLBINDACK(qq, mm, ss, aa, ll, xx, yy) \ argument
156 dlbindack((qq), (mm), (ss), (aa), (ll), (xx), (yy)); \
158 #define DLPHYSADDRACK(qq, mm, aa, ll) \ argument
168 dlphysaddrack((qq), (mm), (aa), (ll)); \
236 #define DLERRORACK(qq, mm, cc, ee, xx) \ argument
237 (dlerrorack((qq), (mm), (cc), (ee), (xx)))
[all …]
/titanic_50/usr/src/lib/libresolv2/common/irs/
H A Ddns_nw.c506 int nn, mm; in get1101mask() local
510 for (mm = 7; mm >= 0; mm--) in get1101mask()
511 if (cp[nn] & (1 << mm)) in get1101mask()
/titanic_50/usr/src/uts/sun4u/io/i2c/clients/
H A Dadm1026.c527 uint8_t mm = 0, vv = 0; in adm1026_set_config() local
533 mm |= (bit << (j * BITSPERCFG)); in adm1026_set_config()
540 "vv=%02x, mm=%02x, m=%02x", r, vv, mm, m)); in adm1026_set_config()
541 err = adm1026_send8(unitp, r, vv, mm); in adm1026_set_config()
/titanic_50/usr/src/uts/sparc/mm/
H A DMakefile41 MODULE = mm
/titanic_50/usr/src/uts/intel/mm/
H A DMakefile42 MODULE = mm
/titanic_50/usr/src/uts/common/io/chxge/
H A Dglue.c76 }mm; member
80 #define pe_mask32 mm.m32
81 #define pe_mask64 mm.m64
/titanic_50/usr/src/cmd/lp/filter/postscript/dpost/
H A DREADME46 pic file | tbl | eqn | troff -mm -Tpost | dpost >file.ps
50 pic -T720 file | tbl | eqn -r720 | troff -mm -Tpost | dpost >file.ps
/titanic_50/usr/src/test/zfs-tests/tests/functional/devices/
H A Ddevices_common.kshlib102 log_must $MKNOD $filename c $($GETMAJOR mm) 2
/titanic_50/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DDoPrinterUtil.java343 String mm = syscmd.getOutput(); in getProbe() local
344 if (mm != null) { in getProbe()
346 StringTokenizer st = new StringTokenizer(mm, ":" + "\n"); in getProbe()

1234