/titanic_41/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_module.c | 100 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 D | fmd_api.c | 92 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 …]
|
/titanic_41/usr/src/man/man3mp/ |
H A D | Makefile | 19 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 …]
|
/titanic_41/usr/src/cmd/fm/modules/common/event-transport/ |
H A D | etm.c | 98 #define IS_CLIENT(mp) (((mp)->epm_xprtflags & FMD_XPRT_ACCEPT) ? 0 : 1) argument 242 etm_check_hdr(fmd_hdl_t *hdl, etm_epmap_t *mp, void *buf) in etm_check_hdr() argument 248 ": 0x%x\n", mp->epm_ep_str, hp->hdr_delim); in etm_check_hdr() 258 if (hp->hdr_ver != mp->epm_ver) { in etm_check_hdr() 260 mp->epm_ep_str, hp->hdr_ver); in etm_check_hdr() 267 mp->epm_ep_str, hp->hdr_type); in etm_check_hdr() 298 etm_post_msg(fmd_hdl_t *hdl, etm_epmap_t *mp, void *buf, size_t buflen) in etm_post_msg() argument 308 rv = etm_xport_post_filter(hdl, nvl, mp->epm_ep_str); in etm_post_msg() 320 (void) pthread_mutex_lock(&mp->epm_lock); in etm_post_msg() 324 if (mp->epm_qstat == Q_OPEN) { in etm_post_msg() [all …]
|
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/ |
H A D | mpool.c | 65 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 …]
|
/titanic_41/usr/src/lib/libast/common/misc/ |
H A D | magic.c | 286 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 …]
|
/titanic_41/usr/src/uts/sun4u/sys/pci/ |
H A D | pci_dma.h | 44 #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 …]
|
/titanic_41/usr/src/lib/libast/common/port/ |
H A D | mnt.c | 255 register Handle_t* mp; 259 if (!(mp = newof(0, Handle_t, 1, 0))) 261 if ((n = getmntinfo(&mp->next, 0)) <= 0) 263 free(mp); 266 mp->last = mp->next + n; 267 return (void*)mp; 273 register Handle_t* mp = (Handle_t*)handle; 278 if (mp->next < mp->last) 280 flags = mp->next->f_flags; 284 n += sfsprintf(mp->opt + n, sizeof(mp->opt) - n - 1, ",%s", options[i].name); [all …]
|
/titanic_41/usr/src/uts/sun4/io/px/ |
H A D | px_dma.h | 43 #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 D | px_dma.c | 62 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() 103 mp->dmai_attr.dma_attr_version = (uint_t)DMA_ATTR_VERSION; in px_dma_allocmp() 104 mp->dmai_attr.dma_attr_flags = (uint_t)0; in px_dma_allocmp() 105 mp->dmai_fault = 0; in px_dma_allocmp() [all …]
|
/titanic_41/usr/src/uts/common/io/ |
H A D | tirdwr.c | 79 static void tirdwrrput(queue_t *q, mblk_t *mp); 80 static void tirdwrwput(queue_t *q, mblk_t *mp); 150 static void send_fatal(queue_t *q, mblk_t *mp); 213 mblk_t *mp; in tirdwrclose() local 225 if (mp = allocb(sizeof (struct T_discon_req), BPRI_LO)) { in tirdwrclose() 226 pptr = (union T_primitives *)mp->b_rptr; in tirdwrclose() 227 mp->b_wptr = mp->b_rptr + sizeof (struct T_ordrel_req); in tirdwrclose() 229 mp->b_datap->db_type = M_PROTO; in tirdwrclose() 230 putnext(WR(q), mp); in tirdwrclose() 245 tirdwrrput(queue_t *q, mblk_t *mp) in tirdwrrput() argument [all …]
|
H A D | ptem.c | 272 ptemrput(queue_t *q, mblk_t *mp) in ptemrput() argument 278 switch (mp->b_datap->db_type) { in ptemrput() 281 freemsg(mp); in ptemrput() 285 iocp = (struct iocblk *)mp->b_rptr; in ptemrput() 296 error = miocpullup(mp, sizeof (int)); in ptemrput() 298 miocnak(q, mp, 0, error); in ptemrput() 301 if (!(*(int *)mp->b_cont->b_rptr)) { in ptemrput() 306 miocnak(q, mp, 0, EAGAIN); in ptemrput() 313 mioc2ack(mp, NULL, 0, 0); in ptemrput() 314 qreply(q, mp); in ptemrput() [all …]
|
H A D | telmod.c | 134 static int rcv_parse(queue_t *q, mblk_t *mp); 135 static int snd_parse(queue_t *q, mblk_t *mp); 308 mblk_t *mp; in telmodclose() local 316 while (mp = getq(WR(q))) in telmodclose() 317 putnext(WR(q), mp); in telmodclose() 356 telmodrput(queue_t *q, mblk_t *mp) in telmodrput() argument 362 if ((mp->b_datap->db_type < QPCTL) && in telmodrput() 365 (void) putq(q, mp); in telmodrput() 369 switch (mp->b_datap->db_type) { in telmodrput() 380 recover(q, mp, msgdsize(mp)); in telmodrput() [all …]
|
H A D | strsun.c | 43 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 D | rlmod.c | 314 mblk_t *mp; in rlmodclose() local 322 while (mp = getq(WR(q))) in rlmodclose() 323 putnext(WR(q), mp); in rlmodclose() 366 rlmodrput(queue_t *q, mblk_t *mp) in rlmodrput() argument 372 "q %p, mp %p", q, mp); in rlmodrput() 376 if ((mp->b_datap->db_type < QPCTL) && in rlmodrput() 381 (mp->b_datap->db_type == M_DATA)))) { in rlmodrput() 383 (void) putq(q, mp); in rlmodrput() 385 "rlmodrput end: q %p, mp %p, %s", q, mp, "flow"); in rlmodrput() 389 switch (mp->b_datap->db_type) { in rlmodrput() [all …]
|
/titanic_41/usr/src/uts/common/inet/ |
H A D | mi.c | 55 #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 …]
|
/titanic_41/usr/src/pkg/manifests/ |
H A D | system-library.man3mp.inc | 17 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 …]
|
/titanic_41/usr/src/lib/libfstyp/common/ |
H A D | libfstyp.c | 98 fstyp_module_t *mp); 102 fstyp_module_t *mp); 180 fstyp_module_t *mp; in fstyp_ident_all() local 187 for (mp = h->modules; mp != NULL; mp = mp->next) { in fstyp_ident_all() 188 if ((fstyp_load_module(h, mp) == 0) && in fstyp_ident_all() 189 (mp->ops.fstyp_ident(mp->mod_handle) == 0)) { in fstyp_ident_all() 195 h->ident = mp; in fstyp_ident_all() 196 *ident = &mp->fsname[0]; in fstyp_ident_all() 210 fstyp_module_t *mp; in fstyp_ident_one() local 226 mp = fstyp_find_module_by_name(h, fsname); in fstyp_ident_one() [all …]
|
/titanic_41/usr/src/lib/libgrubmgmt/common/ |
H A D | libgrub_menu.c | 48 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 …]
|
/titanic_41/usr/src/lib/libshell/common/sh/ |
H A D | macro.c | 117 Mac_t *mp = (Mac_t*)addr; in sh_macopen() local 118 mp->shp = shp; in sh_macopen() 152 register Mac_t *mp = (Mac_t*)shp->mac_context; in sh_mactrim() local 155 savemac = *mp; in sh_mactrim() 157 mp->arith = (mode==3); in sh_mactrim() 158 mp->let = 0; in sh_mactrim() 160 mp->pattern = (mode==1||mode==2); in sh_mactrim() 161 mp->patfound = 0; in sh_mactrim() 162 mp->assign = 0; in sh_mactrim() 164 mp->assign = -mode; in sh_mactrim() [all …]
|
/titanic_41/usr/src/lib/efcode/engine/ |
H A D | mcookie.c | 75 struct map_table *mp; in mapping_to_mcookie() local 77 for (i = 0, mp = map_table; i < MAX_MAPS; i++, mp++) in mapping_to_mcookie() 78 if ((mp->map_flags & MAP_IS_VALID) == 0) in mapping_to_mcookie() 86 mp->map_flags |= MAP_IS_VALID; in mapping_to_mcookie() 87 mp->map_add = req_add; in mapping_to_mcookie() 88 mp->map_size = req_size; in mapping_to_mcookie() 89 mp->adj_virt = adj_virt; in mapping_to_mcookie() 90 mp->adj_length = adj_length; in mapping_to_mcookie() 91 if (mp->adj_length != 0) in mapping_to_mcookie() 101 struct map_table *mp; in delete_mapping() local [all …]
|
/titanic_41/usr/src/uts/sun4u/io/pci/ |
H A D | pci_dma.c | 49 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 …]
|
/titanic_41/usr/src/uts/common/krtld/ |
H A D | kobj.c | 369 struct module *mp; in kobj_init() local 467 mp = load_exec(bootaux, filename); in kobj_init() 473 if (load_primary(mp, KOBJ_LM_PRIMARY) == -1) in kobj_init() 710 struct module *mp; in load_exec() local 726 mp = kobj_zalloc(sizeof (struct module), KM_WAIT); in load_exec() 727 cp->mod_mp = mp; in load_exec() 734 mp->symtbl_section = 0; in load_exec() 735 mp->shdrs = NULL; in load_exec() 736 mp->strhdr = NULL; in load_exec() 743 mp->symhdr = kobj_zalloc(sizeof (Shdr), KM_WAIT); in load_exec() [all …]
|
/titanic_41/usr/src/uts/i86pc/io/dr/ |
H A D | dr_mem_acpi.c | 69 static void dr_init_mem_unit_data(dr_mem_unit_t *mp); 85 dr_get_memlist(dr_mem_unit_t *mp) in dr_get_memlist() argument 91 PR_MEM("%s for %s...\n", f, mp->sbm_cm.sbdev_path); in dr_get_memlist() 101 if (mp->sbm_mlist) { in dr_get_memlist() 104 mlist = memlist_dup(mp->sbm_mlist); in dr_get_memlist() 106 uint64_t basepa = _ptob64(mp->sbm_basepfn); in dr_get_memlist() 111 basepa &= ~mp->sbm_alignment_mask; in dr_get_memlist() 126 toppa = mp->sbm_slice_top; in dr_get_memlist() 142 mp->sbm_cm.sbdev_id, &mlist); in dr_get_memlist() 144 DRERR_SET_C(&mp->sbm_cm.sbdev_error, &err); in dr_get_memlist() [all …]
|
/titanic_41/usr/src/uts/common/io/vuidmice/ |
H A D | vuidmice.c | 250 vuidmice_rput(queue_t *const qp, mblk_t *mp) in vuidmice_rput() argument 253 ASSERT(mp != NULL); in vuidmice_rput() 260 if (DB_TYPE(mp) == M_DATA) { in vuidmice_rput() 262 return (putq(qp, mp)); /* queue message & return */ in vuidmice_rput() 263 } else if (DB_TYPE(mp) == M_FLUSH) { in vuidmice_rput() 264 if (*mp->b_rptr & FLUSHR) in vuidmice_rput() 268 putnext(qp, mp); /* pass it on */ in vuidmice_rput() 275 register mblk_t *mp; in vuidmice_rsrv() local 279 while ((mp = getq(qp)) != NULL) { in vuidmice_rsrv() 280 ASSERT(DB_TYPE(mp) == M_DATA); in vuidmice_rsrv() [all …]
|