Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 25 of 169) sorted by relevance

1234567

/onnv-gate/usr/src/uts/common/io/hxge/
H A Dhpi_vmac.c67 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 …]
/onnv-gate/usr/src/lib/librstp/common/
H A Dstp_in.h79 #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 …]
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigInt/t/
H A Dconfig.t26 my $cfg = $mbi->config();
28 ok (ref($cfg),'HASH');
30 ok ($cfg->{lib},'Math::BigInt::Calc');
31 ok ($cfg->{lib_version}, $Math::BigInt::Calc::VERSION);
32 ok ($cfg->{class},$mbi);
33 ok ($cfg->{upgrade}||'','');
34 ok ($cfg->{div_scale},40);
36 ok ($cfg->{precision}||0,0); # should test for undef
37 ok ($cfg->{accuracy}||0,0);
39 ok ($cfg->{round_mode},'even');
[all …]
H A Dtrap.t20 my ($cfg,$x);
30 $cfg = $class->config( trap_nan => 1 ); ok ($cfg->{trap_nan},1);
38 $cfg = $class->config( trap_nan => 0 ); ok ($cfg->{trap_nan},0);
41 $cfg = $class->config( trap_inf => 1 ); ok ($cfg->{trap_inf},1);
56 $cfg = $class->config( trap_nan => 1 );
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/utils/
H A Dlibnetcfg.PL112 my %cfg = ();
113 my @cfg = ();
125 defined($h) && (($cfg{'test_exist'} == 0) || gethostbyname($h));
353 map { $cfg{lc $_} = $cfg{$_}; delete $cfg{$_} if /[A-Z]/ } keys %cfg;
442 $cfg{'test_exist'} = get_bool($msg, $oldcfg{'test_exist'});
444 print <<EDQ unless $cfg{'test_exist'};
471 $cfg{'nntp_hosts'} = get_host_list($msg,$def);
480 $cfg{'smtp_hosts'} = get_host_list($msg,$def);
488 $cfg{'pop3_hosts'} = get_host_list($msg,$def);
496 $cfg{'snpp_hosts'} = get_host_list($msg,$def);
[all …]
/onnv-gate/usr/src/lib/libdscfg/common/
H A Dcfg_vols.c121 cfg_add_user(CFGFILE* cfg, char *path, char *cnode, char *user) in cfg_add_user() argument
128 self_open = (cfg == NULL); in cfg_add_user()
133 cfg = cfg_open(NULL); in cfg_add_user()
134 if (cfg == NULL) { in cfg_add_user()
138 if (!cfg_lock(cfg, CFG_WRLOCK)) { in cfg_add_user()
140 cfg_close(cfg); in cfg_add_user()
146 ctag = cfg_get_resource(cfg); in cfg_add_user()
152 cfg_resource(cfg, cnode); in cfg_add_user()
157 if (cfg_load_dsvols(cfg) < 0) { in cfg_add_user()
159 cfg_close(cfg); in cfg_add_user()
[all …]
H A Dcfg.h48 int cfg_get_cstring(CFGFILE *cfg, const char *key, void *value, int value_len);
49 int cfg_put_cstring(CFGFILE *cfg, const char *key, void *value, int value_len);
50 int cfg_find_cstring(CFGFILE *cfg, const char *target, const char *section,
52 int cfg_get_options(CFGFILE *cfg, int section, const char *basekey,
54 int cfg_put_options(CFGFILE *cfg, int section, const char *basekey,
59 int cfg_get_num_entries(CFGFILE *cfg, char *section);
61 int cfg_get_tags(CFGFILE *cfg, char ***taglist);
63 int cfg_cfg_isempty(CFGFILE *cfg);
64 int cfg_get_section(CFGFILE *cfg, char ***buf, const char *section);
66 void cfg_rewind(CFGFILE *cfg, int section);
[all …]
H A Dcfg.c304 cfg_filter_node(CFGFILE *cfg, struct parser *tbl, char *buf, char *tag) in cfg_filter_node() argument
311 if (!cfg->cf_node) /* no filter always good */ in cfg_filter_node()
329 cfg->cf_node, strlen(cfg->cf_node), ptr, strlen(ptr)); in cfg_filter_node()
331 if (strcmp(ptr, cfg->cf_node) == 0) in cfg_filter_node()
340 cfg_insert_node(CFGFILE *cfg, struct parser *tbl, char *buf, char *tag) in cfg_insert_node() argument
351 if ((fld < 0) && !(cfg->cf_node)) /* no cnode field always good */ in cfg_insert_node()
355 if (cfg->cf_node) in cfg_insert_node()
356 strcat(tmpbuf, cfg->cf_node); in cfg_insert_node()
370 cfg_is_cnode(CFGFILE *cfg, struct parser *tbl, char *buf, char *tag) in cfg_is_cnode() argument
392 cfg_get_cstring(CFGFILE *cfg, const char *key, void *value, int value_len) in cfg_get_cstring() argument
[all …]
/onnv-gate/usr/src/lib/librdc/common/
H A Drdcpersist.c74 load_rdc_vols(CFGFILE *cfg) in load_rdc_vols() argument
86 cfg_rewind(cfg, CFG_SEC_CONF); in load_rdc_vols()
90 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF)) { in load_rdc_vols()
264 do_autosv_enable(CFGFILE *cfg, rdcconfig_t *rdc) in do_autosv_enable() argument
269 cfg_load_svols(cfg); in do_autosv_enable()
270 cfg_load_dsvols(cfg); in do_autosv_enable()
271 cfg_load_shadows(cfg); in do_autosv_enable()
272 load_rdc_vols(cfg); in do_autosv_enable()
282 if (cfg_vol_enable(cfg, vol, rdc->ctag, "sndr") < 0) { in do_autosv_enable()
289 if (cfg_vol_enable(cfg, bmp, rdc->ctag, "sndr") < 0) { in do_autosv_enable()
[all …]
/onnv-gate/usr/src/cmd/lms/
H A Dglue.cpp55 static void parser_init(parser_t *cfg) in parser_init() argument
57 if (!cfg) { in parser_init()
61 cfg->count = 0; in parser_init()
64 static int parser_add(parser_t *cfg, char *buf) in parser_add() argument
66 if ((!cfg) || (cfg->count > PARSER_MAX)) { in parser_add()
70 cfg->line[cfg->count] = strdup(buf); in parser_add()
71 if (cfg->line[cfg->count]) { in parser_add()
72 cfg->count ++; in parser_add()
78 static int parser_length(parser_t *cfg) in parser_length() argument
80 if (!cfg) { in parser_length()
[all …]
/onnv-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_prop.c59 static int ndmpd_config_update(ndmpd_cfg_param_t *cfg, char *value);
103 ndmpd_cfg_param_t *cfg; in ndmpd_load_prop() local
107 cfg = &ndmpd_cfg_table[id]; in ndmpd_load_prop()
108 if ((ndmp_get_prop(cfg->sc_name, &value)) == -1) { in ndmpd_load_prop()
110 cfg->sc_name, ndmp_strerror(ndmp_errno)); in ndmpd_load_prop()
120 if ((cfg->sc_flags & NDMP_CF_DEFINED) || value) { in ndmpd_load_prop()
121 if (ndmpd_config_update(cfg, value)) { in ndmpd_load_prop()
138 ndmpd_config_update(ndmpd_cfg_param_t *cfg, char *value) in ndmpd_config_update() argument
146 if (cfg->sc_value) { in ndmpd_config_update()
147 curval = realloc(cfg->sc_value, (len + 1)); in ndmpd_config_update()
[all …]
/onnv-gate/usr/src/lib/libiscsit/common/
H A Dlibiscsit.h109 it_config_load(it_config_t **cfg);
130 it_config_commit(it_config_t *cfg);
155 it_config_setprop(it_config_t *cfg, nvlist_t *proplist, nvlist_t **errlist);
166 it_config_free(it_config_t *cfg);
197 it_tgt_create(it_config_t *cfg, it_tgt_t **tgt, char *tgt_name);
223 it_tgt_setprop(it_config_t *cfg, it_tgt_t *tgt, nvlist_t *proplist,
248 it_tgt_delete(it_config_t *cfg, it_tgt_t *tgt, boolean_t force);
280 it_tpgt_create(it_config_t *cfg, it_tgt_t *tgt, it_tpgt_t **tpgt,
299 it_tpgt_delete(it_config_t *cfg, it_tgt_t *tgt, it_tpgt_t *tpgt);
329 it_tpg_create(it_config_t *cfg, it_tpg_t **tpg, char *tpg_name,
[all …]
H A Dlibiscsit.c112 it_config_load(it_config_t **cfg) in it_config_load() argument
119 if (!cfg) { in it_config_load()
123 *cfg = NULL; in it_config_load()
139 *cfg = newcfg; in it_config_load()
168 it_config_commit(it_config_t *cfg) in it_config_commit() argument
178 if (!cfg) { in it_config_commit()
182 ret = it_config_to_nv(cfg, &cfgnv); in it_config_commit()
235 tgtp = cfg->config_tgt_list; in it_config_commit()
252 ret = it_config_to_nv(cfg, &cfgnv); in it_config_commit()
269 STMF_PORT_PROVIDER_TYPE, &(cfg->stmf_token)); in it_config_commit()
[all …]
/onnv-gate/usr/src/cmd/avs/dscfg/
H A Ddscfg.c161 parse_parse_config(CFGFILE *cfg) in parse_parse_config() argument
181 cfg_rewind(cfg, CFG_SEC_ALL); in parse_parse_config()
188 rc = cfg_update_parser_config(cfg, buff, CFG_PARSE_CONF); in parse_parse_config()
202 parse_text_config(CFGFILE *cfg) in parse_text_config() argument
218 cfg_rewind(cfg, CFG_SEC_CONF); in parse_text_config()
235 rc = cfg_put_cstring(cfg, key, p, strlen(p)); in parse_text_config()
247 dump_status(CFGFILE *cfg) in dump_status() argument
249 cfp_t *cfp = FP_SUN_CLUSTER(cfg); in dump_status()
288 dump_lockstat(CFGFILE *cfg) in dump_lockstat() argument
294 if (cfg_get_lock(cfg, &lock, &pid) == TRUE) { in dump_lockstat()
[all …]
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigRat/t/
H A Dtrap.t19 my ($cfg,$x);
29 $cfg = $class->config( trap_nan => 1 ); ok ($cfg->{trap_nan},1);
32 $cfg = $class->config( { trap_nan => 1 } ); ok ($cfg->{trap_nan},1);
40 $cfg = $class->config( trap_nan => 0 ); ok ($cfg->{trap_nan},0);
43 $cfg = $class->config( trap_inf => 1 ); ok ($cfg->{trap_inf},1);
58 $cfg = $class->config( trap_nan => 1 );
68 $cfg = Math::BigRat->config( trap_nan => 1 );
/onnv-gate/usr/src/uts/common/io/nxge/npi/
H A Dnpi_fflp.c1517 fflp_enet_vlan_tbl_t cfg; in npi_fflp_cfg_enet_vlan_table_assoc() local
1550 REG_PIO_READ64(handle, offset, &cfg.value); in npi_fflp_cfg_enet_vlan_table_assoc()
1554 cfg.bits.ldw.vlanrdctbln0 = rdc_table; in npi_fflp_cfg_enet_vlan_table_assoc()
1556 cfg.bits.ldw.vpr0 = BIT_ENABLE; in npi_fflp_cfg_enet_vlan_table_assoc()
1558 cfg.bits.ldw.vpr0 = BIT_DISABLE; in npi_fflp_cfg_enet_vlan_table_assoc()
1560 parity_bit = vlan_parity[cfg.bits.ldw.vlanrdctbln0] + in npi_fflp_cfg_enet_vlan_table_assoc()
1561 vlan_parity[cfg.bits.ldw.vlanrdctbln1] + in npi_fflp_cfg_enet_vlan_table_assoc()
1562 cfg.bits.ldw.vpr0 + cfg.bits.ldw.vpr1; in npi_fflp_cfg_enet_vlan_table_assoc()
1563 cfg.bits.ldw.parity0 = parity_bit & 0x1; in npi_fflp_cfg_enet_vlan_table_assoc()
1566 cfg.bits.ldw.vlanrdctbln1 = rdc_table; in npi_fflp_cfg_enet_vlan_table_assoc()
[all …]
/onnv-gate/usr/src/cmd/avs/dscfglockd/
H A Ddscfgcli.c39 CFGFILE *cfg; variable
52 if (cfg_lock(cfg, CFG_RDLOCK) < 0) in test()
57 cfg_unlock(cfg); in test()
60 if (cfg_lock(cfg, CFG_RDLOCK) < 0) in test()
65 cfg_unlock(cfg); in test()
68 if (cfg_lock(cfg, CFG_WRLOCK) < 0) in test()
73 cfg_unlock(cfg); in test()
107 if (cfg_lock(cfg, CFG_RDLOCK) < 0) in cmd_loop()
118 cfg_unlock(cfg); in cmd_loop()
121 if (cfg_lock(cfg, CFG_WRLOCK) < 0) in cmd_loop()
[all …]
/onnv-gate/usr/src/cmd/avs/rdc/
H A Dsndrsyncd.c360 CFGFILE *cfg = NULL; in rdc_sync() local
405 if ((cfg = cfg_open(NULL)) == NULL) { in rdc_sync()
416 if (!cfg_lock(cfg, CFG_RDLOCK)) { in rdc_sync()
427 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) { in rdc_sync()
443 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) in rdc_sync()
450 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) in rdc_sync()
456 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) in rdc_sync()
474 cfg_close(cfg); in rdc_sync()
475 cfg = NULL; in rdc_sync()
491 if (cfg) { in rdc_sync()
[all …]
H A Dsndrsubr.c273 find_setnumber_in_libcfg(CFGFILE *cfg, char *ctag, char *tohost, char *tofile) in find_setnumber_in_libcfg() argument
282 if (cfg == NULL) { in find_setnumber_in_libcfg()
289 entries = cfg_get_section(cfg, &entry, "sndr"); in find_setnumber_in_libcfg()
339 get_group_diskq(CFGFILE *cfg, char *group, char *diskq) in get_group_diskq() argument
351 if (cfg_get_cstring(cfg, key, &buf, sizeof (buf)) < 0) in get_group_diskq()
355 if (cfg_get_cstring(cfg, key, diskq, CFG_MAX_BUF) < 0) { in get_group_diskq()
364 get_cfg_setid(CFGFILE *cfg, char *ctag, char *tohost, char *tofile) in get_cfg_setid() argument
371 if (cfg == NULL) { in get_cfg_setid()
373 if ((cfg = cfg_open(NULL)) == NULL) { in get_cfg_setid()
376 if (!cfg_lock(cfg, CFG_RDLOCK)) { in get_cfg_setid()
[all …]
H A Dsndradm.c230 CFGFILE *cfg; in rdc_print() local
266 cfg = cfgp; in rdc_print()
267 cfg_rewind(cfg, CFG_SEC_CONF); in rdc_print()
269 if ((cfg = cfg_open(NULL)) == NULL) in rdc_print()
273 if (!cfg_lock(cfg, CFG_RDLOCK)) in rdc_print()
297 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) { in rdc_print()
389 cfg_close(cfg); in rdc_print()
668 check_diskqueue(CFGFILE *cfg, char *newq, char *newgroup) in check_diskqueue() argument
676 int open_cfg = cfg == NULL ? 1 : 0; in check_diskqueue()
686 if ((cfg = cfg_open(NULL)) == NULL) in check_diskqueue()
[all …]
/onnv-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_cfg.c150 smb_cfg_param_t *cfg; in smb_config_getname() local
151 cfg = smb_config_getent(id); in smb_config_getname()
152 return (cfg->sc_name); in smb_config_getname()
357 smb_cfg_param_t *cfg; in smb_config_getstr() local
364 cfg = smb_config_getent(id); in smb_config_getstr()
365 assert(cfg->sc_type == SCF_TYPE_ASTRING); in smb_config_getstr()
371 if (cfg->sc_flags & SMB_CF_PROTECTED) { in smb_config_getstr()
376 if ((rc = smb_smf_get_string_property(handle, cfg->sc_name, in smb_config_getstr()
386 pg = (cfg->sc_flags & SMB_CF_EXEC) ? SMBD_EXEC_PG_NAME : in smb_config_getstr()
390 rc = smb_smf_get_string_property(handle, cfg->sc_name, in smb_config_getstr()
[all …]
/onnv-gate/usr/src/cmd/itadm/
H A Ditadm.c623 it_config_t *cfg = NULL; in create_target() local
649 ret = it_config_load(&cfg); in create_target()
658 ret = it_tgt_create(cfg, &tgtp, tgt); in create_target()
705 tpg = cfg->config_tpg_list; in create_target()
725 ret = it_tpgt_create(cfg, tgtp, &tpgt, tags[i], tagid); in create_target()
741 ret = it_tgt_setprop(cfg, tgtp, proplist, &errlist); in create_target()
770 ret = it_config_commit(cfg); in create_target()
782 it_config_free(cfg); in create_target()
791 it_config_t *cfg; in list_target() local
812 ret = it_config_load(&cfg); in list_target()
[all …]
/onnv-gate/usr/src/cmd/avs/dsw/
H A Diiboot.c314 CFGFILE *cfg; in iiboot_lintmain() local
332 if (!(cfg = cfg_open(""))) { in iiboot_lintmain()
338 while (!cfg_lock(cfg, CFG_WRLOCK)) in iiboot_lintmain()
342 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) { in iiboot_lintmain()
343 cfg_close(cfg); in iiboot_lintmain()
360 cfg_close(cfg); in iiboot_lintmain()
374 if (cfg_vol_disable(cfg, mst, cfg_cluster_tag, in iiboot_lintmain()
382 if (cfg_put_cstring(cfg, key, NULL, 0) < 0) { in iiboot_lintmain()
391 if (cfg_vol_disable(cfg, shd, NULL, "ii") < 0) in iiboot_lintmain()
398 (void) cfg_commit(cfg); in iiboot_lintmain()
[all …]
H A Diicpshd.c69 CFGFILE *cfg; variable
98 if ((cfg = cfg_open(NULL)) == NULL) { in iicpshd_lintmain()
107 cfg_close(cfg); in iicpshd_lintmain()
253 if (!cfg_lock(cfg, CFG_RDLOCK)) { in find_cfg_info()
262 if (cfg_get_cstring(cfg, key, buf, DSW_NAMELEN) < 0) { in find_cfg_info()
263 cfg_unlock(cfg); in find_cfg_info()
270 (void) cfg_get_cstring(cfg, key, in find_cfg_info()
279 cfg_unlock(cfg); in find_cfg_info()
318 if (!cfg_lock(cfg, CFG_WRLOCK)) { in update_dscfg()
325 if (cfg_put_cstring(cfg, key, new_shadow, len) < 0) { in update_dscfg()
[all …]
/onnv-gate/usr/src/cmd/avs/sdbc/
H A Dscmadm.c189 convert_config(CFGFILE *cfg, CFGLOCK mode) in convert_config() argument
195 if (cfg_get_cstring(cfg, "scm.set1", buf, sizeof (buf)) >= 0) { in convert_config()
200 cfg_rewind(cfg, CFG_SEC_CONF); in convert_config()
207 cfg_unlock(cfg); in convert_config()
208 if (!cfg_lock(cfg, CFG_WRLOCK)) { in convert_config()
222 if (cfg_put_cstring(cfg, "scm", default_cfg, strlen(default_cfg)) < 0) { in convert_config()
229 if (!cfg_commit(cfg)) { in convert_config()
236 if (!cfg_lock(cfg, mode)) { in convert_config()
244 cfg_rewind(cfg, CFG_SEC_CONF); in convert_config()
271 CFGFILE *cfg; in restore_hints() local
[all …]

1234567