/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | zfs_lz4.c | 202 while (ip < iend) { in LZ4_uncompress_unknownOutputSize() 207 token = *ip++; in LZ4_uncompress_unknownOutputSize() 211 s = *ip++; in LZ4_uncompress_unknownOutputSize() 228 if (ip + length > iend) in LZ4_uncompress_unknownOutputSize() 234 memcpy(op, ip, length); in LZ4_uncompress_unknownOutputSize() 236 ip += length; in LZ4_uncompress_unknownOutputSize() 237 if (ip < iend) in LZ4_uncompress_unknownOutputSize() 244 ip -= (op - cpy); in LZ4_uncompress_unknownOutputSize() 249 ip += 2; in LZ4_uncompress_unknownOutputSize() 259 while (ip < iend) { in LZ4_uncompress_unknownOutputSize() [all …]
|
/illumos-gate/usr/src/common/fs/ |
H A D | hsfs.c | 178 struct inode *ip; in opendir() local 180 ip = filep->fi_inode; in opendir() 181 if (ip == NULL) in opendir() 182 ip = filep->fi_inode = bkmem_alloc(sizeof (*ip)); in opendir() 237 struct inode *ip; in dlook() local 242 ip = filep->fi_inode; in dlook() 289 struct inode *ip; in readdir() local 296 ip = filep->fi_inode; in readdir() 356 struct inode *ip; in bhsfs_read() local 592 struct inode *ip; in bhsfs_fstat() local [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | ipft_ef.c | 75 ip_t *ip = (ip_t *)&pkt; local 95 ip->ip_p = getproto(prot); 97 switch (ip->ip_p) { 101 ip->ip_len += atoi(s); 102 if (ip->ip_p == IPPROTO_TCP) 104 else if (ip->ip_p == IPPROTO_UDP) 119 (void) inet_aton(src, &ip->ip_src); 120 (void) inet_aton(dst, &ip->ip_dst); 121 ip->ip_len = atoi(len); 122 IP_HL_A(ip, sizeof(ip_t)); [all …]
|
/illumos-gate/usr/src/cmd/dd/ |
H A D | dd.c | 1056 ip = ibuf + ibs; in main() 1065 *--ip = 0; in main() 1066 *--ip = 0; in main() 1214 ip = ibuf + ibs; in main() 1218 *--ip = ' '; in main() 1220 *--ip = '\0'; in main() 1229 ip = ibuf; in main() 1235 ic = *ip++; in main() 1236 ip[-1] = *ip; in main() 1237 *ip++ = ic; in main() [all …]
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | ufs_trans.h | 283 #define TRANS_INODE(ufsvfsp, ip) \ argument 297 TRANS_INODE_DELTA(ufsvfsp, (caddr_t)&ip->i_atime - (caddr_t)&ip->i_ic, \ 298 sizeof (struct timeval32) * 3, ip) 315 #define TRANS_DIR(ip, offset) \ argument 316 (TRANS_ISTRANS(ip->i_ufsvfs) ? ufs_trans_dir(ip, offset) : 0) 343 err = wrip(ip, uiop, ioflag, cr); 353 ufs_syncip(ip, bflags, iflag, topid) 355 #define TRANS_IUPDAT(ip, waitfor) ufs_trans_iupdat(ip, waitfor) argument 373 #define TRANS_MATA_IGET(ufsvfsp, ip) \ argument 375 ufs_trans_mata_iget(ip) [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute_aux.c | 74 struct ip *set_buffers(int); 80 struct ip * 83 struct ip *outip; in set_buffers() 201 struct ip tip; in send_probe() 335 struct ip *ip; in check_reply() local 338 ip = (struct ip *)buf; in check_reply() 339 hlen = ip->ip_hl << 2; in check_reply() 360 struct ip *hip; in check_reply() 410 uchar_t *lp = (uchar_t *)ip; in check_reply() 473 struct ip *ip; in print_addr() local [all …]
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | restore.c | 205 if (ip == NULL) { in nodeupdates() 210 if (ip != np) in nodeupdates() 217 ip = lookupino(ino); in nodeupdates() 218 if (ip != NIL) { in nodeupdates() 237 ip = ep; in nodeupdates() 290 ip->e_flags |= KEEP; in nodeupdates() 413 removeleaf(ip); in nodeupdates() 414 freeentry(ip); in nodeupdates() 416 newnode(ip); in nodeupdates() 420 mktempname(ip); in nodeupdates() [all …]
|
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-device-fp.c | 748 ret = (xge_os_ntohs(ip->tot_len) - in __hal_tcp_seg_len() 760 __hal_ip_lro_capable(iplro_t *ip, in __hal_ip_lro_capable() argument 767 u8 ch, *iph = (u8 *)ip; in __hal_ip_lro_capable() 913 iplro_t **ip, in __hal_lro_capable() argument 924 if ( !*ip ) in __hal_lro_capable() 1000 lro_new->ip_hdr = ip; in __hal_open_lro_session() 1047 iplro_t *ip, in __hal_get_lro_session() argument 1068 tcp, ip) in __hal_get_lro_session() 1088 ip) == XGE_HAL_OK) { in __hal_get_lro_session() 1271 __hal_append_lro(iplro_t *ip, in __hal_append_lro() argument [all …]
|
/illumos-gate/usr/src/common/zfs/ |
H A D | zfs_fletcher_sse.c | 110 const uint64_t *ip = buf; in fletcher_4_sse2_native() local 111 const uint64_t *ipend = (uint64_t *)((uint8_t *)ip + size); in fletcher_4_sse2_native() 118 __asm("movdqu %0, %%xmm5" :: "m"(*ip)); in fletcher_4_sse2_native() 130 } while ((ip += 2) < ipend); in fletcher_4_sse2_native() 138 const uint32_t *ip = buf; in fletcher_4_sse2_byteswap() local 144 uint32_t scratch1 = BSWAP_32(ip[0]); in fletcher_4_sse2_byteswap() 145 uint32_t scratch2 = BSWAP_32(ip[1]); in fletcher_4_sse2_byteswap() 154 } while ((ip += 2) < ipend); in fletcher_4_sse2_byteswap() 185 const uint64_t *ip = buf; in fletcher_4_ssse3_byteswap() local 194 __asm("movdqu %0, %%xmm5"::"m" (*ip)); in fletcher_4_ssse3_byteswap() [all …]
|
H A D | zfs_fletcher_avx512.c | 93 const uint32_t *ip = buf; in fletcher_4_avx512f_native() local 94 const uint32_t *ipend = (uint32_t *)((uint8_t *)ip + size); in fletcher_4_avx512f_native() 99 __asm("vpmovzxdq %0, %%zmm4"::"m" (*ip)); in fletcher_4_avx512f_native() 104 } while ((ip += 8) < ipend); in fletcher_4_avx512f_native() 114 const uint32_t *ip = buf; in fletcher_4_avx512f_byteswap() local 115 const uint32_t *ipend = (uint32_t *)((uint8_t *)ip + size); in fletcher_4_avx512f_byteswap() 125 __asm("vpmovzxdq %0, %%zmm5"::"m" (*ip)); in fletcher_4_avx512f_byteswap() 143 } while ((ip += 8) < ipend); in fletcher_4_avx512f_byteswap() 179 const uint32_t *ip = buf; in fletcher_4_avx512bw_byteswap() local 187 __asm("vpmovzxdq %0, %%zmm4"::"m" (*ip)); in fletcher_4_avx512bw_byteswap() [all …]
|
/illumos-gate/usr/src/cmd/tcpd/ |
H A D | inetcf.c | 277 struct inet_ent *ip = local 280 if (ip == 0) { 284 ip->next = inet_list; 285 strcpy(ip->name, name); 286 ip->type = type; 287 inet_list = ip; 295 struct inet_ent *ip; local 300 for (ip = inet_list; ip; ip = ip->next) 301 if (STR_EQ(ip->name, name)) 302 return (ip->type);
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | udp.c | 94 uh->uh_sum = in_cksum(ui, len + sizeof (struct ip)); in sendudp() 141 void *ip; in readudp() local 142 struct ip tip; in readudp() 144 n = ntohs(uh->uh_ulen) + sizeof (struct ip); in readudp() 153 ip = (struct ip *)uh - 1; in readudp() 154 tip = *(struct ip *)ip; in readudp() 155 ui = ip; in readudp() 166 *(struct ip *)ip = tip; in readudp()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_delete.c | 160 indx_t *ip, cnt, offset; local 189 for (cnt = &h->linp[idx] - (ip = &h->linp[0]); cnt--; ++ip) 190 if (ip[0] < offset) 191 ip[0] += nbytes; 192 for (cnt = &h->linp[NEXTINDEX(h)] - ip; --cnt; ++ip) 193 ip[0] = ip[1] < offset ? ip[1] + nbytes : ip[1];
|
/illumos-gate/usr/src/cmd/filesync/ |
H A D | base.c | 339 struct fileinfo *ip; in read_baseline() local 468 ip->f_mode = l; in read_baseline() 475 ip->f_uid = l; in read_baseline() 482 ip->f_gid = l; in read_baseline() 586 ip->f_acls = (aclent_t *) malloc(ip->f_numacls * in read_baseline() 597 if (ip == 0 || ip->f_acls == 0) { in read_baseline() 842 fprintf(file, " %6ld %6ld", ip->f_uid, ip->f_gid); in bw_file() 861 if (S_ISBLK(ip->f_type) || S_ISCHR(ip->f_type)) in bw_file() 862 fprintf(file, "\t%4ld %4ld", ip->f_rd_maj, ip->f_rd_min); in bw_file() 864 ll = ip->f_size; in bw_file() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/cmd/jdtrace/ |
H A D | Getopt.java | 197 cp = ip = 0; in parselong() 201 ic = optstring.charAt(ip); in parselong() 202 if (ic != '(' && ++ip == il) in parselong() 204 ic = optstring.charAt(ip); in parselong() 207 ic = optstring.charAt(ip); in parselong() 209 if (++ip == il) in parselong() 213 while (ip < il && (ic = optstring.charAt(ip)) != ')' && in parselong() 217 ++ip; in parselong() 230 if (ip < il && ic == ')' && ++ip == il) in parselong() 232 ic = optstring.charAt(ip); in parselong() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/ncheck/ |
H A D | ncheck.c | 105 struct dinode *ip; member 127 void pass1(struct dinode *ip); 128 void pass2(struct dinode *ip); 129 void pass3(struct dinode *ip); 378 pass1(struct dinode *ip) in pass1() argument 409 pass2(struct dinode *ip) in pass2() argument 419 dirp.ip = ip; in pass2() 420 gip = ip; in pass2() 450 pass3(struct dinode *ip) in pass3() argument 459 dirp.ip = ip; in pass3() [all …]
|
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | dumpitime.c | 149 struct idates *ip; in getitime() local 178 ITITERATE(i, ip) { in getitime() 179 if (strncmp(fname, ip->id_name, sizeof (ip->id_name)) != 0) in getitime() 181 if (ip->id_incno >= incno) in getitime() 183 if (ip->id_ddate <= spcl.c_ddate) in getitime() 185 spcl.c_ddate = ip->id_ddate; in getitime() 186 lastincno = ip->id_incno; in getitime() 312 makeidate(struct idates *ip, char *buf) in makeidate() argument 327 if (sscanf(buf, DUMPINFMT, ip->id_name, &ip->id_incno, un_buf) != 3) in makeidate() 331 if (ip->id_ddate < 0) in makeidate() [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | idlok.c | 116 IDST *ip, *ep, *eip; in _use_idln() local 125 ip = sid; in _use_idln() 128 ip = eid - 1; in _use_idln() 133 while (ip != eip) { in _use_idln() 135 if ((dir > 0 && ip->_wy > ip->_sy) || in _use_idln() 136 (dir < 0 && ip->_wy < ip->_sy)) { in _use_idln() 138 ip += dir; in _use_idln() 152 tsy = _MIN(ip->_wy, ip->_sy); in _use_idln() 156 bsy = _MAX(ip->_wy, ip->_sy) + 1; in _use_idln() 160 if ((idn = ip->_wy - ip->_sy) < 0) in _use_idln() [all …]
|
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/ |
H A D | nb5000.h | 922 #define FERR_NF_FBD_RD(ip) nb_pci_getl(0, 16, 1, 0xa0, ip) argument 923 #define NERR_NF_FBD_RD(ip) nb_pci_getl(0, 16, 1, 0xa4, ip) argument 1115 #define FERR_NF_MEM_RD(ip) nb_pci_getl(0, 16, 1, 0xa0, ip) argument 1116 #define NERR_NF_MEM_RD(ip) nb_pci_getl(0, 16, 1, 0xa4, ip) argument 1365 #define PCISTS_RD(ip) nb_pci_getw(0, 8, 0, 0x6, ip) argument 1399 #define FERR_NF_THR_RD(ip) nb_pci_getb(0, 16, 2, 0xf1, ip) argument 1402 #define EMASK_THR_RD(ip) nb_pci_getw(0, 16, 2, 0xf6, ip) argument 1403 #define ERR0_THR_RD(ip) nb_pci_getw(0, 16, 2, 0xf8, ip) argument 1404 #define ERR1_THR_RD(ip) nb_pci_getw(0, 16, 2, 0xfa, ip) argument 1405 #define ERR2_THR_RD(ip) nb_pci_getw(0, 16, 2, 0xfc, ip) argument [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | fmtgid.c | 62 register Id_t* ip; in fmtgid() local 76 else if (ip = (Id_t*)dtmatch(dict, &gid)) in fmtgid() 77 return ip->name; in fmtgid() 93 if (dict && (ip = newof(0, Id_t, 1, strlen(name)))) in fmtgid() 95 ip->id = gid; in fmtgid() 96 strcpy(ip->name, name); in fmtgid() 97 dtinsert(dict, ip); in fmtgid() 98 return ip->name; in fmtgid()
|
H A D | fmtuid.c | 62 register Id_t* ip; in fmtuid() local 76 else if (ip = (Id_t*)dtmatch(dict, &uid)) in fmtuid() 77 return ip->name; in fmtuid() 93 if (dict && (ip = newof(0, Id_t, 1, strlen(name)))) in fmtuid() 95 ip->id = uid; in fmtuid() 96 strcpy(ip->name, name); in fmtuid() 97 dtinsert(dict, ip); in fmtuid() 98 return ip->name; in fmtuid()
|
/illumos-gate/usr/src/uts/common/io/iprb/ |
H A D | iprb.h | 224 #define GET8(ip, offset) \ argument 225 ddi_get8(ip->regsh, (void *)(ip->regs + (offset))) 226 #define GET16(ip, offset) \ argument 227 ddi_get16(ip->regsh, (void *)(ip->regs + (offset))) 228 #define GET32(ip, offset) \ argument 229 ddi_get32(ip->regsh, (void *)(ip->regs + (offset))) 230 #define PUT8(ip, offset, val) \ argument 231 ddi_put8(ip->regsh, (void *)(ip->regs + (offset)), (val)) 232 #define PUT16(ip, offset, val) \ argument 233 ddi_put16(ip->regsh, (void *)(ip->regs + (offset)), (val)) [all …]
|
/illumos-gate/usr/src/stand/lib/fs/hsfs/ |
H A D | hsfsops.c | 230 ip = filep->fi_inode; in dlook() 236 if (ip->i_size == 0) { in dlook() 290 ip = filep->fi_inode; in readdir() 329 ip = filep->fi_inode; in getblock() 405 struct inode *ip; in boot_hsfs_read() local 414 ip = filep->fi_inode; in boot_hsfs_read() 616 struct inode *ip; in boot_hsfs_fstat() local 621 ip = filep->fi_inode; in boot_hsfs_fstat() 626 if (ip == NULL) in boot_hsfs_fstat() 963 ip = filep->fi_inode; in hs_seti() [all …]
|
/illumos-gate/usr/src/uts/sun4/io/efcode/ |
H A D | fc_subr.c | 329 ASSERT(ip); in fc_add_resource() 332 ip->next = NULL; in fc_add_resource() 334 ip->next = rp->head; in fc_add_resource() 335 rp->head = ip; in fc_add_resource() 345 ASSERT(ip); in fc_rem_resource() 353 if (rp->head == ip) { in fc_rem_resource() 368 fp->next = ip->next; in fc_rem_resource() 461 for (ip = *head; ip; ip = np) { in fc_phandle_table_free() 462 np = ip->next; in fc_phandle_table_free() 475 for (ip = *head; ip; ip = ip->next) in fc_phandle_to_dip() [all …]
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | authu_prot.c | 75 xdr_uid_t(XDR *xdrs, uid_t *ip) in xdr_uid_t() argument 78 (void) (xdr_short(xdrs, (short *)ip)); in xdr_uid_t() 79 return (xdr_int32(xdrs, (int32_t *)ip)); in xdr_uid_t() 82 return (xdr_int(xdrs, (int32_t *)ip)); in xdr_uid_t() 84 return (xdr_short(xdrs, (short *)ip)); in xdr_uid_t() 93 xdr_gid_t(XDR *xdrs, gid_t *ip) in xdr_gid_t() argument 96 (void) (xdr_short(xdrs, (short *)ip)); in xdr_gid_t() 97 return (xdr_int32(xdrs, (int32_t *)ip)); in xdr_gid_t() 100 return (xdr_int32(xdrs, (int32_t *)ip)); in xdr_gid_t() 102 return (xdr_short(xdrs, (short *)ip)); in xdr_gid_t()
|