/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | help.c | 45 char **ep, *s, **tp, *text[MAXHELP]; in help() local 48 tp = text; in help() 51 *tp++ = "Point with the mouse and click button 1 to " in help() 53 *tp++ = "type the pattern to search for, and then " in help() 55 *tp++ = "and last 2 input fields, the pattern can be " in help() 57 *tp++ = "If the search is successful, you can edit " in help() 59 *tp++ = "by pointing with the mouse and clicking " in help() 61 *tp++ = "\nYou can either use the button 2 menu or " in help() 64 *tp++ = "Press the TAB key repeatedly to move to the " in help() 66 *tp++ = "pattern to search for, and then press the " in help() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | ldterm.c | 443 ldtermstd_state_t *tp); 670 ldtermstd_state_t *tp; in ldtermopen() local 681 tp = (ldtermstd_state_t *)kmem_zalloc(sizeof (ldtermstd_state_t), in ldtermopen() 691 tp->t_modes = *termiosp; in ldtermopen() 692 tp->t_amodes = *termiosp; in ldtermopen() 700 bzero(&tp->t_dmodes, sizeof (struct termios)); in ldtermopen() 702 tp->t_state = 0; in ldtermopen() 704 tp->t_line = 0; in ldtermopen() 705 tp->t_col = 0; in ldtermopen() 707 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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/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 …]
|
/illumos-gate/usr/src/uts/common/pcmcia/cis/ |
H A D | cis_handlers.c | 73 cis_get_short(cistpl_t *tp) in cis_get_short() argument 77 if (tp->flags & CISTPLF_AM_SPACE) { in cis_get_short() 78 result = GET_AM_BYTE(tp); in cis_get_short() 79 result |= GET_AM_BYTE(tp) << 8; in cis_get_short() 81 result = GET_CM_BYTE(tp); in cis_get_short() 82 result |= GET_CM_BYTE(tp) << 8; in cis_get_short() 88 cis_get_be_short(cistpl_t *tp) in cis_get_be_short() argument 92 if (tp->flags & CISTPLF_AM_SPACE) { in cis_get_be_short() 93 result = GET_AM_BYTE(tp) << 8; in cis_get_be_short() 94 result |= GET_AM_BYTE(tp); in cis_get_be_short() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/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 …]
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctmerg.c | 79 struct tacct *tp; in main() local 131 while ((tp = getleast()) != NULL) /* get least uid of all files, */ in main() 132 sumcurr(tp); /* sum all entries for that uid, */ in main() 146 struct tacct *tp, *least; in getleast() local 149 for (tp = tb; tp <= &tb[nfile]; tp++) { in getleast() 150 if (tp->ta_name[0] == '\0') in getleast() 153 tp->ta_uid < least->ta_uid || in getleast() 154 ((tp->ta_uid == least->ta_uid) && in getleast() 156 (strncmp(tp->ta_name, least->ta_name, NSZ) < 0))) in getleast() 157 least = tp; in getleast() [all …]
|
/illumos-gate/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 90 copy_pattern(int pat, TREE *tp) in copy_pattern() argument 93 size_t sz = SIZE(tp) / sizeof (uint64_t); in copy_pattern() 95 uint64_t *datap = (uint64_t *)DATA(tp); in copy_pattern() 113 TREE *tp; in smalloc() local 135 tp = np; in smalloc() 136 SIZE(tp) = size; in smalloc() 137 copy_pattern(FREEPAT, tp); in smalloc() 139 Last[i] = tp; in smalloc() 143 np = NEXT(tp); in smalloc() 145 AFTER(tp) = np; in smalloc() [all …]
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_uthread.c | 103 kthread_id_t tp; in cpr_stop_user() local 110 tp = curthread->t_next; in cpr_stop_user() 113 p = ttoproc(tp); in cpr_stop_user() 128 thread_lock(tp); /* needed to check CPR_ISTOPPED */ in cpr_stop_user() 130 if (tp->t_state == TS_STOPPED) { in cpr_stop_user() 135 if (tp->t_schedflag & TS_RESUME) in cpr_stop_user() 136 tp->t_schedflag &= ~TS_RESUME; in cpr_stop_user() 139 tp->t_proc_flag |= TP_CHKPT; in cpr_stop_user() 141 thread_unlock(tp); in cpr_stop_user() 145 thread_lock(tp); in cpr_stop_user() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | malloc.c | 121 TREE *tp; in _smalloc() local 145 tp = np; in _smalloc() 146 SIZE(tp) = size; in _smalloc() 147 np = NEXT(tp); in _smalloc() 148 AFTER(tp) = np; in _smalloc() 150 AFTER(tp) = NULL; in _smalloc() 154 tp = List[i]; in _smalloc() 155 List[i] = AFTER(tp); in _smalloc() 156 SETBIT0(SIZE(tp)); in _smalloc() 157 return (DATA(tp)); in _smalloc() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | tbl_term.c | 162 term_tbl(struct termp *tp, const struct tbl_span *sp) in term_tbl() argument 174 tp->flags |= TERMP_NOSPACE | TERMP_NONOSPACE; in term_tbl() 175 save_offset = tp->tcol->offset; in term_tbl() 182 if (tp->tbl.cols == NULL) { in term_tbl() 183 borders_locale = tp->enc == TERMENC_UTF8 ? in term_tbl() 186 tp->tbl.len = term_tbl_len; in term_tbl() 187 tp->tbl.slen = term_tbl_strlen; in term_tbl() 188 tp->tbl.sulen = term_tbl_sulen; in term_tbl() 189 tp->tbl.arg = tp; in term_tbl() 191 tblcalc(&tp->tbl, sp, tp->tcol->offset, tp->tcol->rmargin); in term_tbl() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/lib/lib9p/common/ |
H A D | threadpool.c | 40 static void l9p_threadpool_rflush(struct l9p_threadpool *tp, 46 struct l9p_threadpool *tp; in l9p_responder() local 50 tp = worker->ltw_tp; in l9p_responder() 54 if (pthread_mutex_lock(&tp->ltp_mtx) != 0) in l9p_responder() 56 while (STAILQ_EMPTY(&tp->ltp_replyq) && !worker->ltw_exiting) { in l9p_responder() 57 (void) pthread_cond_wait(&tp->ltp_reply_cv, in l9p_responder() 58 &tp->ltp_mtx); in l9p_responder() 61 (void) pthread_mutex_unlock(&tp->ltp_mtx); in l9p_responder() 66 req = STAILQ_FIRST(&tp->ltp_replyq); in l9p_responder() 67 STAILQ_REMOVE_HEAD(&tp->ltp_replyq, lr_worklink); in l9p_responder() [all …]
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | disp.c | 105 void disp_swapped_enq(kthread_t *tp); 106 static void disp_swapped_setrun(kthread_t *tp); 118 static void setkpdq(kthread_t *tp, int borf); 160 static kthread_t *disp_ratify(kthread_t *tp, disp_t *kpq); 727 kthread_t *tp; in disp() local 750 (tp = disp_getbest(kpq)) != NULL) { in disp() 751 if (disp_ratify(tp, kpq) != NULL) { in disp() 753 "disp_end:tid %p", tp); in disp() 754 return (tp); in disp() 771 if ((tp = disp_getwork(cpup)) == NULL || in disp() [all …]
|
/illumos-gate/usr/src/lib/libnsl/saf/ |
H A D | doconfig.c | 177 char *tp; /* scratch pointer */ in doassign() local 212 tp = val; in doassign() 220 *(tp - 1) = *p++; in doassign() 222 *tp++ = *p++; in doassign() 224 *tp = '\0'; in doassign() 229 tp = ++p; in doassign() 232 tp = p; in doassign() 234 while (*tp && !isspace(*tp)) in doassign() 235 tp++; in doassign() 244 if (*tp) in doassign() [all …]
|
/illumos-gate/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.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 | 52 fmd_timer_t *tp, *up; in fmd_timerq_install() local 58 if ((tp = fmd_list_next(&tmq->tmq_free)) == NULL) { in fmd_timerq_install() 59 tp = fmd_zalloc(sizeof (fmd_timer_t), FMD_SLEEP); in fmd_timerq_install() 60 (void) pthread_cond_init(&tp->tmr_cv, NULL); in fmd_timerq_install() 62 fmd_list_delete(&tmq->tmq_free, tp); in fmd_timerq_install() 64 if ((id = fmd_idspace_alloc(ids, tp)) == -1) { in fmd_timerq_install() 65 fmd_list_prepend(&tmq->tmq_free, tp); in fmd_timerq_install() 78 tp->tmr_hrt = hrt; in fmd_timerq_install() 79 tp->tmr_ids = ids; in fmd_timerq_install() 80 tp->tmr_id = id; in fmd_timerq_install() [all …]
|
/illumos-gate/usr/src/uts/common/pcmcia/sys/ |
H A D | cis.h | 219 #define GET_CIS_ADDR(tp) ((cisdata_t *)(uintptr_t)(tp)->offset) argument 325 #define GET_CM_BYTE(tp) (((size_t)(tp)->len >= \ argument 326 ((uintptr_t)(tp)->read.byte - \ 327 (uintptr_t)(tp)->data)) ? \ 328 *(tp)->read.byte++ : ((tp)->flags |= CISTPLF_MEM_ERR)) 329 #define GET_CM_LEN(tp) ((size_t)(tp)->len - \ argument 330 ((uintptr_t)(tp)->read.byte - \ 331 (uintptr_t)(tp)->data)) 334 #define GET_AM_BYTE(tp) (((size_t)(tp)->len >= \ argument 335 (((uintptr_t)(tp)->read.byte - \ [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sleepq.c | 98 sleepq_unlink(kthread_t **tpp, kthread_t *tp) in sleepq_unlink() argument 100 ASSERT(*tpp == tp); in sleepq_unlink() 101 ASSERT(tp->t_sleepq != NULL); in sleepq_unlink() 104 *tpp = tp->t_link; in sleepq_unlink() 110 if (tp->t_priforw != tp) { in sleepq_unlink() 111 tp->t_priback->t_priforw = tp->t_priforw; in sleepq_unlink() 112 tp->t_priforw->t_priback = tp->t_priback; in sleepq_unlink() 116 tp->t_link = NULL; in sleepq_unlink() 117 tp->t_sleepq = NULL; in sleepq_unlink() 118 tp->t_priforw = NULL; in sleepq_unlink() [all …]
|
/illumos-gate/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 …]
|