/titanic_50/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_mbx.c | 84 ql_mailbox_command(ql_adapter_state_t *vha, mbx_cmd_t *mcp) in ql_mailbox_command() argument 93 int mbx_cmd = mcp->mb[0]; in ql_mailbox_command() 108 EL(vha, "failed availability cmd=%xh\n", mcp->mb[0]); in ql_mailbox_command() 114 timer = (mcp->timeout + 20) * drv_usectohz(1000000); in ql_mailbox_command() 132 "cmd=%xh\n", mcp->mb[0]); in ql_mailbox_command() 135 EL(vha, "failed availability cmd=%xh\n", mcp->mb[0]); in ql_mailbox_command() 143 ha->mcp = mcp; in ql_mailbox_command() 146 data = mcp->out_mb; in ql_mailbox_command() 149 WRT16_IO_REG(ha, mailbox_in[cnt], mcp->mb[cnt]); in ql_mailbox_command() 169 timer = mcp->timeout * drv_usectohz(1000000); in ql_mailbox_command() [all …]
|
/titanic_50/usr/src/uts/sun4u/opl/io/ |
H A D | mc-opl.c | 73 static int mc_board_add(mc_opl_t *mcp); 74 static int mc_board_del(mc_opl_t *mcp); 75 static int mc_suspend(mc_opl_t *mcp, uint32_t flag); 76 static int mc_resume(mc_opl_t *mcp, uint32_t flag); 80 static void insert_mcp(mc_opl_t *mcp); 81 static void delete_mcp(mc_opl_t *mcp); 83 static int pa_to_maddr(mc_opl_t *mcp, uint64_t pa, mc_addr_t *maddr); 85 static int mc_rangecheck_pa(mc_opl_t *mcp, uint64_t pa); 91 int mc_get_mem_sid_dimm(mc_opl_t *mcp, char *dname, char *buf, 93 mc_dimm_info_t *mc_get_dimm_list(mc_opl_t *mcp); [all …]
|
/titanic_50/usr/src/uts/sun4u/opl/sys/ |
H A D | mc-opl.h | 149 #define IS_MIRROR(mcp, bn) ((mcp)->mc_bank[bn].mcb_status\ argument 200 #define MAC_PTRL_STAT(mcp, i) (mcp->mc_bank[i].mcb_reg_base) argument 201 #define MAC_PTRL_CNTL(mcp, i) (mcp->mc_bank[i].mcb_reg_base + 0x10) argument 202 #define MAC_PTRL_ERR_ADD(mcp, i) (mcp->mc_bank[i].mcb_reg_base + 0x20) argument 203 #define MAC_PTRL_ERR_LOG(mcp, i) (mcp->mc_bank[i].mcb_reg_base + 0x24) argument 204 #define MAC_MI_ERR_ADD(mcp, i) (mcp->mc_bank[i].mcb_reg_base + 0x28) argument 205 #define MAC_MI_ERR_LOG(mcp, i) (mcp->mc_bank[i].mcb_reg_base + 0x2c) argument 206 #define MAC_STATIC_ERR_ADD(mcp, i) (mcp->mc_bank[i].mcb_reg_base + 0x30) argument 207 #define MAC_STATIC_ERR_LOG(mcp, i) (mcp->mc_bank[i].mcb_reg_base + 0x34) argument 208 #define MAC_RESTART_ADD(mcp, i) (mcp->mc_bank[i].mcb_reg_base + 0x40) argument [all …]
|
/titanic_50/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_tab.c | 264 mdb_tab_command(mdb_tab_cookie_t *mcp, const char *buf) in mdb_tab_command() argument 291 (void) mdb_tab_complete_global(mcp, buf); in mdb_tab_command() 315 (void) mdb_tab_complete_dcmd(mcp, dcmd); in mdb_tab_command() 317 mdb_call_tab(cp, mcp, flags, argc, argv); in mdb_tab_command() 320 return (mdb_tab_size(mcp)); in mdb_tab_command() 327 mdb_tab_cookie_t *mcp = (mdb_tab_cookie_t *)arg; in tab_complete_dcmd() local 339 mdb_tab_insert(mcp, idcp->idc_name); in tab_complete_dcmd() 344 mdb_tab_complete_dcmd(mdb_tab_cookie_t *mcp, const char *dcmd) in mdb_tab_complete_dcmd() argument 347 mdb_tab_setmbase(mcp, dcmd); in mdb_tab_complete_dcmd() 348 mdb_nv_sort_iter(&mdb.m_dcmds, tab_complete_dcmd, mcp, in mdb_tab_complete_dcmd() [all …]
|
H A D | mdb_help.c | 257 cmd_help_tab(mdb_tab_cookie_t *mcp, uint_t flags, int argc, in cmd_help_tab() argument 267 return (mdb_tab_complete_dcmd(mcp, NULL)); in cmd_help_tab() 269 return (mdb_tab_complete_dcmd(mcp, argv[0].a_un.a_str)); in cmd_help_tab()
|
H A D | mdb_print.c | 222 cmd_sizeof_tab(mdb_tab_cookie_t *mcp, uint_t flags, int argc, in cmd_sizeof_tab() argument 232 return (mdb_tab_complete_type(mcp, NULL, MDB_TABC_NOPOINT)); in cmd_sizeof_tab() 238 return (mdb_tab_complete_type(mcp, tn, MDB_TABC_NOPOINT)); in cmd_sizeof_tab() 2078 cmd_print_tab_common(mdb_tab_cookie_t *mcp, uint_t flags, int argc, in cmd_print_tab_common() argument 2094 return (mdb_tab_complete_type(mcp, NULL, MDB_TABC_NOPOINT | in cmd_print_tab_common() 2101 return (mdb_tab_complete_type(mcp, tn, MDB_TABC_NOPOINT | in cmd_print_tab_common() 2105 return (mdb_tab_complete_member(mcp, tn, NULL)); in cmd_print_tab_common() 2201 return (mdb_tab_complete_member_by_id(mcp, rid, in cmd_print_tab_common() 2212 return (mdb_tab_complete_member_by_id(mcp, rid, member)); in cmd_print_tab_common() 2216 cmd_print_tab(mdb_tab_cookie_t *mcp, uint_t flags, int argc, in cmd_print_tab() argument [all …]
|
/titanic_50/usr/src/cmd/mdb/common/modules/krtld/ |
H A D | krtld.c | 91 const struct modctl *mcp = (const struct modctl *)data; in modctl_format() local 95 (uintptr_t)mcp->mod_filename) == -1) in modctl_format() 98 if (mcp->mod_busy) in modctl_format() 100 if (mcp->mod_want) in modctl_format() 102 if (mcp->mod_prim) in modctl_format() 104 if (mcp->mod_loaded) in modctl_format() 106 if (mcp->mod_installed) in modctl_format() 111 (uintptr_t)addr, (uintptr_t)mcp->mod_mp, bits, mcp->mod_loadflags, in modctl_format() 112 mcp->mod_ref, name); in modctl_format() 262 const struct modctl *mcp = (const struct modctl *)data; in modinfo_format() local [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | modconf.c | 401 struct modctl *mcp; in mod_modname() local 403 if ((mcp = mod_getctl(modlp)) == NULL) in mod_modname() 406 return (mcp->mod_modname); in mod_modname() 437 struct modctl *mcp; in mod_infodrv() local 440 if ((mcp = mod_getctl(modlp)) == NULL) { in mod_infodrv() 445 mod_name = mcp->mod_modname; in mod_infodrv() 471 struct modctl *mcp; in mod_installdacf() local 473 if ((mcp = mod_getctl(modlp)) == NULL) in mod_installdacf() 475 return (dacf_module_register(mcp->mod_modname, modl->dacf_dacfsw)); in mod_installdacf() 482 struct modctl *mcp; in mod_removedacf() local [all …]
|
H A D | modsubr.c | 823 struct modctl *mcp = &modules; in mod_containing_pc() local 826 if (mcp->mod_mp != NULL && in mod_containing_pc() 827 (size_t)pc - (size_t)mcp->mod_text < mcp->mod_text_size) in mod_containing_pc() 828 return (mcp->mod_modname); in mod_containing_pc() 829 } while ((mcp = mcp->mod_next) != &modules); in mod_containing_pc()
|
H A D | modsysfile.c | 504 struct modcmd *mcp; in do_sysfile_cmd() local 511 for (mcp = modcmd; mcp->mc_cmdname != NULL; mcp++) { in do_sysfile_cmd() 512 if (strcmp(mcp->mc_cmdname, cmd) == 0) in do_sysfile_cmd() 520 switch (sysp->sys_type = mcp->mc_type) { in do_sysfile_cmd() 965 struct modcmd *mcp; in sysparam_type_to_str() local 967 for (mcp = modcmd; mcp->mc_cmdname != NULL; mcp++) { in sysparam_type_to_str() 968 if (mcp->mc_type == type) in sysparam_type_to_str() 971 ASSERT(mcp->mc_type == type); in sysparam_type_to_str() 974 return ((++mcp)->mc_cmdname); /* lower case */ in sysparam_type_to_str()
|
/titanic_50/usr/src/common/mc/mc-amd/ |
H A D | mcamd_rowcol.c | 436 struct mcprops mcp; in mc_pa_to_offset() local 441 if (getmcprops(hdl, mc, "mc_dimm_offset", &mcp) < 0 || in mc_pa_to_offset() 445 csmode = MC_CS_MODE(mcp.csbnkmap_reg, csp.num); in mc_pa_to_offset() 447 if (iaddr_to_rcb(hdl, csmode, &mcp, iaddr, &rowaddr, in mc_pa_to_offset() 488 struct mcprops mcp; in mc_offset_to_pa() local 503 if (getmcprops(hdl, mc, "mc_offset_to_pa", &mcp) < 0) in mc_offset_to_pa() 506 maskhi_hi = MC_CSMASKHI_HIBIT(mcp.rev); in mc_offset_to_pa() 507 maskhi_lo = MC_CSMASKHI_LOBIT(mcp.rev); in mc_offset_to_pa() 508 masklo_hi = MC_CSMASKLO_HIBIT(mcp.rev); in mc_offset_to_pa() 509 masklo_lo = MC_CSMASKLO_LOBIT(mcp.rev); in mc_offset_to_pa() [all …]
|
/titanic_50/usr/src/uts/sun4u/starcat/io/ |
H A D | dman_domain.c | 491 man_get_iosram(manc_t *mcp) in man_get_iosram() argument 495 if (mcp == NULL) in man_get_iosram() 498 status = iosram_rd(IOSRAM_KEY_MANC, 0, sizeof (manc_t), (caddr_t)mcp); in man_get_iosram() 506 MAN_DBGCALL(MAN_PATH, man_print_manc(mcp)); in man_get_iosram() 508 if (mcp->manc_magic != IOSRAM_KEY_MANC) { in man_get_iosram() 510 " expected(0x%x)\n", mcp->manc_magic, IOSRAM_KEY_MANC); in man_get_iosram() 512 } else if (mcp->manc_version != MANC_VERSION) { in man_get_iosram() 514 " got(0x%x) expected(0x%x)\n", mcp->manc_version, in man_get_iosram() 548 man_get_iosram(manc_t *mcp) in man_get_iosram() argument 552 if (mcp == NULL) in man_get_iosram() [all …]
|
/titanic_50/usr/src/uts/intel/io/mc-amd/ |
H A D | mcamd_drv.c | 535 mc_props_t *mcp = &mc->mc_props; in mc_dimmlist_create() local 536 uint32_t rev = mcp->mcp_rev; in mc_dimmlist_create() 578 if (mcdcfg_lookup(rev, mcp->mcp_mod64mux, mcp->mcp_accwidth, in mc_dimmlist_create() 682 mc_props_t *mcp = &mc->mc_props; in mc_mkprops_addrmap() local 701 mcp->mcp_base = MC_DRAMBASE(&basereg); in mc_mkprops_addrmap() 702 mcp->mcp_lim = MC_DRAMLIM(&limreg); in mc_mkprops_addrmap() 703 mcp->mcp_ilen = MCREG_FIELD_CMN(&basereg, IntlvEn); in mc_mkprops_addrmap() 704 mcp->mcp_ilsel = MCREG_FIELD_CMN(&limreg, IntlvSel); in mc_mkprops_addrmap() 718 mcp->mcp_dramhole_size = MC_DRAMHOLE_SIZE(&hole); in mc_mkprops_addrmap() 785 mc_props_t *mcp = &mc->mc_props; in mc_mkprops_dramctl() local [all …]
|
/titanic_50/usr/src/uts/i86xpv/os/ |
H A D | xpv_panic.c | 817 struct modctl *mcp; in init_xen_module() local 834 mcp = kmem_zalloc(sizeof (*mcp), KM_SLEEP); in init_xen_module() 835 mcp->mod_modname = kobj_zalloc(strlen(XPV_MODNAME) + 1, KM_SLEEP); in init_xen_module() 836 (void) strcpy(mcp->mod_modname, XPV_MODNAME); in init_xen_module() 837 mcp->mod_filename = kobj_zalloc(strlen(XPV_FILENAME) + 1, KM_SLEEP); in init_xen_module() 838 (void) strcpy(mcp->mod_filename, XPV_FILENAME); in init_xen_module() 839 mcp->mod_inprogress_thread = (kthread_id_t)-1; in init_xen_module() 840 mcp->mod_ref = 1; in init_xen_module() 841 mcp->mod_loaded = 1; in init_xen_module() 842 mcp->mod_loadcnt = 1; in init_xen_module() [all …]
|
/titanic_50/usr/src/uts/common/io/comstar/port/qlt/ |
H A D | qlt.c | 66 void qlt_free_mailbox_command(qlt_state_t *qlt, mbox_cmd_t *mcp); 67 static fct_status_t qlt_mailbox_command(qlt_state_t *qlt, mbox_cmd_t *mcp); 1032 mbox_cmd_t *mcp; in qlt_info() local 1047 mcp = qlt_alloc_mailbox_command(qlt, 156); in qlt_info() 1048 if (mcp == NULL) { in qlt_info() 1055 mcp->to_fw[0] = MBC_GET_STATUS_COUNTS; in qlt_info() 1056 mcp->to_fw[8] = 156/4; in qlt_info() 1057 mcp->to_fw_mask |= BIT_1 | BIT_8; in qlt_info() 1058 mcp->from_fw_mask |= BIT_1 | BIT_2; in qlt_info() 1060 ret = qlt_mailbox_command(qlt, mcp); in qlt_info() [all …]
|
/titanic_50/usr/src/lib/librestart/common/ |
H A D | librestart.c | 2038 lookup_pwd(struct method_context *mcp) in lookup_pwd() argument 2042 if (mcp->pwbuf != NULL && mcp->pwd.pw_uid == mcp->uid) in lookup_pwd() 2045 if (mcp->pwbuf == NULL) { in lookup_pwd() 2046 mcp->pwbufsz = sysconf(_SC_GETPW_R_SIZE_MAX); in lookup_pwd() 2047 assert(mcp->pwbufsz >= 0); in lookup_pwd() 2048 mcp->pwbuf = malloc(mcp->pwbufsz); in lookup_pwd() 2049 if (mcp->pwbuf == NULL) in lookup_pwd() 2055 pwdp = getpwuid_r(mcp->uid, &mcp->pwd, mcp->pwbuf, in lookup_pwd() 2056 mcp->pwbufsz); in lookup_pwd() 2061 free(mcp->pwbuf); in lookup_pwd() [all …]
|
/titanic_50/usr/src/cmd/svc/startd/ |
H A D | method.c | 446 struct method_context *mcp, uint8_t need_session) in exec_method() argument 466 rsmc_errno = restarter_set_method_context(mcp, &errf); in exec_method() 509 mcp->resource_pool); in exec_method() 536 strerror(rsmc_errno), mcp->working_dir); in exec_method() 592 nenv = set_smf_env(mcp->env, mcp->env_sz, NULL, inst, in exec_method() 668 struct method_context *mcp; in method_run() local 814 inst->ri_m_inst, snap, mname, method, &mcp); in method_run() 827 restarter_free_method_context(mcp); in method_run() 858 restarter_free_method_context(mcp); in method_run() 877 restarter_free_method_context(mcp); in method_run() [all …]
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/qlge/ |
H A D | qlge_mpi.c | 1191 mbx_cmd_t *mcp = &mc; in ql_read_risc_ram() local 1198 mcp->mb[0] = MBC_DUMP_RISC_RAM /* 0x0C */; in ql_read_risc_ram() 1199 mcp->mb[1] = LSW(risc_address); in ql_read_risc_ram() 1200 mcp->mb[2] = MSW(LSD(bp)); in ql_read_risc_ram() 1201 mcp->mb[3] = LSW(LSD(bp)); in ql_read_risc_ram() 1202 mcp->mb[4] = MSW(word_count); in ql_read_risc_ram() 1203 mcp->mb[5] = LSW(word_count); in ql_read_risc_ram() 1204 mcp->mb[6] = MSW(MSD(bp)); in ql_read_risc_ram() 1205 mcp->mb[7] = LSW(MSD(bp)); in ql_read_risc_ram() 1206 mcp->mb[8] = MSW(risc_address); in ql_read_risc_ram() [all …]
|
/titanic_50/usr/src/uts/sparc/syscall/ |
H A D | getcontext.c | 125 mcontext_t *mcp = &ucp->uc_mcontext; in restorecontext() local 142 if (mcp->gwins != 0) in restorecontext() 143 setgwins(lwp, mcp->gwins); in restorecontext() 144 setgregs(lwp, mcp->gregs); in restorecontext() 146 setasrs(lwp, mcp->asrs); in restorecontext() 156 setfpasrs(lwp, mcp->asrs); in restorecontext()
|
/titanic_50/usr/src/uts/common/crypto/core/ |
H A D | kcf_cryptoadm.c | 759 struct modctl *mcp; in crypto_load_soft_disabled() local 762 if ((mcp = mod_hold_by_name(name)) != NULL) { in crypto_load_soft_disabled() 763 mcp->mod_loadflags |= MOD_NOAUTOUNLOAD; in crypto_load_soft_disabled() 766 if (!mcp->mod_installed) in crypto_load_soft_disabled() 768 mod_release_mod(mcp); in crypto_load_soft_disabled() 796 struct modctl *mcp; in crypto_unload_soft_module() local 810 if ((mcp = mod_hold_by_name(name)) != NULL) { in crypto_unload_soft_module() 811 mcp->mod_loadflags &= ~(MOD_NOAUTOUNLOAD); in crypto_unload_soft_module() 812 mod_release_mod(mcp); in crypto_unload_soft_module()
|
H A D | kcf_mech_tabs.c | 854 struct modctl *mcp; in crypto_mech2id_common() local 868 (mcp = mod_hold_by_name(module_name)) == NULL) { in crypto_mech2id_common() 874 mcp->mod_loadflags |= MOD_NOAUTOUNLOAD; in crypto_mech2id_common() 877 if (!mcp->mod_installed) in crypto_mech2id_common() 879 mod_release_mod(mcp); in crypto_mech2id_common()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | pppoec.c | 715 uchar_t *mcp; in parse_filter() local 743 mcp = sfnew->sf_mask.ether_addr_octet; in parse_filter() 745 mcp[0] = mcp[1] = mcp[2] = mcp[3] = mcp[4] = mcp[5] = 0xFF; in parse_filter() 756 *mcp++ = *ucp++ = 0; in parse_filter() 767 *mcp++ = 0xFF; in parse_filter()
|
H A D | options.c | 613 uchar_t *mcp; in set_client() local 628 mcp = mask.ether_addr_octet; in set_client() 629 mcp[0] = mcp[1] = mcp[2] = mcp[3] = mcp[4] = mcp[5] = 0xFF; in set_client() 636 *mcp++ = *ucp++ = 0; in set_client() 647 *mcp++ = 0xFF; in set_client()
|
/titanic_50/exception_lists/ |
H A D | hdrchk | 335 usr/src/uts/common/io/bnxe/577xx/hsi/mcp/append.h 336 usr/src/uts/common/io/bnxe/577xx/hsi/mcp/bdn.h 337 usr/src/uts/common/io/bnxe/577xx/hsi/mcp/code_swap_def.h 338 usr/src/uts/common/io/bnxe/577xx/hsi/mcp/dev_info.h 339 usr/src/uts/common/io/bnxe/577xx/hsi/mcp/mac_drv_info.h 340 usr/src/uts/common/io/bnxe/577xx/hsi/mcp/mac_stats.h 341 usr/src/uts/common/io/bnxe/577xx/hsi/mcp/mac_stx.h 342 usr/src/uts/common/io/bnxe/577xx/hsi/mcp/mcp_fio.h 343 usr/src/uts/common/io/bnxe/577xx/hsi/mcp/mcp_shmem.h 344 usr/src/uts/common/io/bnxe/577xx/hsi/mcp/multi_thread_def.h [all …]
|
/titanic_50/usr/src/uts/sun4u/io/ |
H A D | mc-us3i.c | 111 static void *mcp; variable 178 if ((error = ddi_soft_state_init(&mcp, in _init() 199 ddi_soft_state_fini(&mcp); in _fini() 232 if (ddi_soft_state_zalloc(mcp, instance) != DDI_SUCCESS) in mc_attach() 235 softsp = ddi_get_soft_state(mcp, instance); in mc_attach() 336 ddi_soft_state_free(mcp, instance); in mc_attach() 351 softsp = ddi_get_soft_state(mcp, instance); in mc_detach() 386 ddi_soft_state_free(mcp, instance); in mc_detach()
|