Searched defs:cfg (Results 1 - 25 of 111) sorted by relevance

12345

/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_cfg_util.c24 smb_cfg_set_require(const char *value, smb_cfg_val_t *cfg) argument
27 *cfg = SMB_CONFIG_DISABLED;
32 *cfg = SMB_CONFIG_REQUIRED;
34 *cfg = SMB_CONFIG_ENABLED;
36 *cfg = SMB_CONFIG_DISABLED;
/illumos-gate/usr/src/cmd/mdb/common/kmdb/kctl/
H A Dkctl_auxv.c73 kctl_auxv_init(kmdb_auxv_t *kav, const char *cfg, const char **argv, void *romp) argument
83 kav->kav_config = cfg;
H A Dkctl_main.c325 kctl_startup_preactivate(void *romp, const char *cfg, const char **argv) argument
330 kctl_auxv_init(&kav, cfg, argv, romp);
508 kctl_modload_activate(size_t memsz, const char *cfg, uint_t flags) argument
539 if ((rc = kctl_startup_preactivate(NULL, cfg, NULL)) != 0)
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhpi_vmac.c67 vmac_tx_cfg_t cfg; local
76 HXGE_REG_RD64(handle, VMAC_TX_CFG, &cfg.value);
81 cfg.bits.tx_en = 1;
83 cfg.bits.crc_insert = 1;
85 cfg.bits.tx_pad = 1;
87 cfg.bits.tx_max_frame_length = max_frame_length;
91 cfg.bits.tx_en = 0;
93 cfg.bits.crc_insert = 0;
95 cfg.bits.tx_pad = 0;
99 cfg
131 vmac_rx_cfg_t cfg; local
156 vmac_rx_cfg_t cfg; local
[all...]
H A Dhpi_rxdma.c65 rdc_rx_cfg1_t cfg; local
69 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value);
71 while ((count--) && (cfg.bits.qst == 0)) {
73 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value);
76 if (cfg.bits.qst == 0)
86 rdc_rx_cfg1_t cfg; local
99 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg.value);
100 cfg.bits.enable = 1;
101 RXDMA_REG_WRITE64(handle, RDC_RX_CFG1, rdc, cfg.value);
104 RXDMA_REG_READ64(handle, RDC_RX_CFG1, rdc, &cfg
[all...]
H A Dhpi_txdma.c93 tdc_tdr_cfg_t cfg; local
104 cfg.value = 0;
105 TXDMA_REG_READ64(handle, TDC_TDR_CFG, channel, &cfg.value);
106 cfg.bits.reset = 1;
107 TXDMA_REG_WRITE64(handle, TDC_TDR_CFG, channel, cfg.value);
111 cfg.value = 0;
112 TXDMA_REG_READ64(handle, TDC_TDR_CFG, channel, &cfg.value);
113 cfg.bits.enable = 1;
114 TXDMA_REG_WRITE64(handle, TDC_TDR_CFG, channel, cfg.value);
122 cfg
[all...]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_prop.c60 static int ndmpd_config_update(ndmpd_cfg_param_t *cfg, char *value);
105 ndmpd_cfg_param_t *cfg; local
109 cfg = &ndmpd_cfg_table[id];
110 if ((ndmp_get_prop(cfg->sc_name, &value)) == -1) {
112 cfg->sc_name, ndmp_strerror(ndmp_errno));
122 if ((cfg->sc_flags & NDMP_CF_DEFINED) || value) {
123 if (ndmpd_config_update(cfg, value)) {
140 ndmpd_config_update(ndmpd_cfg_param_t *cfg, char *value) argument
148 if (cfg->sc_value) {
149 curval = realloc(cfg
[all...]
/illumos-gate/usr/src/lib/libsrpt/common/
H A Dlibsrpt.c48 * cfg Current SRPT configuration in nvlist form
58 srpt_GetConfig(nvlist_t **cfg, uint64_t *token) argument
65 if (!cfg) {
69 *cfg = NULL;
101 *cfg = cfg_nv;
111 * cfg SRPT configuration in nvlist form
123 srpt_SetConfig(nvlist_t *cfg, uint64_t token) argument
127 ret = stmfSetProviderDataProt(SRPT_PROV_NAME, cfg,
441 * hca:3BA000100CD18 - form from cfgadm and/or /dev/cfg
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_admin.c65 admin_c.cache_cfg[i] = cache_ctx_p[i]->cfg;
264 nscd_cfg_cache_t *cfg; local
323 cfg = &admin_mod.cache_cfg[j];
324 cfg->gi.num_param = gi.num_param;
331 _nscd_cfg_bitmap_set_nth(cfg->gi.bitmap, 0);
333 cfg->enable = nscd_true;
335 cfg->enable = nscd_false;
346 _nscd_cfg_bitmap_set_nth(cfg->gi.bitmap, 3);
348 cfg->check_files = nscd_true;
350 cfg
[all...]
H A Dnscd_nswcfgst.c52 struct __nsw_switchconfig_v1 *cfg; member in struct:__anon1049
130 ck->cfgstr, ck->cfg, NULL);
132 (void) __nsw_freeconfig_v1(ck->cfg);
156 nscd_cfg_switch_t *cfg; local
181 cfg = (nscd_cfg_switch_t *)data;
182 nswcfgstr = cfg->nsw_config_string;
235 ck->cfg = switchcfg;
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dmc3.c328 static unsigned int __devinit mc3_calc_size(const adapter_t *adapter, u32 cfg) argument
330 unsigned int banks = !!(cfg & F_BANKS) + 1;
331 unsigned int org = !!(cfg & F_ORGANIZATION) + 1;
332 unsigned int density = G_DENSITY(cfg);
335 ((256 << density) * banks) / (org << G_MC3_WIDTH(cfg)) :
/illumos-gate/usr/src/common/crypto/skein/
H A Dskein.c31 } cfg; /* config block */ local
61 cfg.w[0] = Skein_Swap64(SKEIN_SCHEMA_VER);
63 cfg.w[1] = Skein_Swap64(hashBitLen);
64 cfg.w[2] = Skein_Swap64(SKEIN_CFG_TREE_INFO_SEQUENTIAL);
66 bzero(&cfg.w[3], sizeof (cfg) - 3 * sizeof (cfg.w[0]));
71 Skein_256_Process_Block(ctx, cfg.b, 1, SKEIN_CFG_STR_LEN);
96 } cfg; /* config block */ local
107 Skein_assert(sizeof (cfg
267 } cfg; /* config block */ local
333 } cfg; /* config block */ local
503 } cfg; /* config block */ local
566 } cfg; /* config block */ local
[all...]
/illumos-gate/usr/src/lib/efcode/fcdriver/
H A Dget_req.c440 fc_cell_t cfg = 0; local
443 error = fc_run_priv(env->private, FC_PROBE_SPACE, 0, 1, &cfg);
446 PUSH(DS, fc_cell2uint32_t(cfg));
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Drstp.c268 get_init_stpm_cfg(int vlan_id, UID_STP_CFG_T *cfg) argument
271 *cfg = uid_cfg;
277 get_init_port_cfg(int vlan_id, int port_index, UID_STP_PORT_CFG_T *cfg) argument
289 cfg->field_mask = 0;
290 cfg->port_priority = DEF_PORT_PRIO;
291 cfg->admin_non_stp = DEF_ADMIN_NON_STP;
292 cfg->admin_edge = DEF_ADMIN_EDGE;
293 cfg->admin_port_path_cost = ADMIN_PORT_PATH_COST_AUTO;
294 cfg->admin_point2point = DEF_P2P;
301 cfg
[all...]
/illumos-gate/usr/src/lib/passwdutil/
H A Dswitch_utils.c63 struct __nsw_switchconfig *cfg; local
66 cfg = __nsw_getconfig("passwd_compat", &pserr);
67 if (cfg == NULL) {
70 if (strcmp(cfg->lookups->service_name, "ldap") == 0)
74 (void) __nsw_freeconfig(cfg);
87 struct __nsw_switchconfig *cfg; local
91 if ((cfg = __nsw_getconfig("passwd_compat", &pserr)) != NULL) {
92 if (strcmp(cfg->lookups->service_name, "ldap") == 0)
95 (void) __nsw_freeconfig(cfg);
/illumos-gate/usr/src/uts/common/kmdb/
H A Dkdrv.c88 char *cfg; local
109 cfg = kmem_alloc(KDRV_CFG_MAXLEN, KM_SLEEP);
111 if ((rc = copyinstr((caddr_t)arg, cfg, KDRV_CFG_MAXLEN, &got)) != 0) {
112 kmem_free(cfg, KDRV_CFG_MAXLEN);
116 rc = kctl_modload_activate(memsz, cfg, flags);
118 kmem_free(cfg, KDRV_CFG_MAXLEN);
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_clock.c64 emlxs_config_t *cfg = &CFG; local
68 if (cfg[CFG_TIMEOUT_ENABLE].current) {
276 emlxs_config_t *cfg = &CFG; local
291 if (!cfg[CFG_TIMEOUT_ENABLE].current) {
610 emlxs_config_t *cfg = &CFG; local
615 if (!cfg[CFG_TIMEOUT_ENABLE].current) {
754 emlxs_config_t *cfg = &CFG; local
757 if (!cfg[CFG_TIMEOUT_ENABLE].current) {
831 emlxs_config_t *cfg = &CFG; local
834 if (!cfg[CFG_HEARTBEAT_ENABL
927 emlxs_config_t *cfg = &CFG; local
1273 emlxs_config_t *cfg = &CFG; local
[all...]
H A Demlxs_mem.c43 emlxs_config_t *cfg; local
52 cfg = &CFG;
91 seg->fc_hi_water = cfg[CFG_NUM_IOCBS].current;
92 seg->fc_lo_water = cfg[CFG_NUM_IOCBS].low;
93 seg->fc_step = cfg[CFG_NUM_IOCBS].low;
117 seg->fc_lo_water = cfg[CFG_NUM_IOCBS].low;
118 seg->fc_step = cfg[CFG_NUM_IOCBS].low;
136 if (cfg[CFG_NETWORK_ON].current == 0) {
673 emlxs_config_t *cfg = &CFG; local
691 if (cfg[CFG_MEM_DYNAMI
[all...]
H A Demlxs_msg.c313 emlxs_config_t *cfg; local
316 cfg = &CFG;
320 if (msg->mask & cfg[CFG_CONSOLE_DEBUGS].current) {
324 if (msg->mask & cfg[CFG_LOG_DEBUGS].current) {
331 if (msg->mask & cfg[CFG_CONSOLE_NOTICES].current) {
335 if (msg->mask & cfg[CFG_LOG_NOTICES].current) {
342 if (msg->mask & cfg[CFG_CONSOLE_WARNINGS].current) {
346 if (msg->mask & cfg[CFG_LOG_WARNINGS].current) {
353 if (msg->mask & cfg[CFG_CONSOLE_ERRORS].current) {
357 if (msg->mask & cfg[CFG_LOG_ERROR
[all...]
H A Demlxs_node.c43 emlxs_config_t *cfg = &CFG; local
61 if (cfg[CFG_OFFLINE_TIMEOUT].current) {
62 timeout = cfg[CFG_OFFLINE_TIMEOUT].current;
1033 emlxs_config_t *cfg = &CFG; local
1040 cfg[CFG_TGT_DEPTH].current:0;
/illumos-gate/usr/src/test/libc-tests/tests/common/
H A Dtest_common.c272 FILE *cfg; local
307 (void) snprintf(path, sizeof (path), "%s/cfg/%s", stf, fname);
312 (void) snprintf(path, sizeof (path), "cfg/%s", fname);
320 if ((cfg = fopen(fname, "r")) == NULL) {
333 if (fgets(buf, sizeof (buf), cfg) == NULL) {
398 (void) fclose(cfg);
404 (void) fclose(cfg);
/illumos-gate/usr/src/uts/common/io/ixgbe/core/
H A Dixgbe_dcb.c201 * @cfg: dcb configuration to unpack into hardware consumable fields
210 void ixgbe_dcb_unpack_pfc_cee(struct ixgbe_dcb_config *cfg, u8 *map, u8 *pfc_up)
212 struct ixgbe_dcb_tc_config *tc_config = &cfg->tc_config[0];
225 void ixgbe_dcb_unpack_refill_cee(struct ixgbe_dcb_config *cfg, int direction,
228 struct ixgbe_dcb_tc_config *tc_config = &cfg->tc_config[0]; argument
235 void ixgbe_dcb_unpack_max_cee(struct ixgbe_dcb_config *cfg, u16 *max)
237 struct ixgbe_dcb_tc_config *tc_config = &cfg->tc_config[0]; argument
244 void ixgbe_dcb_unpack_bwgid_cee(struct ixgbe_dcb_config *cfg, int direction,
247 struct ixgbe_dcb_tc_config *tc_config = &cfg->tc_config[0]; argument
254 void ixgbe_dcb_unpack_tsa_cee(struct ixgbe_dcb_config *cfg, in
203 ixgbe_dcb_unpack_pfc_cee(struct ixgbe_dcb_config *cfg, u8 *map, u8 *pfc_up) argument
218 ixgbe_dcb_unpack_refill_cee(struct ixgbe_dcb_config *cfg, int direction, u16 *refill) argument
257 ixgbe_dcb_get_tc_from_up(struct ixgbe_dcb_config *cfg, int direction, u8 up) argument
280 ixgbe_dcb_unpack_map_cee(struct ixgbe_dcb_config *cfg, int direction, u8 *map) argument
[all...]
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr_discovery.c245 struct config_cookie *cfg = (struct config_cookie *)cookie; local
285 cfg->aggregate(cfg->cache_cfg, unesc_tag, unesc_val);
305 struct config_cookie *cfg = (struct config_cookie *)cookie; local
306 SLPHandle h = cfg->h; /* an open handle */
335 err = SLPFindAttrs(h, u, cfg->scopes, "", aggregate_attrs, cookie);
345 cfg->aggregate(cfg->cache_cfg, "_,_xservers_,_", surl->s_pcHost);
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_kmod.c74 smb_kmod_setcfg(smb_kmod_cfg_t *cfg) argument
78 ioc.maxworkers = cfg->skc_maxworkers;
79 ioc.maxconnections = cfg->skc_maxconnections;
80 ioc.keepalive = cfg->skc_keepalive;
81 ioc.restrict_anon = cfg->skc_restrict_anon;
82 ioc.signing_enable = cfg->skc_signing_enable;
83 ioc.signing_required = cfg->skc_signing_required;
84 ioc.oplock_enable = cfg->skc_oplock_enable;
85 ioc.sync_enable = cfg->skc_sync_enable;
86 ioc.secmode = cfg
[all...]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsvcctl_svc.c829 svc_config_t *cfg; local
853 cfg = &param->service_cfg;
854 cfg->service_type = SERVICE_WIN32_SHARE_PROCESS;
855 cfg->start_type = SERVICE_AUTO_START;
856 cfg->error_control = SERVICE_ERROR_IGNORE;
857 cfg->binary_pathname = NDR_STRDUP(mxa, "");
858 cfg->loadorder_group = NDR_STRDUP(mxa, "");
859 cfg->tag_id = 0;
860 cfg->dependencies = NDR_STRDUP(mxa, "");
861 cfg
[all...]

Completed in 256 milliseconds

12345