/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | mc.c | 212 register Mc_t* mc; in mcopen() local 243 if (!(vm = vmopen(Vmdcheap, Vmbest, 0)) || !(mc = vmnewof(vm, 0, Mc_t, 1, 0))) in mcopen() 248 mc->vm = vm; in mcopen() 249 mc->cvt = (iconv_t)(-1); in mcopen() 256 if (!(sp = sfgetr(ip, 0, 0)) || !(mc->translation = vmstrdup(vm, sp))) in mcopen() 273 mc->nstrs = sfgetu(ip); in mcopen() 274 mc->nmsgs = sfgetu(ip); in mcopen() 275 mc->num = sfgetu(ip); in mcopen() 279 else if (!(mc->translation = vmnewof(vm, 0, char, 1, 0))) in mcopen() 286 if (!(mc->set = vmnewof(vm, 0, Mcset_t, mc->num + 1, 0))) in mcopen() [all …]
|
/illumos-gate/usr/src/uts/intel/io/mc-amd/ |
H A D | mcamd_drv.c | 102 mc_snapshot_destroy(mc_t *mc) in mc_snapshot_destroy() argument 106 if (mc->mc_snapshot == NULL) in mc_snapshot_destroy() 109 kmem_free(mc->mc_snapshot, mc->mc_snapshotsz); in mc_snapshot_destroy() 110 mc->mc_snapshot = NULL; in mc_snapshot_destroy() 111 mc->mc_snapshotsz = 0; in mc_snapshot_destroy() 112 mc->mc_snapshotgen++; in mc_snapshot_destroy() 116 mc_snapshot_update(mc_t *mc) in mc_snapshot_update() argument 120 if (mc->mc_snapshot != NULL) in mc_snapshot_update() 123 if (nvlist_pack(mc->mc_nvl, &mc->mc_snapshot, &mc->mc_snapshotsz, in mc_snapshot_update() 133 mc_t *mc; in mc_lookup_by_chipid() local [all …]
|
H A D | mcamd_pcicfg.c | 40 mccfgsetup(struct _mc_pcicfg_hdl *hdlp, mc_t *mc, enum mc_funcnum func) in mccfgsetup() argument 42 hdlp->cfh_mc = mc; in mccfgsetup() 45 if (mc->mc_funcs[func].mcf_devi == NULL) in mccfgsetup() 48 if (pci_config_setup(mc->mc_funcs[func].mcf_devi, &hdlp->cfh_hdl) != in mccfgsetup() 56 mc_pcicfg_setup(mc_t *mc, enum mc_funcnum func, mc_pcicfg_hdl_t *cookiep) in mc_pcicfg_setup() argument 62 if (mccfgsetup(hdlp, mc, func) == DDI_FAILURE) { in mc_pcicfg_setup() 96 mc_pcicfg_get32_nohdl(mc_t *mc, enum mc_funcnum func, off_t offset) in mc_pcicfg_get32_nohdl() argument 98 return ((*pci_getl_func)(0, MC_AMD_DEV_OFFSET + mc->mc_props.mcp_num, in mc_pcicfg_get32_nohdl() 103 mc_pcicfg_put32_nohdl(mc_t *mc, enum mc_funcnum func, off_t offset, in mc_pcicfg_put32_nohdl() argument 106 (*pci_putl_func)(0, MC_AMD_DEV_OFFSET + mc->mc_props.mcp_num, in mc_pcicfg_put32_nohdl()
|
H A D | mcamd_subr.c | 78 mc_t *mc; in mcamd_mc_next() local 85 mc = node2type(last, MC_NT_MC); in mcamd_mc_next() 87 return ((mcamd_node_t *)mc->mc_next); in mcamd_mc_next() 101 mc_t *mc; in mcamd_cs_next() local 112 mc = node2type(node, MC_NT_MC); in mcamd_cs_next() 113 retval = mc->mc_cslist; in mcamd_cs_next() 158 mc_t *mc; in mcamd_dimm_next() local 169 mc = node2type(node, MC_NT_MC); in mcamd_dimm_next() 170 retval = mc->mc_dimmlist; in mcamd_dimm_next() 566 mc_t *mc) in mc_ereport_dimm_resource() argument [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | vdev_mirror.c | 247 mirror_child_t *mc; in vdev_mirror_map_init() local 309 mc = &mm->mm_child[c]; in vdev_mirror_map_init() 311 mc->mc_vd = vdev_lookup_top(spa, DVA_GET_VDEV(&dva[c])); in vdev_mirror_map_init() 312 mc->mc_offset = DVA_GET_OFFSET(&dva[c]); in vdev_mirror_map_init() 345 mc = &mm->mm_child[c]; in vdev_mirror_map_init() 346 mc->mc_vd = vd->vdev_child[c]; in vdev_mirror_map_init() 347 mc->mc_offset = zio->io_offset; in vdev_mirror_map_init() 405 mirror_child_t *mc = zio->io_private; in vdev_mirror_child_done() local 407 mc->mc_error = zio->io_error; in vdev_mirror_child_done() 408 mc->mc_tried = 1; in vdev_mirror_child_done() [all …]
|
H A D | metaslab.c | 373 metaslab_class_t *mc; in metaslab_class_create() local 375 mc = kmem_zalloc(sizeof (metaslab_class_t), KM_SLEEP); in metaslab_class_create() 377 mc->mc_spa = spa; in metaslab_class_create() 378 mc->mc_rotor = NULL; in metaslab_class_create() 379 mc->mc_ops = ops; in metaslab_class_create() 380 mutex_init(&mc->mc_lock, NULL, MUTEX_DEFAULT, NULL); in metaslab_class_create() 381 mc->mc_metaslab_txg_list = multilist_create(sizeof (metaslab_t), in metaslab_class_create() 383 mc->mc_alloc_slots = kmem_zalloc(spa->spa_alloc_count * in metaslab_class_create() 385 mc->mc_alloc_max_slots = kmem_zalloc(spa->spa_alloc_count * in metaslab_class_create() 388 zfs_refcount_create_tracked(&mc->mc_alloc_slots[i]); in metaslab_class_create() [all …]
|
/illumos-gate/usr/src/common/mc/mc-amd/ |
H A D | mcamd_unumtopa.c | 47 mcamd_node_t *mc, *dimm; in mcamd_unumtopa() local 64 for (mc = mcamd_mc_next(hdl, root, NULL); mc != NULL; in mcamd_unumtopa() 65 mc = mcamd_mc_next(hdl, root, mc)) { in mcamd_unumtopa() 67 mc, MCAMD_PROP_NUM, &num, in mcamd_unumtopa() 68 mc, MCAMD_PROP_DRAMHOLE_SIZE, &holesz, in mcamd_unumtopa() 71 "failed to lookup num, dramhole for MC 0x%p\n", mc); in mcamd_unumtopa() 77 if (mc == NULL) { in mcamd_unumtopa() 89 for (dimm = mcamd_dimm_next(hdl, mc, NULL); dimm != NULL; in mcamd_unumtopa() 90 dimm = mcamd_dimm_next(hdl, mc, dimm)) { in mcamd_unumtopa() 109 mc, dimm, unump->unum_offset); in mcamd_unumtopa() [all …]
|
H A D | mcamd_patounum.c | 55 iaddr_gen(struct mcamd_hdl *hdl, mcamd_node_t *mc, uint64_t pa, in iaddr_gen() argument 62 mc, MCAMD_PROP_NUM, &mcnum, in iaddr_gen() 63 mc, MCAMD_PROP_BASE_ADDR, &base, in iaddr_gen() 64 mc, MCAMD_PROP_LIM_ADDR, &lim, in iaddr_gen() 65 mc, MCAMD_PROP_ILEN, &ilen, in iaddr_gen() 66 mc, MCAMD_PROP_ILSEL, &ilsel, in iaddr_gen() 67 mc, MCAMD_PROP_DRAMHOLE_SIZE, &holesz, in iaddr_gen() 186 cs_sparedto(struct mcamd_hdl *hdl, mcamd_node_t *cs, mcamd_node_t *mc) in cs_sparedto() argument 192 mc, MCAMD_PROP_BADCS, &badcsnum, in cs_sparedto() 193 mc, MCAMD_PROP_SPARECS, &sparecsnum, in cs_sparedto() [all …]
|
H A D | mcamd_rowcol.c | 60 getmcprops(struct mcamd_hdl *hdl, mcamd_node_t *mc, const char *caller, in getmcprops() argument 64 mc, MCAMD_PROP_NUM, &pp->num, in getmcprops() 65 mc, MCAMD_PROP_REV, &pp->rev, in getmcprops() 66 mc, MCAMD_PROP_ACCESS_WIDTH, &pp->width, in getmcprops() 67 mc, MCAMD_PROP_BASE_ADDR, &pp->base, in getmcprops() 68 mc, MCAMD_PROP_LIM_ADDR, &pp->lim, in getmcprops() 69 mc, MCAMD_PROP_CSBANKMAPREG, &pp->csbnkmap_reg, in getmcprops() 70 mc, MCAMD_PROP_ILEN, &pp->intlven, in getmcprops() 71 mc, MCAMD_PROP_ILSEL, &pp->intlvsel, in getmcprops() 72 mc, MCAMD_PROP_CSINTLVFCTR, &pp->csintlvfctr, in getmcprops() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/ |
H A D | msggen.c | 210 register Mc_t* mc; in main() local 273 if (!(mc = mcopen(sp))) in main() 278 for (set = 1; set <= mc->num; set++) in main() 279 if (mc->set[set].num) in main() 282 for (num = 1; num <= mc->set[set].num; num++) in main() 283 if (s = mc->set[set].msg[num]) in main() 289 if (*mc->translation) in main() 292 sfprintf(sfstdout, "%s", mc->translation); in main() 296 for (set = 1; set <= mc->num; set++) in main() 297 if (mc->set[set].num) in main() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/mac/ |
H A D | mac.c | 644 mac_cpus_t mc = srs.srs_cpu; in mac_srs_dcmd() local 660 addr, mci.mci_name, mc.mc_ncpus, mc.mc_rx_pollid, in mac_srs_dcmd() 661 mc.mc_rx_workerid, mc.mc_rx_intr_cpu, mc.mc_rx_fanout_cnt); in mac_srs_dcmd() 666 mac_cpus_t mc = srs.srs_cpu; in mac_srs_dcmd() local 688 0, mc.mc_tx_fanout_cpus[0], in mac_srs_dcmd() 689 mc.mc_tx_intr_cpu[0], in mac_srs_dcmd() 690 mc.mc_tx_retargeted_cpu[0]); in mac_srs_dcmd() 700 s_ringp, mc.mc_tx_fanout_cpus[i], in mac_srs_dcmd() 701 mc.mc_tx_intr_cpu[i], in mac_srs_dcmd() 702 mc.mc_tx_retargeted_cpu[i]); in mac_srs_dcmd() [all …]
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | mpo.c | 1462 mblock_alloc(mpo_config_t *mc, update_t utype, int nmblocks) in mblock_alloc() argument 1487 mc->mc_alloc_sz = allocsz; in mblock_alloc() 1491 mc->mc_alloc_sz = 0; in mblock_alloc() 1509 mc->mc_alloc_sz = 0; in mblock_alloc() 1511 mc->mc_mblocks = mb; in mblock_alloc() 1512 mc->mc_stripes = ms; in mblock_alloc() 1513 mc->mc_nmblocks = nmblocks; in mblock_alloc() 1514 mc->mc_nstripes = nstripes; in mblock_alloc() 1526 mblock_free(mpo_config_t *mc) in mblock_free() argument 1528 if (mc->mc_alloc_sz > 0) { in mblock_free() [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_mbx.c | 427 mbx_cmd_t mc = {0}; in ql_initialize_ip() local 428 mbx_cmd_t *mcp = &mc; in ql_initialize_ip() 499 mbx_cmd_t mc = {0}; in ql_shutdown_ip() local 500 mbx_cmd_t *mcp = &mc; in ql_shutdown_ip() 555 mbx_cmd_t mc = {0}; in ql_online_selftest() local 556 mbx_cmd_t *mcp = &mc; in ql_online_selftest() 597 mbx_cmd_t mc = {0}; in ql_loop_back() local 598 mbx_cmd_t *mcp = &mc; in ql_loop_back() 644 mbx_cmd_t mc = {0}; in ql_loop_back() local 645 mbx_cmd_t *mcp = &mc; in ql_loop_back() [all …]
|
/illumos-gate/usr/src/common/mc/imc/ |
H A D | imc_dump.c | 195 imc_dump_mc(imc_mc_t *mc) in imc_dump_mc() argument 202 fnvlist_add_boolean_value(nvl, "icn_ecc", mc->icn_ecc); in imc_dump_mc() 203 fnvlist_add_boolean_value(nvl, "icn_lockstep", mc->icn_lockstep); in imc_dump_mc() 204 fnvlist_add_boolean_value(nvl, "icn_closed", mc->icn_closed); in imc_dump_mc() 205 fnvlist_add_uint32(nvl, "icn_dimm_type", mc->icn_dimm_type); in imc_dump_mc() 207 for (i = 0; i < mc->icn_nchannels; i++) { in imc_dump_mc() 208 channels[i] = imc_dump_channel(&mc->icn_channels[i]); in imc_dump_mc() 211 for (i = 0; i < mc->icn_nchannels; i++) { in imc_dump_mc() 224 nvlist_t *mc[IMC_MAX_IMCPERSOCK]; in imc_dump_socket() local 243 mc[i] = imc_dump_mc(&sock->isock_imcs[i]); in imc_dump_socket() [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_macro5.c | 680 construct_at_path_from_parts(Dwarf_Macro_Context mc) in construct_at_path_from_parts() argument 682 if (mc->mc_file_path) { in construct_at_path_from_parts() 683 return mc->mc_file_path; in construct_at_path_from_parts() 685 if(!mc->mc_at_comp_dir || !mc->mc_at_comp_dir[0]) { in construct_at_path_from_parts() 686 return mc->mc_at_name; in construct_at_path_from_parts() 688 if (!mc->mc_at_name || !mc->mc_at_name[0]) { in construct_at_path_from_parts() 691 if(_dwarf_file_name_is_full_path((Dwarf_Small *)mc->mc_at_name)) { in construct_at_path_from_parts() 692 return mc->mc_at_name; in construct_at_path_from_parts() 695 mc->mc_file_path = construct_from_dir_and_name( in construct_at_path_from_parts() 696 mc->mc_at_comp_dir,mc->mc_at_name); in construct_at_path_from_parts() [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | list.c | 206 int tok, beg, mc, star, other, colmod, colresult; in markall() local 212 mc = 0; in markall() 227 mc++; in markall() 293 mc = 0; in markall() 298 mc++; in markall() 300 if (mc == 0) { in markall() 313 if ((np > namelist || colmod != 0) && mc == 0) in markall() 325 for (mc = 0, np = &namelist[0]; *np != NOSTR; np++) in markall() 328 mc++; in markall() 333 mc++; in markall() [all …]
|
/illumos-gate/usr/src/uts/intel/mc-amd/ |
H A D | Makefile | 32 MODULE = mc-amd 36 SRCDIR = $(UTSBASE)/intel/io/mc-amd 57 CPPFLAGS += -I$(SRCDIR) -I$(OBJS_DIR) -I$(SRC)/common/mc/mc-amd
|
/illumos-gate/usr/src/cmd/sendmail/cf/ |
H A D | Makefile | 48 $(ROOTETCMAILCF)/cf/sendmail.mc \ 50 $(ROOTETCMAILCF)/cf/submit.mc \ 139 cf/%.cf: cf/%.mc $(COMMONM4FILES) 174 $(RM) $(ROOTETCMAILCF)/cf/main.mc 175 $(SYMLINK) sendmail.mc $(ROOTETCMAILCF)/cf/main.mc 178 $(RM) $(ROOTETCMAILCF)/cf/subsidiary.mc 179 $(SYMLINK) sendmail.mc $(ROOTETCMAILCF)/cf/subsidiary.mc
|
/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgetzcent.c | 111 int mc; in parse_mlp_list() local 123 for (mc = 0; tokp != NULL; mc++) { in parse_mlp_list() 124 if (mc >= mmax) { in parse_mlp_list() 134 if (str_to_mlp(tokp, mlp + mc) == -1) { in parse_mlp_list() 141 if (mc >= mmax) { in parse_mlp_list() 150 (void) memset(mlp + mc, 0, sizeof (*mlp)); in parse_mlp_list()
|
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/ |
H A D | intel_nbdrv.c | 265 char *mc; in inb_mc_name() local 269 mc = "Intel 7300"; in inb_mc_name() 272 mc = "Intel 5400"; in inb_mc_name() 275 mc = "Intel 5400A"; in inb_mc_name() 278 mc = "Intel 5400B"; in inb_mc_name() 281 mc = "Intel 5100"; in inb_mc_name() 284 mc = "Intel 5000P"; in inb_mc_name() 287 mc = "Intel 5000V"; in inb_mc_name() 290 mc = "Intel 5000X"; in inb_mc_name() 293 mc = "Intel 5000Z"; in inb_mc_name() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/ |
H A D | krtld.c | 128 struct modctl mc; in modctls() local 130 (void) mdb_vread(&mc, sizeof (mc), addr); in modctls() 131 return (modctl_format(addr, &mc, NULL)); in modctls() 315 struct modctl mc; in modinfo() local 317 (void) mdb_vread(&mc, sizeof (mc), addr); in modinfo() 318 return (modinfo_format(addr, &mc, NULL)); in modinfo()
|
/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr_mem_acpi.c | 166 struct memlist *ml, *mc; in dr_attach_mem() local 189 for (mc = ml; mc; mc = mc->ml_next) { in dr_attach_mem() 194 (pfn_t)btop(mc->ml_address), in dr_attach_mem() 195 (pgcnt_t)btop(mc->ml_size)); in dr_attach_mem() 223 mp->sbm_cm.sbdev_id, mc->ml_address, mc->ml_size); in dr_attach_mem()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | catopen.c | 74 Mc_t* mc; in _ast_catopen() local 91 mc = mcopen(ip); in _ast_catopen() 93 if (mc) in _ast_catopen() 94 return (_ast_nl_catd)mc; in _ast_catopen()
|
/illumos-gate/usr/src/uts/common/io/iprb/ |
H A D | iprb.c | 499 iprb_mcast_t *mc; in iprb_destroy() local 520 while ((mc = list_head(&ip->mcast)) != NULL) { in iprb_destroy() 521 list_remove(&ip->mcast, mc); in iprb_destroy() 522 kmem_free(mc, sizeof (*mc)); in iprb_destroy() 816 iprb_mcast_t *mc; in iprb_set_multicast() local 838 for (mc = list_head(l), i = 0; mc; mc = list_next(l, mc), i++) { in iprb_set_multicast() 839 PUTCBEA(cb, CB_MCS_ADR_OFFSET + (i * 6), mc->addr); in iprb_set_multicast() 1252 iprb_mcast_t *mc; in iprb_m_multicst() local 1255 mc = kmem_alloc(sizeof (*mc), KM_NOSLEEP); in iprb_m_multicst() 1256 if (mc == NULL) { in iprb_m_multicst() [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | alloc.c | 49 struct stats *mt, *mc; in alloc_fini() local 52 mc = Malloccount; in alloc_fini() 58 stats_delete(mc); in alloc_fini()
|