/titanic_44/usr/src/tools/ctf/cvt/ |
H A D | st_parse.c | 70 static void addhash(tdesc_t *tdp, int num); 71 static int tagadd(char *w, int h, tdesc_t *tdp); 150 tdesc_t *tdp; in unres_new() local 152 tdp = xcalloc(sizeof (*tdp)); in unres_new() 153 tdp->t_type = TYPEDEF_UNRES; in unres_new() 154 tdp->t_id = tid; in unres_new() 156 return (tdp); in unres_new() 162 tdesc_t *tdp; in read_tid() local 170 if (!(cp = tdefdecl(cp + 1, tid, &tdp))) in read_tid() 172 if (tdp->t_id && tdp->t_id != tid) { in read_tid() [all …]
|
H A D | dwarf.c | 156 tdesc_add(dwarf_t *dw, tdesc_t *tdp) in tdesc_add() argument 158 hash_add(dw->dw_tidhash, tdp); in tdesc_add() 164 tdesc_t tmpl, *tdp; in tdesc_lookup() local 168 if (hash_find(dw->dw_tidhash, &tmpl, (void **)&tdp)) in tdesc_lookup() 169 return (tdp); in tdesc_lookup() 179 tdesc_size(tdesc_t *tdp) in tdesc_size() argument 182 switch (tdp->t_type) { in tdesc_size() 190 return (tdp->t_size); in tdesc_size() 199 tdp = tdp->t_tdesc; in tdesc_size() 207 tdp->t_id, tdp->t_type); in tdesc_size() [all …]
|
H A D | tdata.c | 57 tdesc_t *tdp = node; in tdesc_layouthash() local 61 if (tdp->t_name) in tdesc_layouthash() 62 name = tdp->t_name; in tdesc_layouthash() 64 switch (tdp->t_type) { in tdesc_layouthash() 70 name = tdp->t_tdesc->t_name; in tdesc_layouthash() 73 h = tdp->t_fndef->fn_nargs + in tdesc_layouthash() 74 tdp->t_fndef->fn_vargs; in tdesc_layouthash() 75 name = tdp->t_fndef->fn_ret->t_name; in tdesc_layouthash() 78 h = tdp->t_ardef->ad_nelems; in tdesc_layouthash() 79 name = tdp->t_ardef->ad_contents->t_name; in tdesc_layouthash() [all …]
|
H A D | ctf.c | 908 tdesc_t *tdp; in resurrect_types() local 946 tdp = tdarr[tid]; in resurrect_types() 952 tdp->t_name = in resurrect_types() 955 tdp->t_name = NULL; in resurrect_types() 962 tdp->t_type = INTRINSIC; in resurrect_types() 963 tdp->t_size = size; in resurrect_types() 985 tdp->t_intr = ip; in resurrect_types() 989 tdp->t_type = INTRINSIC; in resurrect_types() 990 tdp->t_size = size; in resurrect_types() 1001 tdp->t_intr = ip; in resurrect_types() [all …]
|
H A D | util.c | 233 tdesc_name(tdesc_t *tdp) in tdesc_name() argument 235 return (tdp->t_name == NULL ? "(anon)" : tdp->t_name); in tdesc_name()
|
H A D | output.c | 80 save_type_by_id(tdesc_t *tdp, tdesc_t **tdpp, void *private) in save_type_by_id() argument 89 if (tdp->t_id > iiburst->iib_maxtypeid) in save_type_by_id() 90 iiburst->iib_maxtypeid = tdp->t_id; in save_type_by_id() 92 slist_add(&iiburst->iib_types, tdp, tdesc_idcmp); in save_type_by_id()
|
/titanic_44/usr/src/tools/stabs/ |
H A D | genassym.c | 33 void genassym_do_sou(struct tdesc *tdp, struct node *np); 34 void genassym_do_enum(struct tdesc *tdp, struct node *np); 35 void genassym_do_intrinsic(struct tdesc *tdp, struct node *np); 37 static void switch_on_type(struct mlist *mlp, struct tdesc *tdp, 40 static void print_intrinsic(struct mlist *mlp, struct tdesc *tdp, 42 static void print_forward(struct mlist *mlp, struct tdesc *tdp, 44 static void print_pointer(struct mlist *mlp, struct tdesc *tdp, 46 static void print_array(struct mlist *mlp, struct tdesc *tdp, 48 static void print_function(struct mlist *mlp, struct tdesc *tdp, 50 static void print_union(struct mlist *mlp, struct tdesc *tdp, [all …]
|
H A D | forth.c | 33 void forth_do_sou(struct tdesc *tdp, struct node *np); 34 void forth_do_enum(struct tdesc *tdp, struct node *np); 35 void forth_do_intrinsic(struct tdesc *tdp, struct node *np); 37 static void switch_on_type(struct mlist *mlp, struct tdesc *tdp, 40 static void print_intrinsic(struct mlist *mlp, struct tdesc *tdp, 42 static void print_forward(struct mlist *mlp, struct tdesc *tdp, 44 static void print_pointer(struct mlist *mlp, struct tdesc *tdp, 46 static void print_array(struct mlist *mlp, struct tdesc *tdp, 48 static void print_function(struct mlist *mlp, struct tdesc *tdp, 50 static void print_union(struct mlist *mlp, struct tdesc *tdp, [all …]
|
H A D | stabs.c | 53 static void addhash(struct tdesc *tdp, int num); 54 static void tagadd(char *w, int h, struct tdesc *tdp); 167 struct tdesc *tdp; in parseline() local 224 cp = tdefdecl(cp, h, &tdp); in parseline() 225 addhash(tdp, h); /* for *(x,y) types */ in parseline() 227 tdp = malloc(sizeof (*tdp)); in parseline() 228 tdp->type = TYPEOF; in parseline() 229 tdp->name = (w != NULL) ? strdup(w) : NULL; in parseline() 230 tdp->data.tdesc = ntdp; in parseline() 231 addhash(tdp, h); /* for *(x,y) types */ in parseline() [all …]
|
H A D | squander.c | 33 void squander_do_sou(struct tdesc *tdp, struct node *np); 34 void squander_do_enum(struct tdesc *tdp, struct node *np); 35 void squander_do_intrinsic(struct tdesc *tdp, struct node *np); 38 squander_do_intrinsic(struct tdesc *tdp, struct node *np) in squander_do_intrinsic() argument 43 squander_do_sou(struct tdesc *tdp, struct node *np) in squander_do_sou() argument 51 if (tdp->type == UNION) in squander_do_sou() 55 for (mlp = tdp->data.members.forw; mlp != NULL; mlp = mlp->next) { in squander_do_sou() 68 tdp->size, msize, tdp->size - msize); in squander_do_sou() 72 squander_do_enum(struct tdesc *tdp, struct node *np) in squander_do_enum() argument
|
H A D | main.c | 74 static struct tdesc *find_member(struct tdesc *tdp, char *name); 237 find_member(struct tdesc *tdp, char *name) in find_member() argument 241 while (tdp->type == TYPEOF) in find_member() 242 tdp = tdp->data.tdesc; in find_member() 243 if (tdp->type != STRUCT && tdp->type != UNION) in find_member() 245 for (mlp = tdp->data.members.forw; mlp != NULL; mlp = mlp->next) in find_member() 385 struct tdesc *tdp; in printnode() local 387 tdp = lookupname(np->name); in printnode() 388 if (tdp == NULL) { in printnode() 396 tdp = find_member(ptdp, member + 1); in printnode() [all …]
|
/titanic_44/usr/src/uts/common/fs/ufs/ |
H A D | ufs_dir.c | 641 struct inode *tdp, /* target directory to make entry in */ in ufs_direnter_cm() argument 661 ASSERT(RW_WRITE_HELD(&tdp->i_rwlock)); in ufs_direnter_cm() 663 if (((tdp->i_mode & IFMT) == IFATTRDIR) && ((op == DE_MKDIR) || in ufs_direnter_cm() 678 if (err = ufs_diraccess(tdp, IEXEC, cr)) in ufs_direnter_cm() 690 if (tdp->i_ufsvfs) in ufs_direnter_cm() 691 ulp = &tdp->i_ufsvfs->vfs_ulockfs; in ufs_direnter_cm() 692 rw_exit(&tdp->i_rwlock); in ufs_direnter_cm() 693 if (err = ufs_dirlook(tdp, namep, ipp, cr, 0, 0)) { in ufs_direnter_cm() 702 ufs_tryirwlock(&tdp->i_rwlock, RW_WRITER, retry_err); in ufs_direnter_cm() 708 ufs_tryirwlock(&tdp->i_rwlock, RW_WRITER, retry); in ufs_direnter_cm() [all …]
|
/titanic_44/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_terminfo_skel.c | 74 static const termio_desc_t *tdp; variable 80 for (tdp = termio_db; tdp->td_name != NULL; tdp++) { in setupterm() 81 if (strcmp(tdp->td_name, name) == 0) in setupterm() 92 const termio_desc_t *otdp = tdp; in restartterm() 96 tdp = otdp; /* restore old terminal settings */ in restartterm() 106 for (tap = tdp->td_data; tap->ta_name != NULL; tap++) { in tigetstr() 124 for (tap = tdp->td_data; tap->ta_name != NULL; tap++) { in tigetflag() 141 for (tap = tdp->td_data; tap->ta_name != NULL; tap++) { in tigetnum()
|
/titanic_44/usr/src/uts/common/os/ |
H A D | schedctl.c | 302 sc_shared_t *tdp = t->t_schedctl; in schedctl_set_cidpri() local 304 if (tdp != NULL) { in schedctl_set_cidpri() 305 tdp->sc_cid = t->t_cid; in schedctl_set_cidpri() 306 tdp->sc_cpri = t->t_cpri; in schedctl_set_cidpri() 307 tdp->sc_priority = DISP_PRIO(t); in schedctl_set_cidpri() 321 sc_shared_t *tdp = t->t_schedctl; in schedctl_sigblock() local 323 if (tdp != NULL) in schedctl_sigblock() 324 return (tdp->sc_sigblock); in schedctl_sigblock() 340 sc_shared_t *tdp = t->t_schedctl; in schedctl_finish_sigblock() local 344 if (tdp != NULL && tdp->sc_sigblock) { in schedctl_finish_sigblock() [all …]
|
/titanic_44/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_dir.c | 127 tmpfs_hash_change(struct tdirent *tdp, struct tmpnode *fromtp) in tmpfs_hash_change() argument 132 hash = tdp->td_hash; in tmpfs_hash_change() 135 tdp->td_tmpnode = fromtp; in tmpfs_hash_change() 243 struct tdirent *tdp; in tdirenter() local 329 tdp = tmpfs_hash_lookup(name, dir, 1, &found); in tdirenter() 331 if (tdp) { in tdirenter() 346 dir, name, found, tdp, cred); in tdirenter() 388 ASSERT(tdp == NULL); in tdirenter() 613 struct tdirent *tdp; in tdirtrunc() local 623 for (tdp = dir->tn_dir; tdp; tdp = dir->tn_dir) { in tdirtrunc() [all …]
|
H A D | tmp_vnops.c | 1451 struct tdirent *tdp; in tmp_readdir() local 1502 tdp = tp->tn_dir; in tmp_readdir() 1503 while (tdp) { in tmp_readdir() 1504 namelen = strlen(tdp->td_name); /* no +1 needed */ in tmp_readdir() 1505 offset = tdp->td_offset; in tmp_readdir() 1516 ASSERT(tdp->td_tmpnode != NULL); in tmp_readdir() 1520 (void) strncpy(dp->d_name, tdp->td_name, in tmp_readdir() 1523 dp->d_ino = (ino64_t)tdp->td_tmpnode->tn_nodeid; in tmp_readdir() 1524 dp->d_off = (offset_t)tdp->td_offset + 1; in tmp_readdir() 1530 tdp = tdp->td_next; in tmp_readdir() [all …]
|
/titanic_44/usr/src/cmd/fs.d/cachefs/mdbug/ |
H A D | dbug.c | 140 thread_data_t *tdp = NULL; in dbug_object_create() local 148 GET_THREAD_DATA_PTR(&tdp); in dbug_object_create() 149 if (tdp == NULL) { in dbug_object_create() 150 tdp = (thread_data_t *)calloc(sizeof (*tdp), 1); in dbug_object_create() 151 if (tdp == NULL) in dbug_object_create() 153 thr_setspecific(mdt_key, tdp); in dbug_object_create() 155 tdp->td_keyword[0] = '\0'; in dbug_object_create() 156 tdp->td_first = NULL; in dbug_object_create() 159 GET_THREAD_DATA_PTR(&tdp); in dbug_object_create() 184 dbug_object_p->d_prev = tdp->td_first; in dbug_object_create() [all …]
|
/titanic_44/usr/src/cmd/sgs/elfwrap/common/ |
H A D | machine.c | 57 target_init(TargDesc_t *tdp) in target_init() argument 62 tdp->td_class = M_CLASS; /* e_ident[EI_CLASS] */ in target_init() 63 tdp->td_data = M_DATA; /* e_ident[EI_DATA] */ in target_init() 64 tdp->td_mach = M_MACH; /* e_machine */ in target_init() 69 tdp->td_align = M_WORD_ALIGN; /* d_align */ in target_init() 74 tdp->td_symsz = sizeof (Sym); /* d_size */ in target_init()
|
/titanic_44/usr/src/uts/common/fs/udfs/ |
H A D | udf_dir.c | 327 struct ud_inode *tdp, in ud_direnter() argument 347 udf_vfsp = tdp->i_udf; in ud_direnter() 360 ASSERT(RW_WRITE_HELD(&tdp->i_rwlock)); in ud_direnter() 374 rw_exit(&tdp->i_rwlock); in ud_direnter() 375 if (err = ud_dirlook(tdp, namep, ipp, cr, 0)) { in ud_direnter() 376 rw_enter(&tdp->i_rwlock, RW_WRITER); in ud_direnter() 379 rw_enter(&tdp->i_rwlock, RW_WRITER); in ud_direnter() 420 if (tdp->i_nlink == 0) { in ud_direnter() 427 if (tdp->i_type != VDIR) { in ud_direnter() 434 if (err = ud_iaccess(tdp, IEXEC, cr, 1)) { in ud_direnter() [all …]
|
/titanic_44/usr/src/uts/sun4v/vm/ |
H A D | mach_sfmmu.c | 353 hv_tsb_info_t *tdp; in sfmmu_setup_tsbinfo() local 433 tdp = &sfmmup->sfmmu_hvblock.hv_tsb_info[i]; in sfmmu_setup_tsbinfo() 434 sfmmup->sfmmu_hvblock.hv_tsb_info_pa = va_to_pa(tdp); in sfmmu_setup_tsbinfo() 440 tdp = &sfmmup->sfmmu_hvblock.hv_tsb_info[j]; in sfmmu_setup_tsbinfo() 443 tdp->hvtsb_idxpgsz = lowbit(tsbinfop->tsb_ttesz_mask) - 1; in sfmmu_setup_tsbinfo() 444 tdp->hvtsb_assoc = 1; in sfmmu_setup_tsbinfo() 445 tdp->hvtsb_ntte = TSB_ENTRIES(tsbinfop->tsb_szc); in sfmmu_setup_tsbinfo() 446 tdp->hvtsb_ctx_index = scd; in sfmmu_setup_tsbinfo() 447 tdp->hvtsb_pgszs = tsbinfop->tsb_ttesz_mask; in sfmmu_setup_tsbinfo() 448 tdp->hvtsb_rsvd = 0; in sfmmu_setup_tsbinfo() [all …]
|
/titanic_44/usr/src/cmd/cdrw/ |
H A D | misc_scsi.c | 370 rtoc_td_t *tdp = (rtoc_td_t *)(rtoc + sizeof (rtoc_hdr_t)); in rtoc_get_trk_sess_num() local 374 if ((tdp = get_rtoc_td(tdp, last_tdp, Q_MODE_1, (uchar_t)trk_num)) != in rtoc_get_trk_sess_num() 376 *sess_nump = tdp->rt_session_num; in rtoc_get_trk_sess_num() 390 rtoc_td_t *tdp = (rtoc_td_t *)(rtoc + sizeof (rtoc_hdr_t)); in rtoc_get_sess_last_trk_num() local 394 while ((tdp = get_rtoc_td(tdp, last_tdp, Q_MODE_1, in rtoc_get_sess_last_trk_num() 396 if (tdp->rt_session_num == sess_num) { in rtoc_get_sess_last_trk_num() 397 *last_trk_nump = tdp->rt_pmin; in rtoc_get_sess_last_trk_num() 400 ++tdp; in rtoc_get_sess_last_trk_num() 415 rtoc_td_t *tdp = (rtoc_td_t *)(rtoc + sizeof (rtoc_hdr_t)); in rtoc_get_sess_leadout_lba() local 419 while ((tdp = get_rtoc_td(tdp, last_tdp, Q_MODE_1, in rtoc_get_sess_leadout_lba() [all …]
|
/titanic_44/usr/src/uts/common/fs/zfs/ |
H A D | spa_config.c | 211 spa_config_dirent_t *dp, *tdp; in spa_config_sync() local 250 tdp = list_head(&spa->spa_config_list); in spa_config_sync() 252 tdp->scd_path == NULL || in spa_config_sync() 253 strcmp(tdp->scd_path, dp->scd_path) != 0) { in spa_config_sync() 297 while ((tdp = list_next(&target->spa_config_list, dp)) != NULL) { in spa_config_sync() 298 list_remove(&target->spa_config_list, tdp); in spa_config_sync() 299 if (tdp->scd_path != NULL) in spa_config_sync() 300 spa_strfree(tdp->scd_path); in spa_config_sync() 301 kmem_free(tdp, sizeof (spa_config_dirent_t)); in spa_config_sync()
|
/titanic_44/usr/src/uts/common/fs/pcfs/ |
H A D | pc_dir.c | 557 struct pcnode *tdp, /* target directory */ in pc_rename() argument 604 if (pcp == tdp) { in pc_rename() 613 if ((dp->pc_scluster == tdp->pc_scluster) && in pc_rename() 630 error = pc_findentry(tdp, tnm, &slot, NULL); in pc_rename() 644 vnevent_rename_dest(PCTOV(tpcp), PCTOV(tdp), tnm, ctp); in pc_rename() 658 error = pc_dirremove(tdp, tnm, in pc_rename() 667 error = pc_dirremove(tdp, tnm, in pc_rename() 711 ndirentries = direntries_needed(tdp, tnm); in pc_rename() 720 offset = pc_find_free_space(tdp, ndirentries); in pc_rename() 768 direntries = pc_name_to_pcdir(tdp, tnm, ndirentries, &error); in pc_rename() [all …]
|
/titanic_44/usr/src/uts/common/io/sfe/ |
H A D | sfe.c | 1184 struct sfe_desc *tdp; in sfe_tx_desc_write() local 1215 tdp = (void *)&dp->tx_ring[SFE_DESC_SIZE * slot]; in sfe_tx_desc_write() 1218 tdp->d_bufptr = LE_32(tmp0); in sfe_tx_desc_write() 1219 tdp->d_cmdsts = LE_32(mark); in sfe_tx_desc_write() 1228 struct sfe_desc *tdp; in sfe_tx_start() local 1237 tdp = (void *)&dp->tx_ring[SFE_DESC_SIZE * start_slot]; in sfe_tx_start() 1238 tdp->d_cmdsts |= LE_32(CMDSTS_OWN); in sfe_tx_start() 1283 struct sfe_desc *tdp; in sfe_tx_desc_stat() local 1292 tdp = (void *) in sfe_tx_desc_stat() 1299 status = tdp->d_cmdsts; in sfe_tx_desc_stat() [all …]
|
/titanic_44/usr/src/uts/sun4u/starcat/io/ |
H A D | dman.c | 4437 man_dest_t *tdp; in man_iswitch() local 4457 tdp = &adp->a_mdp[i]; in man_iswitch() 4458 mdp = man_switch_match(tdp, adp->a_pg_id, tdp->md_switch_id); in man_iswitch() 4479 ASSERT(mdp->md_state == tdp->md_state); in man_iswitch() 4481 mdp->md_state = tdp->md_state; in man_iswitch() 4486 mdp->md_wq = tdp->md_wq; in man_iswitch() 4495 ASSERT(tdp->md_device.mdev_ppa == adp->a_st_dev.mdev_ppa); in man_iswitch() 4496 ASSERT(tdp->md_device.mdev_major == adp->a_st_dev.mdev_major); in man_iswitch() 4498 mdp->md_device = tdp->md_device; in man_iswitch() 4499 mdp->md_muxid = tdp->md_muxid; in man_iswitch() [all …]
|