Home
last modified time | relevance | path

Searched refs:dip (Results 1 – 25 of 42) sorted by relevance

12

/linux-2.6.39/fs/xfs/
Dxfs_dinode.h116 #define XFS_DFORK_Q(dip) ((dip)->di_forkoff != 0) argument
117 #define XFS_DFORK_BOFF(dip) ((int)((dip)->di_forkoff << 3)) argument
119 #define XFS_DFORK_DSIZE(dip,mp) \ argument
120 (XFS_DFORK_Q(dip) ? \
121 XFS_DFORK_BOFF(dip) : \
123 #define XFS_DFORK_ASIZE(dip,mp) \ argument
124 (XFS_DFORK_Q(dip) ? \
125 XFS_LITINO(mp) - XFS_DFORK_BOFF(dip) : \
127 #define XFS_DFORK_SIZE(dip,mp,w) \ argument
129 XFS_DFORK_DSIZE(dip, mp) : \
[all …]
Dxfs_inode.c105 xfs_dinode_t *dip; in xfs_inobp_check() local
110 dip = (xfs_dinode_t *)xfs_buf_offset(bp, in xfs_inobp_check()
112 if (!dip->di_next_unlinked) { in xfs_inobp_check()
116 ASSERT(dip->di_next_unlinked); in xfs_inobp_check()
166 xfs_dinode_t *dip; in xfs_imap_to_bp() local
168 dip = (xfs_dinode_t *)xfs_buf_offset(bp, in xfs_imap_to_bp()
170 di_ok = be16_to_cpu(dip->di_magic) == XFS_DINODE_MAGIC && in xfs_imap_to_bp()
171 XFS_DINODE_GOOD_VERSION(dip->di_version); in xfs_imap_to_bp()
180 XFS_ERRLEVEL_HIGH, mp, dip); in xfs_imap_to_bp()
185 be16_to_cpu(dip->di_magic)); in xfs_imap_to_bp()
[all …]
Dxfs_log_recover.c2171 xfs_dinode_t *dip; in xlog_recover_inode_pass2() local
2214 dip = (xfs_dinode_t *)xfs_buf_offset(bp, in_f->ilf_boffset); in xlog_recover_inode_pass2()
2220 if (unlikely(be16_to_cpu(dip->di_magic) != XFS_DINODE_MAGIC)) { in xlog_recover_inode_pass2()
2224 __func__, dip, bp, in_f->ilf_ino); in xlog_recover_inode_pass2()
2243 if (dicp->di_flushiter < be16_to_cpu(dip->di_flushiter)) { in xlog_recover_inode_pass2()
2248 if (be16_to_cpu(dip->di_flushiter) == DI_MAX_FLUSH && in xlog_recover_inode_pass2()
2270 __func__, item, dip, bp, in_f->ilf_ino); in xlog_recover_inode_pass2()
2284 __func__, item, dip, bp, in_f->ilf_ino); in xlog_recover_inode_pass2()
2296 __func__, item, dip, bp, in_f->ilf_ino, in xlog_recover_inode_pass2()
2309 item, dip, bp, in_f->ilf_ino, dicp->di_forkoff); in xlog_recover_inode_pass2()
[all …]
Dxfs_filestream.h57 int xfs_filestream_associate(struct xfs_inode *dip, struct xfs_inode *ip);
/linux-2.6.39/fs/gfs2/
Ddir.c85 typedef int (*leaf_call_t) (struct gfs2_inode *dip, u32 index, u32 len,
532 static int dirent_check_reclen(struct gfs2_inode *dip, in dirent_check_reclen() argument
546 gfs2_consist_inode(dip); in dirent_check_reclen()
559 static int dirent_next(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_next() argument
566 ret = dirent_check_reclen(dip, cur, bh_end); in dirent_next()
571 ret = dirent_check_reclen(dip, tmp, bh_end); in dirent_next()
577 gfs2_consist_inode(dip); in dirent_next()
594 static void dirent_del(struct gfs2_inode *dip, struct buffer_head *bh, in dirent_del() argument
600 gfs2_consist_inode(dip); in dirent_del()
604 gfs2_trans_add_bh(dip->i_gl, bh, 1); in dirent_del()
[all …]
Dinode.c449 struct inode *gfs2_lookup_simple(struct inode *dip, const char *name) in gfs2_lookup_simple() argument
454 inode = gfs2_lookupi(dip, &qstr, 1); in gfs2_lookup_simple()
486 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_lookupi() local
502 if (gfs2_glock_is_locked_by_me(dip->i_gl) == NULL) { in gfs2_lookupi()
503 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_lookupi()
535 static int create_ok(struct gfs2_inode *dip, const struct qstr *name, in create_ok() argument
540 error = gfs2_permission(&dip->i_inode, MAY_WRITE | MAY_EXEC, 0); in create_ok()
545 if (!dip->i_inode.i_nlink) in create_ok()
548 error = gfs2_dir_check(&dip->i_inode, name, NULL); in create_ok()
559 if (dip->i_entries == (u32)-1) in create_ok()
[all …]
Dops_inode.c50 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_create() local
55 gfs2_holder_init(dip->i_gl, 0, 0, ghs); in gfs2_create()
61 if (dip->i_alloc->al_rgd) in gfs2_create()
62 gfs2_inplace_release(dip); in gfs2_create()
63 gfs2_quota_unlock(dip); in gfs2_create()
64 gfs2_alloc_put(dip); in gfs2_create()
143 struct gfs2_inode *dip = GFS2_I(dir); in gfs2_link() local
154 gfs2_holder_init(dip->i_gl, LM_ST_EXCLUSIVE, 0, ghs); in gfs2_link()
180 if (!dip->i_inode.i_nlink) in gfs2_link()
183 if (dip->i_entries == (u32)-1) in gfs2_link()
[all …]
Ddentry.c40 struct gfs2_inode *dip; in gfs2_drevalidate() local
52 dip = GFS2_I(parent->d_inode); in gfs2_drevalidate()
64 had_lock = (gfs2_glock_is_locked_by_me(dip->i_gl) != NULL); in gfs2_drevalidate()
66 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_drevalidate()
Ddir.h26 extern int gfs2_dir_del(struct gfs2_inode *dip, const struct qstr *filename);
29 extern int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename,
32 extern int gfs2_dir_exhash_dealloc(struct gfs2_inode *dip);
Dexport.c97 struct gfs2_inode *dip, *ip; in gfs2_get_name() local
109 dip = GFS2_I(dir); in gfs2_get_name()
117 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_name()
Dacl.h20 extern int gfs2_acl_create(struct gfs2_inode *dip, struct inode *inode);
Dacl.c143 int gfs2_acl_create(struct gfs2_inode *dip, struct inode *inode) in gfs2_acl_create() argument
145 struct gfs2_sbd *sdp = GFS2_SB(&dip->i_inode); in gfs2_acl_create()
155 acl = gfs2_acl_get(dip, ACL_TYPE_DEFAULT); in gfs2_acl_create()
Dinode.h118 extern struct inode *gfs2_lookup_simple(struct inode *dip, const char *name);
/linux-2.6.39/fs/jfs/
Dnamei.c75 static int jfs_create(struct inode *dip, struct dentry *dentry, int mode, in jfs_create() argument
87 jfs_info("jfs_create: dip:0x%p name:%s", dip, dentry->d_name.name); in jfs_create()
89 dquot_initialize(dip); in jfs_create()
103 ip = ialloc(dip, mode); in jfs_create()
109 tid = txBegin(dip->i_sb, 0); in jfs_create()
111 mutex_lock_nested(&JFS_IP(dip)->commit_mutex, COMMIT_MUTEX_PARENT); in jfs_create()
114 rc = jfs_init_acl(tid, ip, dip); in jfs_create()
118 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create()
124 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create()
135 iplist[0] = dip; in jfs_create()
[all …]
Djfs_imap.c3059 static int copy_from_dinode(struct dinode * dip, struct inode *ip) in copy_from_dinode() argument
3064 jfs_ip->fileset = le32_to_cpu(dip->di_fileset); in copy_from_dinode()
3065 jfs_ip->mode2 = le32_to_cpu(dip->di_mode); in copy_from_dinode()
3068 ip->i_mode = le32_to_cpu(dip->di_mode) & 0xffff; in copy_from_dinode()
3081 ip->i_nlink = le32_to_cpu(dip->di_nlink); in copy_from_dinode()
3083 jfs_ip->saved_uid = le32_to_cpu(dip->di_uid); in copy_from_dinode()
3090 jfs_ip->saved_gid = le32_to_cpu(dip->di_gid); in copy_from_dinode()
3097 ip->i_size = le64_to_cpu(dip->di_size); in copy_from_dinode()
3098 ip->i_atime.tv_sec = le32_to_cpu(dip->di_atime.tv_sec); in copy_from_dinode()
3099 ip->i_atime.tv_nsec = le32_to_cpu(dip->di_atime.tv_nsec); in copy_from_dinode()
[all …]
/linux-2.6.39/arch/arm/mach-davinci/
Dcommon.c43 struct davinci_id *dip; in davinci_init_id() local
60 for (i = 0, dip = soc_info->ids; i < soc_info->ids_num; in davinci_init_id()
61 i++, dip++) in davinci_init_id()
63 if ((dip->part_no == part_no) && (dip->variant == variant)) { in davinci_init_id()
64 soc_info->cpu_id = dip->cpu_id; in davinci_init_id()
65 pr_info("DaVinci %s variant 0x%x\n", dip->name, in davinci_init_id()
66 dip->variant); in davinci_init_id()
/linux-2.6.39/drivers/media/video/pvrusb2/
Dpvrusb2-v4l2.c880 static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_destroy() argument
882 struct pvr2_hdw *hdw = dip->v4lp->channel.mc_head->hdw; in pvr2_v4l2_dev_destroy()
883 enum pvr2_config cfg = dip->config; in pvr2_v4l2_dev_destroy()
892 video_device_node_name(&dip->devbase), in pvr2_v4l2_dev_destroy()
896 pvr2_hdw_v4l_store_minor_number(hdw,dip->minor_type,-1); in pvr2_v4l2_dev_destroy()
899 dip->v4lp = NULL; in pvr2_v4l2_dev_destroy()
900 dip->stream = NULL; in pvr2_v4l2_dev_destroy()
904 video_unregister_device(&dip->devbase); in pvr2_v4l2_dev_destroy()
911 static void pvr2_v4l2_dev_disassociate_parent(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_disassociate_parent() argument
913 if (!dip) return; in pvr2_v4l2_dev_disassociate_parent()
[all …]
Dpvrusb2-sysfs.c430 struct pvr2_sysfs_debugifc *dip; in pvr2_sysfs_add_debugifc() local
433 dip = kzalloc(sizeof(*dip),GFP_KERNEL); in pvr2_sysfs_add_debugifc()
434 if (!dip) return; in pvr2_sysfs_add_debugifc()
435 sysfs_attr_init(&dip->attr_debugcmd.attr); in pvr2_sysfs_add_debugifc()
436 dip->attr_debugcmd.attr.name = "debugcmd"; in pvr2_sysfs_add_debugifc()
437 dip->attr_debugcmd.attr.mode = S_IRUGO|S_IWUSR|S_IWGRP; in pvr2_sysfs_add_debugifc()
438 dip->attr_debugcmd.show = debugcmd_show; in pvr2_sysfs_add_debugifc()
439 dip->attr_debugcmd.store = debugcmd_store; in pvr2_sysfs_add_debugifc()
440 sysfs_attr_init(&dip->attr_debuginfo.attr); in pvr2_sysfs_add_debugifc()
441 dip->attr_debuginfo.attr.name = "debuginfo"; in pvr2_sysfs_add_debugifc()
[all …]
/linux-2.6.39/drivers/scsi/bfa/
Dbfa_port.c32 u32 *dip = (u32 *) stats; in bfa_port_stats_swap() local
38 t0 = dip[i]; in bfa_port_stats_swap()
39 t1 = dip[i + 1]; in bfa_port_stats_swap()
41 dip[i] = be32_to_cpu(t0); in bfa_port_stats_swap()
42 dip[i + 1] = be32_to_cpu(t1); in bfa_port_stats_swap()
44 dip[i] = be32_to_cpu(t1); in bfa_port_stats_swap()
45 dip[i + 1] = be32_to_cpu(t0); in bfa_port_stats_swap()
/linux-2.6.39/fs/freevxfs/
Dvxfs_inode.c99 struct vxfs_dinode *dip; in vxfs_blkiget() local
103 dip = (struct vxfs_dinode *)(bp->b_data + offset); in vxfs_blkiget()
104 memcpy(vip, dip, sizeof(*vip)); in vxfs_blkiget()
140 struct vxfs_dinode *dip; in __vxfs_iget() local
145 dip = (struct vxfs_dinode *)(kaddr + offset); in __vxfs_iget()
146 memcpy(vip, dip, sizeof(*vip)); in __vxfs_iget()
Dvxfs_lookup.c175 vxfs_inode_by_name(struct inode *dip, struct dentry *dp) in vxfs_inode_by_name() argument
181 de = vxfs_find_entry(dip, dp, &pp); in vxfs_inode_by_name()
206 vxfs_lookup(struct inode *dip, struct dentry *dp, struct nameidata *nd) in vxfs_lookup() argument
214 ino = vxfs_inode_by_name(dip, dp); in vxfs_lookup()
216 ip = vxfs_iget(dip->i_sb, ino); in vxfs_lookup()
/linux-2.6.39/net/bridge/netfilter/
Debt_among.c137 __be32 dip = 0, sip = 0; in ebt_among_mt() local
159 if (get_ip_dst(skb, &dip)) in ebt_among_mt()
163 if (!ebt_mac_wormhash_contains(wh_dst, dmac, dip)) in ebt_among_mt()
167 if (ebt_mac_wormhash_contains(wh_dst, dmac, dip)) in ebt_among_mt()
/linux-2.6.39/fs/btrfs/
Dinode.c5767 struct btrfs_dio_private *dip = bio->bi_private; in btrfs_endio_direct_read() local
5770 struct inode *inode = dip->inode; in btrfs_endio_direct_read()
5773 u32 *private = dip->csums; in btrfs_endio_direct_read()
5775 start = dip->logical_offset; in btrfs_endio_direct_read()
5806 unlock_extent(&BTRFS_I(inode)->io_tree, dip->logical_offset, in btrfs_endio_direct_read()
5807 dip->logical_offset + dip->bytes - 1, GFP_NOFS); in btrfs_endio_direct_read()
5808 bio->bi_private = dip->private; in btrfs_endio_direct_read()
5810 kfree(dip->csums); in btrfs_endio_direct_read()
5811 kfree(dip); in btrfs_endio_direct_read()
5821 struct btrfs_dio_private *dip = bio->bi_private; in btrfs_endio_direct_write() local
[all …]
/linux-2.6.39/drivers/net/cxgb3/
Dcxgb3_ioctl.h156 uint32_t dip; member
/linux-2.6.39/Documentation/isdn/
DREADME.icn26 Two types of cards exist, one with dip-switches and one with
43 2. Setting for the card with dip-switches:

12