/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | ipft_td.c | 98 ip_t *ip = (ip_t *)&pkt; local 127 (void) inet_aton(src, &ip->ip_src); 133 (void) inet_aton(src, &ip->ip_dst); 138 (void) inet_aton(src, &ip->ip_src); 139 (void) inet_aton(src, &ip->ip_dst); 141 ip->ip_len = sizeof(ip_t); 142 IP_HL_A(ip, sizeof(ip_t)); 145 ip->ip_p = getproto(s); 147 switch (ip->ip_p) 152 ip->ip_len += atoi(s); [all …]
|
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/uts/common/fs/ufs/ |
H A D | quotacalls.c | 160 opendq_scan_inode(struct inode *ip, void *arg) in opendq_scan_inode() argument 162 struct ufsvfs *ufsvfsp = ip->i_ufsvfs; in opendq_scan_inode() 167 if (ufsvfsp != (struct ufsvfs *)arg || ip == ip->i_ufsvfs->vfs_qinod) { in opendq_scan_inode() 172 rw_enter(&ip->i_contents, RW_WRITER); in opendq_scan_inode() 178 if (ip->i_mode && (ip->i_mode & IFMT) != IFSHAD && in opendq_scan_inode() 179 (ip->i_mode & IFMT) != IFATTRDIR && ip->i_dquot == NULL) { in opendq_scan_inode() 180 ip->i_dquot = getinoquota(ip); in opendq_scan_inode() 182 rw_exit(&ip->i_contents); in opendq_scan_inode() 319 closedq_scan_inode(struct inode *ip, void *arg) in closedq_scan_inode() argument 322 struct ufsvfs *ufsvfsp = ip->i_ufsvfs; in closedq_scan_inode() [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | zfs_lz4.c | 159 #define INITBASE(base) const BYTE* const base = ip 191 const BYTE *restrict ip = (const BYTE *) source; in LZ4_uncompress_unknownOutputSize() local 192 const BYTE *const iend = ip + isize; in LZ4_uncompress_unknownOutputSize() 202 while (ip < iend) { in LZ4_uncompress_unknownOutputSize() 207 token = *ip++; in LZ4_uncompress_unknownOutputSize() 210 while ((ip < iend) && (s == 255)) { in LZ4_uncompress_unknownOutputSize() 211 s = *ip++; in LZ4_uncompress_unknownOutputSize() 221 (ip + length > iend - COPYLENGTH)) { in LZ4_uncompress_unknownOutputSize() 228 if (ip + length > iend) in LZ4_uncompress_unknownOutputSize() 234 memcpy(op, ip, length); 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() 184 ip->i_size = hsdep.hs_dir.ext_size; in opendir() 185 ip->i_smode = hsdep.hs_dir.mode; in opendir() 186 ip->i_number = inode; in opendir() 237 struct inode *ip; in dlook() local 242 ip = filep->fi_inode; in dlook() 245 if ((ip->i_smode & IFMT) != IFDIR) { in dlook() [all …]
|
/illumos-gate/usr/src/cmd/dd/ |
H A D | dd.c | 531 unsigned char *ip, *op; /* input and output buffer pointers */ in main() local 1056 ip = ibuf + ibs; in main() 1060 *--ip = 0; /* clear the odd byte */ 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() 1231 ip[ibc] = 0; /* make it even, pad with zero */ in main() [all …]
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | ufs_trans.h | 283 #define TRANS_INODE(ufsvfsp, ip) \ argument 284 TRANS_DELTA(ufsvfsp, ip->i_doff, sizeof (struct dinode), \ 285 DT_INODE, ufs_trans_push_inode, ip->i_number) 292 #define TRANS_INODE_DELTA(ufsvfsp, vof, nb, ip) \ argument 293 TRANS_DELTA(ufsvfsp, (ip->i_doff + (offset_t)(vof)), \ 294 nb, DT_INODE, ufs_trans_push_inode, ip->i_number) 296 #define TRANS_INODE_TIMES(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 [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute_aux.c | 72 void send_probe(int, struct sockaddr *, struct ip *, int, int, 74 struct ip *set_buffers(int); 80 struct ip * 83 struct ip *outip; in set_buffers() 89 outip = (struct ip *)malloc((size_t)plen); in set_buffers() 135 htons((ushort_t)(plen - (sizeof (struct ip) + optlen))); in set_buffers() 192 send_probe(int sndsock, struct sockaddr *to, struct ip *outip, in send_probe() 201 struct ip tip; in send_probe() 222 send_size = packlen - optlen - sizeof (struct ip); in send_probe() 224 send_size = packlen - optlen - sizeof (struct ip) - in send_probe() [all …]
|
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-device-fp.c | 715 __hal_lro_check_for_session_match(lro_t *lro, tcplro_t *tcp, iplro_t *ip) in __hal_lro_check_for_session_match() argument 719 if ((lro->ip_hdr->saddr != ip->saddr)) in __hal_lro_check_for_session_match() 723 if ((lro->ip_hdr->daddr != ip->daddr)) in __hal_lro_check_for_session_match() 744 __hal_tcp_seg_len(iplro_t *ip, tcplro_t *tcp) in __hal_tcp_seg_len() argument 748 ret = (xge_os_ntohs(ip->tot_len) - in __hal_tcp_seg_len() 749 ((ip->version_ihl & 0x0F)<<2) - 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() 777 if (ip->version_ihl != IP_FAST_PATH_HDR_MASK) { in __hal_ip_lro_capable() 778 xge_debug_ring(XGE_ERR, "iphdr !=45 :%d",ip->version_ihl); in __hal_ip_lro_capable() [all …]
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | restore.c | 178 struct entry *ep, *np, *ip; in nodeupdates() local 204 ip = lookupino(np->e_ino); in nodeupdates() 205 if (ip == NULL) { in nodeupdates() 210 if (ip != np) in nodeupdates() 217 ip = lookupino(ino); in nodeupdates() 218 if (ip != NIL) { in nodeupdates() 220 for (ep = ip->e_links; ep != NIL; ep = ep->e_links) { in nodeupdates() 228 if (ip->e_flags & EXTRACT) { in nodeupdates() 237 ip = ep; in nodeupdates() 256 if (((key & (INOFND|NAMEFND)) == (INOFND|NAMEFND)) && ip != np) { in nodeupdates() [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 139 const uint32_t *ipend = (uint32_t *)((uint8_t *)ip + size); in fletcher_4_sse2_byteswap() 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 [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 180 const uint32_t *ipend = (uint32_t *)((uint8_t *)ip + size); in fletcher_4_avx512bw_byteswap() [all …]
|
/illumos-gate/usr/src/cmd/filesync/ |
H A D | base.c | 339 struct fileinfo *ip; in read_baseline() local 459 ip = &fp->f_info[ OPT_BASE ]; in read_baseline() 461 ip->f_type = gettype(type); /* note file type */ in read_baseline() 468 ip->f_mode = l; in read_baseline() 475 ip->f_uid = l; in read_baseline() 482 ip->f_gid = l; in read_baseline() 561 ip->f_rd_maj = l; in read_baseline() 568 ip->f_rd_min = l; in read_baseline() 574 ip->f_size = (off_t) ll; /* size */ in read_baseline() 585 ip->f_numacls = l; in read_baseline() [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/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 385 ilist[i].mode = ip->di_mode; in pass1() 386 ilist[i].uid = ip->di_uid; in pass1() 387 ilist[i].gid = ip->di_gid; in pass1() 390 if ((ip->di_mode & IFMT) != IFDIR) { in pass1() 393 if ((ip->di_mode & IFMT) == IFBLK || in pass1() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/cmd/jdtrace/ |
H A D | Getopt.java | 188 int ip; // index into optstring, traverses every char in parselong() local 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() 205 if (ic == ':' && ++ip == il) 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() [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 325 assert(sizeof (ip->id_name) == (255 + 3)); in makeidate() 327 if (sscanf(buf, DUMPINFMT, ip->id_name, &ip->id_incno, un_buf) != 3) in makeidate() [all …]
|
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/ |
H A D | nb5000.h | 680 #define FERR_FAT_FSB_RD(fsb, ip) ((nb_chipset == INTEL_NB_7300) ? \ argument 681 nb_pci_getb(0, 17, (fsb & 2) ? 3 : 0, (fsb & 1) ? 0xc0 : 0x40, ip) : \ 682 nb_pci_getb(0, 16, 0, fsb ? 0x480 : 0x180, ip)) 683 #define FERR_NF_FSB_RD(fsb, ip) ((nb_chipset == INTEL_NB_7300) ? \ argument 684 nb_pci_getb(0, 17, (fsb & 2) ? 3 : 0, (fsb & 1) ? 0xc1 : 0x41, ip) : \ 685 nb_pci_getb(0, 16, 0, fsb ? 0x481 : 0x181, ip)) 686 #define NERR_FAT_FSB_RD(fsb, ip) ((nb_chipset == INTEL_NB_7300) ? \ argument 687 nb_pci_getb(0, 17, (fsb & 2) ? 3 : 0, (fsb & 1) ? 0xc2 : 0x42, ip) : \ 688 nb_pci_getb(0, 16, 0, fsb ? 0x482 : 0x182, ip)) 689 #define NERR_NF_FSB_RD(fsb, ip) ((nb_chipset == INTEL_NB_7300) ? \ argument [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() 143 for (ep = ip+dir; ep != eip; ep += 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() [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 | 225 register struct inode *ip; in dlook() local 230 ip = filep->fi_inode; in dlook() 233 if ((ip->i_smode & IFMT) != IFDIR) { in dlook() 236 if (ip->i_size == 0) { in dlook() 241 if (in = get_dcache(dv, path, ip->i_number)) { in dlook() 262 set_dcache(dv, path, ip->i_number, udp->d_ino); in dlook() 284 register struct inode *ip; in readdir() local 290 ip = filep->fi_inode; in readdir() 292 if (dirp->loc >= ip->i_size) { in readdir() 298 filep->fi_blocknum = lbn + hdbtodb(ip->i_number); in readdir() [all …]
|