/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_builtin.c | 104 fmd_builtin_loadall(fmd_modhash_t *mhp) argument 117 if (fmd_modhash_load(mhp, bp->bltin_name,
|
H A D | fmd_module.c | 1025 fmd_modhash_t *mhp = fmd_alloc(sizeof (fmd_modhash_t), FMD_SLEEP); local 1027 (void) pthread_rwlock_init(&mhp->mh_lock, NULL); 1028 mhp->mh_hashlen = fmd.d_str_buckets; 1029 mhp->mh_hash = fmd_zalloc(sizeof (void *) * mhp->mh_hashlen, FMD_SLEEP); 1030 mhp->mh_nelems = 0; 1032 return (mhp); 1036 fmd_modhash_destroy(fmd_modhash_t *mhp) argument 1041 for (i = 0; i < mhp->mh_hashlen; i++) { 1042 for (mp = mhp 1055 fmd_modhash_loaddir(fmd_modhash_t *mhp, const char *dir, const fmd_modops_t *ops, const char *suffix) argument 1086 fmd_modhash_loadall(fmd_modhash_t *mhp, const fmd_conf_path_t *pap, const fmd_modops_t *ops, const char *suffix) argument 1096 fmd_modhash_apply(fmd_modhash_t *mhp, void (*func)(fmd_module_t *)) argument 1114 fmd_modhash_tryapply(fmd_modhash_t *mhp, void (*func)(fmd_module_t *)) argument 1133 fmd_modhash_dispatch(fmd_modhash_t *mhp, fmd_event_t *ep) argument 1174 fmd_modhash_lookup(fmd_modhash_t *mhp, const char *name) argument 1197 fmd_modhash_load(fmd_modhash_t *mhp, const char *path, const fmd_modops_t *ops) argument 1248 fmd_modhash_unload(fmd_modhash_t *mhp, const char *name) argument [all...] |
H A D | fmd_xprt.c | 331 fmd_xprt_subscribe_modhash(fmd_xprt_impl_t *xip, fmd_modhash_t *mhp) argument 338 (void) pthread_rwlock_rdlock(&mhp->mh_lock); 340 for (i = 0; i < mhp->mh_hashlen; i++) { 341 for (mp = mhp->mh_hash[i]; mp != NULL; mp = mp->mod_next) 350 for (i = 0; i < mhp->mh_hashlen; i++) { 351 for (mp = mhp->mh_hash[i]; mp != NULL; mp = mp->mod_next) { 359 for (i = 0; i < mhp->mh_hashlen; i++) { 360 for (mp = mhp->mh_hash[i]; mp != NULL; mp = mp->mod_next) 364 (void) pthread_rwlock_unlock(&mhp->mh_lock);
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_set_med.c | 85 md_h_arr_t *mhp, 97 if (mhp->n_lst[i].a_cnt == 0) 100 for (j = 0; j < mhp->n_lst[i].a_cnt; j++) { 101 nm = mhp->n_lst[i].a_nm[j]; 83 validate_med_nodes( mdsetname_t *sp, md_h_arr_t *mhp, md_error_t *ep ) argument
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_module.c | 110 topo_modhash_lock(topo_modhash_t *mhp) argument 112 (void) pthread_mutex_lock(&mhp->mh_lock); 116 topo_modhash_unlock(topo_modhash_t *mhp) argument 118 (void) pthread_mutex_unlock(&mhp->mh_lock); 168 topo_modhash_t *mhp = thp->th_modhash; local 170 topo_modhash_lock(mhp); 171 mod = topo_modhash_lookup(mhp, name); 174 topo_modhash_unlock(mhp); 258 topo_modhash_t *mhp; local 260 if ((mhp 280 topo_modhash_t *mhp = thp->th_modhash; local 293 topo_modhash_lookup(topo_modhash_t *mhp, const char *name) argument 312 topo_modhash_t *mhp = thp->th_modhash; local 340 topo_modhash_t *mhp; local 381 topo_modhash_t *mhp = thp->th_modhash; local [all...] |
/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_wifi.c | 274 * fill in the provided `mhp'. Return an errno on failure. 278 mac_wifi_header_info(mblk_t *mp, void *pdata, mac_header_info_t *mhp) argument 317 mhp->mhi_origsap = ntohs(llc->illc_ether_type); 318 mhp->mhi_bindsap = mhp->mhi_origsap; 319 mhp->mhi_pktsize = 0; 320 mhp->mhi_hdrsize = (uintptr_t)llcp + sizeof (*llc) - 331 mhp->mhi_bindsap = DLS_SAP_LLC; 332 mhp->mhi_hdrsize -= sizeof (*llc); 333 mhp [all...] |
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_provider.c | 115 * return from mac_register(). Upon success (0 return value), the mhp 121 mac_register(mac_register_t *mregp, mac_handle_t *mhp) argument 438 *mhp = (mac_handle_t)mip;
|
H A D | mac_client.c | 318 mac_open(const char *macname, mac_handle_t *mhp) argument 343 *mhp = (mac_handle_t)mip; 354 *mhp = (mac_handle_t)mip; 369 mac_open_by_linkid(datalink_id_t linkid, mac_handle_t *mhp) argument 379 err = mac_open(dls_devnet_mac(dlh), mhp); 389 mac_open_by_linkname(const char *link, mac_handle_t *mhp) argument 396 return (mac_open_by_linkid(linkid, mhp));
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | modhash.c | 478 mod_hash_t *mhp, *mhpp; local 492 for (mhp = mh_head; mhp != NULL; mhp = mhp->mh_next) { 493 if (mhp == hash) { 494 mhpp->mh_next = mhp->mh_next; 497 mhpp = mhp;
|
H A D | mem_config.c | 769 struct mem_handle *mhp; local 771 mhp = kmem_zalloc(sizeof (struct mem_handle), KM_SLEEP); 772 mutex_init(&mhp->mh_mutex, NULL, MUTEX_DEFAULT, NULL); 774 mutex_enter(&mhp->mh_mutex); 776 mhp->mh_exthandle = (memhandle_t)(uintptr_t)(++handle_gen); 777 mhp->mh_next = mem_handle_head; 778 mem_handle_head = mhp; 781 return (mhp); 785 kphysm_free_mem_handle(struct mem_handle *mhp) argument 789 ASSERT(mutex_owned(&mhp 822 struct mem_handle *mhp; local 846 struct mem_handle *mhp; local 1089 struct mem_handle *mhp; local 1430 struct mem_handle *mhp; local 1495 struct mem_handle *mhp; local 1523 struct mem_handle *mhp; local 1596 delthr_get_freemem(struct mem_handle *mhp) argument 1671 struct mem_handle *mhp; local 1718 struct mem_handle *mhp; local 2430 struct mem_handle *mhp; local 2641 kphysm_del_cleanup(struct mem_handle *mhp) argument 2813 page_delete_collect( page_t *pp, struct mem_handle *mhp) argument 2840 transit_list_collect(struct mem_handle *mhp, int v) argument 2919 mem_del_stat_print_func(struct mem_handle *mhp) argument [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | sbd_mem.c | 61 static int sbd_reserve_mem_spans(memhandle_t *mhp, 1488 sbd_reserve_mem_spans(memhandle_t *mhp, struct memlist *ml) argument 1507 err = kphysm_del_span(*mhp, base, npgs);
|
H A D | sbd.c | 3945 sbd_get_memhandle(sbd_handle_t *hp, dev_info_t *dip, memhandle_t *mhp) argument 3968 *mhp = mp->sbm_memhandle;
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_mem.c | 67 static int dr_reserve_mem_spans(memhandle_t *mhp, struct memlist *mlist); 2010 dr_reserve_mem_spans(memhandle_t *mhp, struct memlist *ml) argument 2029 err = kphysm_del_span(*mhp, base, npgs);
|
/illumos-gate/usr/src/uts/sun4u/opl/io/ |
H A D | dr_mem.c | 77 static int dr_reserve_mem_spans(memhandle_t *mhp, 2082 dr_reserve_mem_spans(memhandle_t *mhp, struct memlist *ml) argument 2101 err = kphysm_del_span(*mhp, base, npgs);
|
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | sockmod_pfp.c | 1419 pfp_open_index(int index, mac_handle_t *mhp, mac_client_handle_t *mcip, argument 1455 *mhp = mh;
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_backup_reader.c | 1205 ndmp_metadata_header_ext_t *mhp; local 1216 mhp = mhd->ml_xhdr; 1217 mpp = &mhp->nh_property[mhp->nh_count]; 1219 if (mhp->nh_count * sizeof (ndmp_metadata_property_ext_t) + 1220 sizeof (ndmp_metadata_header_ext_t) > mhp->nh_total_bytes) 1225 mhp->nh_count++; 1241 sourcestr = mhp->nh_dataset; 1255 mhp->nh_count++; 1266 ndmp_metadata_header_ext_t *mhp; local 1361 ndmp_metadata_header_ext_t *mhp; local [all...] |
H A D | tlm_restore_writer.c | 2322 ndmp_metadata_header_t *mhp; local 2355 while ((mhp = (ndmp_metadata_header_t *)get_read_buffer(size, &rv, 2359 if (strncmp(mhp->nh_magic, ZFS_META_MAGIC, 2360 sizeof (mhp->nh_magic)) != 0 && 2361 strncmp(mhp->nh_magic, ZFS_META_MAGIC_EXT, 2362 sizeof (mhp->nh_magic)) != 0) { 2369 if (strncmp(mhp->nh_magic, ZFS_META_MAGIC_EXT, 2370 sizeof (mhp->nh_magic)) == 0) { 2371 mhpx = (ndmp_metadata_header_ext_t *)mhp; 2383 (void) memcpy(pp, (char *)mhp, (actual_siz 2511 ndmp_metadata_header_t *mhp; local [all...] |
/illumos-gate/usr/src/uts/common/io/lvm/md/ |
H A D | md_med.c | 1342 md_hi_t *mhp, 1355 mthap->mtha_mhp = mhp; 1362 mthap->mtha_a_cnt = mhp->a_cnt; 1372 mthap->mtha_a_args[j].mtaa_h_nm = mhp->a_nm[j]; 1373 mthap->mtha_a_args[j].mtaa_h_ip = mhp->a_ip[j]; 1374 mthap->mtha_a_args[j].mtaa_h_flags = mhp->a_flg; 1339 mtha_init( med_thr_t *mtp, med_thr_h_args_t *mthap, md_hi_t *mhp, char *setname, med_data_t *meddp, set_t setno, void (*mtaa_init_func)(med_thr_a_args_t *, med_thr_h_args_t *), int (*mtaa_err_func)(med_thr_a_args_t *) ) argument
|
/illumos-gate/usr/src/uts/sun4u/starfire/io/ |
H A D | idn_proto.c | 10492 idn_mboxhdr_t *mhp; local 10507 mhp = &mtp->mt_header; 10511 if (mhp != prev_mhp[channel]) { 10512 prev_mhp[channel] = mhp; 10514 proc, channel, IDN_GET_MBOXHDR_COOKIE(mhp), 10517 proc, channel, mhp->mh_svr_active_ptr, 10518 IDN_ADDR2OFFSET(&mhp->mh_svr_active)); 10520 proc, channel, mhp->mh_svr_ready_ptr, 10521 IDN_ADDR2OFFSET(&mhp->mh_svr_ready)); 10523 proc, channel, (int)mhp [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | sd.c | 5013 struct mode_header_grp2 *mhp = local 5016 bd_len = (mhp->bdesc_length_hi << 8) | mhp->bdesc_length_lo; 5091 struct mode_header_grp2 *mhp = local 5093 bd_len = (mhp->bdesc_length_hi << 8) | mhp->bdesc_length_lo; 9403 struct mode_header_grp2 *mhp; local 9457 mhp = (struct mode_header_grp2 *)header; 9458 bd_len = (mhp->bdesc_length_hi << 8) | mhp 9656 struct mode_header_grp2 *mhp; local [all...] |
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 6305 mhash_t *mhp; local 6321 mhp = s_calloc(1, sizeof (mhash_t)); 6341 mcp->mc_next = mhp->mh_hash[idx]; 6342 mhp->mh_hash[idx] = mcp; 6348 return (mhp); 6352 free_mnttab(mhash_t *mhp) argument 6358 while ((mcp = mhp->mh_hash[i]) != NULL) { 6359 mhp->mh_hash[i] = mcp->mc_next; 6368 assert(mhp->mh_hash[i] == NULL); 6370 free(mhp); 6374 search_hash(mhash_t *mhp, char *special, char **mntpt) argument 6460 process_slice_common(char *slice, FILE *tfp, mhash_t *mhp, char *tmpmnt) argument 6558 process_vtoc_slices( char *s0, struct vtoc *vtoc, FILE *tfp, mhash_t *mhp, char *tmpmnt) argument 6632 process_efi_slices( char *s0, struct dk_gpt *efi, FILE *tfp, mhash_t *mhp, char *tmpmnt) argument 6709 process_slice0(char *s0, FILE *tfp, mhash_t *mhp, char *tmpmnt) argument [all...] |