/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_open.c | 209 const ctf_type_t *tp; in init_types() local 228 for (tp = tbuf; tp < tend; fp->ctf_typemax++) { in init_types() 254 ((uintptr_t)tp + increment); in init_types() 261 ((uintptr_t)tp + increment); in init_types() 279 tp->ctt_type >= CTF_K_MAX) in init_types() 282 pop[tp->ctt_type]++; in init_types() 299 tp = (ctf_type_t *)((uintptr_t)tp + increment + vbytes); in init_types() 348 for (id = 1, tp = tbuf; tp < tend; xp++, id++) { in init_types() 359 name = ctf_strptr(fp, tp->ctt_name); in init_types() 453 switch (tp->ctt_type) { in init_types() [all …]
|
/illumos-gate/usr/src/uts/common/pcmcia/sys/ |
H A D | cs_priv.h | 729 #define GET_NEXT_TUPLE(tp, f) CIS_PARSER(CISP_CIS_GET_LTUPLE, tp, \ argument 732 #define GET_PREV_TUPLE(tp, f) CIS_PARSER(CISP_CIS_GET_LTUPLE, tp, \ argument 735 #define GET_FIRST_LTUPLE(tp, f) CIS_PARSER(CISP_CIS_GET_LTUPLE, tp, \ argument 738 #define GET_LAST_LTUPLE(tp, f) CIS_PARSER(CISP_CIS_GET_LTUPLE, tp, \ argument 741 #define FIND_LTUPLE_FWD(tp, tu, f) CIS_PARSER(CISP_CIS_GET_LTUPLE, tp, \ argument 744 #define FIND_LTUPLE_BACK(tp, tu, f) CIS_PARSER(CISP_CIS_GET_LTUPLE, tp, \ argument 747 #define FIND_NEXT_LTUPLE(tp, tu, f) CIS_PARSER(CISP_CIS_GET_LTUPLE, tp, \ argument 750 #define FIND_PREV_LTUPLE(tp, tu, f) CIS_PARSER(CISP_CIS_GET_LTUPLE, tp, \ argument 753 #define FIND_FIRST_LTUPLE(tp, tu, f) FIND_LTUPLE_FWD(GET_FIRST_LTUPLE(tp, \ argument
|
/illumos-gate/usr/src/common/net/dhcp/ |
H A D | octet.c | 85 const char *tp; in hexascii_to_octet() local 95 for (tp = asp, u_tp = (uchar_t *)bufp, i = 0; i < k; i++, u_tp++) { in hexascii_to_octet() 97 for (*u_tp = 0, j = 0; j < 2; j++, tp++) { in hexascii_to_octet() 98 if (isdigit(*tp)) in hexascii_to_octet() 99 *u_tp |= *tp - '0'; in hexascii_to_octet() 100 else if (isxdigit(*tp)) in hexascii_to_octet() 101 *u_tp |= (*tp & ~0x20) + 10 - 'A'; in hexascii_to_octet()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | ptem.c | 891 struct ptem *tp; in ptioc() local 900 tp = (struct ptem *)q->q_ptr; in ptioc() 909 if ((tp->wsz.ws_row == 0) && (tp->wsz.ws_col == 0) && in ptioc() 910 (tp->wsz.ws_xpixel == 0) && (tp->wsz.ws_ypixel == 0)) { in ptioc() 927 jwb->bytesx = tp->wsz.ws_col; in ptioc() 939 if ((tp->wsz.ws_row == 0) && (tp->wsz.ws_col == 0) && in ptioc() 940 (tp->wsz.ws_xpixel == 0) && (tp->wsz.ws_ypixel == 0)) { in ptioc() 954 wb->ws_row = tp->wsz.ws_row; in ptioc() 955 wb->ws_col = tp->wsz.ws_col; in ptioc() 1087 tp->state |= REMOTEMODE; in ptioc() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | fmt.c | 241 char* tp; in dofmt() local 435 for (tp = cp; tp < lp; tp++) in dofmt() 437 if (*tp == '[' || *tp == '\n') in dofmt() 439 if (*tp == ' ' || *tp == '\t' || *tp == '"') in dofmt() 441 if (*tp == '\\' && (lp - tp) > 1) in dofmt() 445 if (*tp == 't' || *tp == '\n') in dofmt() 538 tp = dp; in dofmt() 539 while (--tp > buf) in dofmt() 540 if (isspace(*tp)) in dofmt() 542 cp -= dp - tp; in dofmt() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmbest.c | 667 if((tp = vd->wild) && SIZE(tp) >= size) 683 np = NEXT(tp); 712 return tp ? DATA(tp) : NIL(Void_t*); 1045 seg = SEG(tp); 1061 SIZE(tp) = (s - sizeof(Head_t)) | (SIZE(tp)&BITS) | JUNK; 1063 LINK(tp) = CACHE(vd)[C_INDEX(SIZE(tp))]; 1064 CACHE(vd)[C_INDEX(SIZE(tp))] = tp; 1071 tp = NEXT(np); 1073 SEG(tp) = seg; 1074 LINK(tp) = CACHE(vd)[C_INDEX(SIZE(tp))]; [all …]
|
H A D | vmprivate.c | 50 reg Block_t *bp, *tp, *np; local 107 else REMOVE(vd,bp,INDEX(SIZE(bp)),tp,(*searchf)); 163 tp = NEXT(bp); 164 SEG(tp) = seg; 165 SIZE(tp) = BUSY; 168 if((tp = vd->wild) && (seg = SEG(tp)) != vd->seg) 169 { np = NEXT(tp); 172 { SIZE(tp) |= BUSY|JUNK; 173 LINK(tp) = CACHE(vd)[C_INDEX(SIZE(tp))]; 174 CACHE(vd)[C_INDEX(SIZE(tp))] = tp; [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tminit.c | 132 register struct tm* tp; in tzwest() local 150 tp = gmtime(clock); in tzwest() 152 n = tp->tm_yday; in tzwest() 153 h = tp->tm_hour; in tzwest() 154 m = tp->tm_min; in tzwest() 160 tp = tmlocaltime(clock); in tzwest() 161 if (n = tp->tm_yday - n) in tzwest() 168 *isdst = tp->tm_isdst; in tzwest() 169 return (h - tp->tm_hour - n * 24) * 60 + m - tp->tm_min; in tzwest() 216 struct tm* tp; in tmlocal() local [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | cmds.c | 423 char *tp; in mput() local 453 tp = cp; in mput() 483 tp = dotrans(tp); in mput() 486 tp = domap(tp); in mput() 510 tp = (mapflag) ? domap(tp) : tp; in mput() 534 tp = (mapflag) ? domap(tp) : tp; in mput() 658 tp += len; in getit() 660 if (!*tp) { in getit() 736 tp2 = tp; in mget() 757 tp = dotrans(tp); in mget() [all …]
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | ftime.c | 50 ftime(struct timeb *tp) in ftime() argument 57 tp->time = t.tv_sec; in ftime() 58 tp->millitm = t.tv_usec / 1000; in ftime() 59 tp->timezone = (short)tz.tz_minuteswest; in ftime() 60 tp->dstflag = (short)tz.tz_dsttime; in ftime()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ftime.c | 49 ftime(struct timeb *tp) in ftime() argument 57 tp->time = t.tv_sec; in ftime() 58 tp->millitm = t.tv_usec / 1000; in ftime() 59 tp->timezone = timezone / 60; in ftime() 60 tp->dstflag = daylight; in ftime()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | lockstat_subr.c | 47 kthread_t *tp; in lockstat_active_threads() local 51 tp = curthread; in lockstat_active_threads() 53 if (tp->t_lockstat) in lockstat_active_threads() 55 } while ((tp = tp->t_next) != curthread); in lockstat_active_threads()
|
/illumos-gate/usr/src/cmd/ast/libast/sparc/FEATURE/ |
H A D | tty | 51 # 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,val) ((tp)->c_cflag &=~ CBAUD,(tp)->c_cflag|=(val))
|
/illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/ |
H A D | tty | 51 # 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,val) ((tp)->c_cflag &=~ CBAUD,(tp)->c_cflag|=(val))
|
/illumos-gate/usr/src/cmd/ast/libast/i386/FEATURE/ |
H A D | tty | 51 # 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,val) ((tp)->c_cflag &=~ CBAUD,(tp)->c_cflag|=(val))
|
/illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/ |
H A D | tty | 51 # 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,val) ((tp)->c_cflag &=~ CBAUD,(tp)->c_cflag|=(val))
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | processor_bind.c | 52 kthread_t *tp; in cpu_bind_process() local 67 tp = pp->p_tlist; in cpu_bind_process() 68 if (tp != NULL) { in cpu_bind_process() 69 fp = tp; in cpu_bind_process() 71 i = cpu_bind_thread(tp, bind, obind, error); in cpu_bind_process() 74 } while ((tp = tp->t_forw) != fp); in cpu_bind_process() 194 kthread_id_t tp; in processor_bind() local 242 tp = pp->p_tlist; in processor_bind() 244 if (tp->t_tid == id) { in processor_bind() 245 ret = cpu_bind_thread(tp, in processor_bind() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_appinit.c | 569 char *local_s, *name, *value, **p, *tp; local 586 for (tp = name; *tp != '\0' && !isspace(*tp); ++tp) 588 if (*tp == '\0' || tp == name) 590 *tp = '\0'; 591 for (++tp; isspace(*tp); ++tp) 593 if (*tp == '\0') 595 value = tp; 596 for (++tp; *tp != '\0'; ++tp) 598 for (--tp; isspace(*tp); --tp) 600 if (tp == value) { [all …]
|
/illumos-gate/usr/src/lib/scsi/libscsi/common/ |
H A D | scsi_subr.c | 292 libscsi_get_inquiry(libscsi_hdl_t *hp, libscsi_target_t *tp) in libscsi_get_inquiry() argument 309 if (libscsi_exec(ap, tp) != 0 || in libscsi_get_inquiry() 321 if ((tp->lst_vendor = libscsi_process_inquiry_string(hp, in libscsi_get_inquiry() 323 (tp->lst_product = libscsi_process_inquiry_string(hp, in libscsi_get_inquiry() 325 (tp->lst_revision = libscsi_process_inquiry_string(hp, in libscsi_get_inquiry() 335 libscsi_vendor(libscsi_target_t *tp) in libscsi_vendor() argument 337 return (tp->lst_vendor); in libscsi_vendor() 341 libscsi_product(libscsi_target_t *tp) in libscsi_product() argument 343 return (tp->lst_product); in libscsi_product() 347 libscsi_revision(libscsi_target_t *tp) in libscsi_revision() argument [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | nvtype.c | 651 tp = fp->type; in typeinfo() 810 cp->tp = np; in nv_addtype() 820 if(tp) in nv_addtype() 1097 tp->strsize = -tp->strsize; in nv_mktype() 1326 if(tp==tq) in nv_settype() 1461 if(!tp) in nv_mkstruct() 1576 Namval_t *tp; in nv_mkstat() local 1636 for(tp = (Namval_t*)dtfirst(dp); tp; tp = (Namval_t*)dtnext(dp,tp)) in sh_outtype() 1642 for(tp = (Namval_t*)dtfirst(dp); tp; tp = (Namval_t*)dtnext(dp,tp)) in sh_outtype() 1646 …if(indent && (memcmp(tp->nvname,shp->prefix,n-1) || tp->nvname[n-1]!='.' || strchr(tp->nvname+n,'.… in sh_outtype() [all …]
|
/illumos-gate/usr/src/cmd/date/ |
H A D | date.c | 90 struct tm *tp, tm; in main() local 207 tp = gmtime(&clock_val); in main() 209 tp = localtime(&clock_val); in main() 210 (void) memcpy(&tm, tp, sizeof (struct tm)); in main() 366 get_adj(char *cp, struct timeval *tp) in get_adj() argument 373 tp->tv_sec = tp->tv_usec = 0; in get_adj() 382 tp->tv_sec *= 10; in get_adj() 383 tp->tv_sec += *cp++ - '0'; in get_adj() 389 tp->tv_usec += (*cp++ - '0') * mult; in get_adj() 400 tp->tv_sec *= sign; in get_adj() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | fakebop.c | 2290 sum += *tp++; in checksum_table() 2417 tp = (ACPI_TABLE_HEADER *)vmap_phys(tp->Length, table_addr); in map_fw_table() 2418 return (tp); in map_fw_table() 2503 return (tp); in find_fw_table() 2517 cfg_baa_endp = ((char *)tp) + tp->Header.Length; in process_mcfg() 2642 if (tp != NULL) in process_madt() 2655 if (tp != NULL) in process_madt() 2685 if (tp == NULL) in process_srat() 2790 tp->LocalityCount * tp->LocalityCount); in process_slit() 2804 for (item = (void *)((uintptr_t)tp + tp->ProximityOffset); in process_msct() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmadm/common/ |
H A D | faulty.c | 552 tp = sp; in add_rec_list() 564 tp = tp->next; in add_rec_list() 567 np->next = tp; in add_rec_list() 570 tp->prev = np; in add_rec_list() 593 tp = sp->next; in add_resource() 605 tp = tp->next; in add_resource() 609 np->next = tp; in add_resource() 1402 while (tp) { in print_fru() 1517 tp = tp->next; in print_fru() 1533 while (tp) { in print_asru() [all …]
|
/illumos-gate/usr/src/cmd/scsi/smp/common/ |
H A D | smp.c | 51 static smp_target_t *tp = NULL; variable 197 if (smp_exec(ap, tp) != 0) { in smp_execute() 198 smp_close(tp); in smp_execute() 224 smp_close(tp); in smp_get_response() 234 if (tp) { in smp_cleanup() 235 smp_close(tp); in smp_cleanup() 236 tp = NULL; in smp_cleanup() 560 smp_target_vendor(tp), smp_target_product(tp), in main() 563 smp_target_component_vendor(tp), smp_target_component_id(tp), in main() 569 smp_close(tp); in main() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/ |
H A D | udfslib.c | 178 sum = -tp->tag_cksum; in verifytag() 179 cp = (unsigned char *)tp; in verifytag() 184 id = SWAP16(tp->tag_id); in verifytag() 187 vers = SWAP16(tp->tag_desc_ver); in verifytag() 193 if (crc16((unsigned char *)(tp+1), length, SWAP16(tp->tag_crc)) != 0) in verifytag() 195 tloc = SWAP32(tp->tag_loc); in verifytag() 202 otp->tag_cksum = tp->tag_cksum; in verifytag() 209 if (tp != otp) in verifytag() 520 ud_swap_tstamp(tstamp_t *tp) in ud_swap_tstamp() argument 522 tp->ts_tzone = SWAP16(tp->ts_tzone); in ud_swap_tstamp() [all …]
|