/titanic_50/usr/src/uts/common/inet/ilb/ |
H A D | ilb.c | 118 ilb_rule_t *rule; member 211 ilb_rule_kstat_init(netstackid_t stackid, ilb_rule_t *rule) in ilb_rule_kstat_init() argument 230 ksp = kstat_create_netstack(ILB_KSTAT_MOD_NAME, rule->ir_ks_instance, in ilb_rule_kstat_init() 231 rule->ir_name, ILB_RULE_KS_CNAME, KSTAT_TYPE_NAMED, in ilb_rule_kstat_init() 236 bcopy(&template, &rule->ir_kstat, sizeof (template)); in ilb_rule_kstat_init() 237 ksp->ks_data = &rule->ir_kstat; in ilb_rule_kstat_init() 245 ilb_server_kstat_init(netstackid_t stackid, ilb_rule_t *rule, in ilb_server_kstat_init() argument 257 ASSERT(strlen(rule->ir_name) + 7 < KSTAT_STRLEN); in ilb_server_kstat_init() 258 (void) sprintf(cname_buf, "%s-sstat", rule->ir_name); in ilb_server_kstat_init() 259 ksp = kstat_create_netstack(ILB_KSTAT_MOD_NAME, rule->ir_ks_instance, in ilb_server_kstat_init() [all …]
|
H A D | ilb_impl.h | 74 #define ILB_R_KSTAT(rule, x) \ argument 77 (rule)); \ 78 ((rule)->ir_kstat.x.value.ui64++); \ 80 #define ILB_R_KSTAT_UPDATE(rule, x, y) \ argument 83 (rule)); \ 84 ((rule)->ir_kstat.x.value.ui64 += (y)); \ 231 #define ILB_RULE_REFHOLD(rule) \ argument 233 mutex_enter(&(rule)->ir_lock); \ 234 (rule)->ir_refcnt++; \ 235 ASSERT((rule)->ir_refcnt != 1); \ [all …]
|
H A D | ilb_conn.c | 85 #define ILB_STICKY_HASH(saddr, rule, hash_size) \ argument 86 (((*((saddr) + 3) ^ ((rule) >> 24)) * 29791 + \ 87 (*((saddr) + 2) ^ ((rule) >> 16)) * 961 + \ 88 (*((saddr) + 1) ^ ((rule) >> 8)) * 31 + \ 89 (*(saddr) ^ (rule))) & ((hash_size) - 1)) 501 ilb_conn_add(ilb_stack_t *ilbs, ilb_rule_t *rule, ilb_server_t *server, in ilb_conn_add() argument 512 if (rule->ir_topo == ILB_TOPO_IMPL_NAT) { in ilb_conn_add() 525 connp->conn_l4 = rule->ir_proto; in ilb_conn_add() 531 connp->conn_rule_cache.topo = rule->ir_topo; in ilb_conn_add() 536 connp->conn_expiry = rule->ir_nat_expiry; in ilb_conn_add() [all …]
|
/titanic_50/usr/src/lib/libresolv2/common/irs/ |
H A D | gen_pr.c | 47 struct irs_rule * rule; member 85 pvt->rule = pvt->rules; in irs_gen_pr() 114 while (pvt->rule) { in pr_next() 115 pr = pvt->rule->inst->pr; in pr_next() 121 pvt->rule = pvt->rule->next; in pr_next() 122 if (pvt->rule) { in pr_next() 123 pr = pvt->rule->inst->pr; in pr_next() 133 struct irs_rule *rule; in pr_byname() local 138 for (rule = pvt->rules; rule; rule = rule->next) { in pr_byname() 139 pr = rule->inst->pr; in pr_byname() [all …]
|
H A D | gen_sv.c | 47 struct irs_rule * rule; member 86 pvt->rule = pvt->rules; in irs_gen_sv() 115 while (pvt->rule) { in sv_next() 116 sv = pvt->rule->inst->sv; in sv_next() 120 if (!(pvt->rule->flags & IRS_CONTINUE)) in sv_next() 122 pvt->rule = pvt->rule->next; in sv_next() 123 if (pvt->rule) { in sv_next() 124 sv = pvt->rule->inst->sv; in sv_next() 134 struct irs_rule *rule; in sv_byname() local 139 for (rule = pvt->rules; rule; rule = rule->next) { in sv_byname() [all …]
|
H A D | gen_ho.c | 50 struct irs_rule * rule; member 96 pvt->rule = pvt->rules; in irs_gen_ho() 127 struct irs_rule *rule; in ho_byname() local 136 for (rule = pvt->rules; rule; rule = rule->next) { in ho_byname() 137 ho = rule->inst->ho; in ho_byname() 149 if (rule->flags & IRS_CONTINUE) in ho_byname() 170 struct irs_rule *rule; in ho_byname2() local 179 for (rule = pvt->rules; rule; rule = rule->next) { in ho_byname2() 180 ho = rule->inst->ho; in ho_byname2() 192 if (rule->flags & IRS_CONTINUE) in ho_byname2() [all …]
|
H A D | gen_nw.c | 48 struct irs_rule * rule; member 88 pvt->rule = pvt->rules; in irs_gen_nw() 125 while (pvt->rule) { in nw_next() 126 nw = pvt->rule->inst->nw; in nw_next() 132 pvt->rule = pvt->rule->next; in nw_next() 133 if (pvt->rule) { in nw_next() 134 nw = pvt->rule->inst->nw; in nw_next() 144 struct irs_rule *rule; in nw_byname() local 151 for (rule = pvt->rules; rule; rule = rule->next) { in nw_byname() 152 nw = rule->inst->nw; in nw_byname() [all …]
|
H A D | gen_ng.c | 48 struct irs_rule * rule; member 83 pvt->rule = pvt->rules; in irs_gen_ng() 113 while (pvt->rule) { in ng_next() 114 ng = pvt->rule->inst->ng; in ng_next() 117 if (!(pvt->rule->flags & IRS_CONTINUE)) in ng_next() 119 pvt->rule = pvt->rule->next; in ng_next() 120 if (pvt->rule) { in ng_next() 121 ng = pvt->rule->inst->ng; in ng_next() 133 struct irs_rule *rule; in ng_test() local 138 for (rule = pvt->rules; rule; rule = rule->next) { in ng_test() [all …]
|
H A D | gen.c | 200 struct irs_rule *rule; in gen_res_set() 214 for (rule = irs->map_rules[irs_ho]; rule; rule = rule->next) { in gen_res_set() 215 ho = rule->inst->ho; in gen_res_set() 219 for (rule = irs->map_rules[irs_nw]; rule; rule = rule->next) { in gen_res_set() 220 nw = rule->inst->nw; in gen_res_set() 285 release_rule(struct irs_rule *rule) { in release_rule() argument 286 struct irs_rule *next = rule->next; in release_rule() 288 memput(rule, sizeof *rule); in release_rule()
|
/titanic_50/usr/src/uts/common/os/ |
H A D | dacf.c | 314 dacf_rule_t *rule; in dacf_rule_insert() local 341 rule = dacf_rule_ctor(devspec_data, module, opset, opid, opts, in dacf_rule_insert() 343 dacf_rule_hold(rule); in dacf_rule_insert() 345 if (mod_hash_insert(hash, (mod_hash_key_t)rule->r_devspec_data, in dacf_rule_insert() 346 (mod_hash_val_t)rule) != 0) { in dacf_rule_insert() 351 dacf_rule_rele(rule); in dacf_rule_insert() 369 dacf_rule_t *rule; in dacf_rule_ctor() local 372 rule = kmem_alloc(sizeof (dacf_rule_t), KM_SLEEP); in dacf_rule_ctor() 377 rule->r_devspec_data = kmem_alloc(strlen(device_spec) + 1, KM_SLEEP); in dacf_rule_ctor() 378 (void) strcpy(rule->r_devspec_data, device_spec); in dacf_rule_ctor() [all …]
|
/titanic_50/usr/src/cmd/bart/ |
H A D | rules.c | 31 static struct rule *gen_rulestruct(void); 34 static void init_rule(uint_t, struct rule *); 35 static void add_modifier(struct rule *, char *); 36 static struct rule *add_subtree_rule(char *, char *, int, int *); 37 static struct rule *add_single_rule(char *); 42 static struct rule *get_last_entry(boolean_t); 45 static struct rule *first_rule = NULL, *current_rule = NULL; 65 exclude_fname(const char *fname, char fname_type, struct rule *rule_ptr) in exclude_fname() 352 static struct rule * 355 struct rule *new_rule; in gen_rulestruct() [all …]
|
H A D | bart.h | 135 struct rule { struct 139 struct rule *next; argument 140 struct rule *prev; argument 153 struct rule *check_rules(const char *, char); 154 int exclude_fname(const char *, char, struct rule *); 155 struct rule *get_first_subtree(void); 156 struct rule *get_next_subtree(struct rule *);
|
H A D | create.c | 54 static struct rule *subtree_root; 229 struct rule *root; in create_manifest_rule() 349 struct rule *rule; in walker() local 353 rule = check_rules(name, 'F'); in walker() 354 if (rule != NULL) { in walker() 355 if (rule->attr_list & ATTR_CONTENTS) in walker()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_hc.c | 813 ilbd_hc_associate_rule(const ilbd_rule_t *rule, int ev_port) in ilbd_hc_associate_rule() argument 822 if ((hc = ilbd_get_hc(rule->irl_hcname)) == NULL) { in ilbd_hc_associate_rule() 824 "exist", rule->irl_hcname); in ilbd_hc_associate_rule() 828 rule->irl_proto != IPPROTO_TCP) || in ilbd_hc_associate_rule() 830 rule->irl_proto != IPPROTO_UDP)) { in ilbd_hc_associate_rule() 838 hc_rule->hcr_rule = rule; in ilbd_hc_associate_rule() 843 sg = rule->irl_sg; in ilbd_hc_associate_rule() 863 ilbd_hc_dissociate_rule(const ilbd_rule_t *rule) in ilbd_hc_dissociate_rule() argument 869 if ((hc = ilbd_get_hc(rule->irl_hcname)) == NULL) { in ilbd_hc_dissociate_rule() 871 "exist", rule->irl_hcname); in ilbd_hc_dissociate_rule() [all …]
|
/titanic_50/usr/src/cmd/make/bin/ |
H A D | misc.cc | 313 register Cmd_line rule; in dump_make_state() local 330 for (rule = default_rule; rule != NULL; rule = rule->next) { in dump_make_state() 331 (void) printf("\t%s\n", rule->command_line->string_mb); in dump_make_state() 357 for (rule = sccs_get_rule; rule != NULL; rule = rule->next) { in dump_make_state() 358 (void) printf("\t%s\n", rule->command_line->string_mb); in dump_make_state() 390 for (rule = percent->command_template; in dump_make_state() 391 rule != NULL; in dump_make_state() 392 rule = rule->next) { in dump_make_state() 393 (void) printf("\t%s\n", rule->command_line->string_mb); in dump_make_state() 459 register Cmd_line rule; in print_rule() local [all …]
|
H A D | parallel.cc | 125 Cmd_line rule; in execute_parallel() local 176 for (rule = line->body.line.command_used; in execute_parallel() 177 rule != NULL; in execute_parallel() 178 rule = rule->next) { in execute_parallel() 179 if (posix && (touch || quest) && !rule->always_exec) { in execute_parallel() 183 rule->command_line = in execute_parallel() 184 vpath_translation(rule->command_line); in execute_parallel() 190 if (rule->command_line->hash.length > 0) { in execute_parallel() 195 if (rule->silent && !silent) { in execute_parallel() 198 if (rule->ignore_error) { in execute_parallel() [all …]
|
H A D | nse_printdep.cc | 330 register Cmd_line rule; in print_rule() local 338 for (rule= line->body.line.command_template; rule != NULL; rule= rule->next) in print_rule() 339 (void)printf("\t%s\n", rule->command_line->string_mb); in print_rule()
|
/titanic_50/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_matching.c | 266 const char **rule, in parse_rule_component() argument 283 if (strncmp(*rule, kw->value, kw->length) == 0) { in parse_rule_component() 286 *rule += kw->length; in parse_rule_component() 293 __FUNCTION__, *rule); in parse_rule_component() 315 nk = strchr(*rule, '<'); in parse_rule_component() 332 len = (nk - *rule); in parse_rule_component() 348 (void) memcpy(value, *rule, len); in parse_rule_component() 350 *rule += len; in parse_rule_component() 393 const char *rule; in parse_rule_set() local 403 rule = rule_in; in parse_rule_set() [all …]
|
/titanic_50/usr/src/uts/intel/io/intel_nhm/ |
H A D | intel_nhm.h | 88 #define SAD_DRAM_RULE_RD(cpu, rule) \ argument 89 nhm_pci_getl(SOCKET_BUS(cpu), 0, 1, 0x80 + (4 * (rule)), 0) 90 #define SAD_INTERLEAVE_LIST_RD(cpu, rule) \ argument 91 nhm_pci_getl(SOCKET_BUS(cpu), 0, 1, 0xc0 + (4 * (rule)), 0) 92 #define TAD_DRAM_RULE_RD(cpu, rule) \ argument 93 nhm_pci_getl(SOCKET_BUS(cpu), 3, 1, 0x80 + (4 * (rule)), 0) 94 #define TAD_INTERLEAVE_LIST_RD(cpu, rule) \ argument 95 nhm_pci_getl(SOCKET_BUS(cpu), 3, 1, 0xc0 + (4 * (rule)), 0)
|
/titanic_50/usr/src/cmd/idmap/idmapd/ |
H A D | dbutils.c | 600 gen_sql_expr_from_rule(idmap_namerule *rule, char **out) in gen_sql_expr_from_rule() argument 612 if (!EMPTY_STRING(rule->windomain)) { in gen_sql_expr_from_rule() 614 rule->windomain); in gen_sql_expr_from_rule() 621 if (!EMPTY_STRING(rule->winname)) { in gen_sql_expr_from_rule() 622 if ((lower_winname = tolower_u8(rule->winname)) == NULL) in gen_sql_expr_from_rule() 623 lower_winname = rule->winname; in gen_sql_expr_from_rule() 626 lower_winname, rule->is_wuser ? 1 : 0); in gen_sql_expr_from_rule() 627 if (lower_winname != rule->winname) in gen_sql_expr_from_rule() 635 if (!EMPTY_STRING(rule->unixname)) { in gen_sql_expr_from_rule() 638 rule->unixname, rule->is_user ? 1 : 0); in gen_sql_expr_from_rule() [all …]
|
H A D | server.c | 144 validate_rule(idmap_namerule *rule) in validate_rule() argument 148 if (!EMPTY_STRING(rule->winname) && in validate_rule() 149 u8_validate(rule->winname, strlen(rule->winname), in validate_rule() 153 if (!EMPTY_STRING(rule->windomain) && in validate_rule() 154 u8_validate(rule->windomain, strlen(rule->windomain), in validate_rule() 171 if (validate_rule(&(up->idmap_update_op_u.rule)) in validate_rules() 605 how->idmap_how_u.rule.windomain = in list_mappings_cb() 607 how->idmap_how_u.rule.winname = in list_mappings_cb() 609 how->idmap_how_u.rule.unixname = in list_mappings_cb() 611 how->idmap_how_u.rule.is_nt4 = in list_mappings_cb() [all …]
|
/titanic_50/usr/src/lib/libidmap/common/ |
H A D | idmap_api.c | 266 idmap_namerule2parts(idmap_namerule *rule, in idmap_namerule2parts() argument 273 if (EMPTY_STRING(rule->winname) && EMPTY_STRING(rule->unixname)) in idmap_namerule2parts() 277 retcode = idmap_strdupnull(windomain, rule->windomain); in idmap_namerule2parts() 281 retcode = idmap_strdupnull(winname, rule->winname); in idmap_namerule2parts() 285 retcode = idmap_strdupnull(unixname, rule->unixname); in idmap_namerule2parts() 291 *is_user = rule->is_user; in idmap_namerule2parts() 293 *is_wuser = rule->is_wuser; in idmap_namerule2parts() 295 *is_nt4 = rule->is_nt4; in idmap_namerule2parts() 297 *direction = rule->direction; in idmap_namerule2parts() 430 idmap_namerule *rule = NULL; in idmap_udt_add_namerule() local [all …]
|
/titanic_50/usr/src/cmd/filesync/ |
H A D | database.h | 79 struct rule *b_includes; /* chain of include rules */ 80 struct rule *b_excludes; /* chain of exclude rules */ 81 struct rule *b_restrictions; /* chain of restrictions */ 113 struct rule { struct 114 struct rule *r_next; /* pointer to next rule in base */ argument
|
H A D | rules.c | 387 { struct rule *rp; in rw_base() 431 { struct rule *rp; in add_rule() 432 struct rule **list; in add_rule() 434 rp = malloc(sizeof (struct rule)); in add_rule() 439 memset((void *) rp, 0, sizeof (struct rule)); in add_rule() 605 { struct rule *rp; in check_restr()
|
/titanic_50/usr/src/lib/libc/amd64/unwind/ |
H A D | call_frame_inst.c | 144 switch (rs[CF_ADDR].rule) { in fix_cfa() 167 switch (rs[RET_ADD].rule) { in fix_ra() 190 switch (rs[index].rule) { in fix_reg() 578 f_state[val1].rule = offset_rule; in interpret_op() 587 f_state[val1].rule = undefined_rule; in interpret_op() 590 f_state[val1].rule = same_value_rule; in interpret_op() 593 f_state[val1].rule = register_rule; in interpret_op() 602 f_state[CF_ADDR].rule = register_rule; in interpret_op() 617 f_state[val1].rule = offset_rule; in interpret_op() 622 f_state[CF_ADDR].rule = register_rule; in interpret_op() [all …]
|