Searched refs:tp (Results 1 - 25 of 184) sorted by relevance

12345678

/osnet-11/usr/src/lib/libc/port/gen/
H A Dsettimeofday.c46 settimeofday(struct timeval *tp, void *tzp) argument
50 if (tp == NULL)
53 if (tp->tv_sec < 0 || tp->tv_usec < 0 || tp->tv_usec >= MICROSEC) {
58 t = (time_t)tp->tv_sec;
59 if (tp->tv_usec >= (MICROSEC/2))
H A Dftime.c51 ftime(struct timeb *tp) argument
59 tp->time = t.tv_sec;
60 tp->millitm = t.tv_usec / 1000;
61 tp->timezone = timezone / 60;
62 tp->dstflag = daylight;
H A Dmalloc.c121 TREE *tp; local
145 tp = np;
146 SIZE(tp) = size;
147 np = NEXT(tp);
148 AFTER(tp) = np;
150 AFTER(tp) = NULL;
154 tp = List[i];
155 List[i] = AFTER(tp);
156 SETBIT0(SIZE(tp));
157 return (DATA(tp));
180 TREE *tp, *sp; local
302 TREE *tp, *np; local
492 TREE *tp, *sp, *np; local
605 TREE *tp; local
756 TREE *tp, *sp, *gp; local
818 t_splay(TREE *tp) argument
[all...]
/osnet-11/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_tree.c70 set_create_error(topo_hdl_t *thp, ttree_t *tp, int err) argument
72 if (tp != NULL)
73 topo_tree_destroy(tp);
84 ttree_t *tp; local
87 if ((tp = topo_mod_zalloc(mod, sizeof (ttree_t))) == NULL)
90 tp->tt_mod = mod;
92 if ((tp->tt_scheme = topo_mod_strdup(mod, scheme)) == NULL)
93 return (set_create_error(thp, tp, ETOPO_NOMEM));
98 if ((tp->tt_walk = topo_mod_zalloc(mod, sizeof (topo_walk_t))) == NULL)
99 return (set_create_error(thp, tp, ETOPO_NOME
126 topo_tree_destroy(ttree_t *tp) argument
153 topo_tree_enum(topo_hdl_t *thp, ttree_t *tp) argument
222 ttree_t *tp; local
[all...]
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Dalarm.c59 register struct tevent *tp = (struct tevent*)list; local
60 if(!tp || item->milli < tp->milli)
62 item->next = tp;
67 while(tp->next && item->milli > tp->next->milli)
68 tp = tp->next;
69 item->next = tp->next;
70 tp
82 register struct tevent *tp = (struct tevent*)list; local
99 register struct tevent *tp = (struct tevent*)list; local
119 register struct tevent *tp = (struct tevent*)handle; local
131 register struct tevent *tp, *tpnext; local
165 register struct tevent *tp = (struct tevent*)fp; local
185 register struct tevent *tp = (struct tevent*)fp; local
237 register struct tevent *tp; local
[all...]
/osnet-11/usr/src/lib/libast/common/string/
H A Dbase64.c54 register unsigned char* tp; local
71 if (tp = (unsigned char*)tb)
73 te = tp + tz - B64_EC + 1;
82 tp = tmp;
83 te = tp + sizeof(tmp) - B64_EC + 1;
88 tc = tp + B64_EC * B64_CHUNK;
93 if (tp >= te)
98 *tn = tp;
99 n = tp - (unsigned char*)tb + 1;
100 tp
165 register unsigned char* tp; local
[all...]
/osnet-11/usr/src/lib/libresolv2/common/bsd/
H A Dgettimeofday.c19 isc__gettimeofday(struct timeval *tp, struct timezone *tzp) { argument
22 res = gettimeofday(tp, tzp);
25 if (tp == NULL)
27 if (tp->tv_usec < 0) {
29 tp->tv_usec += MILLION;
30 tp->tv_sec--;
31 } while (tp->tv_usec < 0);
33 } else if (tp->tv_usec > MILLION) {
35 tp->tv_usec -= MILLION;
36 tp
[all...]
/osnet-11/usr/src/lib/libsec/common/
H A Daclmode.c40 aclent_t *tp; local
52 for (tp = aclbufp; nentries--; tp++) {
53 if (tp->a_type == USER_OBJ) {
54 mode = tp->a_perm;
60 if (tp->a_type == GROUP_OBJ) {
61 grpmode = tp->a_perm;
66 if (tp->a_type == CLASS_OBJ) {
68 mask = tp->a_perm;
74 if (tp
91 aclent_t *tp; local
[all...]
H A Daclsort.c82 aclent_t *tp; local
100 for (tp = aclbufp, i = 0; i < nentries; tp++, i++) {
102 if (tp->a_type == map_to_sort[k].entry_type) {
103 tp->a_type = map_to_sort[k].sort_order;
113 for (tp = aclbufp, i = 0; i < nentries; tp++, i++) {
115 if (tp->a_type == map_to_sort[k].sort_order) {
116 tp->a_type = map_to_sort[k].entry_type;
142 for (tp
161 aclent_t *tp; local
[all...]
/osnet-11/usr/src/grub/grub-0.97/netboot/
H A Dtg3.c43 /* (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ? \
143 static void tg3_disable_ints(struct tg3 *tp) argument
146 (tp->misc_host_ctrl | MISC_HOST_CTRL_MASK_PCI_INT));
150 static void tg3_switch_clocks(struct tg3 *tp) argument
158 tp->pci_clock_ctrl = clock_ctrl;
160 if ((GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705) &&
172 static int tg3_readphy(struct tg3 *tp, int reg, uint32_t *val) argument
177 tw32_carefully(MAC_MI_MODE, tp->mi_mode & ~MAC_MI_MODE_AUTO_POLL);
207 tw32_carefully(MAC_MI_MODE, tp->mi_mode);
212 static int tg3_writephy(struct tg3 *tp, in argument
248 tg3_writedsp(struct tg3 *tp, uint16_t addr, uint16_t val) argument
257 tg3_phy_set_wirespeed(struct tg3 *tp) argument
269 tg3_bmcr_reset(struct tg3 *tp) argument
300 tg3_wait_macro_done(struct tg3 *tp) argument
317 tg3_phy_write_and_check_testpat(struct tg3 *tp, int *resetp) argument
383 tg3_phy_reset_chanpat(struct tg3 *tp) argument
403 tg3_phy_reset_5703_4_5(struct tg3 *tp) argument
469 tg3_phy_reset(struct tg3 *tp) argument
495 tg3_set_power_state_0(struct tg3 *tp) argument
519 tg3_link_report(struct tg3 *tp) argument
540 tg3_setup_flow_control(struct tg3 *tp, uint32_t local_adv, uint32_t remote_adv) argument
599 tg3_phy_copper_begin(struct tg3 *tp) argument
654 tg3_init_5401phy_dsp(struct tg3 *tp) argument
672 tg3_setup_copper_phy(struct tg3 *tp) argument
952 tg3_fiber_aneg_smachine(struct tg3 *tp, struct tg3_fiber_aneginfo *ap) argument
1196 tg3_setup_fiber_phy(struct tg3 *tp) argument
1381 tg3_setup_phy(struct tg3 *tp) argument
1412 tg3_stop_block(struct tg3 *tp, unsigned long ofs, uint32_t enable_bit) argument
1453 tg3_abort_hw(struct tg3 *tp) argument
1513 tg3_chip_reset(struct tg3 *tp) argument
1582 tg3_stop_fw(struct tg3 *tp) argument
1602 tg3_restart_fw(struct tg3 *tp, uint32_t state) argument
1629 tg3_halt(struct tg3 *tp) argument
1637 __tg3_set_mac_addr(struct tg3 *tp) argument
1671 tg3_set_bdinfo(struct tg3 *tp, uint32_t bdinfo_addr, dma_addr_t mapping, uint32_t maxlen_flags, uint32_t nic_addr) argument
1690 tg3_init_rings(struct tg3 *tp) argument
1742 tg3_setup_hw(struct tg3 *tp) argument
2214 tg3_nvram_init(struct tg3 *tp) argument
2282 tg3_nvram_read(struct tg3 *tp, uint32_t offset, uint32_t *val) argument
2374 tg3_phy_probe(struct tg3 *tp) argument
2556 tg3_read_partno(struct tg3 *tp) argument
2620 tg3_get_invariants(struct tg3 *tp) argument
2811 tg3_get_device_address(struct tg3 *tp) argument
2860 tg3_setup_dma(struct tg3 *tp) argument
2913 tg3_init_link_config(struct tg3 *tp) argument
2927 tg3_phy_string(struct tg3 *tp) argument
2946 tg3_poll_link(struct tg3 *tp) argument
2971 tg3_ack_irqs(struct tg3 *tp) argument
2998 struct tg3 *tp = &tg3; local
3068 struct tg3 *tp; local
3120 struct tg3 *tp = &tg3; local
3159 struct tg3 *tp = &tg3; local
[all...]
H A Dtulip.c434 static struct tulip_private *tp; variable in typeref:struct:tulip_private
514 printf("%s: %s\n", tp->nic_name, str);
577 if (tp->chip_id == LC82C168) {
588 if (tp->chip_id == COMET) {
637 if (tp->chip_id == LC82C168) {
647 if (tp->chip_id == COMET) {
732 unsigned char *p, *ee_data = tp->eeprom;
740 tp->mtable = 0;
758 tp->nic_name, eeprom_fixups[i].name, tp
[all...]
/osnet-11/usr/src/lib/scsi/libses/common/
H A Dses_enclosure.c31 enc_parse_td(ses2_td_hdr_impl_t *tip, const char *tp, nvlist_t *nvl) argument
35 if (tp != NULL)
37 tp, tip->sthi_text_len);
43 enc_eid(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) argument
47 SES_NV_ADD(uint64, nverr, nvl, name, tp->st_hdr.sehi_subenclosure_id);
53 enc_espid(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) argument
57 SES_NV_ADD(uint64, nverr, nvl, name, tp->st_hdr.sehi_rel_esp_id);
63 enc_nesp(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) argument
67 SES_NV_ADD(uint64, nverr, nvl, name, tp->st_hdr.sehi_n_esps);
73 enc_lid(const ses2_ed_impl_t *tp, nvlist_ argument
118 enc_vid(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) argument
129 enc_pid(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) argument
140 enc_rev(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) argument
151 enc_vs(const ses2_ed_impl_t *tp, nvlist_t *nvl, const char *name) argument
186 enc_parse_ed(ses2_ed_impl_t *tp, nvlist_t *nvl) argument
208 ses_target_t *tp; local
245 ses_target_t *tp; local
274 ses_scsi_target(ses_target_t *tp) argument
280 ses_close(ses_target_t *tp) argument
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dtimers.c51 struct timeval tp; local
52 timeofday(&tp);
53 now = tp.tv_sec + 1.e-6*tp.tv_usec;
89 register Timer_t *tp, *tplast, *tpold, *tpnext; local
111 for(tplast=0,tp=tptop; tp; tp=tpnext)
113 tpnext = tp->next;
114 if(tp
183 register Timer_t *tp; local
233 register Timer_t *tp = (Timer_t*)handle; local
[all...]
/osnet-11/usr/src/lib/libnsl/nss/
H A Dinet_pton.c86 uchar_t tmp[INADDRSZ], *tp; local
90 *(tp = tmp) = 0;
95 uint_t new = *tp * 10 + (pch - digits);
99 *tp = new;
108 *++tp = 0;
141 uchar_t tmp[IN6ADDRSZ], *tp, *endp, *colonp; local
146 (void) memset((tp = tmp), '\0', IN6ADDRSZ);
147 endp = tp + IN6ADDRSZ;
174 colonp = tp;
179 if (tp
[all...]
/osnet-11/usr/src/lib/watchmalloc/common/
H A Dmalloc.c89 copy_pattern(int pat, TREE *tp) argument
92 size_t sz = SIZE(tp) / sizeof (uint64_t);
94 uint64_t *datap = (uint64_t *)DATA(tp);
112 TREE *tp; local
134 tp = np;
135 SIZE(tp) = size;
136 copy_pattern(FREEPAT, tp);
138 Last[i] = tp;
142 np = NEXT(tp);
144 AFTER(tp)
174 TREE *tp, *sp, *tmp; local
286 TREE *tp, *np; local
483 TREE *tp, *sp, *np, *tmp; local
638 TREE *tp; local
748 in_list(TREE *tp, TREE **npp) argument
769 TREE *tp; local
797 TREE *tp; local
825 TREE *tp; local
859 TREE *tp; local
893 TREE *tp; local
952 TREE *tp, *sp, *gp; local
1038 t_splay(TREE *tp) argument
1405 protect(TREE *tp) argument
1429 unprotect(TREE *tp) argument
[all...]
/osnet-11/usr/src/lib/libinetutil/common/
H A Difspec.c64 const char *tp; local
67 for (tp = ep; tp > bp && isdigit(*tp); tp--)
70 if (tp == ep || tp != bp || extract_uint(bp + 1, lun) != 0) {
88 const char *tp; local
90 for (tp = ep; tp >
162 char *tp; local
[all...]
/osnet-11/usr/src/lib/libast/common/vmalloc/
H A Dvmclear.c43 reg Block_t* tp; local
71 tp = SEGBLOCK(seg);
72 size = seg->baddr - ((Vmuchar_t*)tp) - 2*sizeof(Head_t);
74 SEG(tp) = seg;
75 SIZE(tp) = size;
77 seg->free = tp;
79 { SIZE(tp) |= BUSY|JUNK;
80 LINK(tp) = CACHE(vd)[C_INDEX(SIZE(tp))];
81 CACHE(vd)[C_INDEX(SIZE(tp))]
[all...]
/osnet-11/usr/src/lib/scsi/libsmp/common/
H A Dsmp_plugin.c51 smp_report_general(smp_target_t *tp) argument
58 if ((ap = smp_action_alloc(SMP_FUNC_REPORT_GENERAL, tp, 0)) == NULL)
61 if (smp_exec(ap, tp) != 0) {
73 bcopy(rp, &tp->st_repgen, sizeof (tp->st_repgen));
81 smp_report_manufacturer_information(smp_target_t *tp) argument
88 ap = smp_action_alloc(SMP_FUNC_REPORT_MANUFACTURER_INFO, tp, 0);
92 if (smp_exec(ap, tp) != 0) {
105 tp->st_vendor = smp_trim_strdup(rp->srmir_vendor_identification,
107 tp
134 smp_target_fill(smp_target_t *tp) argument
144 smp_get_funcdef(smp_target_t *tp, int fn) argument
210 smp_plugin_loadone(smp_target_t *tp, const char *path, uint32_t pass) argument
265 smp_plugin_load_dir(smp_target_t *tp, const char *pluginroot) argument
376 smp_plugin_load(smp_target_t *tp) argument
414 smp_plugin_unload(smp_target_t *tp) argument
[all...]
/osnet-11/usr/src/lib/libc/port/sys/
H A Dtime.c49 stime(const time_t *tp) argument
53 return (__stime(*tp));
/osnet-11/usr/src/lib/libcmd/common/
H A Dtee.c94 tee_cleanup(register Tee_t* tp) argument
99 if (tp)
102 if (tp->line >= 0)
103 sfset(sfstdout, SF_LINE, tp->line);
104 for (hp = tp->fd; (n = *hp) >= 0; hp++)
112 register Tee_t* tp = 0; local
120 if (context && (tp = (Tee_t*)sh_context(context)->data))
123 tee_cleanup(tp);
170 if (tp = (Tee_t*)stakalloc(sizeof(Tee_t) + argc * sizeof(int)))
172 memset(&tp
[all...]
/osnet-11/usr/src/lib/libast/amd64/include/ast/
H A Dast_tty.h72 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD)
76 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD)
77 # define cfgetispeed(tp) ((tp)->c_cflag & CBAUD)
78 # define cfsetispeed(tp,val) ((tp)->c_cflag &=~ CBAUD,(tp)->c_cflag|=(val))
79 # define cfsetospeed(tp,va
[all...]
/osnet-11/usr/src/lib/libast/amd64/src/lib/libast/
H A Dast_tty.h51 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD)
55 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD)
56 # define cfgetispeed(tp) ((tp)->c_cflag & CBAUD)
57 # define cfsetispeed(tp,val) ((tp)->c_cflag &=~ CBAUD,(tp)->c_cflag|=(val))
58 # define cfsetospeed(tp,va
[all...]
/osnet-11/usr/src/lib/libast/common/comp/
H A Dgetsubopt.c42 getsubopt(register char** op, char* const* tp, char** vp)
76 for (op = (char**)tp; *op; op++)
78 return op - (char**)tp;
/osnet-11/usr/src/lib/libast/i386/include/ast/
H A Dast_tty.h72 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD)
76 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD)
77 # define cfgetispeed(tp) ((tp)->c_cflag & CBAUD)
78 # define cfsetispeed(tp,val) ((tp)->c_cflag &=~ CBAUD,(tp)->c_cflag|=(val))
79 # define cfsetospeed(tp,va
[all...]
/osnet-11/usr/src/lib/libast/i386/src/lib/libast/
H A Dast_tty.h51 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD)
55 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD)
56 # define cfgetispeed(tp) ((tp)->c_cflag & CBAUD)
57 # define cfsetispeed(tp,val) ((tp)->c_cflag &=~ CBAUD,(tp)->c_cflag|=(val))
58 # define cfsetospeed(tp,va
[all...]

Completed in 82 milliseconds

12345678