/titanic_41/usr/src/tools/cscope-fast/ |
H A D | help.c | 47 char **ep, *s, **tp, *text[MAXHELP]; in help() local 50 tp = text; in help() 53 *tp++ = "Point with the mouse and click button 1 to " in help() 55 *tp++ = "type the pattern to search for, and then " in help() 57 *tp++ = "and last 2 input fields, the pattern can be " in help() 59 *tp++ = "If the search is successful, you can edit " in help() 61 *tp++ = "by pointing with the mouse and clicking " in help() 63 *tp++ = "\nYou can either use the button 2 menu or " in help() 66 *tp++ = "Press the TAB key repeatedly to move to the " in help() 68 *tp++ = "pattern to search for, and then press the " in help() [all …]
|
/titanic_41/usr/src/uts/common/io/ |
H A D | ldterm.c | 442 ldtermstd_state_t *tp); 669 ldtermstd_state_t *tp; in ldtermopen() local 680 tp = (ldtermstd_state_t *)kmem_zalloc(sizeof (ldtermstd_state_t), in ldtermopen() 690 tp->t_modes = *termiosp; in ldtermopen() 691 tp->t_amodes = *termiosp; in ldtermopen() 699 bzero(&tp->t_dmodes, sizeof (struct termios)); in ldtermopen() 701 tp->t_state = 0; in ldtermopen() 703 tp->t_line = 0; in ldtermopen() 704 tp->t_col = 0; in ldtermopen() 706 tp->t_rocount = 0; in ldtermopen() [all …]
|
H A D | timod.c | 358 struct tim_tim *tp; in timodopen() local 371 tp = kmem_zalloc(sizeof (struct tim_tim), KM_SLEEP); in timodopen() 373 tp->tim_cpid = -1; in timodopen() 374 tp->tim_saved_prim = -1; in timodopen() 376 mutex_init(&tp->tim_mutex, NULL, MUTEX_DEFAULT, NULL); in timodopen() 378 q->q_ptr = (caddr_t)tp; in timodopen() 379 WR(q)->q_ptr = (caddr_t)tp; in timodopen() 381 tilogp("timodopen: Allocated for tp %lx\n", (uintptr_t)tp); in timodopen() 387 tp->tim_provinfo = tpi_findprov(q); in timodopen() 396 if (tp->tim_provinfo->tpi_myname != PI_YES) { in timodopen() [all …]
|
/titanic_41/usr/src/grub/grub-0.97/netboot/ |
H A D | tg3.c | 143 static void tg3_disable_ints(struct tg3 *tp) in tg3_disable_ints() argument 146 (tp->misc_host_ctrl | MISC_HOST_CTRL_MASK_PCI_INT)); in tg3_disable_ints() 150 static void tg3_switch_clocks(struct tg3 *tp) in tg3_switch_clocks() argument 158 tp->pci_clock_ctrl = clock_ctrl; in tg3_switch_clocks() 160 if ((GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705) && in tg3_switch_clocks() 172 static int tg3_readphy(struct tg3 *tp, int reg, uint32_t *val) in tg3_readphy() argument 177 tw32_carefully(MAC_MI_MODE, tp->mi_mode & ~MAC_MI_MODE_AUTO_POLL); in tg3_readphy() 207 tw32_carefully(MAC_MI_MODE, tp->mi_mode); in tg3_readphy() 212 static int tg3_writephy(struct tg3 *tp, int reg, uint32_t val) in tg3_writephy() argument 217 tw32_carefully(MAC_MI_MODE, tp->mi_mode & ~MAC_MI_MODE_AUTO_POLL); in tg3_writephy() [all …]
|
H A D | tulip.c | 434 static struct tulip_private *tp; variable 514 printf("%s: %s\n", tp->nic_name, str); in whereami() 577 if (tp->chip_id == LC82C168) { in mdio_read() 588 if (tp->chip_id == COMET) { in mdio_read() 637 if (tp->chip_id == LC82C168) { in mdio_write() 647 if (tp->chip_id == COMET) { in mdio_write() 732 unsigned char *p, *ee_data = tp->eeprom; in parse_eeprom() 740 tp->mtable = 0; in parse_eeprom() 758 tp->nic_name, eeprom_fixups[i].name, tp->nic_name); in parse_eeprom() 766 tp->nic_name); in parse_eeprom() [all …]
|
/titanic_41/usr/src/lib/libast/common/string/ |
H A D | base64.c | 54 register unsigned char* tp; in base64encode() local 71 if (tp = (unsigned char*)tb) in base64encode() 73 te = tp + tz - B64_EC + 1; in base64encode() 82 tp = tmp; in base64encode() 83 te = tp + sizeof(tmp) - B64_EC + 1; in base64encode() 88 tc = tp + B64_EC * B64_CHUNK; in base64encode() 93 if (tp >= te) in base64encode() 98 *tn = tp; in base64encode() 99 n = tp - (unsigned char*)tb + 1; in base64encode() 100 tp = tmp; in base64encode() [all …]
|
/titanic_41/usr/src/lib/libshell/common/bltins/ |
H A D | alarm.c | 59 register struct tevent *tp = (struct tevent*)list; in time_add() local 60 if(!tp || item->milli < tp->milli) in time_add() 62 item->next = tp; in time_add() 67 while(tp->next && item->milli > tp->next->milli) in time_add() 68 tp = tp->next; in time_add() 69 item->next = tp->next; in time_add() 70 tp->next = item; in time_add() 72 tp = item; in time_add() 73 tp->timeout = (void*)sh_timeradd(tp->milli,tp->flags&R_FLAG,trap_timeout,(void*)tp); in time_add() 82 register struct tevent *tp = (struct tevent*)list; in time_delete() local [all …]
|
/titanic_41/usr/src/cmd/acct/ |
H A D | acctmerg.c | 80 struct tacct *tp; in main() local 132 while ((tp = getleast()) != NULL) /* get least uid of all files, */ in main() 133 sumcurr(tp); /* sum all entries for that uid, */ in main() 147 struct tacct *tp, *least; in getleast() local 150 for (tp = tb; tp <= &tb[nfile]; tp++) { in getleast() 151 if (tp->ta_name[0] == '\0') in getleast() 154 tp->ta_uid < least->ta_uid || in getleast() 155 ((tp->ta_uid == least->ta_uid) && in getleast() 157 (strncmp(tp->ta_name, least->ta_name, NSZ) < 0))) in getleast() 158 least = tp; in getleast() [all …]
|
/titanic_41/usr/src/uts/common/cpr/ |
H A D | cpr_uthread.c | 105 kthread_id_t tp; in cpr_stop_user() local 112 tp = curthread->t_next; in cpr_stop_user() 115 p = ttoproc(tp); in cpr_stop_user() 130 thread_lock(tp); /* needed to check CPR_ISTOPPED */ in cpr_stop_user() 132 if (tp->t_state == TS_STOPPED) { in cpr_stop_user() 137 if (tp->t_schedflag & TS_RESUME) in cpr_stop_user() 138 tp->t_schedflag &= ~TS_RESUME; in cpr_stop_user() 141 tp->t_proc_flag |= TP_CHKPT; in cpr_stop_user() 143 thread_unlock(tp); in cpr_stop_user() 147 thread_lock(tp); in cpr_stop_user() [all …]
|
/titanic_41/usr/src/uts/common/pcmcia/cis/ |
H A D | cis_handlers.c | 75 cis_get_short(cistpl_t *tp) in cis_get_short() argument 79 if (tp->flags & CISTPLF_AM_SPACE) { in cis_get_short() 80 result = GET_AM_BYTE(tp); in cis_get_short() 81 result |= GET_AM_BYTE(tp) << 8; in cis_get_short() 83 result = GET_CM_BYTE(tp); in cis_get_short() 84 result |= GET_CM_BYTE(tp) << 8; in cis_get_short() 90 cis_get_be_short(cistpl_t *tp) in cis_get_be_short() argument 94 if (tp->flags & CISTPLF_AM_SPACE) { in cis_get_be_short() 95 result = GET_AM_BYTE(tp) << 8; in cis_get_be_short() 96 result |= GET_AM_BYTE(tp); in cis_get_be_short() [all …]
|
/titanic_41/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 92 copy_pattern(int pat, TREE *tp) in copy_pattern() argument 95 size_t sz = SIZE(tp) / sizeof (uint64_t); in copy_pattern() 97 uint64_t *datap = (uint64_t *)DATA(tp); in copy_pattern() 115 TREE *tp; in smalloc() local 137 tp = np; in smalloc() 138 SIZE(tp) = size; in smalloc() 139 copy_pattern(FREEPAT, tp); in smalloc() 141 Last[i] = tp; in smalloc() 145 np = NEXT(tp); in smalloc() 147 AFTER(tp) = np; in smalloc() [all …]
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | malloc.c | 123 TREE *tp; in _smalloc() local 147 tp = np; in _smalloc() 148 SIZE(tp) = size; in _smalloc() 149 np = NEXT(tp); in _smalloc() 150 AFTER(tp) = np; in _smalloc() 152 AFTER(tp) = NULL; in _smalloc() 156 tp = List[i]; in _smalloc() 157 List[i] = AFTER(tp); in _smalloc() 158 SETBIT0(SIZE(tp)); in _smalloc() 159 return (DATA(tp)); in _smalloc() [all …]
|
/titanic_41/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_tree.c | 70 set_create_error(topo_hdl_t *thp, ttree_t *tp, int err) in set_create_error() argument 72 if (tp != NULL) in set_create_error() 73 topo_tree_destroy(tp); in set_create_error() 84 ttree_t *tp; in topo_tree_create() local 87 if ((tp = topo_mod_zalloc(mod, sizeof (ttree_t))) == NULL) in topo_tree_create() 90 tp->tt_mod = mod; in topo_tree_create() 92 if ((tp->tt_scheme = topo_mod_strdup(mod, scheme)) == NULL) in topo_tree_create() 93 return (set_create_error(thp, tp, ETOPO_NOMEM)); in topo_tree_create() 98 if ((tp->tt_walk = topo_mod_zalloc(mod, sizeof (topo_walk_t))) == NULL) in topo_tree_create() 99 return (set_create_error(thp, tp, ETOPO_NOMEM)); in topo_tree_create() [all …]
|
/titanic_41/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_thread.c | 140 nst_thread_init(nsthread_t *tp) in nst_thread_init() argument 142 ASSERT(MUTEX_HELD(&((tp->tp_set)->set_lock))); in nst_thread_init() 143 ASSERT(!(tp->tp_flag & NST_TF_INUSE)); in nst_thread_init() 144 tp->tp_flag = NST_TF_INUSE; in nst_thread_init() 145 tp->tp_func = NULL; in nst_thread_init() 146 tp->tp_arg = NULL; in nst_thread_init() 161 nsthread_t *tp = NULL; in nst_thread_alloc() local 172 tp = (nsthread_t *)set->set_free.q_forw; in nst_thread_alloc() 173 if (tp != (nsthread_t *)&set->set_free) in nst_thread_alloc() 174 nst_remque(&tp->tp_link); in nst_thread_alloc() [all …]
|
/titanic_41/usr/src/uts/common/io/sbp2/ |
H A D | sbp2.c | 76 static int sbp2_agent_init(sbp2_agent_t *, uint64_t, sbp2_tgt_t *tp); 151 sbp2_tgt_t *tp; in sbp2_tgt_init() local 154 tp = kmem_zalloc(sizeof (sbp2_tgt_t), KM_SLEEP); in sbp2_tgt_init() 155 tp->t_bus = bus; in sbp2_tgt_init() 156 tp->t_bus_hdl = bus_hdl; in sbp2_tgt_init() 158 sbp2_tgt_init_sobj(tp); in sbp2_tgt_init() 160 if ((ret = sbp2_cfgrom_parse(tp, &tp->t_cfgrom)) != SBP2_SUCCESS) { in sbp2_tgt_init() 161 sbp2_tgt_fini_sobj(tp); in sbp2_tgt_init() 162 kmem_free(tp, sizeof (sbp2_tgt_t)); in sbp2_tgt_init() 166 if ((ret = sbp2_tgt_init_params(tp)) != SBP2_SUCCESS) { in sbp2_tgt_init() [all …]
|
/titanic_41/usr/src/lib/libshell/common/sh/ |
H A D | timers.c | 51 struct timeval tp; in getnow() local 52 timeofday(&tp); in getnow() 53 now = tp.tv_sec + 1.e-6*tp.tv_usec; in getnow() 89 register Timer_t *tp, *tplast, *tpold, *tpnext; in sigalrm() local 111 for(tplast=0,tp=tptop; tp; tp=tpnext) in sigalrm() 113 tpnext = tp->next; in sigalrm() 114 if(tp->action) in sigalrm() 116 if(tp->wakeup <=now) in sigalrm() 118 if(!tpold || tpold->wakeup>tp->wakeup) in sigalrm() 119 tpold = tp; in sigalrm() [all …]
|
/titanic_41/usr/src/cmd/mandoc/ |
H A D | tbl_term.c | 63 term_tbl(struct termp *tp, const struct tbl_span *sp) in term_tbl() argument 71 rmargin = tp->rmargin; in term_tbl() 72 maxrmargin = tp->maxrmargin; in term_tbl() 74 tp->rmargin = tp->maxrmargin = TERM_MAXMARGIN; in term_tbl() 78 tp->flags |= TERMP_NONOSPACE; in term_tbl() 79 tp->flags |= TERMP_NOSPACE; in term_tbl() 87 term_flushln(tp); in term_tbl() 89 tp->tbl.len = term_tbl_len; in term_tbl() 90 tp->tbl.slen = term_tbl_strlen; in term_tbl() 91 tp->tbl.arg = tp; in term_tbl() [all …]
|
/titanic_41/usr/src/lib/scsi/libses/common/ |
H A D | ses_enclosure.c | 31 enc_parse_td(ses2_td_hdr_impl_t *tip, const char *tp, nvlist_t *nvl) in enc_parse_td() argument 35 if (tp != NULL) in enc_parse_td() 37 tp, tip->sthi_text_len); in enc_parse_td() 43 enc_eid(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) in enc_eid() argument 47 SES_NV_ADD(uint64, nverr, nvl, name, tp->st_hdr.sehi_subenclosure_id); in enc_eid() 53 enc_espid(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) in enc_espid() argument 57 SES_NV_ADD(uint64, nverr, nvl, name, tp->st_hdr.sehi_rel_esp_id); in enc_espid() 63 enc_nesp(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) in enc_nesp() argument 67 SES_NV_ADD(uint64, nverr, nvl, name, tp->st_hdr.sehi_n_esps); in enc_nesp() 73 enc_lid(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) in enc_lid() argument [all …]
|
/titanic_41/usr/src/lib/libnsl/saf/ |
H A D | doconfig.c | 179 char *tp; /* scratch pointer */ in doassign() local 214 tp = val; in doassign() 222 *(tp - 1) = *p++; in doassign() 224 *tp++ = *p++; in doassign() 226 *tp = '\0'; in doassign() 231 tp = ++p; in doassign() 234 tp = p; in doassign() 236 while (*tp && !isspace(*tp)) in doassign() 237 tp++; in doassign() 246 if (*tp) in doassign() [all …]
|
/titanic_41/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_thread.c | 37 fmd_thread_t *tp = fmd_alloc(sizeof (fmd_thread_t), FMD_SLEEP); in fmd_thread_xcreate() local 39 tp->thr_mod = mp; in fmd_thread_xcreate() 40 tp->thr_tid = tid; in fmd_thread_xcreate() 41 tp->thr_func = NULL; in fmd_thread_xcreate() 42 tp->thr_arg = NULL; in fmd_thread_xcreate() 43 tp->thr_trdata = fmd_trace_create(); in fmd_thread_xcreate() 44 tp->thr_trfunc = (fmd_tracebuf_f *)fmd.d_thr_trace; in fmd_thread_xcreate() 45 tp->thr_errdepth = 0; in fmd_thread_xcreate() 46 tp->thr_isdoor = 0; in fmd_thread_xcreate() 49 fmd_list_append(&fmd.d_thr_list, tp); in fmd_thread_xcreate() [all …]
|
H A D | fmd_timerq.c | 54 fmd_timer_t *tp, *up; in fmd_timerq_install() local 60 if ((tp = fmd_list_next(&tmq->tmq_free)) == NULL) { in fmd_timerq_install() 61 tp = fmd_zalloc(sizeof (fmd_timer_t), FMD_SLEEP); in fmd_timerq_install() 62 (void) pthread_cond_init(&tp->tmr_cv, NULL); in fmd_timerq_install() 64 fmd_list_delete(&tmq->tmq_free, tp); in fmd_timerq_install() 66 if ((id = fmd_idspace_alloc(ids, tp)) == -1) { in fmd_timerq_install() 67 fmd_list_prepend(&tmq->tmq_free, tp); in fmd_timerq_install() 80 tp->tmr_hrt = hrt; in fmd_timerq_install() 81 tp->tmr_ids = ids; in fmd_timerq_install() 82 tp->tmr_id = id; in fmd_timerq_install() [all …]
|
/titanic_41/usr/src/uts/common/disp/ |
H A D | disp.c | 101 void disp_swapped_enq(kthread_t *tp); 102 static void disp_swapped_setrun(kthread_t *tp); 114 static void setkpdq(kthread_t *tp, int borf); 156 static kthread_t *disp_ratify(kthread_t *tp, disp_t *kpq); 707 kthread_t *tp; in disp() local 730 (tp = disp_getbest(kpq)) != NULL) { in disp() 731 if (disp_ratify(tp, kpq) != NULL) { in disp() 733 "disp_end:tid %p", tp); in disp() 734 return (tp); in disp() 751 if ((tp = disp_getwork(cpup)) == NULL || in disp() [all …]
|
/titanic_41/usr/src/uts/common/pcmcia/sys/ |
H A D | cis.h | 221 #define GET_CIS_ADDR(tp) ((cisdata_t *)(uintptr_t)(tp)->offset) argument 327 #define GET_CM_BYTE(tp) (((size_t)(tp)->len >= \ argument 328 ((uintptr_t)(tp)->read.byte - \ 329 (uintptr_t)(tp)->data)) ? \ 330 *(tp)->read.byte++ : ((tp)->flags |= CISTPLF_MEM_ERR)) 331 #define GET_CM_LEN(tp) ((size_t)(tp)->len - \ argument 332 ((uintptr_t)(tp)->read.byte - \ 333 (uintptr_t)(tp)->data)) 336 #define GET_AM_BYTE(tp) (((size_t)(tp)->len >= \ argument 337 (((uintptr_t)(tp)->read.byte - \ [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | sleepq.c | 100 sleepq_unlink(kthread_t **tpp, kthread_t *tp) in sleepq_unlink() argument 102 ASSERT(*tpp == tp); in sleepq_unlink() 103 ASSERT(tp->t_sleepq != NULL); in sleepq_unlink() 106 *tpp = tp->t_link; in sleepq_unlink() 112 if (tp->t_priforw != tp) { in sleepq_unlink() 113 tp->t_priback->t_priforw = tp->t_priforw; in sleepq_unlink() 114 tp->t_priforw->t_priback = tp->t_priback; in sleepq_unlink() 118 tp->t_link = NULL; in sleepq_unlink() 119 tp->t_sleepq = NULL; in sleepq_unlink() 120 tp->t_priforw = NULL; in sleepq_unlink() [all …]
|
/titanic_41/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_tnode.c | 62 struct tmpnode *tp, in tmp_resv() argument 69 ASSERT(RW_WRITE_HELD(&tp->tn_rwlock)); in tmp_resv() 70 ASSERT(tp->tn_type == VREG); in tmp_resv() 96 tp, delta); in tmp_resv() 110 struct tmpnode *tp, in tmp_unresv() argument 113 ASSERT(RW_WRITE_HELD(&tp->tn_rwlock)); in tmp_unresv() 114 ASSERT(tp->tn_type == VREG); in tmp_unresv() 122 TRACE_2(TR_FAC_VM, TR_ANON_TMPFS, "anon tmpfs:%p %lu", tp, delta); in tmp_unresv() 131 tmpnode_growmap(struct tmpnode *tp, ulong_t newsize) in tmpnode_growmap() argument 135 ASSERT(RW_WRITE_HELD(&tp->tn_rwlock)); in tmpnode_growmap() [all …]
|