Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 25 of 1070) sorted by relevance

12345678910>>...43

/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_module.c100 fmd_module_t *mp = arg; in fmd_module_start() local
104 (void) pthread_mutex_lock(&mp->mod_lock); in fmd_module_start()
106 if (mp->mod_ops->mop_init(mp) != 0 || mp->mod_error != 0) { in fmd_module_start()
107 if (mp->mod_error == 0) in fmd_module_start()
108 mp->mod_error = errno ? errno : EFMD_MOD_INIT; in fmd_module_start()
113 fmd_eventq_insert_at_head(mp->mod_queue, fmd.d_mod_event); in fmd_module_start()
115 ASSERT(MUTEX_HELD(&mp->mod_lock)); in fmd_module_start()
116 mp->mod_flags |= FMD_MOD_INIT; in fmd_module_start()
118 (void) pthread_cond_broadcast(&mp->mod_cv); in fmd_module_start()
119 (void) pthread_mutex_unlock(&mp->mod_lock); in fmd_module_start()
[all …]
H A Dfmd_api.c92 fmd_api_vxerror(fmd_module_t *mp, int err, const char *format, va_list ap) in fmd_api_vxerror() argument
135 if (mp != fmd.d_self && (raw_err != EFMD_HDL_ABORT || fmd.d_running)) { in fmd_api_vxerror()
139 nvl = fmd_protocol_moderror(mp, err, msg); in fmd_api_vxerror()
168 fmd.d_pname, mp->mod_name, msg); in fmd_api_vxerror()
174 fmd.d_pname, mp->mod_name, msg); in fmd_api_vxerror()
182 fmd_api_xerror(fmd_module_t *mp, int err, const char *format, ...) in fmd_api_xerror() argument
187 fmd_api_vxerror(mp, err, format, ap); in fmd_api_xerror()
198 fmd_api_verror(fmd_module_t *mp, int err, const char *format, va_list ap) in fmd_api_verror() argument
200 if (fmd_module_locked(mp)) in fmd_api_verror()
201 fmd_module_unlock(mp); in fmd_api_verror()
[all …]
/illumos-gate/usr/src/man/man3mp/
H A DMakefile19 MANSECT= 3mp
21 MANFILES= mp.3mp
23 MANLINKS= mp_gcd.3mp \
24 mp_itom.3mp \
25 mp_madd.3mp \
26 mp_mcmp.3mp \
27 mp_mdiv.3mp \
28 mp_mfree.3mp \
29 mp_min.3mp \
30 mp_mout.3mp \
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/event-transport/
H A Detm.c96 #define IS_CLIENT(mp) (((mp)->epm_xprtflags & FMD_XPRT_ACCEPT) ? 0 : 1) argument
240 etm_check_hdr(fmd_hdl_t *hdl, etm_epmap_t *mp, void *buf) in etm_check_hdr() argument
246 ": 0x%x\n", mp->epm_ep_str, hp->hdr_delim); in etm_check_hdr()
256 if (hp->hdr_ver != mp->epm_ver) { in etm_check_hdr()
258 mp->epm_ep_str, hp->hdr_ver); in etm_check_hdr()
265 mp->epm_ep_str, hp->hdr_type); in etm_check_hdr()
296 etm_post_msg(fmd_hdl_t *hdl, etm_epmap_t *mp, void *buf, size_t buflen) in etm_post_msg() argument
306 rv = etm_xport_post_filter(hdl, nvl, mp->epm_ep_str); in etm_post_msg()
318 (void) pthread_mutex_lock(&mp->epm_lock); in etm_post_msg()
322 if (mp->epm_qstat == Q_OPEN) { in etm_post_msg()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/
H A Dmpool.c65 MPOOL *mp; local
82 if ((mp = (MPOOL *)calloc(1, sizeof(MPOOL))) == NULL)
84 CIRCLEQ_INIT(&mp->lqh);
86 CIRCLEQ_INIT(&mp->hqh[entry]);
87 mp->maxcache = maxcache;
88 mp->npages = sb.st_size / pagesize;
89 mp->pagesize = pagesize;
90 mp->fd = fd;
91 return (mp);
99 mpool_filter(mp, pgin, pgout, pgcookie) in mpool_filter() argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dmagic.c286 getdata(register Magic_t* mp, register long off, register int siz) in getdata() argument
292 if (off + siz <= mp->fbsz) in getdata()
293 return mp->fbuf + off; in getdata()
294 if (off < mp->xoff || off + siz > mp->xoff + mp->xbsz) in getdata()
296 if (off + siz > mp->fbmx) in getdata()
299 if (sfseek(mp->fp, n, SEEK_SET) != n) in getdata()
301 if ((mp->xbsz = sfread(mp->fp, mp->xbuf, sizeof(mp->xbuf) - 1)) < 0) in getdata()
303 mp->xoff = 0; in getdata()
304 mp->xbsz = 0; in getdata()
307 mp->xbuf[mp->xbsz] = 0; in getdata()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dmnt.c267 register Handle_t* mp;
278 if (!(mp = newof(0, Handle_t, 1, n)))
281 n = getfsstat(mp->next = mp->buf, n + sizeof(struct statfs), MNT_WAIT);
283 n = getmntinfo(&mp->next, 0);
287 free(mp);
290 mp->last = mp->next + n;
291 return (void*)mp;
297 register Handle_t* mp = (Handle_t*)handle;
302 if (mp->next < mp->last)
304 flags = mp->next->f_flags;
[all …]
/illumos-gate/usr/src/uts/sun4u/sys/pci/
H A Dpci_dma.h44 #define HAS_REDZONE(mp) (((mp)->dmai_rflags & DDI_DMA_REDZONE) ? 1 : 0) argument
97 #define MP_PFN0(mp) ((iopfn_t)(mp)->dmai_pfn0) argument
98 #define MP_HAT_CB_COOKIE(mp, i) ((i < PCI_DMA_HAT_NUM_CB_COOKIES)? \ argument
99 (((pci_dma_hdl_t *)(mp))->pdh_cbcookie[i]) : NULL)
100 #define MP_HAT_CB_COOKIE_PTR(mp, i) \ argument
102 &(((pci_dma_hdl_t *)(mp))->pdh_cbcookie[i]) : NULL)
103 #define WINLST(mp) ((pci_dma_win_t *)(mp)->dmai_winlst) argument
104 #define DEV_ATTR(mp) (&((pci_dma_hdl_t *)(mp))->pdh_attr_dev) argument
105 #define SYNC_BUF_PA(mp) (((pci_dma_hdl_t *)(mp))->pdh_sync_buf_pa) argument
136 #define HAS_NOFASTLIMIT(mp) ((mp)->dmai_flags & DMAI_FLAGS_NOFASTLIMIT) argument
[all …]
/illumos-gate/usr/src/uts/common/inet/
H A Dmi.c55 #define MI_IS_TRANSPARENT(mp) (mp->b_cont && \ argument
56 (mp->b_cont->b_rptr != mp->b_cont->b_wptr))
203 mi_copyin(queue_t *q, MBLKP mp, char *uaddr, size_t len) in mi_copyin() argument
205 struct iocblk *iocp = (struct iocblk *)mp->b_rptr; in mi_copyin()
206 struct copyreq *cq = (struct copyreq *)mp->b_rptr; in mi_copyin()
207 struct copyresp *cp = (struct copyresp *)mp->b_rptr; in mi_copyin()
211 ASSERT(mp->b_datap->db_type == M_IOCTL && !uaddr); in mi_copyin()
215 MI_COPY_COUNT(mp) = 1; in mi_copyin()
216 MI_COPY_DIRECTION(mp) = MI_COPY_IN; in mi_copyin()
217 cq->cq_private = mp->b_cont; in mi_copyin()
[all …]
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_dma.h43 #define PX_HAS_REDZONE(mp) \ argument
44 (((mp)->dmai_flags & PX_DMAI_FLAGS_REDZONE) ? 1 : 0)
45 #define PX_MAP_BUFZONE(mp) \ argument
46 (((mp)->dmai_flags & PX_DMAI_FLAGS_MAP_BUFZONE) ? 1 :0)
96 #define PX_MP_PFN0(mp) ((px_iopfn_t)(mp)->dmai_pfn0) argument
97 #define PX_WINLST(mp) ((px_dma_win_t *)(mp)->dmai_winlst) argument
98 #define PX_DEV_ATTR(mp) ((ddi_dma_attr_t *)(mp + 1)) argument
136 #define PX_HAS_NOFASTLIMIT(mp) ((mp)->dmai_flags & PX_DMAI_FLAGS_NOFASTLIMIT) argument
137 #define PX_HAS_NOSYSLIMIT(mp) ((mp)->dmai_flags & PX_DMAI_FLAGS_NOSYSLIMIT) argument
138 #define PX_DMA_ISPEERONLY(mp) ((mp)->dmai_flags & PX_DMAI_FLAGS_PEER_ONLY) argument
[all …]
H A Dpx_dma.c62 register ddi_dma_impl_t *mp; in px_dma_allocmp() local
66 if ((mp = kmem_alloc(sizeof (px_dma_hdl_t), sleep)) == 0) { in px_dma_allocmp()
72 return (mp); in px_dma_allocmp()
75 mp->dmai_rdip = rdip; in px_dma_allocmp()
76 mp->dmai_flags = 0; in px_dma_allocmp()
77 mp->dmai_pfnlst = NULL; in px_dma_allocmp()
78 mp->dmai_winlst = NULL; in px_dma_allocmp()
79 mp->dmai_ncookies = 0; in px_dma_allocmp()
80 mp->dmai_curcookie = 0; in px_dma_allocmp()
105 mp->dmai_attr.dma_attr_version = (uint_t)DMA_ATTR_VERSION; in px_dma_allocmp()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dtirdwr.c76 static int tirdwrrput(queue_t *q, mblk_t *mp);
77 static int tirdwrwput(queue_t *q, mblk_t *mp);
147 static void send_fatal(queue_t *q, mblk_t *mp);
210 mblk_t *mp; in tirdwrclose() local
222 if (mp = allocb(sizeof (struct T_discon_req), BPRI_LO)) { in tirdwrclose()
223 pptr = (union T_primitives *)mp->b_rptr; in tirdwrclose()
224 mp->b_wptr = mp->b_rptr + sizeof (struct T_ordrel_req); in tirdwrclose()
226 mp->b_datap->db_type = M_PROTO; in tirdwrclose()
227 putnext(WR(q), mp); in tirdwrclose()
242 tirdwrrput(queue_t *q, mblk_t *mp) in tirdwrrput() argument
[all …]
H A Dtelmod.c132 static int rcv_parse(queue_t *q, mblk_t *mp);
133 static int snd_parse(queue_t *q, mblk_t *mp);
306 mblk_t *mp; in telmodclose() local
314 while (mp = getq(WR(q))) in telmodclose()
315 putnext(WR(q), mp); in telmodclose()
354 telmodrput(queue_t *q, mblk_t *mp) in telmodrput() argument
360 if ((mp->b_datap->db_type < QPCTL) && in telmodrput()
363 (void) putq(q, mp); in telmodrput()
367 switch (mp->b_datap->db_type) { in telmodrput()
378 recover(q, mp, msgdsize(mp)); in telmodrput()
[all …]
H A Dptem.c271 ptemrput(queue_t *q, mblk_t *mp) in ptemrput() argument
277 switch (mp->b_datap->db_type) { in ptemrput()
280 freemsg(mp); in ptemrput()
284 iocp = (struct iocblk *)mp->b_rptr; in ptemrput()
295 error = miocpullup(mp, sizeof (int)); in ptemrput()
297 miocnak(q, mp, 0, error); in ptemrput()
300 if (!(*(int *)mp->b_cont->b_rptr)) { in ptemrput()
305 miocnak(q, mp, 0, EAGAIN); in ptemrput()
312 mioc2ack(mp, NULL, 0, 0); in ptemrput()
313 qreply(q, mp); in ptemrput()
[all …]
H A Dstrsun.c43 merror(queue_t *wq, mblk_t *mp, int error) in merror() argument
45 if ((mp = mexchange(wq, mp, 1, M_ERROR, -1)) == NULL) in merror()
48 *mp->b_rptr = (uchar_t)error; in merror()
49 qreply(wq, mp); in merror()
53 mioc2ack(mblk_t *mp, mblk_t *dp, size_t count, int rval) in mioc2ack() argument
55 struct iocblk *iocp = (struct iocblk *)mp->b_rptr; in mioc2ack()
56 mblk_t *odp = mp->b_cont; /* allows freemsg() to be a tail call */ in mioc2ack()
58 DB_TYPE(mp) = M_IOCACK; in mioc2ack()
63 mp->b_cont = dp; in mioc2ack()
70 miocack(queue_t *wq, mblk_t *mp, int count, int rval) in miocack() argument
[all …]
H A Drlmod.c313 mblk_t *mp; in rlmodclose() local
321 while (mp = getq(WR(q))) in rlmodclose()
322 putnext(WR(q), mp); in rlmodclose()
365 rlmodrput(queue_t *q, mblk_t *mp) in rlmodrput() argument
371 "q %p, mp %p", q, mp); in rlmodrput()
375 if ((mp->b_datap->db_type < QPCTL) && in rlmodrput()
380 (mp->b_datap->db_type == M_DATA)))) { in rlmodrput()
382 (void) putq(q, mp); in rlmodrput()
384 "rlmodrput end: q %p, mp %p, %s", q, mp, "flow"); in rlmodrput()
388 switch (mp->b_datap->db_type) { in rlmodrput()
[all …]
/illumos-gate/usr/src/test/libsec-tests/cmd/
H A Dlib_stubs.c127 struct mapping *mp; in idmap_getwinnamebypid() local
133 for (mp = mappings; mp->pid != 0; mp++) { in idmap_getwinnamebypid()
134 if (mp->is_user != is_user) in idmap_getwinnamebypid()
136 if (mp->pid == pid) in idmap_getwinnamebypid()
139 if (mp->pid == 0 || mp->name == NULL || mp->domain == NULL) in idmap_getwinnamebypid()
143 *name = strdup(mp->name); in idmap_getwinnamebypid()
144 *domain = strdup(mp->domain); in idmap_getwinnamebypid()
146 (void) asprintf(name, "%s@%s", mp->name, mp->domain); in idmap_getwinnamebypid()
168 struct mapping *mp; in idmap_getpidbywinname() local
171 for (mp = mappings; mp->pid != 0; mp++) { in idmap_getpidbywinname()
[all …]
/illumos-gate/usr/src/pkg/manifests/
H A Dsystem-library.man3mp.inc17 file path=usr/share/man/man3mp/mp.3mp
18 link path=usr/share/man/man3mp/mp_gcd.3mp target=mp.3mp
19 link path=usr/share/man/man3mp/mp_itom.3mp target=mp.3mp
20 link path=usr/share/man/man3mp/mp_madd.3mp target=mp.3mp
21 link path=usr/share/man/man3mp/mp_mcmp.3mp target=mp.3mp
22 link path=usr/share/man/man3mp/mp_mdiv.3mp target=mp.3mp
23 link path=usr/share/man/man3mp/mp_mfree.3mp target=mp.3mp
24 link path=usr/share/man/man3mp/mp_min.3mp target=mp.3mp
25 link path=usr/share/man/man3mp/mp_mout.3mp target=mp.3mp
26 link path=usr/share/man/man3mp/mp_msqrt.3mp target=mp.3mp
[all …]
/illumos-gate/usr/src/lib/libfstyp/common/
H A Dlibfstyp.c96 fstyp_module_t *mp);
100 fstyp_module_t *mp);
178 fstyp_module_t *mp; in fstyp_ident_all() local
185 for (mp = h->modules; mp != NULL; mp = mp->next) { in fstyp_ident_all()
186 if ((fstyp_load_module(h, mp) == 0) && in fstyp_ident_all()
187 (mp->ops.fstyp_ident(mp->mod_handle) == 0)) { in fstyp_ident_all()
193 h->ident = mp; in fstyp_ident_all()
194 *ident = &mp->fsname[0]; in fstyp_ident_all()
208 fstyp_module_t *mp; in fstyp_ident_one() local
224 mp = fstyp_find_module_by_name(h, fsname); in fstyp_ident_one()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dmacro.c127 Mac_t *mp = (Mac_t*)addr; in sh_macopen() local
128 mp->shp = shp; in sh_macopen()
162 register Mac_t *mp = (Mac_t*)shp->mac_context; in sh_mactrim() local
165 savemac = *mp; in sh_mactrim()
167 mp->arith = (mode==3); in sh_mactrim()
168 mp->let = 0; in sh_mactrim()
170 mp->pattern = (mode==1||mode==2); in sh_mactrim()
171 mp->patfound = 0; in sh_mactrim()
172 mp->assign = 0; in sh_mactrim()
174 mp->assign = -mode; in sh_mactrim()
[all …]
/illumos-gate/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_menu.c48 append_line(grub_menu_t *mp, grub_line_t *lp) in append_line() argument
50 if (mp->gm_start == NULL) { in append_line()
51 mp->gm_start = lp; in append_line()
53 mp->gm_end->gl_next = lp; in append_line()
54 lp->gl_prev = mp->gm_end; in append_line()
56 mp->gm_end = lp; in append_line()
57 lp->gl_line_num = ++mp->gm_line_num; in append_line()
62 process_line(grub_menu_t *mp) in process_line() argument
67 lp = mp->gm_end; in process_line()
107 add_entry(grub_menu_t *mp, grub_line_t *start, grub_line_t *end) in add_entry() argument
[all …]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_dma.c49 pci_sc_pg_inv(dev_info_t *dip, sc_t *sc_p, ddi_dma_impl_t *mp, off_t off, in pci_sc_pg_inv() argument
56 len = mp->dmai_size; in pci_sc_pg_inv()
58 pg_off = mp->dmai_offset; /* start min */ in pci_sc_pg_inv()
60 pg_off += mp->dmai_size; /* end max */ in pci_sc_pg_inv()
64 off, len, mp->dmai_offset, in pci_sc_pg_inv()
65 mp->dmai_offset + mp->dmai_size); in pci_sc_pg_inv()
70 dvma_addr += mp->dmai_mapping; /* start addr */ in pci_sc_pg_inv()
84 pci_dma_sync_flag_wait(ddi_dma_impl_t *mp, sc_t *sc_p, uint32_t onstack) in pci_dma_sync_flag_wait() argument
88 uint64_t sync_flag_pa = SYNC_BUF_PA(mp); in pci_dma_sync_flag_wait()
131 mp, sync_flag_pa, loops); in pci_dma_sync_flag_wait()
[all …]
/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj.c359 struct module *mp; in kobj_init() local
456 mp = load_exec(bootaux, filename); in kobj_init()
462 if (load_primary(mp, KOBJ_LM_PRIMARY) == -1) in kobj_init()
699 struct module *mp; in load_exec() local
715 mp = kobj_zalloc(sizeof (struct module), KM_WAIT); in load_exec()
716 cp->mod_mp = mp; in load_exec()
723 mp->symtbl_section = 0; in load_exec()
724 mp->shdrs = NULL; in load_exec()
725 mp->strhdr = NULL; in load_exec()
732 mp->symhdr = kobj_zalloc(sizeof (Shdr), KM_WAIT); in load_exec()
[all …]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dsynch.c130 mutex_init(mutex_t *mp, int type, void *arg) in mutex_init() argument
170 if (!(mp->mutex_flag & LOCK_INITED)) { in mutex_init()
171 mp->mutex_type = (uint8_t)type; in mutex_init()
172 atomic_or_16(&mp->mutex_flag, LOCK_INITED); in mutex_init()
173 mp->mutex_magic = MUTEX_MAGIC; in mutex_init()
174 } else if (type != mp->mutex_type || in mutex_init()
175 ((type & LOCK_PRIO_PROTECT) && mp->mutex_ceiling != ceil)) { in mutex_init()
177 } else if (mutex_consistent(mp) != 0) { in mutex_init()
182 register_lock(mp); in mutex_init()
184 (void) memset(mp, 0, sizeof (*mp)); in mutex_init()
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_stream.c81 #define MBLK_BAND_FLAG_WORD(mp) (*((uint32_t *)&(mp)->b_band)) argument
100 static void dblk_lastfree(mblk_t *mp, dblk_t *dbp);
105 static void bcache_dblk_lastfree(mblk_t *mp, dblk_t *dbp);
300 mblk_t *mp; in allocb() local
307 mp = allocb_oversize(size, KM_NOSLEEP); in allocb()
314 mp = NULL; in allocb()
318 mp = dbp->db_mblk; in allocb()
320 mp->b_next = mp->b_prev = mp->b_cont = NULL; in allocb()
321 mp->b_rptr = mp->b_wptr = dbp->db_base; in allocb()
322 mp->b_queue = NULL; in allocb()
[all …]

12345678910>>...43