/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hpi_vmac.c | 67 vmac_tx_cfg_t cfg; in hpi_vmac_tx_config() local 76 HXGE_REG_RD64(handle, VMAC_TX_CFG, &cfg.value); in hpi_vmac_tx_config() 81 cfg.bits.tx_en = 1; in hpi_vmac_tx_config() 83 cfg.bits.crc_insert = 1; in hpi_vmac_tx_config() 85 cfg.bits.tx_pad = 1; in hpi_vmac_tx_config() 87 cfg.bits.tx_max_frame_length = max_frame_length; in hpi_vmac_tx_config() 91 cfg.bits.tx_en = 0; in hpi_vmac_tx_config() 93 cfg.bits.crc_insert = 0; in hpi_vmac_tx_config() 95 cfg.bits.tx_pad = 0; in hpi_vmac_tx_config() 99 cfg.bits.tx_en = 1; in hpi_vmac_tx_config() [all …]
|
H A D | hpi_rxdma.c | 65 rdc_rx_cfg1_t cfg; in hpi_rxdma_cfg_rdc_wait_for_qst() local 69 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_wait_for_qst() 71 while ((count--) && (cfg.bits.qst == 0)) { in hpi_rxdma_cfg_rdc_wait_for_qst() 73 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_wait_for_qst() 76 if (cfg.bits.qst == 0) in hpi_rxdma_cfg_rdc_wait_for_qst() 86 rdc_rx_cfg1_t cfg; in hpi_rxdma_cfg_rdc_ctl() local 99 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_ctl() 100 cfg.bits.enable = 1; in hpi_rxdma_cfg_rdc_ctl() 101 RXDMA_REG_WRITE64(handle, RDC_RX_CFG1, rdc, cfg.value); in hpi_rxdma_cfg_rdc_ctl() 104 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value); in hpi_rxdma_cfg_rdc_ctl() [all …]
|
H A D | hpi_txdma.c | 91 tdc_tdr_cfg_t cfg; in hpi_txdma_channel_control() local 102 cfg.value = 0; in hpi_txdma_channel_control() 103 TXDMA_REG_READ64(handle, TDC_TDR_CFG, channel, &cfg.value); in hpi_txdma_channel_control() 104 cfg.bits.reset = 1; in hpi_txdma_channel_control() 105 TXDMA_REG_WRITE64(handle, TDC_TDR_CFG, channel, cfg.value); in hpi_txdma_channel_control() 109 cfg.value = 0; in hpi_txdma_channel_control() 110 TXDMA_REG_READ64(handle, TDC_TDR_CFG, channel, &cfg.value); in hpi_txdma_channel_control() 111 cfg.bits.enable = 1; in hpi_txdma_channel_control() 112 TXDMA_REG_WRITE64(handle, TDC_TDR_CFG, channel, cfg.value); in hpi_txdma_channel_control() 120 cfg.value = 0; in hpi_txdma_channel_control() [all …]
|
/illumos-gate/usr/src/test/libc-tests/cfg/ |
H A D | Makefile | 20 compilation.cfg \ 22 symbols/assert_h.cfg \ 23 symbols/ctype_h.cfg \ 24 symbols/dirent_h.cfg \ 25 symbols/fcntl_h.cfg \ 26 symbols/locale_h.cfg \ 27 symbols/math_h.cfg \ 28 symbols/netdb_h.cfg \ 29 symbols/pthread_h.cfg \ 30 symbols/signal_h.cfg \ [all …]
|
/illumos-gate/usr/src/lib/librstp/common/ |
H A D | stp_in.h | 79 #define CHECK_BRIDGE_CONFIG(cfg) \ argument 80 (2 * (cfg.forward_delay - 1) >= cfg.max_age && \ 81 cfg.max_age >= 2 * (cfg.hello_time + 1)) 86 #define NO_MAXAGE(cfg) ((cfg.forward_delay - 1) < (cfg.hello_time + 1)) argument 87 #define MIN_FWDELAY_NOM(cfg) \ argument 88 (cfg.hello_time < MIN_BR_FWDELAY - 2 ? MIN_BR_FWDELAY : \ 89 cfg.hello_time + 2) 90 #define MAX_HELLOTIME_NOM(cfg) \ argument 91 (cfg.forward_delay > MAX_BR_HELLOT + 2 ? MAX_BR_HELLOT : \ 92 cfg.forward_delay - 2) [all …]
|
/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/ |
H A D | cpuid_ioctl.c | 44 struct vm_vcpu_cpuid_config cfg = { 0 }; in main() local 47 if (ioctl(vmfd, VM_GET_CPUID, &cfg) != 0) { in main() 50 if (cfg.vvcc_flags != VCC_FLAG_LEGACY_HANDLING) { in main() 55 cfg.vvcc_flags = ~VCC_FLAG_LEGACY_HANDLING; in main() 56 if (ioctl(vmfd, VM_SET_CPUID, &cfg) == 0) { in main() 67 cfg.vvcc_flags = VCC_FLAG_LEGACY_HANDLING; in main() 68 cfg.vvcc_nent = 1; in main() 69 cfg.vvcc_entries = entries; in main() 70 if (ioctl(vmfd, VM_SET_CPUID, &cfg) == 0) { in main() 76 cfg.vvcc_flags = 0; in main() [all …]
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_prop.c | 60 static int ndmpd_config_update(ndmpd_cfg_param_t *cfg, char *value); 105 ndmpd_cfg_param_t *cfg; in ndmpd_load_prop() local 109 cfg = &ndmpd_cfg_table[id]; in ndmpd_load_prop() 110 if ((ndmp_get_prop(cfg->sc_name, &value)) == -1) { in ndmpd_load_prop() 112 cfg->sc_name, ndmp_strerror(ndmp_errno)); in ndmpd_load_prop() 122 if ((cfg->sc_flags & NDMP_CF_DEFINED) || value) { in ndmpd_load_prop() 123 if (ndmpd_config_update(cfg, value)) { in ndmpd_load_prop() 140 ndmpd_config_update(ndmpd_cfg_param_t *cfg, char *value) in ndmpd_config_update() argument 148 if (cfg->sc_value) { in ndmpd_config_update() 149 curval = realloc(cfg->sc_value, (len + 1)); in ndmpd_config_update() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_ioport.c | 74 vm_inout_init(struct vm *vm, struct ioport_config *cfg) in vm_inout_init() argument 84 VERIFY0(cfg->iop_entries); in vm_inout_init() 85 VERIFY0(cfg->iop_count); in vm_inout_init() 115 cfg->iop_entries = ents; in vm_inout_init() 116 cfg->iop_count = ndefault; in vm_inout_init() 120 vm_inout_cleanup(struct vm *vm, struct ioport_config *cfg) in vm_inout_cleanup() argument 122 VERIFY(cfg->iop_entries); in vm_inout_cleanup() 123 VERIFY(cfg->iop_count); in vm_inout_cleanup() 125 kmem_free(cfg->iop_entries, in vm_inout_cleanup() 126 sizeof (ioport_entry_t) * cfg->iop_count); in vm_inout_cleanup() [all …]
|
H A D | vmm_cpuid.c | 119 cpuid_find_entry(const vcpu_cpuid_config_t *cfg, uint32_t func, uint32_t idx) in cpuid_find_entry() argument 123 (cfg->vcc_flags & VCC_FLAG_INTEL_FALLBACK) != 0; in cpuid_find_entry() 126 ASSERT0(cfg->vcc_flags & VCC_FLAG_LEGACY_HANDLING); in cpuid_find_entry() 128 for (uint_t i = 0; i < cfg->vcc_nent; i++) { in cpuid_find_entry() 129 const struct vcpu_cpuid_entry *ent = &cfg->vcc_entries[i]; in cpuid_find_entry() 188 const vcpu_cpuid_config_t *cfg = vm_cpuid_config(vm, vcpuid); in vcpu_emulate_cpuid() local 196 if ((cfg->vcc_flags & VCC_FLAG_LEGACY_HANDLING) != 0) { in vcpu_emulate_cpuid() 209 const struct vcpu_cpuid_entry *ent = cpuid_find_entry(cfg, *rax, *rcx); in vcpu_emulate_cpuid() 283 vcpu_cpuid_config_t *cfg = vm_cpuid_config(vm, vcpuid); in vm_set_cpuid() local 286 vcpu_cpuid_cleanup(cfg); in vm_set_cpuid() [all …]
|
/illumos-gate/usr/src/lib/libiscsit/common/ |
H A D | libiscsit.h | 119 it_config_load(it_config_t **cfg); 140 it_config_commit(it_config_t *cfg); 165 it_config_setprop(it_config_t *cfg, nvlist_t *proplist, nvlist_t **errlist); 176 it_config_free(it_config_t *cfg); 207 it_tgt_create(it_config_t *cfg, it_tgt_t **tgt, char *tgt_name); 233 it_tgt_setprop(it_config_t *cfg, it_tgt_t *tgt, nvlist_t *proplist, 258 it_tgt_delete(it_config_t *cfg, it_tgt_t *tgt, boolean_t force); 290 it_tpgt_create(it_config_t *cfg, it_tgt_t *tgt, it_tpgt_t **tpgt, 309 it_tpgt_delete(it_config_t *cfg, it_tgt_t *tgt, it_tpgt_t *tpgt); 339 it_tpg_create(it_config_t *cfg, it_tpg_t **tpg, char *tpg_name, [all …]
|
H A D | libiscsit.c | 119 it_config_load(it_config_t **cfg) in it_config_load() argument 126 if (!cfg) { in it_config_load() 130 *cfg = NULL; in it_config_load() 146 *cfg = newcfg; in it_config_load() 175 it_config_commit(it_config_t *cfg) in it_config_commit() argument 185 if (!cfg) { in it_config_commit() 189 ret = it_config_to_nv(cfg, &cfgnv); in it_config_commit() 242 tgtp = cfg->config_tgt_list; in it_config_commit() 259 ret = it_config_to_nv(cfg, &cfgnv); in it_config_commit() 276 STMF_PORT_PROVIDER_TYPE, &(cfg->stmf_token)); in it_config_commit() [all …]
|
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_fflp.c | 1515 fflp_enet_vlan_tbl_t cfg; in npi_fflp_cfg_enet_vlan_table_assoc() local 1548 REG_PIO_READ64(handle, offset, &cfg.value); in npi_fflp_cfg_enet_vlan_table_assoc() 1552 cfg.bits.ldw.vlanrdctbln0 = rdc_table; in npi_fflp_cfg_enet_vlan_table_assoc() 1554 cfg.bits.ldw.vpr0 = BIT_ENABLE; in npi_fflp_cfg_enet_vlan_table_assoc() 1556 cfg.bits.ldw.vpr0 = BIT_DISABLE; in npi_fflp_cfg_enet_vlan_table_assoc() 1558 parity_bit = vlan_parity[cfg.bits.ldw.vlanrdctbln0] + in npi_fflp_cfg_enet_vlan_table_assoc() 1559 vlan_parity[cfg.bits.ldw.vlanrdctbln1] + in npi_fflp_cfg_enet_vlan_table_assoc() 1560 cfg.bits.ldw.vpr0 + cfg.bits.ldw.vpr1; in npi_fflp_cfg_enet_vlan_table_assoc() 1561 cfg.bits.ldw.parity0 = parity_bit & 0x1; in npi_fflp_cfg_enet_vlan_table_assoc() 1564 cfg.bits.ldw.vlanrdctbln1 = rdc_table; in npi_fflp_cfg_enet_vlan_table_assoc() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_kmod.c | 87 smb_kmod_setcfg(smb_kmod_cfg_t *cfg) in smb_kmod_setcfg() argument 91 ioc.maxworkers = cfg->skc_maxworkers; in smb_kmod_setcfg() 92 ioc.maxconnections = cfg->skc_maxconnections; in smb_kmod_setcfg() 93 ioc.keepalive = cfg->skc_keepalive; in smb_kmod_setcfg() 94 ioc.restrict_anon = cfg->skc_restrict_anon; in smb_kmod_setcfg() 95 ioc.signing_enable = cfg->skc_signing_enable; in smb_kmod_setcfg() 96 ioc.signing_required = cfg->skc_signing_required; in smb_kmod_setcfg() 97 ioc.oplock_enable = cfg->skc_oplock_enable; in smb_kmod_setcfg() 98 ioc.sync_enable = cfg->skc_sync_enable; in smb_kmod_setcfg() 99 ioc.secmode = cfg->skc_secmode; in smb_kmod_setcfg() [all …]
|
H A D | smb_cfg.c | 231 smb_cfg_param_t *cfg; in smb_config_getname() local 232 cfg = smb_config_getent(id); in smb_config_getname() 233 return (cfg->sc_name); in smb_config_getname() 442 smb_cfg_param_t *cfg; in smb_config_getstr() local 449 cfg = smb_config_getent(id); in smb_config_getstr() 450 assert(cfg->sc_type == SCF_TYPE_ASTRING); in smb_config_getstr() 461 if (cfg->sc_flags & SMB_CF_PROTECTED) { in smb_config_getstr() 466 if ((rc = smb_smf_get_string_property(handle, cfg->sc_name, in smb_config_getstr() 476 pg = (cfg->sc_flags & SMB_CF_EXEC) ? SMBD_EXEC_PG_NAME : in smb_config_getstr() 480 rc = smb_smf_get_string_property(handle, cfg->sc_name, in smb_config_getstr() [all …]
|
/illumos-gate/usr/src/common/crypto/skein/ |
H A D | skein.c | 31 } cfg; /* config block */ in Skein_256_Init() local 61 cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER); in Skein_256_Init() 63 cfg.w[1] = Skein_Swap64(hashBitLen); in Skein_256_Init() 64 cfg.w[2] = Skein_Swap64(SKEIN_CFG_TREE_INFO_SEQUENTIAL); in Skein_256_Init() 66 bzero(&cfg.w[3], sizeof (cfg) - 3 * sizeof (cfg.w[0])); in Skein_256_Init() 71 Skein_256_Process_Block(ctx, cfg.b, 1, SKEIN_CFG_STR_LEN); in Skein_256_Init() 96 } cfg; /* config block */ in Skein_256_InitExt() local 107 Skein_assert(sizeof (cfg.b) >= sizeof (ctx->X)); in Skein_256_InitExt() 118 (void) Skein_256_Final_Pad(ctx, cfg.b); in Skein_256_InitExt() 120 bcopy(cfg.b, ctx->X, sizeof (cfg.b)); in Skein_256_InitExt() [all …]
|
/illumos-gate/usr/src/cmd/itadm/ |
H A D | itadm.c | 645 it_config_t *cfg = NULL; in create_target() local 671 ret = it_config_load(&cfg); in create_target() 680 ret = it_tgt_create(cfg, &tgtp, tgt); in create_target() 727 tpg = cfg->config_tpg_list; in create_target() 747 ret = it_tpgt_create(cfg, tgtp, &tpgt, tags[i], tagid); in create_target() 763 ret = it_tgt_setprop(cfg, tgtp, proplist, &errlist); in create_target() 792 ret = it_config_commit(cfg); in create_target() 804 it_config_free(cfg); in create_target() 813 it_config_t *cfg; in list_target() local 834 ret = it_config_load(&cfg); in list_target() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/symbols/ |
H A D | setup.ksh | 32 cfg=symbols/${prog%.ksh}.cfg 34 if [[ ! -f ${cfg} && $cfg == symbols/setup.cfg ]] 37 cfg=-C 66 [[ -n $debug ]] && print "Executing $p $* ${cfg}" 68 $p $* ${cfg} || exit 1
|
/illumos-gate/usr/src/uts/intel/pcbe/ |
H A D | core_pcbe.c | 1349 core_pcbe_config_t *cfg; in core_pcbe_program() local 1367 cfg = NULL; in core_pcbe_program() 1370 cfg = (core_pcbe_config_t *)kcpc_next_config(token, cfg, NULL); in core_pcbe_program() 1371 while (cfg != NULL) { in core_pcbe_program() 1372 ASSERT(cfg->core_pictype == CORE_GPC || in core_pcbe_program() 1373 cfg->core_pictype == CORE_FFC); in core_pcbe_program() 1375 if (cfg->core_pictype == CORE_GPC) { in core_pcbe_program() 1386 if (((cfg->core_rawpic & BITS_EXTENDED_FROM_31) == 0) || in core_pcbe_program() 1387 ((cfg->core_rawpic & BITS_EXTENDED_FROM_31) == in core_pcbe_program() 1393 WRMSR(cfg->core_pmc, in core_pcbe_program() [all …]
|
H A D | p4_pcbe.c | 637 p4_pcbe_config_t *cfg = NULL; in build_cfgs() local 643 cfg = (p4_pcbe_config_t *)kcpc_next_config(token, cfg, &daddr); in build_cfgs() 645 if (cfg != NULL) { in build_cfgs() 646 ASSERT(cfg->p4_picno < 18); in build_cfgs() 647 cfgs[cfg->p4_picno] = cfg; in build_cfgs() 650 data[cfg->p4_picno] = daddr; in build_cfgs() 653 } while (cfg != NULL); in build_cfgs() 671 p4_pcbe_config_t *cfg; in p4_pcbe_configure() local 693 cfg = *data; in p4_pcbe_configure() 694 cfg->p4_rawpic = preset & MASK40; in p4_pcbe_configure() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | rstp.c | 268 get_init_stpm_cfg(int vlan_id, UID_STP_CFG_T *cfg) in get_init_stpm_cfg() argument 271 *cfg = uid_cfg; in get_init_stpm_cfg() 277 get_init_port_cfg(int vlan_id, int port_index, UID_STP_PORT_CFG_T *cfg) in get_init_port_cfg() argument 289 cfg->field_mask = 0; in get_init_port_cfg() 290 cfg->port_priority = DEF_PORT_PRIO; in get_init_port_cfg() 291 cfg->admin_non_stp = DEF_ADMIN_NON_STP; in get_init_port_cfg() 292 cfg->admin_edge = DEF_ADMIN_EDGE; in get_init_port_cfg() 293 cfg->admin_port_path_cost = ADMIN_PORT_PATH_COST_AUTO; in get_init_port_cfg() 294 cfg->admin_point2point = DEF_P2P; in get_init_port_cfg() 301 cfg->port_priority = propval; in get_init_port_cfg() [all …]
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-test-libctest.p5m | 32 dir path=opt/libc-tests/cfg 33 file path=opt/libc-tests/cfg/README mode=0444 34 file path=opt/libc-tests/cfg/compilation.cfg mode=0444 35 dir path=opt/libc-tests/cfg/symbols 36 file path=opt/libc-tests/cfg/symbols/README mode=0444 37 file path=opt/libc-tests/cfg/symbols/assert_h.cfg mode=0444 38 file path=opt/libc-tests/cfg/symbols/ctype_h.cfg mode=0444 39 file path=opt/libc-tests/cfg/symbols/dirent_h.cfg mode=0444 40 file path=opt/libc-tests/cfg/symbols/fcntl_h.cfg mode=0444 41 file path=opt/libc-tests/cfg/symbols/locale_h.cfg mode=0444 [all …]
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_admin.c | 65 admin_c.cache_cfg[i] = cache_ctx_p[i]->cfg; in _nscd_door_getadmin() 264 nscd_cfg_cache_t *cfg; in _nscd_add_admin_mod() local 323 cfg = &admin_mod.cache_cfg[j]; in _nscd_add_admin_mod() 324 cfg->gi.num_param = gi.num_param; in _nscd_add_admin_mod() 331 _nscd_cfg_bitmap_set_nth(cfg->gi.bitmap, 0); in _nscd_add_admin_mod() 333 cfg->enable = nscd_true; in _nscd_add_admin_mod() 335 cfg->enable = nscd_false; in _nscd_add_admin_mod() 346 _nscd_cfg_bitmap_set_nth(cfg->gi.bitmap, 3); in _nscd_add_admin_mod() 348 cfg->check_files = nscd_true; in _nscd_add_admin_mod() 350 cfg->check_files = nscd_false; in _nscd_add_admin_mod() [all …]
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_config.c | 96 verify_value(ns_config_t *cfg, char *name, char *value, char *errstr); 112 timetorefresh(ns_config_t *cfg); 566 timetorefresh(ns_config_t *cfg) in timetorefresh() argument 571 if (cfg == NULL || gettimeofday(&tp, NULL) == -1) in timetorefresh() 574 if (cfg->paramList[NS_LDAP_EXP_P].ns_ptype == TIMET) in timetorefresh() 575 expire = cfg->paramList[NS_LDAP_EXP_P].ns_tm; in timetorefresh() 864 __s_api_destroy_config(ns_config_t *cfg) in __s_api_destroy_config() argument 866 if (cfg != NULL) { in __s_api_destroy_config() 867 (void) mutex_lock(&cfg->config_mutex); in __s_api_destroy_config() 868 cfg->delete = TRUE; in __s_api_destroy_config() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | config.c | 312 populate_defaults(inetd_prop_t *bprops, basic_cfg_t *cfg) in populate_defaults() argument 314 cfg->do_tcp_wrappers = get_prop_value_boolean(bprops, in populate_defaults() 316 cfg->do_tcp_trace = get_prop_value_boolean(bprops, in populate_defaults() 318 cfg->do_tcp_keepalive = get_prop_value_boolean(bprops, in populate_defaults() 320 cfg->inherit_env = get_prop_value_boolean(bprops, PR_INHERIT_ENV_NAME); in populate_defaults() 321 cfg->wait_fail_cnt = get_prop_value_int(bprops, in populate_defaults() 323 cfg->wait_fail_interval = get_prop_value_int(bprops, in populate_defaults() 325 cfg->max_copies = get_prop_value_int(bprops, PR_MAX_COPIES_NAME); in populate_defaults() 326 cfg->conn_rate_offline = get_prop_value_int(bprops, in populate_defaults() 328 cfg->conn_rate_max = get_prop_value_int(bprops, PR_CON_RATE_MAX_NAME); in populate_defaults() [all …]
|
H A D | inetd.c | 592 basic_cfg_t *cfg = instance->config->basic; in tcp_wrappers_ok() local 602 if (cfg->do_tcp_wrappers && !cfg->iswait && !cfg->istlx) { in tcp_wrappers_ok() 680 basic_cfg_t *cfg = inst->config->basic; in process_offline_inst() local 689 cfg->conn_rate_offline, conn_rate_online, in process_offline_inst() 695 cfg->conn_rate_offline); in process_offline_inst() 836 basic_cfg_t *cfg = instance->config->basic; in poll_bound_fds() local 840 for (pi = uu_list_first(cfg->proto_list); pi != NULL; in poll_bound_fds() 841 pi = uu_list_next(cfg->proto_list, pi)) { in poll_bound_fds() 865 basic_cfg_t *cfg = instance->config->basic; in handle_bind_failure() local 879 if (((cfg->bind_fail_interval <= 0) || /* no retries */ in handle_bind_failure() [all …]
|