/illumos-gate/usr/src/uts/common/io/iprb/ |
H A D | iprb.c | 263 iprb_t *ip; in iprb_attach() local 268 ip = kmem_zalloc(sizeof (*ip), KM_SLEEP); in iprb_attach() 269 ddi_set_driver_private(dip, ip); in iprb_attach() 270 ip->dip = dip; in iprb_attach() 272 list_create(&ip->mcast, sizeof (struct iprb_mcast), in iprb_attach() 276 mutex_init(&ip->culock, NULL, MUTEX_DRIVER, NULL); in iprb_attach() 277 mutex_init(&ip->rulock, NULL, MUTEX_DRIVER, NULL); in iprb_attach() 279 if (pci_config_setup(dip, &ip->pcih) != DDI_SUCCESS) { in iprb_attach() 280 iprb_error(ip, "unable to map configuration space"); in iprb_attach() 281 iprb_destroy(ip); in iprb_attach() [all …]
|
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_inode.c | 136 struct ud_inode *ip; in ud_search_icache() local 146 for (ip = ih->ih_chain[0]; in ud_search_icache() 147 ip != (struct ud_inode *)ih; in ud_search_icache() 148 ip = ip->i_forw) { in ud_search_icache() 149 if ((prn == ip->i_icb_prn) && (ploc == ip->i_icb_block) && in ud_search_icache() 150 (vfsp->vfs_dev == ip->i_dev)) { in ud_search_icache() 152 return (ip); in ud_search_icache() 167 struct ud_inode *ip; in ud_iget() local 194 for (ip = ih->ih_chain[0]; in ud_iget() 195 ip != (struct ud_inode *)ih; in ud_iget() [all …]
|
H A D | udf_bmap.c | 100 ud_bmap_has_holes(struct ud_inode *ip) in ud_bmap_has_holes() argument 107 ASSERT(RW_LOCK_HELD(&ip->i_contents)); in ud_bmap_has_holes() 110 if (ip->i_desc_type != ICB_FLAG_ONE_AD) { in ud_bmap_has_holes() 111 if ((error = ud_read_icb_till_off(ip, ip->i_size)) == 0) { in ud_bmap_has_holes() 112 for (i = 0; i < ip->i_ext_used; i++) { in ud_bmap_has_holes() 113 iext = &ip->i_ext[i]; in ud_bmap_has_holes() 126 ud_bmap_read(struct ud_inode *ip, u_offset_t off, daddr_t *bnp, int32_t *lenp) in ud_bmap_read() argument 135 ASSERT(RW_LOCK_HELD(&ip->i_contents)); in ud_bmap_read() 137 lbmask = ip->i_udf->udf_lbmask; in ud_bmap_read() 138 l2b = ip->i_udf->udf_l2b_shift; in ud_bmap_read() [all …]
|
H A D | udf_vnops.c | 262 struct ud_inode *ip = VTOI(vp); in udf_close() local 266 ITIMES(ip); in udf_close() 277 struct ud_inode *ip = VTOI(vp); in udf_close() local 278 if (ip->i_delaylen) { in udf_close() 279 (void) ud_putpages(vp, ip->i_delayoff, ip->i_delaylen, in udf_close() 281 ip->i_delaylen = 0; in udf_close() 297 struct ud_inode *ip = VTOI(vp); in udf_read() local 303 rw_enter(&ip->i_rwlock, RW_READER); in udf_read() 306 ASSERT(RW_READ_HELD(&ip->i_rwlock)); in udf_read() 308 if (MANDLOCK(vp, ip->i_char)) { in udf_read() [all …]
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_inode.c | 255 struct inode *ip = buf; in ufs_inode_cache_constructor() local 258 vp = ip->i_vnode = vn_alloc(kmflags); in ufs_inode_cache_constructor() 263 vp->v_data = ip; in ufs_inode_cache_constructor() 265 rw_init(&ip->i_rwlock, NULL, RW_DEFAULT, NULL); in ufs_inode_cache_constructor() 266 rw_init(&ip->i_contents, NULL, RW_DEFAULT, NULL); in ufs_inode_cache_constructor() 267 mutex_init(&ip->i_tlock, NULL, MUTEX_DEFAULT, NULL); in ufs_inode_cache_constructor() 268 dnlc_dir_init(&ip->i_danchor); in ufs_inode_cache_constructor() 270 cv_init(&ip->i_wrcv, NULL, CV_DRIVER, NULL); in ufs_inode_cache_constructor() 279 struct inode *ip = buf; in ufs_inode_cache_destructor() local 282 vp = ITOV(ip); in ufs_inode_cache_destructor() [all …]
|
H A D | ufs_vnops.c | 245 struct inode *ip; /* the file we contain */ member 289 struct inode *ip = VTOI(vp); in ufs_close() local 290 if (ip->i_delaylen) { in ufs_close() 292 (void) ufs_putpages(vp, ip->i_delayoff, ip->i_delaylen, in ufs_close() 294 ip->i_delaylen = 0; in ufs_close() 306 struct inode *ip = VTOI(vp); in ufs_read() local 312 ASSERT(RW_READ_HELD(&ip->i_rwlock)); in ufs_read() 318 if (MANDLOCK(vp, ip->i_mode)) { in ufs_read() 328 ufsvfsp = ip->i_ufsvfs; in ufs_read() 339 if ((ip->i_mode & IFMT) == IFDIR) { in ufs_read() [all …]
|
H A D | ufs_thread.c | 246 ufs_delete(struct ufsvfs *ufsvfsp, struct inode *ip, int dolockfs) in ufs_delete() argument 249 struct vnode *vp = ITOV(ip); in ufs_delete() 252 int dorwlock = ((ip->i_mode & IFMT) == IFREG); in ufs_delete() 262 if (ULOCKFS_IS_NOIDEL(ITOUL(ip))) { in ufs_delete() 264 delq_info->delq_unreclaimed_blocks -= ip->i_blocks; in ufs_delete() 271 if ((vp->v_count > 1) || (ip->i_mode == 0)) { in ufs_delete() 273 delq_info->delq_unreclaimed_blocks -= ip->i_blocks; in ufs_delete() 302 rw_enter(&ip->i_rwlock, RW_WRITER); in ufs_delete() 307 if (ip->i_oeftflag != 0) { in ufs_delete() 309 trans_size = (int)TOP_REMOVE_SIZE(ip)); in ufs_delete() [all …]
|
H A D | ufs_bmap.c | 97 static void ufs_undo_allocation(inode_t *ip, int block_count, 205 bmap_read(struct inode *ip, u_offset_t off, daddr_t *bnp, int *lenp) in bmap_read() argument 208 ufsvfs_t *ufsvfsp = ip->i_ufsvfs; in bmap_read() 217 ASSERT(RW_LOCK_HELD(&ip->i_contents)); in bmap_read() 228 ip->i_size, &ip->i_db[lbn], NDADDR - lbn, 1, in bmap_read() 255 nb = ip->i_ib[NIADDR - j]; in bmap_read() 267 ip->i_dev, fsbtodb(fs, ob), fs->fs_bsize); in bmap_read() 274 ASSERT(!ufs_indir_badblock(ip, bap)); in bmap_read() 287 DOEXTENT(fs, lbn, boff, bnp, lenp, ip->i_size, &bap[i], in bmap_read() 288 MIN(NINDIR(fs) - i, (daddr_t)lblkno(fs, ip->i_size - 1) - lbn + 1), in bmap_read() [all …]
|
H A D | ufs_extvnops.c | 68 struct inode *ip = VTOI(vnodep); in ufs_rdwr_data() local 70 struct ufsvfs *ufsvfsp = ip->i_ufsvfs; in ufs_rdwr_data() 101 (void *)vnodep->v_pages, offset1, iolen, ip->i_size, (void *)fdbp)); in ufs_rdwr_data() 103 rw_enter(&ip->i_ufsvfs->vfs_dqrwlock, RW_READER); in ufs_rdwr_data() 104 rw_enter(&ip->i_contents, rwtype); in ufs_rdwr_data() 106 ASSERT(offset1 < ip->i_size); in ufs_rdwr_data() 108 if ((offset1 + iolen) > ip->i_size) { in ufs_rdwr_data() 109 iolen = ip->i_size - offset1; in ufs_rdwr_data() 115 if ((error = bmap_read(ip, offset1, &bn, &contig)) != 0) { in ufs_rdwr_data() 126 if (!rw_tryupgrade(&ip->i_contents)) { in ufs_rdwr_data() [all …]
|
H A D | ufs_trans.c | 166 ufs_trans_iupdat(struct inode *ip, int waitfor) in ufs_trans_iupdat() argument 171 rw_enter(&ip->i_contents, RW_READER); in ufs_trans_iupdat() 172 ufs_iupdat(ip, waitfor); in ufs_trans_iupdat() 173 rw_exit(&ip->i_contents); in ufs_trans_iupdat() 176 ufsvfsp = ip->i_ufsvfs; in ufs_trans_iupdat() 182 TRANS_BEGIN_ASYNC(ufsvfsp, TOP_IUPDAT, TOP_IUPDAT_SIZE(ip)); in ufs_trans_iupdat() 183 rw_enter(&ip->i_contents, RW_READER); in ufs_trans_iupdat() 184 ufs_iupdat(ip, waitfor); in ufs_trans_iupdat() 185 rw_exit(&ip->i_contents); in ufs_trans_iupdat() 186 TRANS_END_ASYNC(ufsvfsp, TOP_IUPDAT, TOP_IUPDAT_SIZE(ip)); in ufs_trans_iupdat() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | ip.c | 64 struct ip *ipq_hdr; 80 struct ip *ip_hdr; 91 struct ip *ip; in sendip() local 106 ip = (struct ip *)pkt - 1; in sendip() 107 len += sizeof(*ip); in sendip() 109 bzero(ip, sizeof(*ip)); in sendip() 111 ip->ip_v = IPVERSION; /* half-char */ in sendip() 112 ip->ip_hl = sizeof(*ip) >> 2; /* half-char */ in sendip() 113 ip->ip_len = htons(len); in sendip() 114 ip->ip_p = proto; /* char */ in sendip() [all …]
|
/illumos-gate/usr/src/lib/libeti/menu/common/ |
H A D | connect.c | 46 ITEM **ip; in maxlengths() local 49 for (ip = Items(m); *ip; ip++) { in maxlengths() 50 if (NameLen(*ip) > maxn) { in maxlengths() 51 maxn = NameLen(*ip); in maxlengths() 53 if (DescriptionLen(*ip) > maxd) { in maxlengths() 54 maxd = DescriptionLen(*ip); in maxlengths() 64 ITEM **ip; in _connect() local 68 for (ip = items; *ip; ip++) { in _connect() 70 if (Imenu(*ip)) { in _connect() 75 for (i = 0, ip = items; *ip; ip++) { in _connect() [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_inttab.c | 36 dt_inttab_t *ip; in dt_inttab_create() local 40 if ((ip = dt_zalloc(dtp, sizeof (dt_inttab_t))) == NULL || in dt_inttab_create() 41 (ip->int_hash = dt_zalloc(dtp, sizeof (void *) * len)) == NULL) { in dt_inttab_create() 42 dt_free(dtp, ip); in dt_inttab_create() 46 ip->int_hdl = dtp; in dt_inttab_create() 47 ip->int_hashlen = len; in dt_inttab_create() 49 return (ip); in dt_inttab_create() 53 dt_inttab_destroy(dt_inttab_t *ip) in dt_inttab_destroy() argument 57 for (hp = ip->int_head; hp != NULL; hp = np) { in dt_inttab_destroy() 59 dt_free(ip->int_hdl, hp); in dt_inttab_destroy() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/ |
H A D | msgcvt.c | 130 decode(Sfio_t* ip) in decode() argument 136 if ((c = sfgetc(ip)) == EOF) in decode() 142 while ((c = sfgetc(ip)) != EOF && c != ';') in decode() 185 sfungetc(ip, name[i]); in decode() 207 sfnext(Sfio_t* ip) in sfnext() argument 211 while (isspace(c = sfgetc(ip))); in sfnext() 216 html2msg(register Sfio_t* ip, register Sfio_t* op, int flags) in html2msg() argument 222 while ((c = sfgetc(ip)) != EOF) in html2msg() 225 if ((c = sfnext(ip)) == 'O' && in html2msg() 226 (c = sfnext(ip)) == 'L' && in html2msg() [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | fastlz.c | 198 const unsigned char *ip = (const unsigned char *) input; in FASTLZ_COMPRESSOR() local 199 const unsigned char *ip_bound = ip + length - 2; in FASTLZ_COMPRESSOR() 200 const unsigned char *ip_limit = ip + length - 12; in FASTLZ_COMPRESSOR() 216 while (ip <= ip_bound) in FASTLZ_COMPRESSOR() 217 *op++ = *ip++; in FASTLZ_COMPRESSOR() 225 *hslot = ip; in FASTLZ_COMPRESSOR() 230 *op++ = *ip++; in FASTLZ_COMPRESSOR() 231 *op++ = *ip++; in FASTLZ_COMPRESSOR() 234 while (FASTLZ_EXPECT_CONDITIONAL(ip < ip_limit)) { in FASTLZ_COMPRESSOR() 242 const unsigned char *anchor = ip; in FASTLZ_COMPRESSOR() [all …]
|
/illumos-gate/usr/src/lib/libmvec/common/ |
H A D | __vrem_pio2m.c | 173 int nq, ip, n, i, j, k, eq0, eqnqm1; in __vlibm_rem_pio2m() local 176 ip = (e - 3) / 24; in __vlibm_rem_pio2m() 177 if (ip < 0) in __vlibm_rem_pio2m() 178 ip = 0; in __vlibm_rem_pio2m() 179 eq0 = e - 24 * (ip + 1); in __vlibm_rem_pio2m() 183 q[0] = x[0] * ipio2[ip+2] + x[1] * ipio2[ip+1] + x[2] * ipio2[ip]; in __vlibm_rem_pio2m() 184 q[1] = x[0] * ipio2[ip+3] + x[1] * ipio2[ip+2] + x[2] * ipio2[ip+1]; in __vlibm_rem_pio2m() 185 q[2] = x[0] * ipio2[ip+4] + x[1] * ipio2[ip+3] + x[2] * ipio2[ip+2]; in __vlibm_rem_pio2m() 186 q[3] = x[0] * ipio2[ip+5] + x[1] * ipio2[ip+4] + x[2] * ipio2[ip+3]; in __vlibm_rem_pio2m() 187 q[4] = x[0] * ipio2[ip+6] + x[1] * ipio2[ip+5] + x[2] * ipio2[ip+4]; in __vlibm_rem_pio2m() [all …]
|
/illumos-gate/usr/src/common/lz4/ |
H A D | lz4.c | 401 #define INITBASE(base) const BYTE* const base = ip 553 const BYTE *ip = (const BYTE *) source; in LZ4_compressCtx() local 555 const BYTE *anchor = ip; in LZ4_compressCtx() 556 const BYTE *const iend = ip + isize; in LZ4_compressCtx() 573 HashTable[LZ4_HASH_VALUE(ip)] = ip - base; in LZ4_compressCtx() 574 ip++; in LZ4_compressCtx() 575 forwardH = LZ4_HASH_VALUE(ip); in LZ4_compressCtx() 580 const BYTE *forwardIp = ip; in LZ4_compressCtx() 588 ip = forwardIp; in LZ4_compressCtx() 589 forwardIp = ip + step; in LZ4_compressCtx() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppproto.c | 82 char* ip; /* input buffer pointer */ member 510 #define CACHEIN() (ip=proto->ip) 512 #define GETCHR() (*(unsigned char*)ip++) 517 #define SYNCIN() (proto->ip=ip) 519 #define UNGETCHR() (ip--) 577 register char* ip; in lex() local 619 proto->tp = ip; in lex() 621 bp = ip; in lex() 630 if ((n = ip - bp - 1) > 0) in lex() 632 ip = bp; in lex() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | printpacket.c | 16 void printpacket(ip) in printpacket() argument 17 struct ip *ip; in printpacket() 23 if (IP_V(ip) == 6) { 25 len = ntohs(((u_short *)ip)[2]) + 40; 27 off = ntohs(ip->ip_off); 28 len = ntohs(ip->ip_len); 35 for (s = (u_char *)ip, i = 0; i < len; i++) { 47 if (IP_V(ip) == 6) { 48 printpacket6(ip); 52 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2)); [all …]
|
H A D | ipft_tx.c | 178 static int parseline(line, ip, ifn, out) in parseline() argument 180 ip_t *ip; 191 bzero((char *)ip, MAX(sizeof(*tcp), sizeof(*ic)) + sizeof(*ip)); 195 IP_HL_A(ip, sizeof(*ip) >> 2); 196 IP_V_A(ip, IPVERSION); 224 ip->ip_len = sizeof(ip_t); 228 ip->ip_p = IPPROTO_TCP; 229 ip->ip_len += sizeof(struct tcphdr); 232 ip->ip_p = IPPROTO_UDP; 233 ip->ip_len += sizeof(struct udphdr); [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | zfs_fletcher.c | 30 const uint64_t *ip = buf; in fletcher_2_native() local 31 const uint64_t *ipend = ip + (size / sizeof (uint64_t)); in fletcher_2_native() 34 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_native() 35 a0 += ip[0]; in fletcher_2_native() 36 a1 += ip[1]; in fletcher_2_native() 47 const uint64_t *ip = buf; in fletcher_2_byteswap() local 48 const uint64_t *ipend = ip + (size / sizeof (uint64_t)); in fletcher_2_byteswap() 51 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_byteswap() 52 a0 += BSWAP_64(ip[0]); in fletcher_2_byteswap() 53 a1 += BSWAP_64(ip[1]); in fletcher_2_byteswap() [all …]
|
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | fletcher.c | 30 const uint64_t *ip = buf; in fletcher_2_native() local 31 const uint64_t *ipend = ip + (size / sizeof (uint64_t)); in fletcher_2_native() 34 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_native() 35 a0 += ip[0]; in fletcher_2_native() 36 a1 += ip[1]; in fletcher_2_native() 48 const uint64_t *ip = buf; in fletcher_2_byteswap() local 49 const uint64_t *ipend = ip + (size / sizeof (uint64_t)); in fletcher_2_byteswap() 52 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_byteswap() 53 a0 += BSWAP_64(ip[0]); in fletcher_2_byteswap() 54 a1 += BSWAP_64(ip[1]); in fletcher_2_byteswap() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr_io.c | 51 dr_init_io_unit(dr_io_unit_t *ip) in dr_init_io_unit() argument 55 if (DR_DEV_IS_ATTACHED(&ip->sbi_cm)) { in dr_init_io_unit() 57 ip->sbi_cm.sbdev_cond = SBD_COND_OK; in dr_init_io_unit() 58 } else if (DR_DEV_IS_PRESENT(&ip->sbi_cm)) { in dr_init_io_unit() 60 ip->sbi_cm.sbdev_cond = SBD_COND_OK; in dr_init_io_unit() 64 dr_device_transition(&ip->sbi_cm, new_state); in dr_init_io_unit() 109 dr_disconnect_io(dr_io_unit_t *ip) in dr_disconnect_io() argument 145 dr_io_unit_t *ip = (dr_io_unit_t *)devlist[i]; in dr_check_io_refs() local 151 err = drmach_get_dip(ip->sbi_cm.sbdev_id, &dip); in dr_check_io_refs() 153 DRERR_SET_C(&ip->sbi_cm.sbdev_error, &err); in dr_check_io_refs() [all …]
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_io.c | 73 dr_init_io_unit(dr_io_unit_t *ip) in dr_init_io_unit() argument 77 if (DR_DEV_IS_ATTACHED(&ip->sbi_cm)) { in dr_init_io_unit() 79 ip->sbi_cm.sbdev_cond = SBD_COND_OK; in dr_init_io_unit() 80 } else if (DR_DEV_IS_PRESENT(&ip->sbi_cm)) { in dr_init_io_unit() 82 ip->sbi_cm.sbdev_cond = SBD_COND_OK; in dr_init_io_unit() 86 dr_device_transition(&ip->sbi_cm, new_state); in dr_init_io_unit() 131 dr_disconnect_io(dr_io_unit_t *ip) in dr_disconnect_io() argument 167 dr_io_unit_t *ip = (dr_io_unit_t *)devlist[i]; in dr_check_io_refs() local 173 err = drmach_get_dip(ip->sbi_cm.sbdev_id, &dip); in dr_check_io_refs() 175 DRERR_SET_C(&ip->sbi_cm.sbdev_error, &err); in dr_check_io_refs() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/tcpsig/ |
H A D | tcpsig_fini.ksh | 17 for ip in 127.0.0.1 ::1; do 19 delete src $ip dst $ip dport 24135 20 delete src $ip dst $ip sport 24135 21 delete src $ip dst $ip dport 24136 22 delete src $ip dst $ip sport 24136 23 delete src $ip dst $ip dport 24137 24 delete src $ip dst $ip dport 24138 25 delete src $ip dst $ip sport 24138
|