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

123456

/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/cmd/avs/dscfglockd/
H A Ddscfgcli.c37 #include <sys/nsctl/cfg.h>
39 CFGFILE *cfg; variable
52 if (cfg_lock(cfg, CFG_RDLOCK) < 0)
57 cfg_unlock(cfg);
60 if (cfg_lock(cfg, CFG_RDLOCK) < 0)
65 cfg_unlock(cfg);
68 if (cfg_lock(cfg, CFG_WRLOCK) < 0)
73 cfg_unlock(cfg);
107 if (cfg_lock(cfg, CFG_RDLOCK) < 0)
118 cfg_unlock(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/cmd/avs/dsw/
H A Diicpbmp.c43 #include <sys/nsctl/cfg.h>
63 CFGFILE *cfg; variable
81 /* don't update cfg information */
92 if ((cfg = cfg_open(NULL)) == NULL) {
98 if (!cfg_lock(cfg, CFG_WRLOCK)) {
110 cfg_close(cfg);
154 gettext("Old bitmap not in existing cfg\n"));
227 if (cfg_put_cstring(cfg, key, new_bitmap, strlen(new_bitmap))
231 (void) cfg_commit(cfg);
251 if (cfg_get_cstring(cfg, ke
[all...]
H A Diicpshd.c44 #include <sys/nsctl/cfg.h>
69 CFGFILE *cfg; variable
98 if ((cfg = cfg_open(NULL)) == NULL) {
107 cfg_close(cfg);
153 gettext("Old shadow not in existing cfg\n"));
177 gettext("Old shadow not in existing cfg\n"));
182 gettext("Old shadow not in existing cfg\n"));
253 if (!cfg_lock(cfg, CFG_RDLOCK)) {
262 if (cfg_get_cstring(cfg, key, buf, DSW_NAMELEN) < 0) {
263 cfg_unlock(cfg);
[all...]
H A Diiboot.c44 #include <sys/nsctl/cfg.h>
314 CFGFILE *cfg; local
332 if (!(cfg = cfg_open(""))) {
338 while (!cfg_lock(cfg, CFG_WRLOCK))
342 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) {
343 cfg_close(cfg);
360 cfg_close(cfg);
374 if (cfg_vol_disable(cfg, mst, cfg_cluster_tag,
382 if (cfg_put_cstring(cfg, key, NULL, 0) < 0) {
391 if (cfg_vol_disable(cfg, sh
457 CFGFILE *cfg; local
555 CFGFILE *cfg; local
[all...]
/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...]
/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:__anon1021
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/cmd/lms/
H A Dglue.cpp55 static void parser_init(parser_t *cfg) argument
57 if (!cfg) {
61 cfg->count = 0;
64 static int parser_add(parser_t *cfg, char *buf) argument
66 if ((!cfg) || (cfg->count > PARSER_MAX)) {
70 cfg->line[cfg->count] = strdup(buf);
71 if (cfg->line[cfg
78 parser_length(parser_t *cfg) argument
87 parser_get(parser_t *cfg, unsigned int index) argument
97 parser_read(parser_t *cfg, FILE *fp) argument
131 parser_free(parser_t *cfg) argument
215 parser_t cfg; local
[all...]
/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/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/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/lib/librdc/common/
H A Drdcpersist.c41 #include <sys/nsctl/cfg.h>
74 load_rdc_vols(CFGFILE *cfg) argument
86 cfg_rewind(cfg, CFG_SEC_CONF);
90 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF)) {
264 do_autosv_enable(CFGFILE *cfg, rdcconfig_t *rdc) argument
269 cfg_load_svols(cfg);
270 cfg_load_dsvols(cfg);
271 cfg_load_shadows(cfg);
272 load_rdc_vols(cfg);
282 if (cfg_vol_enable(cfg, vo
307 do_autosv_disable(CFGFILE *cfg, rdcconfig_t *rdc) argument
358 sv_enable(CFGFILE *cfg, rdcconfig_t *rdcs) argument
379 sv_disable(CFGFILE *cfg, rdcconfig_t *rdcs) argument
405 sv_reconfig(CFGFILE *cfg, rdcconfig_t *rdc, char *oldbmp, char *newbmp) argument
466 CFGFILE *cfg; local
508 cfg_lookup(CFGFILE *cfg, char *shost, char *sfile) argument
542 CFGFILE *cfg; local
579 CFGFILE *cfg; local
648 CFGFILE *cfg; local
[all...]
H A Drdcrules.c55 #include <sys/nsctl/cfg.h>
81 CFGFILE *cfg; local
98 if ((cfg = cfg_open(NULL)) == NULL) {
102 if (!cfg_lock(cfg, CFG_RDLOCK)) {
104 cfg_close(cfg);
115 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0)
146 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0)
242 cfg_close(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/cmd/avs/ncall/
H A Dncalladm.c37 #include <sys/nsctl/cfg.h>
40 static CFGFILE *cfg; variable
80 if (cfg != NULL) {
91 if ((cfg = cfg_open(NULL)) == NULL) {
98 if (!cfg_lock(cfg, lk)) {
105 cfg_resource(cfg, hostid);
112 if (cfg_changed && cfg_commit(cfg) < 0) {
119 cfg_close(cfg);
120 cfg = NULL;
136 if (cfg_get_cstring(cfg, "ncallcor
[all...]
/illumos-gate/usr/src/cmd/avs/rdc/
H A Dsndrsubr.c47 #include <sys/nsctl/cfg.h>
262 * - a valid cfg handle
265 * cfg - cfg handle
273 find_setnumber_in_libcfg(CFGFILE *cfg, char *ctag, char *tohost, char *tofile) argument
282 if (cfg == NULL) {
284 rdc_warn(NULL, "cfg is NULL while looking up set number");
289 entries = cfg_get_section(cfg, &entry, "sndr");
339 get_group_diskq(CFGFILE *cfg, char *group, char *diskq) argument
351 if (cfg_get_cstring(cfg, ke
364 get_cfg_setid(CFGFILE *cfg, char *ctag, char *tohost, char *tofile) argument
405 get_new_cfg_setid(CFGFILE *cfg) argument
[all...]
/illumos-gate/usr/src/cmd/avs/sv/
H A Dsvboot.c48 #include <sys/nsctl/cfg.h>
383 CFGFILE *cfg; local
385 if ((cfg = cfg_open("")) == NULL) {
390 cfg_resource(cfg, cfg_cluster_tag);
391 if (!cfg_lock(cfg, CFG_RDLOCK)) {
401 if (cfg_get_cstring(cfg, key, rdev, sizeof (rdev)) < 0)
433 cfg_close(cfg);
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr_discovery.c243 struct config_cookie *cfg = (struct config_cookie *)cookie; local
283 cfg->aggregate(cfg->cache_cfg, unesc_tag, unesc_val);
303 struct config_cookie *cfg = (struct config_cookie *)cookie; local
304 SLPHandle h = cfg->h; /* an open handle */
333 err = SLPFindAttrs(h, u, cfg->scopes, "", aggregate_attrs, cookie);
343 cfg->aggregate(cfg->cache_cfg, "_,_xservers_,_", surl->s_pcHost);
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dt4_ioctl.c743 unsigned int cfg; local
746 rc = t4_cim_read(sc, A_UP_UP_DBG_LA_CFG, 1, &cfg);

Completed in 170 milliseconds

123456