Home
last modified time | relevance | path

Searched refs:mc (Results 1 – 25 of 119) sorted by relevance

12345

/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dmc.c248 mc->vm = vm; in mcopen()
286 if (!(mc->set = vmnewof(vm, 0, Mcset_t, mc->num + 1, 0))) in mcopen()
289 return mc; in mcopen()
331 return mc; in mcopen()
351 …if (!mc || set < 0 || set > mc->num || num < 1 || num > mc->set[set].num || !(s = mc->set[set].msg… in mcget()
355 if ((p = sfstrtell(mc->tmp)) > sfstrsize(mc->tmp) / 2) in mcget()
361 iconv_write(mc->cvt, mc->tmp, &s, &n, NiL); in mcget()
393 if (set <= mc->num && num <= mc->set[set].num && (s = mc->set[set].msg[num])) in mcput()
409 mc->nmsgs -= mc->set[set].num - num; in mcput()
410 if (!(mc->set[set].num = num) && mc->num == set) in mcput()
[all …]
/illumos-gate/usr/src/uts/intel/io/mc-amd/
H A Dmcamd_drv.c108 kmem_free(mc->mc_snapshot, mc->mc_snapshotsz); in mc_snapshot_destroy()
122 if (nvlist_pack(mc->mc_nvl, &mc->mc_snapshot, &mc->mc_snapshotsz, in mc_snapshot_update()
132 mc_t *mc; in mc_lookup_by_chipid() local
136 for (mc = mc_list; mc != NULL; mc = mc->mc_next) { in mc_lookup_by_chipid()
1145 mc_t *mc; in mc_ioctl() local
1201 mc->mc_nvl = mc_nvl_create(mc); in mc_ioctl()
1235 mc_t *mc; in mc_getinfo() local
1336 mc_t *mc; in mc_create() local
1541 mc_t *mc; in mc_attach() local
1594 for (mc = mc_list; mc != NULL; mc = mc->mc_next) { in mc_attach()
[all …]
H A Dmcamd_pcicfg.c40 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 Dmcamd_subr.c78 mc_t *mc; in mcamd_mc_next() local
85 mc = node2type(last, MC_NT_MC); in mcamd_mc_next()
101 mc_t *mc; in mcamd_cs_next() local
113 retval = mc->mc_cslist; in mcamd_cs_next()
158 mc_t *mc; in mcamd_dimm_next() local
170 retval = mc->mc_dimmlist; in mcamd_dimm_next()
566 mc_t *mc) in mc_ereport_dimm_resource() argument
602 mc->smb_bboard, 3, in mc_ereport_cs_resource()
646 mc_t *mc) in mc_ereport_add_payload() argument
654 mc_fmri_create(mc_t *mc) in mc_fmri_create() argument
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_mirror.c247 mirror_child_t *mc; in vdev_mirror_map_init() local
408 mc->mc_tried = 1; in vdev_mirror_child_done()
409 mc->mc_skipped = 0; in vdev_mirror_child_done()
434 mc->mc_tried = 1; in vdev_mirror_scrub_done()
505 if (mc->mc_tried || mc->mc_skipped) in vdev_mirror_child_select()
508 if (mc->mc_vd == NULL || !vdev_readable(mc->mc_vd)) { in vdev_mirror_child_select()
522 mc->mc_load = vdev_mirror_load(mm, mc->mc_vd, mc->mc_offset); in vdev_mirror_child_select()
589 mc->mc_vd, mc->mc_offset, in vdev_mirror_io_start()
616 mc->mc_vd, mc->mc_offset, zio->io_abd, zio->io_size, in vdev_mirror_io_start()
704 mc->mc_vd, mc->mc_offset, zio->io_abd, zio->io_size, in vdev_mirror_io_done()
[all …]
H A Dmetaslab.c377 mc->mc_spa = spa; in metaslab_class_create()
379 mc->mc_ops = ops; in metaslab_class_create()
390 return (mc); in metaslab_class_create()
404 kmem_free(mc->mc_alloc_slots, mc->mc_spa->spa_alloc_count * in metaslab_class_destroy()
406 kmem_free(mc->mc_alloc_max_slots, mc->mc_spa->spa_alloc_count * in metaslab_class_destroy()
470 return (spa_deflate(mc->mc_spa) ? mc->mc_dspace : mc->mc_space); in metaslab_class_get_dspace()
729 mc->mc_groups++; in metaslab_group_alloc_update()
732 mc->mc_groups--; in metaslab_group_alloc_update()
807 mg->mg_class = mc; in metaslab_group_create()
890 mc->mc_rotor = mg; in metaslab_group_activate()
[all …]
/illumos-gate/usr/src/common/mc/mc-amd/
H A Dmcamd_unumtopa.c49 mcamd_node_t *mc, *dimm; in mcamd_unumtopa() local
66 for (mc = mcamd_mc_next(hdl, root, NULL); mc != NULL; in mcamd_unumtopa()
67 mc = mcamd_mc_next(hdl, root, mc)) { in mcamd_unumtopa()
69 mc, MCAMD_PROP_NUM, &num, in mcamd_unumtopa()
70 mc, MCAMD_PROP_DRAMHOLE_SIZE, &holesz, in mcamd_unumtopa()
73 "failed to lookup num, dramhole for MC 0x%p\n", mc); in mcamd_unumtopa()
79 if (mc == NULL) { in mcamd_unumtopa()
91 for (dimm = mcamd_dimm_next(hdl, mc, NULL); dimm != NULL; in mcamd_unumtopa()
92 dimm = mcamd_dimm_next(hdl, mc, dimm)) { in mcamd_unumtopa()
111 mc, dimm, unump->unum_offset); in mcamd_unumtopa()
[all …]
H A Dmcamd_patounum.c62 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()
239 mcamd_node_t *mc, *dimm; in unum_fill() local
245 mc, MCAMD_PROP_NUM, &chipnum, in unum_fill()
465 mc, MCAMD_PROP_NUM, &mcnum, in mc_bkdg_patounum()
697 mcamd_node_t *mc; in mcamd_patounum() local
711 for (mc = mcamd_mc_next(hdl, root, NULL); mc != NULL; in mcamd_patounum()
[all …]
H A Dmcamd_rowcol.c64 mc, MCAMD_PROP_NUM, &pp->num, in getmcprops()
65 mc, MCAMD_PROP_REV, &pp->rev, in getmcprops()
67 mc, MCAMD_PROP_BASE_ADDR, &pp->base, in getmcprops()
68 mc, MCAMD_PROP_LIM_ADDR, &pp->lim, in getmcprops()
70 mc, MCAMD_PROP_ILEN, &pp->intlven, in getmcprops()
71 mc, MCAMD_PROP_ILSEL, &pp->intlvsel, in getmcprops()
73 mc, MCAMD_PROP_BANKSWZL, &pp->bnkswzl, in getmcprops()
74 mc, MCAMD_PROP_SPARECS, &pp->sparecs, in getmcprops()
75 mc, MCAMD_PROP_BADCS, &pp->badcs, in getmcprops()
78 "props for mc 0x%p\n", caller, mc); in getmcprops()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/
H A Dmsggen.c210 register Mc_t* mc; in main() local
273 if (!(mc = mcopen(sp))) in main()
279 if (mc->set[set].num) in main()
289 if (*mc->translation) in main()
297 if (mc->set[set].num) in main()
347 mcclose(mc); in main()
362 if (!(mc = mcopen(sp))) in main()
392 if (num < mc->num && mc->set[num].num) in main()
394 mcput(mc, num, i, NiL); in main()
471 if (mcput(mc, set, num, s)) in main()
[all …]
H A Dmsgget.c52 register Mc_t* mc; in main() local
101 if (!(mc = mcopen(sp))) in main()
104 s = mcget(mc, set, num, msg); in main()
/illumos-gate/usr/src/cmd/mdb/common/modules/mac/
H A Dmac.c660 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()
689 mc.mc_tx_intr_cpu[0], in mac_srs_dcmd()
701 mc.mc_tx_intr_cpu[i], in mac_srs_dcmd()
708 mc.mc_tx_intr_cpu[i], mc.mc_tx_retargeted_cpu[i]); in mac_srs_dcmd()
797 mc.mc_rx_pollid, mc.mc_rx_intr_cpu); in mac_srs_dcmd()
800 0, 0, mc.mc_rx_pollid, mc.mc_rx_intr_cpu); in mac_srs_dcmd()
822 mc.mc_ncpus, mc.mc_rx_fanout_cnt); in mac_srs_dcmd()
823 if (mc.mc_ncpus == 0 && mc.mc_rx_fanout_cnt == 0) in mac_srs_dcmd()
832 mc.mc_ncpus, mc.mc_cpus, &len); in mac_srs_dcmd()
[all …]
/illumos-gate/usr/src/uts/sun4v/os/
H A Dmpo.c1491 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()
1530 kmem_free((caddr_t)mc->mc_mblocks, mc->mc_alloc_sz); in mblock_free()
1532 bzero(mc, sizeof (*mc)); in mblock_free()
1550 mpo_config = *mc; in mblock_install()
1575 mc->mc_nmblocks = 0; in mblock_update()
1584 mc->mc_nmblocks = 0; in mblock_update()
1626 mc->mc_nmblocks = 0; in mblock_update()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_mbx.c427 mbx_cmd_t mc = {0}; in ql_initialize_ip() local
500 mbx_cmd_t mc = {0}; in ql_shutdown_ip() local
556 mbx_cmd_t mc = {0}; in ql_online_selftest() local
598 mbx_cmd_t mc = {0}; in ql_loop_back() local
645 mbx_cmd_t mc = {0}; in ql_loop_back() local
716 mbx_cmd_t mc = {0}; in ql_echo() local
800 mbx_cmd_t mc = {0}; in ql_send_change_request() local
845 mbx_cmd_t mc = {0}; in ql_send_lfa() local
905 mbx_cmd_t mc = {0}; in ql_clear_aca() local
959 mbx_cmd_t mc = {0}; in ql_target_reset() local
[all …]
/illumos-gate/usr/src/common/mc/imc/
H A Dimc_dump.c195 imc_dump_mc(imc_mc_t *mc) in imc_dump_mc() argument
207 for (i = 0; i < mc->icn_nchannels; 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()
247 fnvlist_free(mc[i]); in imc_dump_socket()
476 imc_restore_mc(nvlist_t *nvl, imc_mc_t *mc) in imc_restore_mc() argument
482 &mc->icn_lockstep) != 0 || in imc_restore_mc()
484 &mc->icn_closed) != 0 || in imc_restore_mc()
486 &mc->icn_dimm_type) != 0 || in imc_restore_mc()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_macro5.c685 if(!mc->mc_at_comp_dir || !mc->mc_at_comp_dir[0]) { in construct_at_path_from_parts()
688 if (!mc->mc_at_name || !mc->mc_at_name[0]) { in construct_at_path_from_parts()
696 mc->mc_at_comp_dir,mc->mc_at_name); in construct_at_path_from_parts()
1534 if (!mc) { in dwarf_dealloc_macro_context()
1537 dbg = mc->mc_dbg; in dwarf_dealloc_macro_context()
1549 mc->mc_dbg = dbg; in _dwarf_macro_constructor()
1573 dealloc_macro_srcfiles(mc->mc_srcfiles, mc->mc_srcfiles_count); in _dwarf_macro_destructor()
1574 mc->mc_srcfiles = 0; in _dwarf_macro_destructor()
1578 free(mc->mc_ops); in _dwarf_macro_destructor()
1579 mc->mc_ops = 0; in _dwarf_macro_destructor()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dlist.c212 mc = 0; in markall()
227 mc++; in markall()
293 mc = 0; in markall()
298 mc++; in markall()
300 if (mc == 0) { in markall()
328 mc++; in markall()
333 mc++; in markall()
337 if (mc == 0) in markall()
345 mc = 0; in markall()
348 mc++; in markall()
[all …]
/illumos-gate/usr/src/uts/intel/mc-amd/
H A DMakefile32 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 DMakefile48 $(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 Dtsol_sgetzcent.c111 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 Dintel_nbdrv.c265 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()
296 mc = "Intel 5000"; in inb_mc_name()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/
H A Dkrtld.c128 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/contrib/ast/src/lib/libast/comp/
H A Dcatopen.c74 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/cmd/fm/eversholt/common/
H A Dalloc.c51 struct stats *mt, *mc; in alloc_fini() local
54 mc = Malloccount; in alloc_fini()
60 stats_delete(mc); in alloc_fini()
/illumos-gate/usr/src/uts/i86pc/io/dr/
H A Ddr_mem_acpi.c166 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()

12345