/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_hout.c | 71 print_datadef(definition *def) in print_datadef() argument 73 if (def->def_kind == DEF_PROGRAM) /* handle data only */ in print_datadef() 76 if (def->def_kind != DEF_CONST) in print_datadef() 78 switch (def->def_kind) { in print_datadef() 80 pstructdef(def); in print_datadef() 83 puniondef(def); in print_datadef() 86 penumdef(def); in print_datadef() 89 ptypedef(def); in print_datadef() 92 pprogramdef(def); in print_datadef() 95 pconstdef(def); in print_datadef() [all …]
|
H A D | rpc_cout.c | 68 emit(definition *def) in emit() argument 70 if (def->def_kind == DEF_CONST) in emit() 72 if (def->def_kind == DEF_PROGRAM) { in emit() 73 emit_program(def); in emit() 76 if (def->def_kind == DEF_TYPEDEF) { in emit() 84 if (strcmp(def->def.ty.old_type, def->def_name) == 0) in emit() 87 print_header(def); in emit() 88 switch (def->def_kind) { in emit() 90 emit_union(def); in emit() 93 emit_enum(def); in emit() [all …]
|
H A D | rpc_util.c | 123 findit(definition *def, char *type) in findit() argument 125 return (streq(def->def_name, type)); in findit() 131 definition *def; in fixit() local 133 def = (definition *)FINDVAL(defined, type, findit); in fixit() 134 if (def == NULL || def->def_kind != DEF_TYPEDEF) in fixit() 136 switch (def->def.ty.rel) { in fixit() 138 if (streq(def->def.ty.old_type, "opaque")) in fixit() 140 return (def->def.ty.old_type); in fixit() 143 return (fixit(def->def.ty.old_type, orig)); in fixit() 185 typedefed(definition *def, char *type) in typedefed() argument [all …]
|
H A D | rpc_svcout.c | 204 definition *def; in write_netid_register() local 225 def = (definition *) l->val; in write_netid_register() 226 if (def->def_kind != DEF_PROGRAM) { in write_netid_register() 229 for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) { in write_netid_register() 232 sp, def->def_name, vp->vers_name); in write_netid_register() 235 sp, TRANSP, def->def_name, vp->vers_name); in write_netid_register() 236 pvname(def->def_name, vp->vers_num); in write_netid_register() 240 def->def_name, vp->vers_name, transp); in write_netid_register() 255 definition *def; in write_nettype_register() local 259 def = (definition *) l->val; in write_nettype_register() [all …]
|
H A D | rpc_sample.c | 58 write_sample_svc(definition *def) in write_sample_svc() argument 60 if (def->def_kind != DEF_PROGRAM) in write_sample_svc() 62 write_sample_server(def); in write_sample_svc() 66 write_sample_clnt(definition *def) in write_sample_clnt() argument 71 if (def->def_kind != DEF_PROGRAM) in write_sample_clnt() 74 for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) { in write_sample_clnt() 75 write_sample_client(def->def_name, vp); in write_sample_clnt() 211 write_sample_server(definition *def) in write_sample_server() argument 216 for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) { in write_sample_server() 260 pvname(def->def_name, vp->vers_num); in write_sample_server() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | simplify.c | 60 struct instruction *def = pseudo->def; in phi_parent() local 61 if (def->bb == source) in phi_parent() 85 struct instruction *def; in get_phisources() local 90 def = phi->def; in get_phisources() 91 assert(def->opcode == OP_PHISOURCE); in get_phisources() 92 sources[i++] = def; in get_phisources() 196 struct instruction *def; in trivial_phi() local 201 def = phi->def; in trivial_phi() 202 if (!def->bb) in trivial_phi() 204 src = def->phi_src; // bypass OP_PHISRC & get the real source in trivial_phi() [all …]
|
H A D | unssa.c | 45 struct instruction *def = src->def; in simplify_phi_node() local 47 if (!def) in simplify_phi_node() 49 if (def->bb == phi->bb) in simplify_phi_node() 71 tmp->def = NULL; // defined by all the phisrc in replace_phi_node() 78 struct instruction *def = p->def; in replace_phi_node() local 84 assert(def->opcode == OP_PHISOURCE); in replace_phi_node() 86 def->opcode = OP_COPY; in replace_phi_node() 87 def->target = tmp; in replace_phi_node() 90 src = def->phi_src; in replace_phi_node() 96 insn = src->def; in replace_phi_node() [all …]
|
H A D | liveness.c | 21 struct instruction *def; in phi_defines() local 24 def = phi->def; in phi_defines() 25 if (!def || !def->bb) in phi_defines() 27 defines(def->bb, target); in phi_defines() 32 void (*def)(struct basic_block *, pseudo_t), in asm_liveness() 42 def(bb, entry->pseudo); in asm_liveness() 47 void (*def)(struct basic_block *, pseudo_t), in track_instruction_usage() 53 #define DEFINES(x) def(bb, insn->x) in track_instruction_usage() 100 phi_defines(insn, insn->target, def); in track_instruction_usage() 125 asm_liveness(bb, insn, def, use); in track_instruction_usage() [all …]
|
/illumos-gate/usr/src/cmd/prtfru/ |
H A D | prtfru.c | 146 static void print_element(const uint8_t *data, const fru_regdef_t *def, 307 const fru_regdef_t *def; in output_dtd() local 368 if ((def = fru_reg_lookup_def_by_name(element[i])) == NULL) { in output_dtd() 375 if (def->tagType != FRU_X) tagged[i] = 1; in output_dtd() 377 if (def->dataType == FDTYPE_Record) { in output_dtd() 378 if (def->iterationType == FRU_NOT_ITERATED) in output_dtd() 380 def->enumTable[0].text); in output_dtd() 386 element[i], def->enumTable[0].text); in output_dtd() 388 for (j = 1; j < def->enumCount; j++) in output_dtd() 389 output(",\n\t%s", def->enumTable[j].text); in output_dtd() [all …]
|
/illumos-gate/usr/src/lib/libfru/libnvfru/ |
H A D | nvfru.c | 60 convert_field(const uint8_t *field, const fru_regdef_t *def, const char *path, in convert_field() argument 68 switch (def->dataType) { in convert_field() 70 assert(def->payloadLen <= sizeof (value)); in convert_field() 71 switch (def->dispType) { in convert_field() 74 if (def->payloadLen > sizeof (timefield)) { in convert_field() 96 sizeof (value) - def->payloadLen), in convert_field() 97 field, def->payloadLen); in convert_field() 99 switch (def->payloadLen) { in convert_field() 125 def->payloadLen), field, def->payloadLen); in convert_field() 127 for (i = 0; i < def->enumCount; i++) { in convert_field() [all …]
|
/illumos-gate/usr/src/lib/libfru/libfru/ |
H A D | Ancestor.cc | 38 def(d), in Ancestor() 112 return (def); in getDef() 144 fru_regdef_t *def = NULL; in listTaggedAncestors() local 156 def = (fru_regdef_t *) in listTaggedAncestors() 158 Ancestor *ant = createTaggedAncestor(def, element); in listTaggedAncestors() 181 Ancestor::createTaggedAncestor(const fru_regdef_t *def, Str element) in createTaggedAncestor() argument 184 if (def->tagType == FRU_X) in createTaggedAncestor() 188 mk_tag(def->tagType, def->tagDense, def->payloadLen, &tag); in createTaggedAncestor() 189 Ancestor *rc = new Ancestor(element, tag, def); in createTaggedAncestor() 191 if (element.compare(def->name) == 0) { in createTaggedAncestor() [all …]
|
H A D | nameSyntaxYacc.y | 75 = Ancestor::listTaggedAncestors((char *)$1->def->name); 85 if ($1->def->dataType != FDTYPE_Record) 91 for ( int i=0;i<$1->def->enumCount;i++) 93 if ( strcmp ($3->def->name, $1->def->enumTable[i].text) == 0 ) 109 if ( $2->def->tagType == FRU_X ) 121 const fru_regdef_t *def = fru_reg_lookup_def_by_name($1); variable 122 if ( def == NULL ) 130 pathDef->def = (fru_regdef_t *)def; 138 const fru_regdef_t *def = fru_reg_lookup_def_by_name($1); variable 139 if ( def == NULL ) [all …]
|
H A D | PayloadReader.cc | 33 (pathDef->def->iterationType != FRU_NOT_ITERATED) 178 if (iterPoss != path->def->iterationCount) { in getIterationOffset() 199 int length = ((path->def->payloadLen - ITER_CONT_BYTE_LEN) in getIterationOffset() 200 /path->def->iterationCount); in getIterationOffset() 202 rc = calcOffset(path->def->iterationType, in getIterationOffset() 236 calc_data_len = (path->def->payloadLen in readRecurse() 238 path->def->iterationCount; in readRecurse() 257 calc_data_len = path->def->payloadLen; in readRecurse() 263 if (path->def->dataType == FDTYPE_Record) { in readRecurse() 268 if (path->def->dataType == FDTYPE_Binary) { in readRecurse() [all …]
|
H A D | libfru.cc | 807 fru_destroy_elemdef(fru_elemdef_t *def) in fru_destroy_elemdef() argument 809 if (def == NULL) { in fru_destroy_elemdef() 812 if (def->enum_table != NULL) { in fru_destroy_elemdef() 813 for (int i = 0; i < def->enum_count; i++) in fru_destroy_elemdef() 814 fru_destroy_enum(&(def->enum_table[i])); in fru_destroy_elemdef() 815 free(def->enum_table); in fru_destroy_elemdef() 817 def->enum_count = 0; in fru_destroy_elemdef() 819 if (def->example_string != NULL) in fru_destroy_elemdef() 820 free(def->example_string); in fru_destroy_elemdef() 847 fru_create_segment(fru_nodehdl_t container, fru_segdef_t *def) in fru_create_segment() argument [all …]
|
/illumos-gate/usr/src/cmd/format/ |
H A D | defect.c | 235 pr_defect(struct defect_entry *def, int num) in pr_defect() argument 245 fmt_print("%4d%8d%7d", num, def->cyl, def->head); in pr_defect() 251 if (def->bfi != UNKNOWN) { in pr_defect() 252 fmt_print("%8d", def->bfi); in pr_defect() 253 if (def->nbits != UNKNOWN) in pr_defect() 254 fmt_print("%8d", def->nbits); in pr_defect() 257 fmt_print("%8d", def->sect); in pr_defect() 258 fmt_print("%8llu", chs2bn(def->cyl, def->head, def->sect)); in pr_defect() 272 sort_defect(struct defect_entry *def, struct defect_list *list) in sort_defect() argument 280 if (def->bfi == UNKNOWN) in sort_defect() [all …]
|
/illumos-gate/usr/src/cmd/fruadm/ |
H A D | fruadm.c | 137 displayBinary(unsigned char *data, size_t length, fru_elemdef_t *def) in displayBinary() argument 143 if (def->disp_type == FDISP_Hex) { in displayBinary() 151 switch (def->disp_type) { in displayBinary() 209 display_data(unsigned char *data, size_t length, fru_elemdef_t *def) in display_data() argument 219 switch (def->data_type) { in display_data() 222 displayBinary(data, length, def); in display_data() 228 switch (def->disp_type) { in display_data() 256 for (i = 0; i < def->enum_count; i++) { in display_data() 257 if (def->enum_table[i].value == lldata) { in display_data() 259 char *tmp = strdup(def->enum_table[i].text); in display_data() [all …]
|
/illumos-gate/usr/src/uts/intel/sys/amdzen/ |
H A D | ccd.h | 72 amdzen_smupwr_smn_reg(const uint8_t ccdno, const smn_reg_def_t def, in amdzen_smupwr_smn_reg() argument 83 const uint32_t size32 = (def.srd_size == 0) ? 4 : in amdzen_smupwr_smn_reg() 84 (const uint32_t)def.srd_size; in amdzen_smupwr_smn_reg() 86 const uint32_t stride = (def.srd_stride == 0) ? size32 : def.srd_stride; in amdzen_smupwr_smn_reg() 87 const uint32_t nents = (def.srd_nents == 0) ? 1 : in amdzen_smupwr_smn_reg() 88 (const uint32_t)def.srd_nents; in amdzen_smupwr_smn_reg() 91 ASSERT3S(def.srd_unit, ==, SMN_UNIT_SMUPWR); in amdzen_smupwr_smn_reg() 108 const uint32_t reg = def.srd_reg + reginst32 * stride; in amdzen_smupwr_smn_reg() 220 amdzen_l3soc_smn_reg(const uint8_t ccdno, const smn_reg_def_t def, in amdzen_l3soc_smn_reg() argument 229 const uint32_t size32 = (def.srd_size == 0) ? 4 : in amdzen_l3soc_smn_reg() [all …]
|
H A D | smn.h | 497 _fn(const uint8_t unitno, const smn_reg_def_t def, const uint16_t reginst) \ 501 const uint32_t size32 = (def.srd_size == 0) ? 4 : \ 502 (const uint32_t)def.srd_size; \ 504 const uint32_t stride = (def.srd_stride == 0) ? size32 : \ 505 def.srd_stride; \ 507 const uint32_t nents = (def.srd_nents == 0) ? 1 : \ 508 (const uint32_t)def.srd_nents; \ 510 ASSERT3S(def.srd_unit, ==, SMN_UNIT_ ## _unit); \ 513 ASSERT0(def.srd_reg & (_mask)); \ 523 const uint32_t reg = def.srd_reg + reginst32 * stride; \
|
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
H A D | fake_modconf.c | 77 fake_installfs(vfsdef_t *def) in fake_installfs() argument 80 char *fsname = def->name; in fake_installfs() 85 if (def->def_version != VFSDEF_VERSION) { in fake_installfs() 111 vswp->vsw_flag = def->flags & ~(VSW_STATS); in fake_installfs() 113 if (def->flags & VSW_HASPROTO) { in fake_installfs() 114 vfs_mergeopttbl(&vfs_mntopts, def->optproto, in fake_installfs() 120 if (def->flags & VSW_CANRWRO) { in fake_installfs() 129 if (def->init == NULL) in fake_installfs() 132 err = (*(def->init))(fstype, fsname); in fake_installfs() 157 fake_removefs(vfsdef_t *def) in fake_removefs() argument [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/docs/ |
H A D | texinfo.tex | 6 \def\texinfoversion{2004-11-25.16} 113 \def\linenumber{l.\the\inputlineno:\space} 168 \def\spaceisspace{\catcode\spaceChar=\spacecat} 172 \def\gobble#1{} 175 \def\makecsname#1{\expandafter\noexpand\csname#1\endcsname} 198 \def\finalout{\overfullrule=0pt} 206 \def\|{% 235 \def\gloggingall{\begingroup \globaldefs = 1 \loggingall \endgroup}% 236 \def\loggingall{% 259 \def\smallbreak{\ifnum\lastpenalty<10000\par\ifdim\lastskip<\smallskipamount [all …]
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | listopts.c | 122 goto def; in syslist() 130 goto def; in syslist() 138 goto def; in syslist() 146 goto def; in syslist() 152 goto def; in syslist() 158 goto def; in syslist() 164 goto def; in syslist() 170 goto def; in syslist() 176 goto def; in syslist() 182 goto def; in syslist() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/backend/ |
H A D | switch.c | 1 int def(void); 21 return def(); in small() 39 return def(); in densefull() 57 return def(); in densepart() 86 return def(); in dense_dense_20() 115 return def(); in dense_dense_100() 144 return def(); in dense_dense_1000() 162 return def(); in sparse() 171 return def(); in range_simple() 184 return def(); in range_complex()
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt_token.c | 154 adt_to_return(datadef *def, void *p_data, int required, in adt_to_return() argument 178 adt_to_cmd(datadef *def, void *p_data, int required, in adt_to_cmd() argument 204 adt_to_cmd1(datadef *def, void *p_data, int required, in adt_to_cmd1() argument 236 adt_to_tid(datadef *def, void *p_data, int required, in adt_to_tid() argument 281 adt_to_frmi(datadef *def, void *p_data, int required, in adt_to_frmi() argument 286 DPRINTF((" adt_to_fmri dd_datatype=%d\n", def->dd_datatype)); in adt_to_frmi() 306 adt_to_label(datadef *def, void *p_data, int required, in adt_to_label() argument 311 DPRINTF((" adt_to_label dd_datatype=%d\n", def->dd_datatype)); in adt_to_label() 334 adt_to_newgroups(datadef *def, void *p_data, int required, in adt_to_newgroups() argument 357 adt_to_path(datadef *def, void *p_data, int required, in adt_to_path() argument [all …]
|
/illumos-gate/usr/src/lib/libsasl/lib/ |
H A D | config.c | 249 const char *key, const char *def) argument 259 return def; 262 const char *sasl_config_getstring(const char *key,const char *def) argument 271 return def; 276 int sasl_config_getint(_sasl_global_context_t *gctx, const char *key,int def) argument 278 int sasl_config_getint(const char *key,int def) 287 if (!val) return def; 288 if (!isdigit((int) *val) && (*val != '-' || !isdigit((int) val[1]))) return def; 293 int sasl_config_getswitch(_sasl_global_context_t *gctx,const char *key,int def) argument 295 int sasl_config_getswitch(const char *key,int def) [all …]
|
/illumos-gate/usr/src/lib/pam_modules/unix_cred/ |
H A D | unix_cred.c | 130 char *def; member 141 if (pdef->def == NULL) { in finddeflim() 144 pdef->def = strdup(val); in finddeflim() 151 return (pdef->lim != NULL && pdef->def != NULL); in finddeflim() 187 priv_set_t *lim, *def, *tset; in pam_sm_setcred() local 579 tset = def = lim = NULL; in pam_sm_setcred() 580 deflim.def = deflim.lim = NULL; in pam_sm_setcred() 584 if (getset(deflim.lim, &lim) != 0 || getset(deflim.def, &def) != 0) { in pam_sm_setcred() 589 if (def == NULL) { in pam_sm_setcred() 590 def = priv_allocset(); in pam_sm_setcred() [all …]
|