Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 25 of 524) sorted by relevance

12345678910>>...21

/dragonfly/sys/vfs/hammer/
H A Dhammer_inode.c469 ip->cache[0].ip = ip; in hammer_get_inode()
470 ip->cache[1].ip = ip; in hammer_get_inode()
471 ip->cache[2].ip = ip; in hammer_get_inode()
472 ip->cache[3].ip = ip; in hammer_get_inode()
652 ip->cache[0].ip = ip; in hammer_get_dummy_inode()
653 ip->cache[1].ip = ip; in hammer_get_dummy_inode()
654 ip->cache[2].ip = ip; in hammer_get_dummy_inode()
655 ip->cache[3].ip = ip; in hammer_get_dummy_inode()
808 ip->cache[0].ip = ip; in hammer_create_inode()
809 ip->cache[1].ip = ip; in hammer_create_inode()
[all …]
H A Dhammer_vnops.c240 if (ip->vp && (ip->flags & HAMMER_INODE_MODMASK) == 0) in hammer_vop_fsync()
290 if (ip->vp && (ip->flags & HAMMER_INODE_MODMASK) == 0) in hammer_vop_fsync()
1369 if (ip) { in hammer_vop_nlookupdotdot()
1425 ip); in hammer_vop_nlink()
1705 hammer_init_cursor(&trans, &cursor, &ip->cache[1], ip); in hammer_vop_readdir()
1981 ip); in hammer_vop_nrename()
2928 ip->obj_asof, ip->obj_localization); in hammer_vop_strategy_read()
3219 if ((ip->flags | ip->sync_flags) & in hammer_vop_strategy_write()
3404 if (error == 0 && ip && ip->ino_data.obj_type == in hammer_dounlink()
3446 while (ip && ip->vp) { in hammer_dounlink()
[all …]
/dragonfly/bin/stty/
H A Dkey.c126 kp->f(ip); in ksearch()
133 print(&ip->t, &ip->win, ip->ldisc, BSD); in f_all()
140 if (ip->off) in f_cbreak()
141 f_sane(ip); in f_cbreak()
155 ip->win.ws_col = atoi(ip->arg); in f_columns()
169 ip->set = 1; in f_dec()
185 print(&ip->t, &ip->win, ip->ldisc, BSD); in f_everything()
205 cfsetispeed(&ip->t, (speed_t)atoi(ip->arg)); in f_ispeed()
227 cfsetospeed(&ip->t, (speed_t)atoi(ip->arg)); in f_ospeed()
249 ip->win.ws_row = atoi(ip->arg); in f_rows()
[all …]
/dragonfly/usr.bin/kdump/
H A Dkdump.c313 ip++; in ktrsyscall()
323 ip++; in ktrsyscall()
340 ip++; in ktrsyscall()
347 ip++; in ktrsyscall()
358 ip++; in ktrsyscall()
380 ip++; in ktrsyscall()
386 ip++; in ktrsyscall()
396 ip++; in ktrsyscall()
403 ip++; in ktrsyscall()
409 ip++; in ktrsyscall()
[all …]
/dragonfly/sys/vfs/ext2fs/
H A Dext2_inode_cnv.c116 if ((ip->i_number < EXT2_FIRST_INO(fs) && ip->i_number != EXT2_ROOTINO) || in ext2_ei2i()
130 ip->i_mode = ip->i_nlink ? le16toh(ei->e2di_mode) : 0; in ext2_ei2i()
132 (ip->i_nlink < 2 || !S_ISDIR(ip->i_mode))) { in ext2_ei2i()
155 ext2_decode_extra_time(&ip->i_atime, &ip->i_atimensec, in ext2_ei2i()
157 ext2_decode_extra_time(&ip->i_mtime, &ip->i_mtimensec, in ext2_ei2i()
159 ext2_decode_extra_time(&ip->i_ctime, &ip->i_ctimensec, in ext2_ei2i()
162 ext2_decode_extra_time(&ip->i_birthtime, &ip->i_birthnsec, in ext2_ei2i()
165 ip->i_flags = 0; in ext2_ei2i()
178 ip->i_blocks = fsbtodb(ip->i_e2fs, ip->i_blocks); in ext2_ei2i()
218 fs = ip->i_e2fs; in ext2_i2ei()
[all …]
H A Dext2_ihash.c96 for (ip = *INOHASH(dev, inum); ip; ip = ip->i_next) { in ext2_ihashget()
97 if (inum != ip->i_number || dev != ip->i_dev) in ext2_ihashget()
99 vp = ITOV(ip); in ext2_ihashget()
106 for (ip = *INOHASH(dev, inum); ip; ip = ip->i_next) { in ext2_ihashget()
107 if (inum == ip->i_number && dev == ip->i_dev) in ext2_ihashget()
110 if (ip == NULL || ITOV(ip) != vp) { in ext2_ihashget()
132 ipp = INOHASH(ip->i_dev, ip->i_number); in ext2_ihashins()
134 if (ip->i_dev == iq->i_dev && ip->i_number == iq->i_number) { in ext2_ihashins()
141 *ipp = ip; in ext2_ihashins()
158 ipp = INOHASH(ip->i_dev, ip->i_number); in ext2_ihashrem()
[all …]
H A Dext2_vnops.c130 ip = VTOI(vp); in ext2_itimes()
214 error = vop_helper_access(ap, ip->i_uid, ip->i_gid, ip->i_mode, in ext2_access()
427 if ((cred->cr_uid != ip->i_uid || uid != ip->i_uid || in ext2_chown()
571 ip = VTOI(vp); in ext2_remove()
607 ip = VTOI(vp); in ext2_link()
616 ip->i_nlink++; in ext2_link()
636 ip->i_nlink++; in ext2_inc_nlink()
641 if (ip->i_nlink >= EXT4_LINK_MAX || ip->i_nlink == 2) in ext2_inc_nlink()
655 if (!S_ISDIR(ip->i_mode) || ip->i_nlink > 2) in ext2_dec_nlink()
1413 (u_long)ip->i_number, devtoname(ip->i_dev), major(ip->i_dev), in ext2_print()
[all …]
/dragonfly/sys/vfs/hammer2/
H A Dhammer2_lz4_encoder.h118 ip++; in LZ4_compress_heap_limitedOutput()
148 ip--; in LZ4_compress_heap_limitedOutput()
191 ip+=4; in LZ4_compress_heap_limitedOutput()
195 ip+=2; in LZ4_compress_heap_limitedOutput()
198 if ((ip<matchlimit) && (*ref == *ip)) in LZ4_compress_heap_limitedOutput()
199 ip++; in LZ4_compress_heap_limitedOutput()
303 ip++; in LZ4_compress64k_heap_limitedOutput()
333 ip--; in LZ4_compress64k_heap_limitedOutput()
376 ip+=4; in LZ4_compress64k_heap_limitedOutput()
383 if ((ip<matchlimit) && (*ref == *ip)) in LZ4_compress64k_heap_limitedOutput()
[all …]
H A Dhammer2_inode.c232 pmp = ip->pmp; in hammer2_inode_lock()
556 ip = NULL; in hammer2_inode_lookup()
560 for (ip = hash->base; ip; ip = ip->next) { in hammer2_inode_lookup()
568 return(ip); in hammer2_inode_lookup()
582 kprintf("INODE+1 %p (%d->%d)\n", ip, ip->refs - 1, ip->refs); in hammer2_inode_ref()
597 while (ip) { in hammer2_inode_drop()
600 ip, ip->refs, ip->refs - 1); in hammer2_inode_drop()
688 vp = ip->vp; in hammer2_igetv()
1682 if (ip->vp) in hammer2_inode_modify()
1766 "insert inode %p %ld\n", ip, (long)ip->meta.inum); in hammer2_inode_chain_ins()
[all …]
H A Dhammer2_vnops.c79 ip = VTOI(vp); in hammer2_vop_inactive()
139 ip = VTOI(vp); in hammer2_vop_reclaim()
167 vp, ip); in hammer2_vop_reclaim()
641 if (ip != ip->pmp->iroot) in hammer2_vop_readdir()
1248 ip->osize = ip->meta.size; in hammer2_truncate_file()
1353 ip = NULL; in hammer2_vop_nresolve()
1370 if (ip) { in hammer2_vop_nresolve()
1576 KASSERT(ip->pmp, ("ip->pmp is NULL %p %p", ip, ip->pmp)); in hammer2_vop_nlink()
1594 ip->meta.inum, ip->meta.type); in hammer2_vop_nlink()
1956 if (ip) { in hammer2_vop_nremove()
[all …]
H A Dhammer2_ioctl.c185 hmp = ip->pmp->pfs_hmps[0]; in hammer2_ioctl_version_get()
779 if (ip) { in hammer2_ioctl_pfs_delete()
814 pmp = ip->pmp; in hammer2_ioctl_pfs_snapshot()
815 ip = pmp->iroot; in hammer2_ioctl_pfs_snapshot()
838 hammer2_inode_modify(ip); in hammer2_ioctl_pfs_snapshot()
938 hammer2_inode_unlock(ip); in hammer2_ioctl_pfs_snapshot()
965 hammer2_inode_unlock(ip); in hammer2_ioctl_inode_get()
1044 pmp = ip->pmp; in hammer2_ioctl_emerg_mode()
1083 pmp = ip->pmp; in hammer2_ioctl_bulkfree_scan()
1084 ip = pmp->iroot; in hammer2_ioctl_bulkfree_scan()
[all …]
/dragonfly/usr.sbin/makefs/hammer2/
H A Dhammer2_lz4_encoder.h118 ip++; in LZ4_compress_heap_limitedOutput()
148 ip--; in LZ4_compress_heap_limitedOutput()
191 ip+=4; in LZ4_compress_heap_limitedOutput()
195 ip+=2; in LZ4_compress_heap_limitedOutput()
198 if ((ip<matchlimit) && (*ref == *ip)) in LZ4_compress_heap_limitedOutput()
199 ip++; in LZ4_compress_heap_limitedOutput()
303 ip++; in LZ4_compress64k_heap_limitedOutput()
333 ip--; in LZ4_compress64k_heap_limitedOutput()
376 ip+=4; in LZ4_compress64k_heap_limitedOutput()
383 if ((ip<matchlimit) && (*ref == *ip)) in LZ4_compress64k_heap_limitedOutput()
[all …]
H A Dhammer2_inode.c562 ip = NULL; in hammer2_inode_lookup()
566 for (ip = hash->base; ip; ip = ip->next) { in hammer2_inode_lookup()
574 return(ip); in hammer2_inode_lookup()
588 kprintf("INODE+1 %p (%d->%d)\n", ip, ip->refs - 1, ip->refs); in hammer2_inode_ref()
603 while (ip) { in hammer2_inode_drop()
606 ip, ip->refs, ip->refs - 1); in hammer2_inode_drop()
1690 if (ip->vp) in hammer2_inode_modify()
1774 "insert inode %p %ld\n", ip, (long)ip->meta.inum); in hammer2_inode_chain_ins()
1862 for (ip = hash->base; ip; ip = ip->next) in vflush()
1865 for (ip = hash->base; ip;) { in vflush()
[all …]
H A Dhammer2_vnops.c85 ip = VTOI(vp); in hammer2_vop_inactive()
147 ip = VTOI(vp); in hammer2_vop_reclaim()
162 ip->vp = NULL; in hammer2_vop_reclaim()
176 vp, ip); in hammer2_vop_reclaim()
703 if (ip != ip->pmp->iroot) in hammer2_vop_readdir()
1495 ip->osize = ip->meta.size; in hammer2_truncate_file()
1618 if (ip) { in hammer2_vop_nresolve()
1891 KASSERT(ip->pmp, ("ip->pmp is NULL %p %p", ip, ip->pmp)); in hammer2_vop_nlink()
1909 ip->meta.inum, ip->meta.type); in hammer2_vop_nlink()
2379 if (ip) { in hammer2_vop_nremove()
[all …]
H A Dhammer2_ioctl.c191 hmp = ip->pmp->pfs_hmps[0]; in hammer2_ioctl_version_get()
787 if (ip) { in hammer2_ioctl_pfs_delete()
822 pmp = ip->pmp; in hammer2_ioctl_pfs_snapshot()
823 ip = pmp->iroot; in hammer2_ioctl_pfs_snapshot()
846 hammer2_inode_modify(ip); in hammer2_ioctl_pfs_snapshot()
946 hammer2_inode_unlock(ip); in hammer2_ioctl_pfs_snapshot()
973 hammer2_inode_unlock(ip); in hammer2_ioctl_inode_get()
1053 pmp = ip->pmp; in hammer2_ioctl_emerg_mode()
1091 pmp = ip->pmp; in hammer2_ioctl_bulkfree_scan()
1092 ip = pmp->iroot; in hammer2_ioctl_bulkfree_scan()
[all …]
/dragonfly/sbin/hammer2/lz4/
H A Dhammer2_lz4_encoder.h118 ip++; in LZ4_compress_heap_limitedOutput()
148 ip--; in LZ4_compress_heap_limitedOutput()
191 ip+=4; in LZ4_compress_heap_limitedOutput()
195 ip+=2; in LZ4_compress_heap_limitedOutput()
198 if ((ip<matchlimit) && (*ref == *ip)) in LZ4_compress_heap_limitedOutput()
199 ip++; in LZ4_compress_heap_limitedOutput()
303 ip++; in LZ4_compress64k_heap_limitedOutput()
333 ip--; in LZ4_compress64k_heap_limitedOutput()
376 ip+=4; in LZ4_compress64k_heap_limitedOutput()
383 if ((ip<matchlimit) && (*ref == *ip)) in LZ4_compress64k_heap_limitedOutput()
[all …]
/dragonfly/sys/vfs/ufs/
H A Dufs_ihash.c83 for (ip = *INOHASH(ump, inum); ip; ip = ip->i_next) { in ufs_ihashlookup()
84 if (inum == ip->i_number && dev == ip->i_dev) in ufs_ihashlookup()
87 if (ip) in ufs_ihashlookup()
105 for (ip = *INOHASH(ump, inum); ip; ip = ip->i_next) { in ufs_ihashget()
106 if (inum != ip->i_number || dev != ip->i_dev) in ufs_ihashget()
115 for (ip = *INOHASH(ump, inum); ip; ip = ip->i_next) { in ufs_ihashget()
116 if (inum == ip->i_number && dev == ip->i_dev) in ufs_ihashget()
119 if (ip == NULL || ITOV(ip) != vp) { in ufs_ihashget()
138 for (ip = *INOHASH(ump, inum); ip; ip = ip->i_next) { in ufs_ihashcheck()
139 if (inum == ip->i_number && dev == ip->i_dev) in ufs_ihashcheck()
[all …]
H A Dufs_vnops.c136 ip = VTOI(vp); in ufs_itimes()
304 error = vop_helper_access(ap, ip->i_uid, ip->i_gid, ip->i_mode, 0); in ufs_access()
328 ip->i_effnlink : ip->i_nlink; in ufs_getattr()
335 (time_t)(ip->i_atime | ((uint64_t)ip->i_atime_ext << 32)); in ufs_getattr()
558 if ((cred->cr_uid != ip->i_uid || uid != ip->i_uid || in ufs_chown()
1817 (u_long)ip->i_number, devtoname(ip->i_dev), major(ip->i_dev), in ufs_print()
1920 return (lf_advlock(ap, &(ip->i_lockf), ip->i_size)); in ufs_advlock()
1954 blkoffsize(ip->i_fs, ip, ip->i_size), in ufs_vinit()
1955 blkoff(ip->i_fs, ip->i_size)); in ufs_vinit()
1960 blkoffsize(ip->i_fs, ip, ip->i_size), in ufs_vinit()
[all …]
H A Dufs_inode.c75 if (ip == NULL || ip->i_mode == 0) in ufs_inactive()
84 ip->i_rdev = 0; in ufs_inactive()
85 mode = ip->i_mode; in ufs_inactive()
86 ip->i_mode = 0; in ufs_inactive()
97 if (ip == NULL || ip->i_mode == 0) in ufs_inactive()
110 struct inode *ip; in ufs_reclaim() local
121 ip = VTOI(vp); in ufs_reclaim()
126 if (ip) { in ufs_reclaim()
144 if (ip) { in ufs_reclaim()
146 if (ip->i_devvp) { in ufs_reclaim()
[all …]
/dragonfly/stand/lib/
H A Dudp.c63 struct ip *ip; in sendudp() local
80 ip = (struct ip *)uh - 1; in sendudp()
83 bzero(ip, sizeof(*ip) + sizeof(*uh)); in sendudp()
86 ip->ip_hl = sizeof(*ip) >> 2; /* half-char */ in sendudp()
92 ip->ip_sum = in_cksum(ip, sizeof(*ip)); /* short, but special */ in sendudp()
104 tip = *ip; in sendudp()
109 *ip = tip; in sendudp()
136 struct ip *ip; in readudp() local
146 ip = (struct ip *)uh - 1; in readudp()
212 ip->ip_len = htons(sizeof(*ip)); in readudp()
[all …]
/dragonfly/contrib/zstd/lib/compress/
H A Dzstd_double_fast.c33 for (; ip + fastHashFillStep - 1 <= iend; ip += fastHashFillStep) { in ZSTD_fillDoubleHashTable()
150 ip++; in ZSTD_compressBlock_doubleFast_generic()
158 mLength = ZSTD_count(ip+1+4, ip+1+4-offset_1, iend) + 4; in ZSTD_compressBlock_doubleFast_generic()
159 ip++; in ZSTD_compressBlock_doubleFast_generic()
200 ip += ((ip-anchor) >> kSearchStrength) + 1; in ZSTD_compressBlock_doubleFast_generic()
240 …while (((ip>anchor) & (match>dictStart)) && (ip[-1] == match[-1])) { ip--; match--; mLength++; } /… in ZSTD_compressBlock_doubleFast_generic()
244 …while (((ip>anchor) & (match>prefixLowest)) && (ip[-1] == match[-1])) { ip--; match--; mLength++; … in ZSTD_compressBlock_doubleFast_generic()
258 anchor = ip; in ZSTD_compressBlock_doubleFast_generic()
416 ip++; in ZSTD_compressBlock_doubleFast_extDict_generic()
456 ip += ((ip-anchor) >> kSearchStrength) + 1; in ZSTD_compressBlock_doubleFast_extDict_generic()
[all …]
/dragonfly/usr.bin/lam/
H A Dlam.c78 for (ip = input; ip->fp != NULL; ip++) in main()
108 ip->pad = P; in getargs()
110 ip->sepstring = (S ? (ip-1)->sepstring : ""); in getargs()
112 ip->format = ((P || F) ? (ip-1)->format : "%s"); in getargs()
114 ip->eol = (T ? (ip-1)->eol : '\n'); in getargs()
115 ip++; in getargs()
136 ip->pad = 1; in getargs()
161 ip->fp = NULL; in getargs()
173 if (ip->pad) { in pad()
189 if (ip->eof) in gatherline()
[all …]
/dragonfly/usr.sbin/makefs/ffs/
H A Dffs_balloc.c88 struct fs *fs = ip->i_fs; in ffs_balloc_ufs1()
113 lastlbn = lblkno(fs, ip->i_ffs1_size); in ffs_balloc_ufs1()
116 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1()
129 if (nb != 0 && ip->i_ffs1_size >= in ffs_balloc_ufs1()
189 error = ffs_alloc(ip, lbn, in ffs_balloc_ufs1()
191 &ip->i_ffs1_db[0]), in ffs_balloc_ufs1()
340 struct fs *fs = ip->i_fs; in ffs_balloc_ufs2()
368 osize = blksize(fs, ip, nb); in ffs_balloc_ufs2()
381 if (nb != 0 && ip->i_ffs2_size >= in ffs_balloc_ufs2()
441 error = ffs_alloc(ip, lbn, in ffs_balloc_ufs2()
[all …]
/dragonfly/contrib/tcpdump/
H A Dprint-ip.c92 const struct ip *ip) in ip_finddst() argument
98 cp = (const u_char *)(ip + 1); in ip_finddst()
99 length = IP_HL(ip) * 4; in ip_finddst()
102 length -= sizeof(struct ip); in ip_finddst()
138 const struct ip *ip, const uint8_t *data, in nextproto4_cksum() argument
155 if (IP_HL(ip) == 5) in nextproto4_cksum()
323 const struct ip *ip; in ip_print() local
334 ip = (const struct ip *)bp; in ip_print()
336 if (IP_V(ip) == 6) in ip_print()
346 ND_TCHECK_SIZE(ip); in ip_print()
[all …]
H A Dprint-sl.c62 const struct ip *ip; in sl_if_print() local
70 ip = (const struct ip *)(p + SLIP_HDRLEN); in sl_if_print()
75 switch (IP_V(ip)) { in sl_if_print()
92 const struct ip *ip; in sl_bsdos_if_print() local
100 ip = (const struct ip *)(p + SLIP_HDRLEN); in sl_bsdos_if_print()
112 const u_char *p, const struct ip *ip, in sliplink_print() argument
152 ND_TCHECK_SIZE(ip); in sliplink_print()
153 hlen = IP_HL(ip); in sliplink_print()
207 const u_char *chdr, const struct ip *ip, in compressed_sl_print() argument
253 ND_TCHECK_SIZE(ip); in compressed_sl_print()
[all …]

12345678910>>...21