/illumos-gate/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 \ [all...] |
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_create.c | 33 mdb_module_t *mp; local 35 if ((mp = mdb_module_load_builtin("kmdb_kvm")) != NULL) 36 mp->mod_tgt_ctor = kmdb_kvm_create;
|
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | mimetype.c | 37 drop(Mime_t* mp) argument 39 if (mp->magic) 41 magicclose(mp->magic); 42 mp->magic = 0; 51 mimetype(Mime_t* mp, Sfio_t* fp, const char* file, struct stat* st) argument 53 if (mp->disc->flags & MIME_NOMAGIC) 55 if (!mp->magic) 57 mp->magicd.version = MAGIC_VERSION; 58 mp->magicd.flags = MAGIC_MIME; 59 mp [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | strsun.h | 44 #define DB_BASE(mp) ((mp)->b_datap->db_base) 45 #define DB_LIM(mp) ((mp)->b_datap->db_lim) 46 #define DB_REF(mp) ((mp)->b_datap->db_ref) 47 #define DB_TYPE(mp) ((mp)->b_datap->db_type) 48 #define DB_FLAGS(mp) ((mp) [all...] |
/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | s_common.c | 47 mblk_t *mp; local 49 if ((mp = allocb(4, BPRI_HI)) == NULL) { 52 MTYPE(mp) = type; 53 mp->b_wptr[0] = code; 54 ((uint16_t *)mp->b_wptr)[1] = val; 55 mp->b_wptr += 4; 57 putnext(q, mp); 70 mblk_t *mp; local 72 if ((mp = allocb(8, BPRI_HI)) == NULL) { 75 MTYPE(mp) 91 msg_byte(mblk_t *mp, unsigned int i) argument 115 mblk_t *mp; local [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_module.c | 55 * module. These are used to initialize the per-module mp->mod_stats below. 100 fmd_module_t *mp = arg; local 104 (void) pthread_mutex_lock(&mp->mod_lock); 106 if (mp->mod_ops->mop_init(mp) != 0 || mp->mod_error != 0) { 107 if (mp->mod_error == 0) 108 mp->mod_error = errno ? errno : EFMD_MOD_INIT; 113 fmd_eventq_insert_at_head(mp->mod_queue, fmd.d_mod_event); 115 ASSERT(MUTEX_HELD(&mp 177 fmd_module_t *mp = fmd_zalloc(sizeof (fmd_module_t), FMD_SLEEP); local 338 fmd_module_untimeout(fmd_idspace_t *ids, id_t id, fmd_module_t *mp) argument 352 fmd_module_unload(fmd_module_t *mp) argument 416 fmd_module_destroy(fmd_module_t *mp) argument 497 fmd_module_error(fmd_module_t *mp, int err) argument 528 fmd_module_dispatch(fmd_module_t *mp, fmd_event_t *e) argument 609 fmd_module_transport(fmd_module_t *mp, fmd_xprt_t *xp, fmd_event_t *e) argument 633 fmd_module_gc(fmd_module_t *mp) argument 657 fmd_module_trygc(fmd_module_t *mp) argument 667 fmd_module_contains(fmd_module_t *mp, fmd_event_t *ep) argument 688 fmd_module_setdirty(fmd_module_t *mp) argument 696 fmd_module_setcdirty(fmd_module_t *mp) argument 704 fmd_module_clrdirty(fmd_module_t *mp) argument 730 fmd_module_commit(fmd_module_t *mp) argument 756 fmd_module_lock(fmd_module_t *mp) argument 777 fmd_module_unlock(fmd_module_t *mp) argument 792 fmd_module_trylock(fmd_module_t *mp) argument 811 fmd_module_locked(fmd_module_t *mp) argument 818 fmd_module_enter(fmd_module_t *mp, void (*func)(fmd_hdl_t *)) argument 848 fmd_module_exit(fmd_module_t *mp) argument 868 fmd_module_abort(fmd_module_t *mp, int err) argument 918 fmd_module_hold(fmd_module_t *mp) argument 932 fmd_module_rele(fmd_module_t *mp) argument 953 fmd_module_dc_opendict(fmd_module_t *mp, const char *dict) argument 1008 fmd_module_dc_key2code(fmd_module_t *mp, char *const keys[], char *code, size_t codelen) argument 1038 fmd_module_t *mp, *nmp; local 1098 fmd_module_t *mp, *np; local 1116 fmd_module_t *mp, *np; local 1135 fmd_module_t *mp; local 1176 fmd_module_t *mp; local 1200 fmd_module_t *mp; local 1250 fmd_module_t *mp, **pp; local 1284 fmd_modstat_publish(fmd_module_t *mp) argument 1299 fmd_modstat_snapshot(fmd_module_t *mp, fmd_ustat_snap_t *uss) argument 1385 fmd_module_topo_hold(fmd_module_t *mp) argument 1400 fmd_module_topo_rele(fmd_module_t *mp, struct topo_hdl *hdl) argument [all...] |
H A D | fmd_builtin.c | 42 bltin_init(fmd_module_t *mp) argument 47 if (strcmp(mp->mod_name, bp->bltin_name) == 0) 57 mp->mod_data = (void *)bp; 58 (void) pthread_mutex_unlock(&mp->mod_lock); 64 if (fmd_module_enter(mp, bp->bltin_init) != 0 && mp->mod_info != NULL) 65 fmd_hdl_unregister((fmd_hdl_t *)mp); 67 fmd_module_exit(mp); 68 (void) pthread_mutex_lock(&mp->mod_lock); 70 if (mp 77 bltin_fini(fmd_module_t *mp) argument [all...] |
H A D | fmd_rtld.c | 46 rtld_init(fmd_module_t *mp) argument 51 if ((dlp = dlopen(mp->mod_path, RTLD_LOCAL | RTLD_NOW)) == NULL) { 56 rp = mp->mod_data = fmd_alloc(sizeof (fmd_rtld_t), FMD_SLEEP); 68 (void) pthread_mutex_unlock(&mp->mod_lock); 74 if (fmd_module_enter(mp, rp->rtld_init) != 0 && mp->mod_info != NULL) 75 fmd_hdl_unregister((fmd_hdl_t *)mp); 77 fmd_module_exit(mp); 78 (void) pthread_mutex_lock(&mp->mod_lock); 80 if (mp 90 rtld_fini(fmd_module_t *mp) argument [all...] |
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | mutex.c | 40 kmutex_init(kmutex_t *mp, char *name, kmutex_type_t typ, void *arg) argument 42 mp->m_lock = default_mutex; 43 mp->m_owner = _KTHREAD_INVALID; 48 kmutex_destroy(kmutex_t *mp) argument 50 mp->m_owner = _KTHREAD_INVALID; 54 mutex_enter(kmutex_t *mp) argument 56 VERIFY(0 == _lwp_mutex_lock(&mp->m_lock)); 57 mp->m_owner = _curthread(); 61 mutex_tryenter(kmutex_t *mp) argument 65 rc = _lwp_mutex_trylock(&mp 74 mutex_exit(kmutex_t *mp) argument 85 mutex_owner(const kmutex_t *mp) argument 91 mutex_owned(const kmutex_t *mp) argument [all...] |
/illumos-gate/usr/src/lib/efcode/engine/ |
H A D | mcookie.c | 75 struct map_table *mp; local 77 for (i = 0, mp = map_table; i < MAX_MAPS; i++, mp++) 78 if ((mp->map_flags & MAP_IS_VALID) == 0) 86 mp->map_flags |= MAP_IS_VALID; 87 mp->map_add = req_add; 88 mp->map_size = req_size; 89 mp->adj_virt = adj_virt; 90 mp->adj_length = adj_length; 91 if (mp 101 struct map_table *mp; local 125 struct map_table *mp; local 146 struct map_table *mp; local 165 struct map_table *mp; local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | rmap.c | 49 rmfreemap(void *mp) argument 51 vmem_destroy(mp); 55 rmalloc(void *mp, size_t size) argument 57 return ((ulong_t)vmem_alloc(mp, size, VM_NOSLEEP)); 61 rmalloc_wait(void *mp, size_t size) argument 63 return ((ulong_t)vmem_alloc(mp, size, VM_SLEEP)); 67 rmfree(void *mp, size_t size, ulong_t addr) argument 69 if (vmem_contains(mp, (void *)addr, size)) 70 vmem_free(mp, (void *)addr, size); 71 else if (vmem_add(mp, (voi [all...] |
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | ccmapid.c | 126 ccmaplist(Ccmap_t* mp) argument 128 return !mp ? (Ccmap_t*)maps : (++mp)->name ? mp : (Ccmap_t*)0; 138 register const Ccmap_t* mp; local 146 for (mp = maps; mp->name; mp++) 147 if (strgrpmatch(name, mp->match, sub, elementsof(sub) / 2, STR_MAXIMAL|STR_LEFT|STR_ICASE)) 150 return mp 167 register const Ccmap_t* mp; local [all...] |
/illumos-gate/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, pgi [all...] |
/illumos-gate/usr/src/uts/sun4/io/px/ |
H A D | px_dma.h | 43 #define PX_HAS_REDZONE(mp) \ 44 (((mp)->dmai_flags & PX_DMAI_FLAGS_REDZONE) ? 1 : 0) 45 #define PX_MAP_BUFZONE(mp) \ 46 (((mp)->dmai_flags & PX_DMAI_FLAGS_MAP_BUFZONE) ? 1 :0) 96 #define PX_MP_PFN0(mp) ((px_iopfn_t)(mp)->dmai_pfn0) 97 #define PX_WINLST(mp) ((px_dma_win_t *)(mp)->dmai_winlst) 98 #define PX_DEV_ATTR(mp) ((ddi_dma_attr_t *)(mp 199 ddi_dma_impl_t *mp; member in struct:px_dvma_rec [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | calloc.c | 43 void *mp; local 57 return ((mp = malloc(total)) ? memset(mp, 0, total) : mp);
|
/illumos-gate/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; local 225 if (mp = allocb(sizeof (struct T_discon_req), BPRI_LO)) { 226 pptr = (union T_primitives *)mp->b_rptr; 227 mp->b_wptr = mp->b_rptr + sizeof (struct T_ordrel_req); 229 mp->b_datap->db_type = M_PROTO; 230 putnext(WR(q), mp); local 245 tirdwrrput(queue_t *q, mblk_t *mp) argument 329 tirdwrwput(queue_t *q, mblk_t *mp) argument 360 send_fatal(queue_t *q, mblk_t *mp) argument 381 mblk_t *mp; local 421 mblk_t *mp; local [all...] |
H A D | ptem.c | 272 ptemrput(queue_t *q, mblk_t *mp) argument 278 switch (mp->b_datap->db_type) { 281 freemsg(mp); 285 iocp = (struct iocblk *)mp->b_rptr; 296 error = miocpullup(mp, sizeof (int)); 298 miocnak(q, mp, 0, error); 301 if (!(*(int *)mp->b_cont->b_rptr)) { 306 miocnak(q, mp, 0, EAGAIN); 313 mioc2ack(mp, NULL, 0, 0); 314 qreply(q, mp); 441 ptemwput(queue_t *q, mblk_t *mp) argument 586 mblk_t *mp; local 605 ptemwmsg(queue_t *q, mblk_t *mp) argument 883 ptioc(queue_t *q, mblk_t *mp, int qside) argument [all...] |
H A D | strsun.c | 43 merror(queue_t *wq, mblk_t *mp, int error) argument 45 if ((mp = mexchange(wq, mp, 1, M_ERROR, -1)) == NULL) 48 *mp->b_rptr = (uchar_t)error; 49 qreply(wq, mp); 53 mioc2ack(mblk_t *mp, mblk_t *dp, size_t count, int rval) argument 55 struct iocblk *iocp = (struct iocblk *)mp->b_rptr; 56 mblk_t *odp = mp->b_cont; /* allows freemsg() to be a tail call */ 58 DB_TYPE(mp) = M_IOCACK; 63 mp 70 miocack(queue_t *wq, mblk_t *mp, int count, int rval) argument 82 miocnak(queue_t *wq, mblk_t *mp, int count, int error) argument 93 mexchange(queue_t *wq, mblk_t *mp, size_t size, uchar_t type, int32_t primtype) argument 116 msgsize(mblk_t *mp) argument 127 mcopymsg(mblk_t *mp, void *bufp) argument 143 mcopyin(mblk_t *mp, void *private, size_t size, void *useraddr) argument 170 mcopyout(mblk_t *mp, void *private, size_t size, void *useraddr, mblk_t *dp) argument 276 mblk_t *mp; local [all...] |
/illumos-gate/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) 242 etm_check_hdr(fmd_hdl_t *hdl, etm_epmap_t *mp, void *buf) argument 248 ": 0x%x\n", mp->epm_ep_str, hp->hdr_delim); 258 if (hp->hdr_ver != mp->epm_ver) { 260 mp->epm_ep_str, hp->hdr_ver); 267 mp->epm_ep_str, hp->hdr_type); 298 etm_post_msg(fmd_hdl_t *hdl, etm_epmap_t *mp, void *buf, size_t buflen) argument 308 rv = etm_xport_post_filter(hdl, nvl, mp->epm_ep_str); 320 (void) pthread_mutex_lock(&mp 371 etm_handle_startup(fmd_hdl_t *hdl, etm_epmap_t *mp) argument 454 etm_send_shutdown(fmd_hdl_t *hdl, etm_epmap_t *mp) argument 475 etm_get_ep_nvl(fmd_hdl_t *hdl, etm_epmap_t *mp) argument 498 etm_free_ep_nvl(fmd_hdl_t *hdl, etm_epmap_t *mp) argument 510 etm_epmap_t *mp; local 523 etm_reconnect(fmd_hdl_t *hdl, etm_epmap_t *mp) argument 560 etm_suspend_reconnect(fmd_hdl_t *hdl, etm_epmap_t *mp) argument 596 etm_reinit(fmd_hdl_t *hdl, etm_epmap_t *mp) argument 633 etm_recv(fmd_hdl_t *hdl, etm_xport_conn_t conn, etm_epmap_t *mp) argument 865 etm_epmap_t *mp = (etm_epmap_t *)arg; local 1080 etm_free_epmap(fmd_hdl_t *hdl, etm_epmap_t *mp) argument 1137 etm_epmap_t *mp; local 1384 etm_epmap_t *mp = (etm_epmap_t *)data; local 1490 etm_epmap_t *mp, *next; local [all...] |
/illumos-gate/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 [all...] |
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | zalloc.c | 89 znalloc(MemPool *mp, uintptr_t bytes) argument 106 if (bytes <= mp->mp_Size - mp->mp_Used) { 110 for (pmn = &mp->mp_First; (mn=*pmn) != NULL; pmn = &mn->mr_Next) { 130 mp->mp_Used += bytes; 148 zfree(MemPool *mp, void *ptr, uintptr_t bytes) argument 163 if ((char *)ptr < (char *)mp->mp_Base || 164 (char *)ptr + bytes > (char *)mp->mp_End || 176 mp->mp_Used -= bytes; 178 for (pmn = &mp 257 zextendPool(MemPool *mp, void *base, uintptr_t bytes) argument 284 zallocstats(MemPool *mp) argument [all...] |
/illumos-gate/usr/src/uts/common/inet/ |
H A D | mi.c | 55 #define MI_IS_TRANSPARENT(mp) (mp->b_cont && \ 56 (mp->b_cont->b_rptr != mp->b_cont->b_wptr)) 203 mi_copyin(queue_t *q, MBLKP mp, char *uaddr, size_t len) argument 205 struct iocblk *iocp = (struct iocblk *)mp->b_rptr; 206 struct copyreq *cq = (struct copyreq *)mp->b_rptr; 207 struct copyresp *cp = (struct copyresp *)mp->b_rptr; 211 ASSERT(mp->b_datap->db_type == M_IOCTL && !uaddr); 215 MI_COPY_COUNT(mp) 294 mi_copyin_n(queue_t *q, MBLKP mp, size_t offset, size_t len) argument 313 mi_copyout(queue_t *q, MBLKP mp) argument 372 mi_copyout_alloc(queue_t *q, MBLKP mp, char *uaddr, size_t len, boolean_t free_on_error) argument 413 mi_copy_done(queue_t *q, MBLKP mp, int err) argument 441 mi_copy_state(queue_t *q, MBLKP mp, MBLKP *mpp) argument 634 mi_mpprintf(MBLKP mp, char *fmt, ...) argument 652 mi_mpprintf_nr(MBLKP mp, char *fmt, ...) argument 672 MBLKP mp = (MBLKP)cookie; local 876 mi_offset_param(mblk_t *mp, size_t offset, size_t len) argument 890 mi_offset_paramc(mblk_t *mp, size_t offset, size_t len) argument 1084 mi_timer(queue_t *q, MBLKP mp, clock_t tim) argument 1152 MBLKP mp; local 1190 mi_timer_free(MBLKP mp) argument 1225 mi_timer_move(queue_t *q, MBLKP mp) argument 1277 mi_timer_stop(MBLKP mp) argument 1310 mi_timer_valid(MBLKP mp) argument 1353 mi_tpi_addr_and_opt(MBLKP mp, char *addr, t_scalar_t addr_length, char *opt, t_scalar_t opt_length) argument 1387 MBLKP mp; local 1402 MBLKP mp; local 1420 MBLKP mp; local 1444 MBLKP mp; local 1461 mi_tpi_err_ack_alloc(MBLKP mp, t_scalar_t tlierr, int unixerr) argument 1480 mi_tpi_ok_ack_alloc_extra(MBLKP mp, int extra) argument 1496 mi_tpi_ok_ack_alloc(MBLKP mp) argument 1504 MBLKP mp; local 1517 MBLKP mp; local 1533 MBLKP mp; local [all...] |
/illumos-gate/usr/src/uts/common/io/ppp/common/ |
H A D | s_common.h | 21 #define MTYPE(mp) (mp->b_datap->db_type) 28 /* Extract byte i of message mp */ 29 #define MSG_BYTE(mp, i) \ 30 ((i) < MBLKL(mp) ? (mp)->b_rptr[i] : msg_byte((mp), (i)))
|
/illumos-gate/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) 97 #define MP_PFN0(mp) ((iopfn_t)(mp)->dmai_pfn0) 98 #define MP_HAT_CB_COOKIE(mp, i) ((i < PCI_DMA_HAT_NUM_CB_COOKIES)? \ 99 (((pci_dma_hdl_t *)(mp))->pdh_cbcookie[i]) : NULL) 100 #define MP_HAT_CB_COOKIE_PTR(mp, i) \ 102 &(((pci_dma_hdl_t *)(mp))->pdh_cbcookie[i]) : NULL) 103 #define WINLST(mp) ((pci_dma_win_t *)(mp) 222 ddi_dma_impl_t *mp; member in struct:dvma_rec [all...] |
/illumos-gate/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) argument 91 PR_MEM("%s for %s...\n", f, mp->sbm_cm.sbdev_path); 101 if (mp->sbm_mlist) { 104 mlist = memlist_dup(mp->sbm_mlist); 106 uint64_t basepa = _ptob64(mp->sbm_basepfn); 111 basepa &= ~mp->sbm_alignment_mask; 126 toppa = mp->sbm_slice_top; 142 mp->sbm_cm.sbdev_id, &mlist); 144 DRERR_SET_C(&mp 165 dr_mem_unit_t *mp = (dr_mem_unit_t *)cp; local 256 dr_del_mlist_query(struct memlist *mlist, memquery_t *mp) argument 283 dr_mem_unit_t *mp; local 421 dr_mem_unit_t *mp = (dr_mem_unit_t *)devlist[d]; local 481 dr_mem_unit_t *mp = (dr_mem_unit_t *)devlist[d]; local 576 dr_disconnect_mem(dr_mem_unit_t *mp) argument 589 dr_init_mem_unit(dr_mem_unit_t *mp) argument 613 dr_init_mem_unit_data(dr_mem_unit_t *mp) argument [all...] |