/illumos-gate/usr/src/lib/libfruutils/ |
H A D | fru_tag.c | 56 get_tag_size(fru_tagtype_t tag) in get_tag_size() argument 58 switch (tag) { in get_tag_size() 77 mk_tag(fru_tagtype_t type, uint32_t dense, size_t pl_len, fru_tag_t *tag) in mk_tag() argument 81 tag->raw_data = 0; in mk_tag() 90 tag->a.type = FRU_A_ID; in mk_tag() 91 tag->a.dense = dense; in mk_tag() 92 tag->a.pl_len = pl_len; in mk_tag() 99 tag->b.type = FRU_B_ID; in mk_tag() 100 tag->b.dense = dense; in mk_tag() 101 tag->b.pl_len = pl_len; in mk_tag() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | sml.c | 128 SML_TAG *tag); 132 static void _smlFreeTag(SML_TAG *tag); 177 SML_TAG *tag; in smlAddTag() local 186 tag = *r_tag; in smlAddTag() 187 if (tag == SML_TAG__NULL) { in smlAddTag() 188 return (tag); in smlAddTag() 194 a_subTag->name, tag->name); in smlAddTag() 198 if ((a_index > tag->tags_num) || (a_index == -1)) { in smlAddTag() 199 a_index = tag->tags_num; in smlAddTag() 204 tag->tags_num++; in smlAddTag() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_mtag.c | 56 unsigned long long *tag = (unsigned long long *)&c; in str_to_mtag() local 62 *tag &= ~MTAG_ALIAS_BIT; in str_to_mtag() 63 *tag &= ~MTAG_OFFSET_MASK; in str_to_mtag() 65 return *tag; in str_to_mtag() 84 char *get_allocator_info_from_tag(mtag_t tag) in get_allocator_info_from_tag() argument 90 tag, ALLOCATOR); in get_allocator_info_from_tag() 112 static void update_mtag_info(struct expression *expr, mtag_t tag, in update_mtag_info() argument 118 sql_insert_mtag_about(tag, left_name, tag_info); in update_mtag_info() 122 sql_insert_mtag_info(tag, ALLOCATOR, allocator); in update_mtag_info() 132 mtag_t tag; in get_mtag_return() local [all …]
|
H A D | smatch_mtag_data.c | 39 static struct range_list *select_orig(mtag_t tag, int offset) in select_orig() argument 44 tag, offset); in select_orig() 113 static bool is_ignored_tag(mtag_t tag) in is_ignored_tag() argument 115 if (tag == ignored_mtag) in is_ignored_tag() 120 static void insert_mtag_data(mtag_t tag, int offset, struct range_list *rl) in insert_mtag_data() argument 122 if (is_ignored_tag(tag)) in insert_mtag_data() 128 tag, offset, DATA_VALUE); in insert_mtag_data() 130 tag, offset, DATA_VALUE, (unsigned long)rl); in insert_mtag_data() 161 mtag_t tag; in update_mtag_data() local 179 if (!expr_to_mtag_offset(expr, &tag, &offset)) in update_mtag_data() [all …]
|
H A D | smatch_param_to_mtag_data.c | 48 mtag_t tag; member 53 static struct smatch_state *alloc_tag_data_state(mtag_t tag, char *name, int offset) in alloc_tag_data_state() argument 59 data->tag = tag; in alloc_tag_data_state() 84 mtag_t tag; in match_assign() local 101 if (!expr_to_mtag_offset(left, &tag, &offset)) in match_assign() 106 set_state_expr(my_id, expr->right, alloc_tag_data_state(tag, name, offset)); in match_assign() 110 static void propogate_assignment(struct expression *expr, mtag_t tag, int offset, int param, char *… in propogate_assignment() argument 130 set_state(my_id, name, sym, alloc_tag_data_state(tag, buf, offset)); in propogate_assignment() 135 static void assign_to_alias(struct expression *expr, int param, mtag_t tag, int offset, char *key) in assign_to_alias() argument 153 if (!create_mtag_alias(tag, expr, &alias)) in assign_to_alias() [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | multiboot2.c | 140 multiboot_header_tag_t *tag; in multiboot2_loadfile() local 204 for (tag = header->mb2_tags; tag->mbh_type != MULTIBOOT_TAG_TYPE_END; in multiboot2_loadfile() 205 tag = (multiboot_header_tag_t *)((uintptr_t)tag + in multiboot2_loadfile() 206 roundup2(tag->mbh_size, MULTIBOOT_TAG_ALIGN))) { in multiboot2_loadfile() 207 switch (tag->mbh_type) { in multiboot2_loadfile() 209 if (is_info_request_valid((void*)tag) == false) in multiboot2_loadfile() 213 addr_tag = (multiboot_header_tag_address_t *)tag; in multiboot2_loadfile() 217 (multiboot_header_tag_entry_address_t *)tag; in multiboot2_loadfile() 231 if (!(tag->mbh_flags & MULTIBOOT_HEADER_TAG_OPTIONAL)) { in multiboot2_loadfile() 233 tag->mbh_type); in multiboot2_loadfile() [all …]
|
/illumos-gate/usr/src/uts/common/io/sfxge/common/ |
H A D | ef10_tlv_layout.h | 113 uint32_t tag; member 135 uint32_t tag; member 152 uint32_t tag; member 171 uint32_t tag; member 189 uint32_t tag; member 209 uint32_t tag; member 217 uint32_t tag; member 234 uint32_t tag; member 242 uint32_t tag; member 259 uint32_t tag; member [all …]
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | cheetahregs.h | 782 #define CH_ECTAG_LINE_INVALID(totalsize, tag) \ argument 783 (((tag) & CH_ECTAG_STATE_MASK(totalsize)) == 0) 789 #define CH_ECTAG_TO_PA(setsize, tag) (((tag) << CH_ECTAG_PA_SHIFT) & \ argument 796 #define CH_ECTAG_PA_TO_SUBBLK_STATE(totalsize, pa, tag) \ argument 797 (((tag) >> JP_ECTAG_STATE_SHIFT) & JP_ECSTATE_MASK) 829 #define CH_ECTAG_LINE_INVALID(totalsize, tag) \ 830 (((tag) & CH_ECTAG_STATE_MASK(totalsize)) == 0) 836 #define CH_ECTAG_TO_PA(setsize, tag) (((tag) >> CH_ECTAG_PA_SHIFT) & \ 844 #define CH_ECTAG_PA_TO_SUBBLK_STATE(totalsize, pa, tag) \ 845 (((tag) >> \ [all …]
|
/illumos-gate/usr/src/lib/libkmf/ber_der/common/ |
H A D | encode.c | 53 kmfber_calc_taglen(ber_tag_t tag) in kmfber_calc_taglen() argument 62 if (tag & mask) in kmfber_calc_taglen() 70 ber_put_tag(BerElement *ber, ber_tag_t tag, int nosos) in ber_put_tag() argument 75 taglen = kmfber_calc_taglen(tag); in ber_put_tag() 77 ntag = htonl(tag); in ber_put_tag() 159 ber_put_int_or_enum(BerElement *ber, ber_int_t num, ber_tag_t tag) in ber_put_int_or_enum() argument 194 if ((taglen = ber_put_tag(ber, tag, 0)) == -1) in ber_put_int_or_enum() 210 kmfber_put_enum(BerElement *ber, ber_int_t num, ber_tag_t tag) in kmfber_put_enum() argument 212 if (tag == KMFBER_DEFAULT) in kmfber_put_enum() 213 tag = BER_ENUMERATED; in kmfber_put_enum() [all …]
|
H A D | decode.c | 68 ber_tag_t tag; in kmfber_get_tag() local 78 tagp = (char *)&tag; in kmfber_get_tag() 95 return (tag >> (sizeof (ber_int_t)- i - 1)); in kmfber_get_tag() 106 ber_tag_t tag; in kmfber_skip_tag() local 125 if ((tag = kmfber_get_tag(ber)) == KMFBER_DEFAULT) in kmfber_skip_tag() 152 return (tag); in kmfber_skip_tag() 211 ber_tag_t tag; in kmfber_get_int() local 214 if ((tag = kmfber_skip_tag(ber, &len)) == KMFBER_DEFAULT) in kmfber_get_int() 224 return (tag); in kmfber_get_int() 231 ber_tag_t tag; in kmfber_get_stringb() local [all …]
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | sacadm.c | 440 add_pm(tag, type, command, version, flags, count, script, comment) in add_pm() argument 441 char *tag; in add_pm() 463 if (find_pm(fp, tag)) { 465 (void) sprintf(buf, "Invalid request, %s already exists", tag); 477 (void) sprintf(fname, "%s/%s", (i == 0 ) ? HOME : ALTHOME, tag); 510 cleandirs(tag); 520 (void) sprintf(fname, "%s/_config", tag); 522 cleandirs(tag); 534 (void) sprintf(fname, "%s/%s/_pmpipe", HOME, tag); 537 cleandirs(tag); [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/ |
H A D | encode.c | 49 ber_calc_taglen( ber_tag_t tag ) in ber_calc_taglen() argument 58 if ( tag & mask ) in ber_calc_taglen() 66 ber_put_tag( BerElement *ber, ber_tag_t tag, int nosos ) in ber_put_tag() argument 71 taglen = ber_calc_taglen( tag ); in ber_put_tag() 73 ntag = LBER_HTONL( tag ); in ber_put_tag() 155 ber_put_int_or_enum( BerElement *ber, ber_int_t num, ber_tag_t tag ) in ber_put_int_or_enum() argument 191 if ( (taglen = ber_put_tag( ber, tag, 0 )) == -1 ) in ber_put_int_or_enum() 208 ber_put_enum( BerElement *ber, ber_int_t num, ber_tag_t tag ) in ber_put_enum() argument 210 if ( tag == LBER_DEFAULT ) in ber_put_enum() 211 tag = LBER_ENUMERATED; in ber_put_enum() [all …]
|
H A D | decode.c | 52 ber_tag_t tag; in ber_get_tag() local 62 tagp = (char *) &tag; in ber_get_tag() 79 return( tag >> (sizeof(ber_int_t) - i - 1) ); in ber_get_tag() 91 ber_tag_t tag; in ber_skip_tag() local 110 if ( (tag = ber_get_tag( ber )) == LBER_DEFAULT ) in ber_skip_tag() 136 return( tag ); in ber_skip_tag() 196 ber_tag_t tag; in ber_get_int() local 199 if ( (tag = ber_skip_tag( ber, &len )) == LBER_DEFAULT ) in ber_get_int() 209 return( tag ); in ber_get_int() 217 ber_tag_t tag; in ber_get_stringb() local [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | html.c | 129 static void print_ctag(struct html *, struct tag *); 143 h->tag = NULL; in html_alloc() 164 struct tag *tag; in html_reset_internal() local 168 while ((tag = h->tag) != NULL) { in html_reset_internal() 169 h->tag = tag->next; in html_reset_internal() 170 free(tag); in html_reset_internal() 197 struct tag *t; in print_gen_head() 297 struct tag *this, *next; in html_close_paragraph() 300 this = h->tag; in html_close_paragraph() 303 flags = htmltags[this->tag].flags; in html_close_paragraph() [all …]
|
H A D | tag.c | 165 free(nold->tag); in tag_put() 166 nold->tag = NULL; in tag_put() 185 assert(n->tag == NULL); in tag_put() 186 n->tag = mandoc_strndup(s, len); in tag_put() 191 tag_exists(const char *tag) in tag_exists() argument 193 return ohash_find(&tag_data, ohash_qlookup(&tag_data, tag)) != NULL; in tag_exists() 232 if (np->tag == NULL) { in tag_move_id() 233 np->tag = mandoc_strdup(n->tag == NULL ? in tag_move_id() 234 n->child->string : n->tag); in tag_move_id() 263 tag_move_href(struct roff_man *man, struct roff_node *n, const char *tag) in tag_move_href() argument [all …]
|
H A D | html.h | 76 struct tag { struct 77 struct tag *next; argument 80 enum htmltag tag; argument 101 struct tag *tag; /* last open tag */ member 103 struct tag *tblt; /* current open table scope */ 108 struct tag *metaf; /* current open font scope */ 126 struct tag *print_otag(struct html *, enum htmltag, const char *, ...); 127 struct tag *print_otag_id(struct html *, enum htmltag, const char *, 129 void print_tagq(struct html *, const struct tag *); 130 void print_stagq(struct html *, const struct tag *);
|
H A D | eqn_html.c | 37 struct tag *post, *row, *cell, *t; in eqn_box() 41 enum htmltag tag; in eqn_box() local 150 tag = TAG_MI; in eqn_box() 154 tag = TAG_MN; in eqn_box() 158 tag = TAG_MI; in eqn_box() 163 tag = TAG_MO; in eqn_box() 169 tag = TAG_MI; in eqn_box() 177 (((tag == TAG_MN || tag == TAG_MO) && in eqn_box() 179 (tag == TAG_MI && font == (bp->text[1] == '\0' ? in eqn_box() 184 post = print_otag(p, tag, ""); in eqn_box() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | rrwlock.c | 102 rrn_add(rrwlock_t *rrl, void *tag) in rrn_add() argument 109 rn->rn_tag = tag; in rrn_add() 118 rrn_find_and_remove(rrwlock_t *rrl, void *tag) in rrn_find_and_remove() argument 127 if (rn->rn_rrl == rrl && rn->rn_tag == tag) { in rrn_find_and_remove() 163 rrw_enter_read_impl(rrwlock_t *rrl, boolean_t prio, void *tag) in rrw_enter_read_impl() argument 185 rrn_add(rrl, tag); in rrw_enter_read_impl() 186 (void) zfs_refcount_add(&rrl->rr_linked_rcount, tag); in rrw_enter_read_impl() 188 (void) zfs_refcount_add(&rrl->rr_anon_rcount, tag); in rrw_enter_read_impl() 195 rrw_enter_read(rrwlock_t *rrl, void *tag) in rrw_enter_read() argument 197 rrw_enter_read_impl(rrl, B_FALSE, tag); in rrw_enter_read() [all …]
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SLPV1SAttrMsg.java | 143 String tag = (String)tags.elementAt(i); in initialize() local 150 if (tag.startsWith("*")) { in initialize() 152 tag = tag.substring(1, tag.length()); in initialize() 155 if (tag.endsWith("*")) { in initialize() 157 tag = tag.substring(0, tag.length()-1); in initialize() 160 tag = in initialize() 161 ServiceLocationAttributeV1.unescapeAttributeString(tag, in initialize() 165 tag = "*" + tag; in initialize() 169 tag = tag + "*"; in initialize() 172 tags.setElementAt(tag.trim(), i); in initialize()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfslog_config.c | 240 char *tag, *defaultdir, *bufferpath, *rpclogpath, *fhpath, *logpath; in getconfiglist() local 294 error = get_info(linebuf, &tag, &defaultdir, &bufferpath, in getconfiglist() 299 listp = findconfig(listpp, tag, B_FALSE, &tail); in getconfiglist() 305 error = update_config(listp, tag, defaultdir, in getconfiglist() 314 listp = create_config(tag, defaultdir, in getconfiglist() 370 char *tag, in create_config() argument 388 *error = update_config(config, tag, defaultdir, bufferpath, rpclogpath, in create_config() 415 char *tag, in update_config() argument 428 if (complete && !is_complete_config(tag, bufferpath, fhpath, logpath)) { in update_config() 435 "config entry."), tag); in update_config() [all …]
|
/illumos-gate/usr/src/cmd/device_remap/ |
H A D | device_remap.pl | 96 my ($tag, $name, $namelen, $nameoff, $datalen, $dataoff, %node); 98 ($tag, $namelen, $nameoff, $datalen, $dataoff) = 101 %node = (tag => $tag, name => $name, nameid => $nameoff); 103 if ($tag == MDSTR || $tag == MDDATA) { 106 } elsif ($tag == MDVAL) { 108 } elsif ($tag == MDARC || $tag == MDNODE) { 121 my (%node, $tag, %prop); 124 $tag = $node{'tag'}; 125 %prop = (name => $node{'name'}, tag => $tag); 127 if ($tag == MDSTR) { [all …]
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vio_mailbox.h | 162 vio_msg_tag_t tag; member 185 vio_msg_tag_t tag; member 231 vio_msg_tag_t tag; member 244 vio_msg_tag_t tag; member 277 vio_msg_tag_t tag; member 303 vio_msg_tag_t tag; member 324 vio_msg_tag_t tag; member 346 dmsg.tag.vio_msgtype = VIO_TYPE_DATA; \ 347 dmsg.tag.vio_subtype = VIO_SUBTYPE_INFO; \ 348 dmsg.tag.vio_subtype_env = VIO_DRING_DATA;
|
/illumos-gate/usr/src/cmd/svr4pkg/hdrs/ |
H A D | libinst.h | 478 #define SML_TAG__ISVALID(tag) ((tag) != (SML_TAG__NULL)) argument 516 SML_TAG *tag, char *path); 517 char *smlConvertTagToString(SML_TAG *tag); 520 void smlDelTag(SML_TAG *tag, SML_TAG *sub_tag); 521 void smlDelParam(SML_TAG *tag, char *name); 522 SML_TAG *smlDup(SML_TAG *tag); 523 boolean_t smlFindAndDelTag(SML_TAG *tag, char *findTag); 524 void smlFreeTag(SML_TAG *tag); 527 char *smlGetParam(SML_TAG *tag, char *name); 529 char *smlGetParamF(SML_TAG *tag, char *format, ...); [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | external.c | 211 int threaded = 0, entry = 0, tag; in get_lcinterface() local 229 for (tag = funcs->ci_tag; tag; tag = (++funcs)->ci_tag) { in get_lcinterface() 233 DBG_CALL(Dbg_util_lcinterface(lmp, tag, lptr)); in get_lcinterface() 235 if (tag >= CI_MAX) in get_lcinterface() 244 if ((lcp[tag].lc_lmp) && in get_lcinterface() 245 (tag != CI_LCMESSAGES) && (tag != CI_VERSION)) { in get_lcinterface() 247 lcp[tag].lc_lmp, tag)); in get_lcinterface() 251 lcp[tag].lc_un.lc_ptr = lptr; in get_lcinterface() 252 lcp[tag].lc_lmp = lmp; in get_lcinterface() 254 gptr = glcs[tag].lc_un.lc_ptr; in get_lcinterface() [all …]
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_multiboot2.c | 55 dboot_multiboot2_next_tag(multiboot_tag_t *tag) in dboot_multiboot2_next_tag() argument 57 if (tag == NULL || tag->mb_type == MULTIBOOT_TAG_TYPE_END) in dboot_multiboot2_next_tag() 60 return ((multiboot_tag_t *)P2ROUNDUP((uintptr_t)tag + in dboot_multiboot2_next_tag() 61 tag->mb_size, MULTIBOOT_TAG_ALIGN)); in dboot_multiboot2_next_tag() 70 dboot_multiboot2_find_tag_impl(multiboot_tag_t *tagp, uint32_t tag) in dboot_multiboot2_find_tag_impl() argument 72 while (tagp != NULL && tagp->mb_type != tag) { in dboot_multiboot2_find_tag_impl() 82 dboot_multiboot2_find_tag(multiboot2_info_header_t *mbi, uint32_t tag) in dboot_multiboot2_find_tag() argument 86 return (dboot_multiboot2_find_tag_impl(tagp, tag)); in dboot_multiboot2_find_tag() 110 uint32_t tag = ctx->dboot_iter_tag; in dboot_multiboot2_iterate() local 113 tagp = dboot_multiboot2_find_tag(mbi, tag); in dboot_multiboot2_iterate() [all …]
|