Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 200 of 915) sorted by relevance

12345

/linux-4.4.14/sound/soc/sti/
Duniperif.h19 #define GET_UNIPERIF_REG(ip, offset, shift, mask) \ argument
20 ((readl_relaxed(ip->base + offset) >> shift) & mask)
21 #define SET_UNIPERIF_REG(ip, offset, shift, mask, value) \ argument
22 writel_relaxed(((readl_relaxed(ip->base + offset) & \
23 ~(mask << shift)) | (((value) & mask) << shift)), ip->base + offset)
24 #define SET_UNIPERIF_BIT_REG(ip, offset, shift, mask, value) \ argument
25 writel_relaxed((((value) & mask) << shift), ip->base + offset)
31 #define UNIPERIF_SOFT_RST_OFFSET(ip) 0x0000 argument
32 #define GET_UNIPERIF_SOFT_RST(ip) \ argument
33 ((ip)->ver < SND_ST_UNIPERIF_VERSION_UNI_PLR_TOP_1_0 ? \
[all …]
/linux-4.4.14/arch/arm/mach-davinci/
Dsleep.S55 ldr ip, CACHE_FLUSH
56 blx ip
65 ldr ip, [r0, #DDR2_SDRCR_OFFSET]
66 bic ip, ip, #DDR2_SRPD_BIT
67 orr ip, ip, #DDR2_LPMODEN_BIT
68 str ip, [r0, #DDR2_SDRCR_OFFSET]
70 ldr ip, [r0, #DDR2_SDRCR_OFFSET]
71 orr ip, ip, #DDR2_MCLKSTOPEN_BIT
72 str ip, [r0, #DDR2_SDRCR_OFFSET]
74 mov ip, #PHYRDY_CYCLES
[all …]
/linux-4.4.14/arch/arm/lib/
Dio-writesw-armv3.S46 mov ip, r3, lsl #16
47 orr ip, ip, ip, lsr #16
48 str ip, [r0]
50 mov ip, r3, lsr #16
51 orr ip, ip, ip, lsl #16
52 str ip, [r0]
54 mov ip, r4, lsl #16
55 orr ip, ip, ip, lsr #16
56 str ip, [r0]
58 mov ip, r4, lsr #16
[all …]
Dio-readsw-armv4.S21 .Linsw_align: movs ip, r1, lsl #31
23 ldrh ip, [r0]
25 strh ip, [r1], #2
47 ldrh ip, [r0]
48 pack r5, r5, ip
50 ldrh ip, [r0]
52 pack ip, ip, lr
55 stmia r1!, {r3 - r5, ip}
66 ldrh ip, [r0]
67 pack r4, r4, ip
[all …]
Dio-readsl.S16 ands ip, r1, #3
24 ldr ip, [r0, #0]
27 stmia r1!, {r3, r4, ip, lr}
32 ldrcs ip, [r0, #0]
33 stmcsia r1!, {r3, ip}
39 cmp ip, #2
40 mov ip, r3, get_byte_0
41 strb ip, [r1], #1
43 mov ip, r3, get_byte_1
44 strb ip, [r1], #1
[all …]
Ddiv64.S52 subs ip, r4, #1
54 tst ip, r4
64 @ The bit position is stored in ip.
69 clz ip, xh
70 sub yl, yl, ip
71 mov ip, #1
72 mov ip, ip, lsl yl
78 mov ip, #1
82 movcc ip, ip, lsl #1
90 orrcs yh, yh, ip
[all …]
Dmemset.S23 mov ip, r0 @ preserve r0 as return value
47 stmgeia ip!, {r1, r3, r8, lr} @ 64 bytes at a time.
48 stmgeia ip!, {r1, r3, r8, lr}
49 stmgeia ip!, {r1, r3, r8, lr}
50 stmgeia ip!, {r1, r3, r8, lr}
57 stmneia ip!, {r1, r3, r8, lr}
58 stmneia ip!, {r1, r3, r8, lr}
60 stmneia ip!, {r1, r3, r8, lr}
83 tstgt ip, #31
86 and r8, ip, #31
[all …]
Dio-writesl.S16 ands ip, r1, #3
22 1: ldmia r1!, {r3, r4, ip, lr}
26 str ip, [r0, #0]
31 ldmcsia r1!, {r3, ip}
34 strcs ip, [r0, #0]
40 cmp ip, #2
44 4: mov ip, r3, lspull #16
47 orr ip, ip, r3, lspush #16
48 str ip, [r0]
52 5: mov ip, r3, lspull #8
[all …]
Dcopy_template.S85 ands ip, r0, #3
88 ands ip, r1, #3
100 CALGN( ands ip, r0, #31 )
101 CALGN( rsb r3, ip, #32 )
106 CALGN( add pc, r4, ip )
116 4: ldr8w r1, r3, r4, r5, r6, r7, r8, ip, lr, abort=20f
118 str8w r0, r3, r4, r5, r6, r7, r8, ip, lr, abort=20f
123 5: ands ip, r2, #28
124 rsb ip, ip, #32
126 lsl ip, ip, #LDR1W_SHIFT
[all …]
Dmemmove.S33 subs ip, r0, r1
34 cmphi r2, ip
46 ands ip, r0, #3
49 ands ip, r1, #3
61 CALGN( ands ip, r0, #31 )
62 CALGN( sbcnes r4, ip, r2 ) @ C is always set here
65 CALGN( subs r2, r2, ip ) @ C is set here
66 CALGN( rsb ip, ip, #32 )
67 CALGN( add pc, r4, ip )
77 4: ldmdb r1!, {r3, r4, r5, r6, r7, r8, ip, lr}
[all …]
Dmemzero.S55 mov ip, r2 @ 1
59 stmgeia r0!, {r2, r3, ip, lr} @ 4
60 stmgeia r0!, {r2, r3, ip, lr} @ 4
61 stmgeia r0!, {r2, r3, ip, lr} @ 4
62 stmgeia r0!, {r2, r3, ip, lr} @ 4
69 stmneia r0!, {r2, r3, ip, lr} @ 4
70 stmneia r0!, {r2, r3, ip, lr} @ 4
72 stmneia r0!, {r2, r3, ip, lr} @ 4
91 mov ip, r2
95 andgts ip, r0, #31
[all …]
Dcsumpartialcopygeneric.S39 load1b ip
41 adcs sum, sum, ip, put_byte_1 @ update checksum
42 strb ip, [dst], #1
46 .Ldst_16bit: load2b r8, ip
50 adcs sum, sum, ip, put_byte_1
51 strb ip, [dst], #1
66 load1b ip
68 adcs sum, sum, ip, put_byte_1 @ update checksum
69 strb ip, [dst], #1
73 1: load2b r8, ip
[all …]
Dcsumipv6.S17 adds ip, r2, r3
19 adcs ip, ip, r1
20 adcs ip, ip, r2
21 adcs ip, ip, r3
22 adcs ip, ip, lr
24 adcs r0, ip, r0
Dio-writesw-armv4.S25 .Loutsw_align: movs ip, r1, lsl #31
43 .Loutsw_8_lp: ldmia r1!, {r3, r4, r5, ip}
48 outword ip
54 ldmia r1!, {r3, ip}
56 outword ip
87 1: mov ip, r3, lsr #8
88 strh ip, [r0]
89 2: mov ip, r3, pull_hbyte0
92 orr ip, ip, r3, push_hbyte1
93 strh ip, [r0]
[all …]
Dio-readsb.S13 .Linsb_align: rsb ip, ip, #4
14 cmp ip, r2
15 movgt ip, r2
16 cmp ip, #2
23 subs r2, r2, ip
29 ands ip, r1, #3
49 ldrb ip, [r0]
54 orr r4, r4, ip, put_byte_3
55 ldrb ip, [r0]
60 orr r5, r5, ip, put_byte_2
[all …]
Dbitops.h8 ands ip, r1, #3
9 strneb r1, [ip] @ assert word-aligned
33 ands ip, r1, #3
34 strneb r1, [ip] @ assert word-aligned
49 strex ip, r2, [r1]
50 cmp ip, #0
63 ands ip, r1, #3
64 strneb r1, [ip] @ assert word-aligned
69 save_and_disable_irqs ip
73 restore_irqs ip
[all …]
Dputuser.S36 check_uaccess r0, 1, r1, ip, __put_user_bad
43 check_uaccess r0, 2, r1, ip, __put_user_bad
44 mov ip, r2, lsr #8
48 3: TUSER(strb) ip, [r0, #1]
50 2: TUSER(strb) ip, [r0]
56 3: TUSER(strb) ip, [r0]
58 2: TUSER(strb) ip, [r0], #1
67 check_uaccess r0, 4, r1, ip, __put_user_bad
74 check_uaccess r0, 8, r1, ip, __put_user_bad
Dio-readsw-armv3.S38 .Linsw_aligned: mov ip, #0xff
39 orr ip, ip, ip, lsl #8
46 and r3, r3, ip
51 and r4, r4, ip
56 and r5, r5, ip
61 and r6, r6, ip
77 and r3, r3, ip
82 and r4, r4, ip
92 and r3, r3, ip
Dmuldi3.S33 mov ip, xl, lsr #16
35 bic xl, xl, ip, lsl #16
37 mla xh, yh, ip, xh
40 mul ip, yl, ip
43 adds xl, xl, ip, lsl #16
44 adc xh, xh, ip, lsr #16
Dio-writesb.S33 .Loutsb_align: rsb ip, ip, #4
34 cmp ip, r2
35 movgt ip, r2
36 cmp ip, #2
43 subs r2, r2, ip
49 ands ip, r1, #3
58 .Loutsb_16_lp: ldmia r1!, {r3, r4, r5, ip}
62 outword ip
Dcopy_page.S32 ldmia r1!, {r3, r4, ip, lr} @ 4+1
37 stmia r0!, {r3, r4, ip, lr} @ 4
38 ldmia r1!, {r3, r4, ip, lr} @ 4
41 stmia r0!, {r3, r4, ip, lr} @ 4
42 ldmgtia r1!, {r3, r4, ip, lr} @ 4
44 PLD( ldmeqia r1!, {r3, r4, ip, lr} )
Dclear_user.S30 ands ip, r0, #3
32 cmp ip, #2
36 rsb ip, ip, #4
37 sub r1, r1, ip @ 7 6 5 4 3 2 1
/linux-4.4.14/fs/xfs/
Dxfs_icache.c41 struct xfs_perag *pag, struct xfs_inode *ip);
51 struct xfs_inode *ip; in xfs_inode_alloc() local
58 ip = kmem_zone_alloc(xfs_inode_zone, KM_SLEEP); in xfs_inode_alloc()
59 if (!ip) in xfs_inode_alloc()
61 if (inode_init_always(mp->m_super, VFS_I(ip))) { in xfs_inode_alloc()
62 kmem_zone_free(xfs_inode_zone, ip); in xfs_inode_alloc()
67 ASSERT(atomic_read(&ip->i_pincount) == 0); in xfs_inode_alloc()
68 ASSERT(!spin_is_locked(&ip->i_flags_lock)); in xfs_inode_alloc()
69 ASSERT(!xfs_isiflocked(ip)); in xfs_inode_alloc()
70 ASSERT(ip->i_ino == 0); in xfs_inode_alloc()
[all …]
Dxfs_inode.h79 static inline struct inode *VFS_I(struct xfs_inode *ip) in VFS_I() argument
81 return &ip->i_vnode; in VFS_I()
89 static inline xfs_fsize_t XFS_ISIZE(struct xfs_inode *ip) in XFS_ISIZE() argument
91 if (S_ISREG(ip->i_d.di_mode)) in XFS_ISIZE()
92 return i_size_read(VFS_I(ip)); in XFS_ISIZE()
93 return ip->i_d.di_size; in XFS_ISIZE()
101 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof() argument
103 xfs_fsize_t i_size = i_size_read(VFS_I(ip)); in xfs_new_eof()
107 return new_size > ip->i_d.di_size ? new_size : 0; in xfs_new_eof()
114 __xfs_iflags_set(xfs_inode_t *ip, unsigned short flags) in __xfs_iflags_set() argument
[all …]
Dxfs_inode.c69 struct xfs_inode *ip) in xfs_get_extsz_hint() argument
71 if ((ip->i_d.di_flags & XFS_DIFLAG_EXTSIZE) && ip->i_d.di_extsize) in xfs_get_extsz_hint()
72 return ip->i_d.di_extsize; in xfs_get_extsz_hint()
73 if (XFS_IS_REALTIME_INODE(ip)) in xfs_get_extsz_hint()
74 return ip->i_mount->m_sb.sb_rextsize; in xfs_get_extsz_hint()
95 struct xfs_inode *ip) in xfs_ilock_data_map_shared() argument
99 if (ip->i_d.di_format == XFS_DINODE_FMT_BTREE && in xfs_ilock_data_map_shared()
100 (ip->i_df.if_flags & XFS_IFEXTENTS) == 0) in xfs_ilock_data_map_shared()
102 xfs_ilock(ip, lock_mode); in xfs_ilock_data_map_shared()
108 struct xfs_inode *ip) in xfs_ilock_attr_map_shared() argument
[all …]
Dxfs_inode_item.c46 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_data_fork_size() local
48 switch (ip->i_d.di_format) { in xfs_inode_item_data_fork_size()
51 ip->i_d.di_nextents > 0 && in xfs_inode_item_data_fork_size()
52 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
54 *nbytes += XFS_IFORK_DSIZE(ip); in xfs_inode_item_data_fork_size()
60 ip->i_df.if_broot_bytes > 0) { in xfs_inode_item_data_fork_size()
61 *nbytes += ip->i_df.if_broot_bytes; in xfs_inode_item_data_fork_size()
67 ip->i_df.if_bytes > 0) { in xfs_inode_item_data_fork_size()
68 *nbytes += roundup(ip->i_df.if_bytes, 4); in xfs_inode_item_data_fork_size()
88 struct xfs_inode *ip = iip->ili_inode; in xfs_inode_item_attr_fork_size() local
[all …]
Dxfs_bmap_util.c52 xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb) in xfs_fsb_to_db() argument
54 return (XFS_IS_REALTIME_INODE(ip) ? \ in xfs_fsb_to_db()
55 (xfs_daddr_t)XFS_FSB_TO_BB((ip)->i_mount, (fsb)) : \ in xfs_fsb_to_db()
56 XFS_FSB_TO_DADDR((ip)->i_mount, (fsb))); in xfs_fsb_to_db()
68 struct xfs_inode *ip, in xfs_zero_extent() argument
72 struct xfs_mount *mp = ip->i_mount; in xfs_zero_extent()
73 xfs_daddr_t sector = xfs_fsb_to_db(ip, start_fsb); in xfs_zero_extent()
77 if (IS_DAX(VFS_I(ip))) in xfs_zero_extent()
78 return dax_clear_blocks(VFS_I(ip), block, size); in xfs_zero_extent()
176 mp = ap->ip->i_mount; in xfs_bmap_rtalloc()
[all …]
Dxfs_symlink.c47 struct xfs_inode *ip, in xfs_readlink_bmap() argument
50 struct xfs_mount *mp = ip->i_mount; in xfs_readlink_bmap()
55 int pathlen = ip->i_d.di_size; in xfs_readlink_bmap()
64 error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0); in xfs_readlink_bmap()
93 if (!xfs_symlink_hdr_ok(ip->i_ino, offset, in xfs_readlink_bmap()
98 offset, byte_cnt, ip->i_ino); in xfs_readlink_bmap()
116 link[ip->i_d.di_size] = '\0'; in xfs_readlink_bmap()
125 struct xfs_inode *ip, in xfs_readlink() argument
128 struct xfs_mount *mp = ip->i_mount; in xfs_readlink()
132 trace_xfs_readlink(ip); in xfs_readlink()
[all …]
Dxfs_trans_inode.c40 struct xfs_inode *ip, in xfs_trans_ijoin() argument
45 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_ijoin()
46 if (ip->i_itemp == NULL) in xfs_trans_ijoin()
47 xfs_inode_item_init(ip, ip->i_mount); in xfs_trans_ijoin()
48 iip = ip->i_itemp; in xfs_trans_ijoin()
67 struct xfs_inode *ip, in xfs_trans_ichgtime() argument
70 struct inode *inode = VFS_I(ip); in xfs_trans_ichgtime()
74 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_trans_ichgtime()
81 ip->i_d.di_mtime.t_sec = tv.tv_sec; in xfs_trans_ichgtime()
82 ip->i_d.di_mtime.t_nsec = tv.tv_nsec; in xfs_trans_ichgtime()
[all …]
Dxfs_iops.c68 struct xfs_inode *ip = XFS_I(inode); in xfs_initxattrs() local
72 error = xfs_attr_set(ip, xattr->name, xattr->value, in xfs_initxattrs()
135 struct xfs_inode *ip = NULL; in xfs_generic_create() local
158 error = xfs_create(XFS_I(dir), &name, mode, rdev, &ip); in xfs_generic_create()
160 error = xfs_create_tmpfile(XFS_I(dir), dentry, mode, &ip); in xfs_generic_create()
165 inode = VFS_I(ip); in xfs_generic_create()
189 xfs_finish_inode_setup(ip); in xfs_generic_create()
199 xfs_finish_inode_setup(ip); in xfs_generic_create()
266 struct xfs_inode *ip; in xfs_vn_ci_lookup() local
276 error = xfs_lookup(XFS_I(dir), &xname, &ip, &ci_name); in xfs_vn_ci_lookup()
[all …]
Dxfs_file.c54 struct xfs_inode *ip, in xfs_rw_ilock() argument
58 mutex_lock(&VFS_I(ip)->i_mutex); in xfs_rw_ilock()
59 xfs_ilock(ip, type); in xfs_rw_ilock()
64 struct xfs_inode *ip, in xfs_rw_iunlock() argument
67 xfs_iunlock(ip, type); in xfs_rw_iunlock()
69 mutex_unlock(&VFS_I(ip)->i_mutex); in xfs_rw_iunlock()
74 struct xfs_inode *ip, in xfs_rw_ilock_demote() argument
77 xfs_ilock_demote(ip, type); in xfs_rw_ilock_demote()
79 mutex_unlock(&VFS_I(ip)->i_mutex); in xfs_rw_ilock_demote()
95 struct xfs_inode *ip, /* inode */ in xfs_iozero() argument
[all …]
Dxfs_iomap.c48 xfs_inode_t *ip, in xfs_iomap_eof_align_last_fsb() argument
55 if (!XFS_IS_REALTIME_INODE(ip)) { in xfs_iomap_eof_align_last_fsb()
69 if (align && XFS_ISIZE(ip) < XFS_FSB_TO_B(mp, align)) in xfs_iomap_eof_align_last_fsb()
86 error = xfs_bmap_eof(ip, new_last_fsb, XFS_DATA_FORK, &eof); in xfs_iomap_eof_align_last_fsb()
97 xfs_inode_t *ip, in xfs_alert_fsblock_zero() argument
100 xfs_alert_tag(ip->i_mount, XFS_PTAG_FSBLOCK_ZERO, in xfs_alert_fsblock_zero()
104 (unsigned long long)ip->i_ino, in xfs_alert_fsblock_zero()
114 xfs_inode_t *ip, in xfs_iomap_write_direct() argument
120 xfs_mount_t *mp = ip->i_mount; in xfs_iomap_write_direct()
137 rt = XFS_IS_REALTIME_INODE(ip); in xfs_iomap_write_direct()
[all …]
Dxfs_pnfs.c37 struct xfs_inode *ip = XFS_I(inode); in xfs_break_layouts() local
40 ASSERT(xfs_isilocked(ip, XFS_IOLOCK_SHARED|XFS_IOLOCK_EXCL)); in xfs_break_layouts()
43 xfs_iunlock(ip, *iolock); in xfs_break_layouts()
50 xfs_ilock(ip, *iolock); in xfs_break_layouts()
84 struct xfs_inode *ip, in xfs_bmbt_to_iomap() argument
88 struct xfs_mount *mp = ip->i_mount; in xfs_bmbt_to_iomap()
98 XFS_FSB_TO_DADDR(ip->i_mount, imap->br_startblock); in xfs_bmbt_to_iomap()
120 struct xfs_inode *ip = XFS_I(inode); in xfs_fs_map_blocks() local
121 struct xfs_mount *mp = ip->i_mount; in xfs_fs_map_blocks()
138 if (XFS_IS_REALTIME_INODE(ip)) in xfs_fs_map_blocks()
[all …]
Dxfs_qm.c261 xfs_inode_t *ip, in xfs_qm_dqattach_one() argument
270 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); in xfs_qm_dqattach_one()
290 error = xfs_qm_dqget(ip->i_mount, ip, id, type, in xfs_qm_dqattach_one()
308 struct xfs_inode *ip) in xfs_qm_need_dqattach() argument
310 struct xfs_mount *mp = ip->i_mount; in xfs_qm_need_dqattach()
316 if (!XFS_NOT_DQATTACHED(mp, ip)) in xfs_qm_need_dqattach()
318 if (xfs_is_quota_inode(&mp->m_sb, ip->i_ino)) in xfs_qm_need_dqattach()
332 xfs_inode_t *ip, in xfs_qm_dqattach_locked() argument
335 xfs_mount_t *mp = ip->i_mount; in xfs_qm_dqattach_locked()
338 if (!xfs_qm_need_dqattach(ip)) in xfs_qm_dqattach_locked()
[all …]
Dxfs_ioctl.c75 struct xfs_inode *ip; in xfs_find_handle() local
88 ip = XFS_I(inode); in xfs_find_handle()
105 memcpy(&handle.ha_fsid, ip->i_mount->m_fixedfsid, sizeof(xfs_fsid_t)); in xfs_find_handle()
117 handle.ha_fid.fid_gen = ip->i_d.di_gen; in xfs_find_handle()
118 handle.ha_fid.fid_ino = ip->i_ino; in xfs_find_handle()
323 xfs_inode_t *ip, in xfs_set_dmattrs() argument
327 xfs_mount_t *mp = ip->i_mount; in xfs_set_dmattrs()
343 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_set_dmattrs()
344 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_set_dmattrs()
346 ip->i_d.di_dmevmask = evmask; in xfs_set_dmattrs()
[all …]
Dxfs_filestream.c35 struct xfs_inode *ip; member
128 xfs_filestream_put_ag(item->ip->i_mount, item->ag); in xfs_fstrm_free_func()
130 trace_xfs_filestream_free(item->ip, item->ag); in xfs_fstrm_free_func()
141 struct xfs_inode *ip, in xfs_filestream_pick_ag() argument
147 struct xfs_mount *mp = ip->i_mount; in xfs_filestream_pick_ag()
154 ASSERT(S_ISDIR(ip->i_d.di_mode)); in xfs_filestream_pick_ag()
166 trace_xfs_filestream_scan(ip, ag); in xfs_filestream_pick_ag()
249 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag()
254 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag()
265 item->ip = ip; in xfs_filestream_pick_ag()
[all …]
Dxfs_bmap_util.h32 int xfs_bmap_eof(struct xfs_inode *ip, xfs_fileoff_t endoff,
34 int xfs_bmap_count_blocks(struct xfs_trans *tp, struct xfs_inode *ip,
36 int xfs_bmap_punch_delalloc_range(struct xfs_inode *ip,
41 int xfs_getbmap(struct xfs_inode *ip, struct getbmapx *bmv,
53 int xfs_bmap_last_extent(struct xfs_trans *tp, struct xfs_inode *ip,
58 int xfs_alloc_file_space(struct xfs_inode *ip, xfs_off_t offset,
60 int xfs_free_file_space(struct xfs_inode *ip, xfs_off_t offset,
62 int xfs_zero_file_space(struct xfs_inode *ip, xfs_off_t offset,
70 bool xfs_can_free_eofblocks(struct xfs_inode *ip, bool force);
71 int xfs_free_eofblocks(struct xfs_mount *mp, struct xfs_inode *ip,
[all …]
Dxfs_quota.h38 #define XFS_NOT_DQATTACHED(mp, ip) \ argument
39 ((XFS_IS_UQUOTA_ON(mp) && (ip)->i_udquot == NULL) || \
40 (XFS_IS_GQUOTA_ON(mp) && (ip)->i_gdquot == NULL) || \
41 (XFS_IS_PQUOTA_ON(mp) && (ip)->i_pdquot == NULL))
105 xfs_qm_vop_dqalloc(struct xfs_inode *ip, xfs_dqid_t uid, xfs_dqid_t gid, in xfs_qm_vop_dqalloc() argument
116 #define xfs_trans_mod_dquot_byino(tp, ip, fields, delta) argument
120 struct xfs_inode *ip, long nblks, long ninos, uint flags) in xfs_trans_reserve_quota_nblks() argument
131 #define xfs_qm_vop_create_dqattach(tp, ip, u, g, p) argument
133 #define xfs_qm_vop_chown(tp, ip, old, new) (NULL) argument
134 #define xfs_qm_vop_chown_reserve(tp, ip, u, g, p, fl) (0) argument
[all …]
Dxfs_qm_syscalls.c226 struct xfs_inode *ip; in xfs_qm_scall_trunc_qfile() local
233 error = xfs_iget(mp, NULL, ino, 0, 0, &ip); in xfs_qm_scall_trunc_qfile()
237 xfs_ilock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
243 xfs_iunlock(ip, XFS_IOLOCK_EXCL); in xfs_qm_scall_trunc_qfile()
247 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_qm_scall_trunc_qfile()
248 xfs_trans_ijoin(tp, ip, 0); in xfs_qm_scall_trunc_qfile()
250 ip->i_d.di_size = 0; in xfs_qm_scall_trunc_qfile()
251 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); in xfs_qm_scall_trunc_qfile()
253 error = xfs_itruncate_extents(&tp, ip, XFS_DATA_FORK, 0); in xfs_qm_scall_trunc_qfile()
259 ASSERT(ip->i_d.di_nextents == 0); in xfs_qm_scall_trunc_qfile()
[all …]
Dxfs_aops.c62 struct xfs_inode *ip = XFS_I(inode); in xfs_find_bdev_for_inode() local
63 struct xfs_mount *mp = ip->i_mount; in xfs_find_bdev_for_inode()
65 if (XFS_IS_REALTIME_INODE(ip)) in xfs_find_bdev_for_inode()
136 struct xfs_inode *ip, in xfs_setfilesize() argument
143 xfs_ilock(ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
144 isize = xfs_new_eof(ip, offset + size); in xfs_setfilesize()
146 xfs_iunlock(ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
151 trace_xfs_setfilesize(ip, offset, size); in xfs_setfilesize()
153 ip->i_d.di_size = isize; in xfs_setfilesize()
154 xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); in xfs_setfilesize()
[all …]
Dxfs_export.c127 xfs_inode_t *ip; in xfs_nfs_get_inode() local
141 error = xfs_iget(mp, NULL, ino, XFS_IGET_UNTRUSTED, 0, &ip); in xfs_nfs_get_inode()
155 if (ip->i_d.di_gen != generation) { in xfs_nfs_get_inode()
156 IRELE(ip); in xfs_nfs_get_inode()
160 return VFS_I(ip); in xfs_nfs_get_inode()
229 struct xfs_inode *ip = XFS_I(inode); in xfs_fs_nfs_commit_metadata() local
230 struct xfs_mount *mp = ip->i_mount; in xfs_fs_nfs_commit_metadata()
233 xfs_ilock(ip, XFS_ILOCK_SHARED); in xfs_fs_nfs_commit_metadata()
234 if (xfs_ipincount(ip)) in xfs_fs_nfs_commit_metadata()
235 lsn = ip->i_itemp->ili_last_lsn; in xfs_fs_nfs_commit_metadata()
[all …]
Dxfs_filestream.h27 void xfs_filestream_deassociate(struct xfs_inode *ip);
28 xfs_agnumber_t xfs_filestream_lookup_ag(struct xfs_inode *ip);
34 struct xfs_inode *ip) in xfs_inode_is_filestream() argument
36 return (ip->i_mount->m_flags & XFS_MOUNT_FILESTREAMS) || in xfs_inode_is_filestream()
37 (ip->i_d.di_flags & XFS_DIFLAG_FILESTREAM); in xfs_inode_is_filestream()
Dxfs_icache.h56 void xfs_inode_free(struct xfs_inode *ip);
64 void xfs_inode_set_reclaim_tag(struct xfs_inode *ip);
66 void xfs_inode_set_eofblocks_tag(struct xfs_inode *ip);
67 void xfs_inode_clear_eofblocks_tag(struct xfs_inode *ip);
69 int xfs_inode_free_quota_eofblocks(struct xfs_inode *ip);
73 int (*execute)(struct xfs_inode *ip, int flags, void *args),
76 int (*execute)(struct xfs_inode *ip, int flags, void *args),
Dxfs_trace.h216 TP_PROTO(struct xfs_inode *ip, xfs_extnum_t idx,
218 TP_ARGS(ip, idx, r, state, caller_ip),
231 __entry->dev = VFS_I(ip)->i_sb->s_dev;
232 __entry->ino = ip->i_ino;
255 TP_PROTO(struct xfs_inode *ip, xfs_extnum_t idx, int state,
257 TP_ARGS(ip, idx, state, caller_ip),
271 ip->i_afp : &ip->i_df;
275 __entry->dev = VFS_I(ip)->i_sb->s_dev;
276 __entry->ino = ip->i_ino;
300 TP_PROTO(struct xfs_inode *ip, xfs_extnum_t idx, int state, \
[all …]
Dxfs_acl.c127 struct xfs_inode *ip = XFS_I(inode); in xfs_get_acl() local
134 trace_xfs_get_acl(ip); in xfs_get_acl()
151 len = XFS_ACL_MAX_SIZE(ip->i_mount); in xfs_get_acl()
156 error = xfs_attr_get(ip, ea_name, (unsigned char *)xfs_acl, in xfs_get_acl()
170 acl = xfs_acl_from_disk(xfs_acl, len, XFS_ACL_MAX_ENTRIES(ip->i_mount)); in xfs_get_acl()
184 struct xfs_inode *ip = XFS_I(inode); in __xfs_set_acl() local
203 int len = XFS_ACL_MAX_SIZE(ip->i_mount); in __xfs_set_acl()
213 (XFS_ACL_MAX_ENTRIES(ip->i_mount) - acl->a_count); in __xfs_set_acl()
215 error = xfs_attr_set(ip, ea_name, (unsigned char *)xfs_acl, in __xfs_set_acl()
223 error = xfs_attr_remove(ip, ea_name, ATTR_ROOT); in __xfs_set_acl()
/linux-4.4.14/lib/lz4/
Dlz4_compress.c59 const u8 *ip = (u8 *)source; in lz4_compressctx() local
61 const BYTE * const base = ip; in lz4_compressctx()
65 const u8 *anchor = ip; in lz4_compressctx()
66 const u8 *const iend = ip + isize; in lz4_compressctx()
84 hashtable[LZ4_HASH_VALUE(ip)] = ip - base; in lz4_compressctx()
85 ip++; in lz4_compressctx()
86 forwardh = LZ4_HASH_VALUE(ip); in lz4_compressctx()
91 const u8 *forwardip = ip; in lz4_compressctx()
99 ip = forwardip; in lz4_compressctx()
100 forwardip = ip + step; in lz4_compressctx()
[all …]
Dlz4hc_compress.c65 static inline void lz4hc_insert(struct lz4hc_data *hc4, const u8 *ip) in lz4hc_insert() argument
75 while (hc4->nexttoupdate < ip) { in lz4hc_insert()
122 const u8 *ip, const u8 *const matchlimit, const u8 **matchpos) in lz4hc_insertandfindbestmatch() argument
137 lz4hc_insert(hc4, ip); in lz4hc_insertandfindbestmatch()
138 ref = hashtable[HASH_VALUE(ip)] + base; in lz4hc_insertandfindbestmatch()
141 if (ref >= ip-4) { in lz4hc_insertandfindbestmatch()
143 if (A32(ref) == A32(ip)) { in lz4hc_insertandfindbestmatch()
144 delta = (u16)(ip-ref); in lz4hc_insertandfindbestmatch()
145 repl = ml = lz4hc_commonlength(ip + MINMATCH, in lz4hc_insertandfindbestmatch()
152 while ((ref >= ip - MAX_DISTANCE) && nbattempts) { in lz4hc_insertandfindbestmatch()
[all …]
Dlz4_decompress.c57 const BYTE *ip = (const BYTE *) source; in lz4_uncompress() local
68 token = *ip++; in lz4_uncompress()
73 len = *ip++; in lz4_uncompress()
75 len = *ip++; in lz4_uncompress()
91 memcpy(op, ip, length); in lz4_uncompress()
92 ip += length; in lz4_uncompress()
95 LZ4_WILDCOPY(ip, op, cpy); in lz4_uncompress()
96 ip -= (op - cpy); in lz4_uncompress()
100 LZ4_READ_LITTLEENDIAN_16(ref, cpy, ip); in lz4_uncompress()
101 ip += 2; in lz4_uncompress()
[all …]
/linux-4.4.14/fs/jfs/
Dnamei.c80 struct inode *ip = NULL; /* child directory inode */ in jfs_create() local
105 ip = ialloc(dip, mode); in jfs_create()
106 if (IS_ERR(ip)) { in jfs_create()
107 rc = PTR_ERR(ip); in jfs_create()
114 mutex_lock_nested(&JFS_IP(ip)->commit_mutex, COMMIT_MUTEX_CHILD); in jfs_create()
116 rc = jfs_init_acl(tid, ip, dip); in jfs_create()
120 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create()
134 tblk->ino = ip->i_ino; in jfs_create()
135 tblk->u.ixpxd = JFS_IP(ip)->ixpxd; in jfs_create()
138 iplist[1] = ip; in jfs_create()
[all …]
Djfs_extent.c86 extAlloc(struct inode *ip, s64 xlen, s64 pno, xad_t * xp, bool abnr) in extAlloc() argument
88 struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb); in extAlloc()
94 txBeginAnon(ip->i_sb); in extAlloc()
97 mutex_lock(&JFS_IP(ip)->commit_mutex); in extAlloc()
138 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc()
139 mutex_unlock(&JFS_IP(ip)->commit_mutex); in extAlloc()
144 rc = dquot_alloc_block(ip, nxlen); in extAlloc()
146 dbFree(ip, nxaddr, (s64) nxlen); in extAlloc()
147 mutex_unlock(&JFS_IP(ip)->commit_mutex); in extAlloc()
159 rc = xtExtend(0, ip, xoff, (int) nxlen, 0); in extAlloc()
[all …]
Dinode.c197 int jfs_get_block(struct inode *ip, sector_t lblock, in jfs_get_block() argument
205 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block()
211 IWRITE_LOCK(ip, RDWRLOCK_NORMAL); in jfs_get_block()
213 IREAD_LOCK(ip, RDWRLOCK_NORMAL); in jfs_get_block()
215 if (((lblock64 << ip->i_sb->s_blocksize_bits) < ip->i_size) && in jfs_get_block()
216 (!xtLookup(ip, lblock64, xlen, &xflag, &xaddr, &xlen, 0)) && in jfs_get_block()
237 rc = extRecord(ip, &xad); in jfs_get_block()
243 map_bh(bh_result, ip->i_sb, xaddr); in jfs_get_block()
244 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block()
254 if ((rc = extHint(ip, lblock64 << ip->i_sb->s_blocksize_bits, &xad))) in jfs_get_block()
[all …]
Djfs_xtree.c117 static int xtSearch(struct inode *ip, s64 xoff, s64 *next, int *cmpp,
121 struct inode *ip,
124 static int xtSplitPage(tid_t tid, struct inode *ip, struct xtsplit * split,
127 static int xtSplitRoot(tid_t tid, struct inode *ip,
131 static int xtDeleteUp(tid_t tid, struct inode *ip, struct metapage * fmp,
134 static int xtSearchNode(struct inode *ip,
138 static int xtRelink(tid_t tid, struct inode *ip, xtpage_t * fp);
146 int xtLookup(struct inode *ip, s64 lstart, in xtLookup() argument
166 size = ((u64) ip->i_size + (JFS_SBI(ip->i_sb)->bsize - 1)) >> in xtLookup()
167 JFS_SBI(ip->i_sb)->l2bsize; in xtLookup()
[all …]
Djfs_dtree.c152 static int dtSplitUp(tid_t tid, struct inode *ip,
155 static int dtSplitPage(tid_t tid, struct inode *ip, struct dtsplit * split,
158 static int dtExtendPage(tid_t tid, struct inode *ip,
161 static int dtSplitRoot(tid_t tid, struct inode *ip,
164 static int dtDeleteUp(tid_t tid, struct inode *ip, struct metapage * fmp,
167 static int dtRelink(tid_t tid, struct inode *ip, dtpage_t * p);
169 static int dtReadFirst(struct inode *ip, struct btstack * btstack);
171 static int dtReadNext(struct inode *ip,
249 static struct dir_table_slot *find_index(struct inode *ip, u32 index, in find_index() argument
252 struct jfs_inode_info *jfs_ip = JFS_IP(ip); in find_index()
[all …]
Djfs_imap.c304 int diRead(struct inode *ip) in diRead() argument
306 struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb); in diRead()
319 jfs_info("diRead: ino = %ld", ip->i_ino); in diRead()
322 JFS_IP(ip)->ipimap = ipimap; in diRead()
325 iagno = INOTOIAG(ip->i_ino); in diRead()
340 ino = ip->i_ino & (INOSPERIAG - 1); in diRead()
388 if (ip->i_ino != le32_to_cpu(dp->di_number)) { in diRead()
389 jfs_error(ip->i_sb, "i_ino != di_number\n"); in diRead()
395 rc = copy_from_dinode(dp, ip); in diRead()
400 JFS_IP(ip)->agstart = agstart; in diRead()
[all …]
Djfs_incore.h110 #define IREAD_LOCK(ip, subclass) \ argument
111 down_read_nested(&JFS_IP(ip)->rdwrlock, subclass)
112 #define IREAD_UNLOCK(ip) up_read(&JFS_IP(ip)->rdwrlock) argument
113 #define IWRITE_LOCK(ip, subclass) \ argument
114 down_write_nested(&JFS_IP(ip)->rdwrlock, subclass)
115 #define IWRITE_UNLOCK(ip) up_write(&JFS_IP(ip)->rdwrlock) argument
153 #define set_cflag(flag, ip) set_bit(flag, &(JFS_IP(ip)->cflag)) argument
154 #define clear_cflag(flag, ip) clear_bit(flag, &(JFS_IP(ip)->cflag)) argument
155 #define test_cflag(flag, ip) test_bit(flag, &(JFS_IP(ip)->cflag)) argument
156 #define test_and_clear_cflag(flag, ip) \ argument
[all …]
Djfs_xtree.h104 extern int xtLookup(struct inode *ip, s64 lstart, s64 llen,
106 extern void xtInitRoot(tid_t tid, struct inode *ip);
107 extern int xtInsert(tid_t tid, struct inode *ip,
109 extern int xtExtend(tid_t tid, struct inode *ip, s64 xoff, int xlen,
112 extern int xtTailgate(tid_t tid, struct inode *ip,
115 extern int xtUpdate(tid_t tid, struct inode *ip, struct xad *nxad);
116 extern int xtDelete(tid_t tid, struct inode *ip, s64 xoff, int xlen,
118 extern s64 xtTruncate(tid_t tid, struct inode *ip, s64 newsize, int type);
119 extern s64 xtTruncate_pmap(tid_t tid, struct inode *ip, s64 committed_size);
120 extern int xtRelocate(tid_t tid, struct inode *ip,
[all …]
Djfs_discard.c45 void jfs_issue_discard(struct inode *ip, u64 blkno, u64 nblocks) in jfs_issue_discard() argument
47 struct super_block *sb = ip->i_sb; in jfs_issue_discard()
80 int jfs_ioc_trim(struct inode *ip, struct fstrim_range *range) in jfs_ioc_trim() argument
82 struct inode *ipbmap = JFS_SBI(ip->i_sb)->ipbmap; in jfs_ioc_trim()
83 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim()
112 agno = BLKTOAG(start, JFS_SBI(ip->i_sb)); in jfs_ioc_trim()
113 agno_end = BLKTOAG(end, JFS_SBI(ip->i_sb)); in jfs_ioc_trim()
115 trimmed += dbDiscardAG(ip, agno, minlen); in jfs_ioc_trim()
Djfs_txnmgr.c172 static void txAllocPMap(struct inode *ip, struct maplock * maplock,
590 struct tlock *txLock(tid_t tid, struct inode *ip, struct metapage * mp, in txLock() argument
593 struct jfs_inode_info *jfs_ip = JFS_IP(ip); in txLock()
605 if (S_ISDIR(ip->i_mode) && (type & tlckXTREE) && in txLock()
620 jfs_info("txLock: tid:%d ip:0x%p mp:0x%p lid:%d", tid, ip, mp, lid); in txLock()
721 set_cflag(COMMIT_Synclist, ip); in txLock()
727 if (S_ISDIR(ip->i_mode)) in txLock()
733 tlck->ip = ip; in txLock()
834 ip, sizeof(*ip), 0); in txLock()
995 struct tlock *txMaplock(tid_t tid, struct inode *ip, int type) in txMaplock() argument
[all …]
/linux-4.4.14/arch/x86/kernel/
Dftrace.c56 static int ftrace_calc_offset(long ip, long addr) in ftrace_calc_offset() argument
58 return (int)(addr - ip); in ftrace_calc_offset()
61 static unsigned char *ftrace_call_replace(unsigned long ip, unsigned long addr) in ftrace_call_replace() argument
66 calc.offset = ftrace_calc_offset(ip + MCOUNT_INSN_SIZE, addr); in ftrace_call_replace()
81 static unsigned long text_ip_addr(unsigned long ip) in text_ip_addr() argument
91 if (within(ip, (unsigned long)_text, (unsigned long)_etext)) in text_ip_addr()
92 ip = (unsigned long)__va(__pa_symbol(ip)); in text_ip_addr()
94 return ip; in text_ip_addr()
103 ftrace_modify_code_direct(unsigned long ip, unsigned const char *old_code, in ftrace_modify_code_direct() argument
119 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code_direct()
[all …]
Ddumpstack_32.c139 u8 *ip; in show_regs() local
146 ip = (u8 *)regs->ip - code_prologue; in show_regs()
147 if (ip < (u8 *)PAGE_OFFSET || probe_kernel_address(ip, c)) { in show_regs()
149 ip = (u8 *)regs->ip; in show_regs()
152 for (i = 0; i < code_len; i++, ip++) { in show_regs()
153 if (ip < (u8 *)PAGE_OFFSET || in show_regs()
154 probe_kernel_address(ip, c)) { in show_regs()
158 if (ip == (u8 *)regs->ip) in show_regs()
167 int is_valid_bugaddr(unsigned long ip) in is_valid_bugaddr() argument
171 if (ip < PAGE_OFFSET) in is_valid_bugaddr()
[all …]
Ddumpstack_64.c317 u8 *ip; in show_regs() local
325 ip = (u8 *)regs->ip - code_prologue; in show_regs()
326 if (ip < (u8 *)PAGE_OFFSET || probe_kernel_address(ip, c)) { in show_regs()
328 ip = (u8 *)regs->ip; in show_regs()
331 for (i = 0; i < code_len; i++, ip++) { in show_regs()
332 if (ip < (u8 *)PAGE_OFFSET || in show_regs()
333 probe_kernel_address(ip, c)) { in show_regs()
337 if (ip == (u8 *)regs->ip) in show_regs()
346 int is_valid_bugaddr(unsigned long ip) in is_valid_bugaddr() argument
350 if (__copy_from_user(&ud2, (const void __user *) ip, sizeof(ud2))) in is_valid_bugaddr()
Djump_label.c27 static void bug_at(unsigned char *ip, int line) in bug_at() argument
35 ip, ip, ip[0], ip[1], ip[2], ip[3], ip[4], __FILE__, line); in bug_at()
/linux-4.4.14/fs/freevxfs/
Dvxfs_inode.c224 vxfs_iinit(struct inode *ip, struct vxfs_inode_info *vip) in vxfs_iinit() argument
227 ip->i_mode = vxfs_transmod(vip); in vxfs_iinit()
228 i_uid_write(ip, (uid_t)vip->vii_uid); in vxfs_iinit()
229 i_gid_write(ip, (gid_t)vip->vii_gid); in vxfs_iinit()
231 set_nlink(ip, vip->vii_nlink); in vxfs_iinit()
232 ip->i_size = vip->vii_size; in vxfs_iinit()
234 ip->i_atime.tv_sec = vip->vii_atime; in vxfs_iinit()
235 ip->i_ctime.tv_sec = vip->vii_ctime; in vxfs_iinit()
236 ip->i_mtime.tv_sec = vip->vii_mtime; in vxfs_iinit()
237 ip->i_atime.tv_nsec = 0; in vxfs_iinit()
[all …]
Dvxfs_lookup.c65 dir_blocks(struct inode *ip) in dir_blocks() argument
67 u_long bsize = ip->i_sb->s_blocksize; in dir_blocks()
68 return (ip->i_size + bsize - 1) & ~(bsize - 1); in dir_blocks()
107 vxfs_find_entry(struct inode *ip, struct dentry *dp, struct page **ppp) in vxfs_find_entry() argument
110 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry()
114 npages = dir_pages(ip); in vxfs_find_entry()
115 nblocks = dir_blocks(ip); in vxfs_find_entry()
116 pblocks = VXFS_BLOCK_PER_PAGE(ip->i_sb); in vxfs_find_entry()
122 pp = vxfs_get_page(ip->i_mapping, page); in vxfs_find_entry()
201 struct inode *ip = NULL; in vxfs_lookup() local
[all …]
Dvxfs_bmap.c67 vxfs_bmap_ext4(struct inode *ip, long bn) in vxfs_bmap_ext4() argument
69 struct super_block *sb = ip->i_sb; in vxfs_bmap_ext4()
70 struct vxfs_inode_info *vip = VXFS_INO(ip); in vxfs_bmap_ext4()
128 vxfs_bmap_indir(struct inode *ip, long indir, int size, long block) in vxfs_bmap_indir() argument
134 for (i = 0; i < size * VXFS_TYPED_PER_BLOCK(ip->i_sb); i++) { in vxfs_bmap_indir()
138 bp = sb_bread(ip->i_sb, in vxfs_bmap_indir()
139 indir + (i / VXFS_TYPED_PER_BLOCK(ip->i_sb))); in vxfs_bmap_indir()
144 (i % VXFS_TYPED_PER_BLOCK(ip->i_sb)); in vxfs_bmap_indir()
154 pblock = vxfs_bmap_indir(ip, typ->vt_block, in vxfs_bmap_indir()
201 vxfs_bmap_typed(struct inode *ip, long iblock) in vxfs_bmap_typed() argument
[all …]
Dvxfs.h220 #define VXFS_IS_TYPE(ip,type) (((ip)->vii_mode & VXFS_TYPE_MASK) == (type)) argument
244 #define VXFS_IS_ORG(ip,org) ((ip)->vii_orgtype == (org)) argument
245 #define VXFS_ISNONE(ip) VXFS_IS_ORG((ip), VXFS_ORG_NONE) argument
246 #define VXFS_ISEXT4(ip) VXFS_IS_ORG((ip), VXFS_ORG_EXT4) argument
247 #define VXFS_ISIMMED(ip) VXFS_IS_ORG((ip), VXFS_ORG_IMMED) argument
248 #define VXFS_ISTYPED(ip) VXFS_IS_ORG((ip), VXFS_ORG_TYPED) argument
254 #define VXFS_INO(ip) \ argument
255 ((struct vxfs_inode_info *)(ip)->i_private)
Dvxfs_subr.c102 vxfs_bread(struct inode *ip, int block) in vxfs_bread() argument
107 pblock = vxfs_bmap1(ip, block); in vxfs_bread()
108 bp = sb_bread(ip->i_sb, pblock); in vxfs_bread()
129 vxfs_getblk(struct inode *ip, sector_t iblock, in vxfs_getblk() argument
134 pblock = vxfs_bmap1(ip, iblock); in vxfs_getblk()
136 map_bh(bp, ip->i_sb, pblock); in vxfs_getblk()
/linux-4.4.14/drivers/net/ethernet/sgi/
Dioc3-eth.c109 static inline void ioc3_stop(struct ioc3_private *ip);
401 static void ioc3_get_eaddr_nic(struct ioc3_private *ip) in ioc3_get_eaddr_nic() argument
403 struct ioc3 *ioc3 = ip->regs; in ioc3_get_eaddr_nic()
430 priv_netdev(ip)->dev_addr[i - 2] = nic[i]; in ioc3_get_eaddr_nic()
438 static void ioc3_get_eaddr(struct ioc3_private *ip) in ioc3_get_eaddr() argument
440 ioc3_get_eaddr_nic(ip); in ioc3_get_eaddr()
442 printk("Ethernet address is %pM.\n", priv_netdev(ip)->dev_addr); in ioc3_get_eaddr()
447 struct ioc3_private *ip = netdev_priv(dev); in __ioc3_set_mac_address() local
448 struct ioc3 *ioc3 = ip->regs; in __ioc3_set_mac_address()
457 struct ioc3_private *ip = netdev_priv(dev); in ioc3_set_mac_address() local
[all …]
/linux-4.4.14/arch/powerpc/kernel/
Dftrace.c32 ftrace_call_replace(unsigned long ip, unsigned long addr, int link) in ftrace_call_replace() argument
39 op = create_branch((unsigned int *)ip, addr, link ? 1 : 0); in ftrace_call_replace()
45 ftrace_modify_code(unsigned long ip, unsigned int old, unsigned int new) in ftrace_modify_code() argument
60 if (probe_kernel_read(&replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
68 if (patch_instruction((unsigned int *)ip, new)) in ftrace_modify_code()
77 static int test_24bit_addr(unsigned long ip, unsigned long addr) in test_24bit_addr() argument
82 return create_branch((unsigned int *)ip, addr, 0); in test_24bit_addr()
92 static unsigned long find_bl_target(unsigned long ip, unsigned int op) in find_bl_target() argument
101 return ip + (long)offset; in find_bl_target()
111 unsigned long ip = rec->ip; in __ftrace_make_nop() local
[all …]
/linux-4.4.14/lib/lzo/
Dlzo1x_decompress_safe.c22 #define HAVE_IP(x) ((size_t)(ip_end - ip) >= (size_t)(x))
42 const unsigned char *ip; in lzo1x_decompress_safe() local
50 ip = in; in lzo1x_decompress_safe()
54 if (*ip > 17) { in lzo1x_decompress_safe()
55 t = *ip++ - 17; in lzo1x_decompress_safe()
64 t = *ip++; in lzo1x_decompress_safe()
69 const unsigned char *ip_last = ip; in lzo1x_decompress_safe()
71 while (unlikely(*ip == 0)) { in lzo1x_decompress_safe()
72 ip++; in lzo1x_decompress_safe()
75 offset = ip - ip_last; in lzo1x_decompress_safe()
[all …]
Dlzo1x_compress.c25 const unsigned char *ip; in lzo1x_1_do_compress() local
33 ip = in; in lzo1x_1_do_compress()
34 ii = ip; in lzo1x_1_do_compress()
35 ip += ti < 4 ? 4 - ti : 0; in lzo1x_1_do_compress()
42 ip += 1 + ((ip - ii) >> 5); in lzo1x_1_do_compress()
44 if (unlikely(ip >= ip_end)) in lzo1x_1_do_compress()
46 dv = get_unaligned_le32(ip); in lzo1x_1_do_compress()
49 dict[t] = (lzo_dict_t) (ip - in); in lzo1x_1_do_compress()
55 t = ip - ii; in lzo1x_1_do_compress()
95 v = get_unaligned((const u64 *) (ip + m_len)) ^ in lzo1x_1_do_compress()
[all …]
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_inode_fork.h89 #define XFS_IFORK_Q(ip) ((ip)->i_d.di_forkoff != 0) argument
90 #define XFS_IFORK_BOFF(ip) ((int)((ip)->i_d.di_forkoff << 3)) argument
92 #define XFS_IFORK_PTR(ip,w) \ argument
94 &(ip)->i_df : \
95 (ip)->i_afp)
96 #define XFS_IFORK_DSIZE(ip) \ argument
97 (XFS_IFORK_Q(ip) ? \
98 XFS_IFORK_BOFF(ip) : \
99 XFS_LITINO((ip)->i_mount, (ip)->i_d.di_version))
100 #define XFS_IFORK_ASIZE(ip) \ argument
[all …]
Dxfs_bmap.c138 static inline bool xfs_bmap_needs_btree(struct xfs_inode *ip, int whichfork) in xfs_bmap_needs_btree() argument
140 return XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_EXTENTS && in xfs_bmap_needs_btree()
141 XFS_IFORK_NEXTENTS(ip, whichfork) > in xfs_bmap_needs_btree()
142 XFS_IFORK_MAXEXT(ip, whichfork); in xfs_bmap_needs_btree()
148 static inline bool xfs_bmap_wants_extents(struct xfs_inode *ip, int whichfork) in xfs_bmap_wants_extents() argument
150 return XFS_IFORK_FORMAT(ip, whichfork) == XFS_DINODE_FMT_BTREE && in xfs_bmap_wants_extents()
151 XFS_IFORK_NEXTENTS(ip, whichfork) <= in xfs_bmap_wants_extents()
152 XFS_IFORK_MAXEXT(ip, whichfork); in xfs_bmap_wants_extents()
180 xfs_inode_t *ip, /* incore inode pointer */ in xfs_bmap_worst_indlen() argument
188 mp = ip->i_mount; in xfs_bmap_worst_indlen()
[all …]
Dxfs_bmap.h37 struct xfs_inode *ip; /* incore inode pointer */ member
184 void xfs_bmap_trace_exlist(struct xfs_inode *ip, xfs_extnum_t cnt,
186 #define XFS_BMAP_TRACE_EXLIST(ip,c,w) \ argument
187 xfs_bmap_trace_exlist(ip,c,w, _THIS_IP_)
189 #define XFS_BMAP_TRACE_EXLIST(ip,c,w) argument
192 int xfs_bmap_add_attrfork(struct xfs_inode *ip, int size, int rsvd);
193 void xfs_bmap_local_to_extents_empty(struct xfs_inode *ip, int whichfork);
200 int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip,
202 int xfs_bmap_last_before(struct xfs_trans *tp, struct xfs_inode *ip,
204 int xfs_bmap_last_offset(struct xfs_inode *ip, xfs_fileoff_t *unused,
[all …]
Dxfs_inode_fork.c81 xfs_inode_t *ip, in xfs_iformat_fork() argument
92 xfs_warn(ip->i_mount, in xfs_iformat_fork()
94 (unsigned long long)ip->i_ino, in xfs_iformat_fork()
100 ip->i_mount, dip); in xfs_iformat_fork()
104 if (unlikely(dip->di_forkoff > ip->i_mount->m_sb.sb_inodesize)) { in xfs_iformat_fork()
105 xfs_warn(ip->i_mount, "corrupt dinode %Lu, forkoff = 0x%x.", in xfs_iformat_fork()
106 (unsigned long long)ip->i_ino, in xfs_iformat_fork()
109 ip->i_mount, dip); in xfs_iformat_fork()
113 if (unlikely((ip->i_d.di_flags & XFS_DIFLAG_REALTIME) && in xfs_iformat_fork()
114 !ip->i_mount->m_rtdev_targp)) { in xfs_iformat_fork()
[all …]
Dxfs_inode_buf.c296 struct xfs_inode *ip, in xfs_dinode_verify() argument
311 if (be64_to_cpu(dip->di_ino) != ip->i_ino) in xfs_dinode_verify()
350 xfs_inode_t *ip, in xfs_iread() argument
360 error = xfs_imap(mp, tp, ip->i_ino, &ip->i_imap, iget_flags); in xfs_iread()
369 memset(&ip->i_d, 0, sizeof(ip->i_d)); in xfs_iread()
370 ip->i_d.di_magic = XFS_DINODE_MAGIC; in xfs_iread()
371 ip->i_d.di_gen = prandom_u32(); in xfs_iread()
373 ip->i_d.di_version = 3; in xfs_iread()
374 ip->i_d.di_ino = ip->i_ino; in xfs_iread()
375 uuid_copy(&ip->i_d.di_uuid, &mp->m_sb.sb_meta_uuid); in xfs_iread()
[all …]
Dxfs_bmap_btree.c59 struct xfs_inode *ip, in xfs_bmdr_to_bmbt() argument
65 struct xfs_mount *mp = ip->i_mount; in xfs_bmdr_to_bmbt()
74 XFS_BMAP_CRC_MAGIC, 0, 0, ip->i_ino, in xfs_bmdr_to_bmbt()
78 XFS_BMAP_MAGIC, 0, 0, ip->i_ino, in xfs_bmdr_to_bmbt()
406 cur->bc_private.b.ip, cur->bc_private.b.whichfork); in xfs_bmbt_dup_cursor()
425 (dst->bc_private.b.ip->i_d.di_flags & XFS_DIFLAG_REALTIME)); in xfs_bmbt_update_cursor()
503 cur->bc_private.b.ip->i_d.di_nblocks++; in xfs_bmbt_alloc_block()
504 xfs_trans_log_inode(args.tp, cur->bc_private.b.ip, XFS_ILOG_CORE); in xfs_bmbt_alloc_block()
505 xfs_trans_mod_dquot_byino(args.tp, cur->bc_private.b.ip, in xfs_bmbt_alloc_block()
525 struct xfs_inode *ip = cur->bc_private.b.ip; in xfs_bmbt_free_block() local
[all …]
/linux-4.4.14/fs/gfs2/
Dxattr.c75 typedef int (*ea_call_t) (struct gfs2_inode *ip, struct buffer_head *bh,
79 static int ea_foreach_i(struct gfs2_inode *ip, struct buffer_head *bh, in ea_foreach_i() argument
85 if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), bh, GFS2_METATYPE_EA)) in ea_foreach_i()
97 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i()
112 gfs2_consist_inode(ip); in ea_foreach_i()
116 static int ea_foreach(struct gfs2_inode *ip, ea_call_t ea_call, void *data) in ea_foreach() argument
122 error = gfs2_meta_read(ip->i_gl, ip->i_eattr, DIO_WAIT, &bh); in ea_foreach()
126 if (!(ip->i_diskflags & GFS2_DIF_EA_INDIRECT)) { in ea_foreach()
127 error = ea_foreach_i(ip, bh, ea_call, data); in ea_foreach()
131 if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), bh, GFS2_METATYPE_IN)) { in ea_foreach()
[all …]
Dbmap.c56 static int gfs2_unstuffer_page(struct gfs2_inode *ip, struct buffer_head *dibh, in gfs2_unstuffer_page() argument
59 struct inode *inode = &ip->i_inode; in gfs2_unstuffer_page()
94 if (!gfs2_is_jdata(ip)) in gfs2_unstuffer_page()
96 if (!gfs2_is_writeback(ip)) in gfs2_unstuffer_page()
97 gfs2_trans_add_data(ip->i_gl, bh); in gfs2_unstuffer_page()
118 int gfs2_unstuff_dinode(struct gfs2_inode *ip, struct page *page) in gfs2_unstuff_dinode() argument
123 int isdir = gfs2_is_dir(ip); in gfs2_unstuff_dinode()
126 down_write(&ip->i_rw_mutex); in gfs2_unstuff_dinode()
128 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_unstuff_dinode()
132 if (i_size_read(&ip->i_inode)) { in gfs2_unstuff_dinode()
[all …]
Dglops.c207 struct gfs2_inode *ip = gl->gl_object; in inode_go_sync() local
211 if (ip && !S_ISREG(ip->i_inode.i_mode)) in inode_go_sync()
212 ip = NULL; in inode_go_sync()
213 if (ip) { in inode_go_sync()
214 if (test_and_clear_bit(GIF_SW_PAGED, &ip->i_flags)) in inode_go_sync()
215 unmap_shared_mapping_range(ip->i_inode.i_mapping, 0, 0); in inode_go_sync()
216 inode_dio_wait(&ip->i_inode); in inode_go_sync()
225 if (ip) { in inode_go_sync()
226 struct address_space *mapping = ip->i_inode.i_mapping; in inode_go_sync()
255 struct gfs2_inode *ip = gl->gl_object; in inode_go_inval() local
[all …]
Dfile.c58 struct gfs2_inode *ip = GFS2_I(file->f_mapping->host); in gfs2_llseek() local
66 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, in gfs2_llseek()
155 struct gfs2_inode *ip = GFS2_I(inode); in gfs2_get_flags() local
160 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh); in gfs2_get_flags()
165 fsflags = fsflags_cvt(gfs2_to_fsflags, ip->i_diskflags); in gfs2_get_flags()
166 if (!S_ISDIR(inode->i_mode) && ip->i_diskflags & GFS2_DIF_JDATA) in gfs2_get_flags()
178 struct gfs2_inode *ip = GFS2_I(inode); in gfs2_set_inode_flags() local
182 if ((ip->i_eattr == 0) && !is_sxid(inode->i_mode)) in gfs2_set_inode_flags()
184 if (ip->i_diskflags & GFS2_DIF_IMMUTABLE) in gfs2_set_inode_flags()
186 if (ip->i_diskflags & GFS2_DIF_APPENDONLY) in gfs2_set_inode_flags()
[all …]
Dinode.h19 extern int gfs2_internal_read(struct gfs2_inode *ip,
23 static inline int gfs2_is_stuffed(const struct gfs2_inode *ip) in gfs2_is_stuffed() argument
25 return !ip->i_height; in gfs2_is_stuffed()
28 static inline int gfs2_is_jdata(const struct gfs2_inode *ip) in gfs2_is_jdata() argument
30 return ip->i_diskflags & GFS2_DIF_JDATA; in gfs2_is_jdata()
33 static inline int gfs2_is_writeback(const struct gfs2_inode *ip) in gfs2_is_writeback() argument
35 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_is_writeback()
36 return (sdp->sd_args.ar_data == GFS2_DATA_WRITEBACK) && !gfs2_is_jdata(ip); in gfs2_is_writeback()
39 static inline int gfs2_is_ordered(const struct gfs2_inode *ip) in gfs2_is_ordered() argument
41 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_is_ordered()
[all …]
Dinode.c48 struct gfs2_inode *ip = GFS2_I(inode); in iget_test() local
51 if (ip->i_no_addr == data->no_addr) { in iget_test()
64 struct gfs2_inode *ip = GFS2_I(inode); in iget_set() local
70 ip->i_no_addr = data->no_addr; in iget_set()
144 struct gfs2_inode *ip; in gfs2_inode_lookup() local
149 ip = GFS2_I(inode); in gfs2_inode_lookup()
156 ip->i_no_formal_ino = no_formal_ino; in gfs2_inode_lookup()
158 error = gfs2_glock_get(sdp, no_addr, &gfs2_inode_glops, CREATE, &ip->i_gl); in gfs2_inode_lookup()
161 ip->i_gl->gl_object = ip; in gfs2_inode_lookup()
167 set_bit(GIF_INVALID, &ip->i_flags); in gfs2_inode_lookup()
[all …]
Dsuper.c348 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in gfs2_jdesc_check() local
357 if (gfs2_write_alloc_required(ip, 0, size)) { in gfs2_jdesc_check()
358 gfs2_consist_inode(ip); in gfs2_jdesc_check()
401 struct gfs2_inode *ip = GFS2_I(sdp->sd_jdesc->jd_inode); in gfs2_make_fs_rw() local
402 struct gfs2_glock *j_gl = ip->i_gl; in gfs2_make_fs_rw()
645 struct gfs2_inode *ip; in gfs2_lock_fs_check_clean() local
658 ip = GFS2_I(jd->jd_inode); in gfs2_lock_fs_check_clean()
659 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &lfcc->gh); in gfs2_lock_fs_check_clean()
696 void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf) in gfs2_dinode_out() argument
703 str->di_num.no_addr = cpu_to_be64(ip->i_no_addr); in gfs2_dinode_out()
[all …]
Dquota.h21 extern int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
22 extern void gfs2_quota_unhold(struct gfs2_inode *ip);
24 extern int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
25 extern void gfs2_quota_unlock(struct gfs2_inode *ip);
27 extern int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid,
29 extern void gfs2_quota_change(struct gfs2_inode *ip, s64 change,
41 static inline int gfs2_quota_lock_check(struct gfs2_inode *ip, in gfs2_quota_lock_check() argument
44 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_lock_check()
48 ret = gfs2_quota_lock(ip, NO_UID_QUOTA_CHANGE, NO_GID_QUOTA_CHANGE); in gfs2_quota_lock_check()
53 ret = gfs2_quota_check(ip, ip->i_inode.i_uid, ip->i_inode.i_gid, ap); in gfs2_quota_lock_check()
[all …]
Daops.c41 static void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page, in gfs2_page_add_databufs() argument
54 if (gfs2_is_jdata(ip)) in gfs2_page_add_databufs()
56 gfs2_trans_add_data(ip->i_gl, bh); in gfs2_page_add_databufs()
101 struct gfs2_inode *ip = GFS2_I(inode); in gfs2_writepage_common() local
107 if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl))) in gfs2_writepage_common()
157 struct gfs2_inode *ip = GFS2_I(inode); in __gfs2_jdata_writepage() local
166 gfs2_page_add_databufs(ip, page, 0, sdp->sd_vfs->s_blocksize-1); in __gfs2_jdata_writepage()
428 struct gfs2_inode *ip = GFS2_I(mapping->host); in gfs2_jdata_writepages() local
434 gfs2_log_flush(sdp, ip->i_gl, NORMAL_FLUSH); in gfs2_jdata_writepages()
448 static int stuffed_readpage(struct gfs2_inode *ip, struct page *page) in stuffed_readpage() argument
[all …]
Dquota.c371 struct gfs2_inode *ip = GFS2_I(sdp->sd_qc_inode); in bh_get() local
387 bh_map.b_size = 1 << ip->i_inode.i_blkbits; in bh_get()
388 error = gfs2_block_map(&ip->i_inode, block, &bh_map, 0); in bh_get()
391 error = gfs2_meta_read(ip->i_gl, bh_map.b_blocknr, DIO_WAIT, &bh); in bh_get()
530 int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid) in gfs2_quota_hold() argument
532 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_quota_hold()
536 if (ip->i_res == NULL) { in gfs2_quota_hold()
537 error = gfs2_rs_alloc(ip); in gfs2_quota_hold()
542 qd = ip->i_res->rs_qa_qd; in gfs2_quota_hold()
544 if (gfs2_assert_warn(sdp, !ip->i_res->rs_qa_qd_num) || in gfs2_quota_hold()
[all …]
Ddir.c92 int gfs2_dir_get_new_buffer(struct gfs2_inode *ip, u64 block, in gfs2_dir_get_new_buffer() argument
97 bh = gfs2_meta_new(ip->i_gl, block); in gfs2_dir_get_new_buffer()
98 gfs2_trans_add_meta(ip->i_gl, bh); in gfs2_dir_get_new_buffer()
105 static int gfs2_dir_get_existing_buffer(struct gfs2_inode *ip, u64 block, in gfs2_dir_get_existing_buffer() argument
111 error = gfs2_meta_read(ip->i_gl, block, DIO_WAIT, &bh); in gfs2_dir_get_existing_buffer()
114 if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), bh, GFS2_METATYPE_JD)) { in gfs2_dir_get_existing_buffer()
122 static int gfs2_dir_write_stuffed(struct gfs2_inode *ip, const char *buf, in gfs2_dir_write_stuffed() argument
128 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_stuffed()
132 gfs2_trans_add_meta(ip->i_gl, dibh); in gfs2_dir_write_stuffed()
134 if (ip->i_inode.i_size < offset + size) in gfs2_dir_write_stuffed()
[all …]
Drgrp.h42 extern struct gfs2_alloc *gfs2_alloc_get(struct gfs2_inode *ip);
45 extern int gfs2_inplace_reserve(struct gfs2_inode *ip,
47 extern void gfs2_inplace_release(struct gfs2_inode *ip);
49 extern int gfs2_alloc_blocks(struct gfs2_inode *ip, u64 *bn, unsigned int *n,
52 extern int gfs2_rs_alloc(struct gfs2_inode *ip);
54 extern void gfs2_rs_delete(struct gfs2_inode *ip, atomic_t *wcount);
55 extern void __gfs2_free_blocks(struct gfs2_inode *ip, u64 bstart, u32 blen, int meta);
56 extern void gfs2_free_meta(struct gfs2_inode *ip, u64 bstart, u32 blen);
57 extern void gfs2_free_di(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip);
69 extern void gfs2_rlist_add(struct gfs2_inode *ip, struct gfs2_rgrp_list *rlist,
[all …]
Drgrp.c76 const struct gfs2_inode *ip, bool nowrap,
580 void check_and_update_goal(struct gfs2_inode *ip) in check_and_update_goal() argument
582 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in check_and_update_goal()
583 if (!ip->i_goal || gfs2_blk2rgrpd(sdp, ip->i_goal, 1) == NULL) in check_and_update_goal()
584 ip->i_goal = ip->i_no_addr; in check_and_update_goal()
602 int gfs2_rs_alloc(struct gfs2_inode *ip) in gfs2_rs_alloc() argument
606 down_write(&ip->i_rw_mutex); in gfs2_rs_alloc()
607 if (ip->i_res) in gfs2_rs_alloc()
610 ip->i_res = kmem_cache_zalloc(gfs2_rsrv_cachep, GFP_NOFS); in gfs2_rs_alloc()
611 if (!ip->i_res) { in gfs2_rs_alloc()
[all …]
Dexport.c36 struct gfs2_inode *ip = GFS2_I(inode); in gfs2_encode_fh() local
46 fh[0] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh()
47 fh[1] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh()
48 fh[2] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh()
49 fh[3] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh()
55 ip = GFS2_I(parent); in gfs2_encode_fh()
57 fh[4] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh()
58 fh[5] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh()
59 fh[6] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh()
60 fh[7] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh()
[all …]
Dbmap.h29 static inline void gfs2_write_calc_reserv(const struct gfs2_inode *ip, in gfs2_write_calc_reserv() argument
34 const struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_write_calc_reserv()
37 BUG_ON(gfs2_is_dir(ip)); in gfs2_write_calc_reserv()
47 extern int gfs2_unstuff_dinode(struct gfs2_inode *ip, struct page *page);
54 extern int gfs2_truncatei_resume(struct gfs2_inode *ip);
55 extern int gfs2_file_dealloc(struct gfs2_inode *ip);
56 extern int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,
Dlog.h51 static inline void gfs2_ordered_add_inode(struct gfs2_inode *ip) in gfs2_ordered_add_inode() argument
53 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode); in gfs2_ordered_add_inode()
55 if (!test_bit(GIF_ORDERED, &ip->i_flags)) { in gfs2_ordered_add_inode()
57 if (!test_and_set_bit(GIF_ORDERED, &ip->i_flags)) in gfs2_ordered_add_inode()
58 list_add(&ip->i_ordered, &sdp->sd_log_le_ordered); in gfs2_ordered_add_inode()
62 extern void gfs2_ordered_del_inode(struct gfs2_inode *ip);
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_mmap.c48 struct ipath_mmap_info *ip = in ipath_release_mmap_info() local
50 struct ipath_ibdev *dev = to_idev(ip->context->device); in ipath_release_mmap_info()
53 list_del(&ip->pending_mmaps); in ipath_release_mmap_info()
56 vfree(ip->obj); in ipath_release_mmap_info()
57 kfree(ip); in ipath_release_mmap_info()
66 struct ipath_mmap_info *ip = vma->vm_private_data; in ipath_vma_open() local
68 kref_get(&ip->ref); in ipath_vma_open()
73 struct ipath_mmap_info *ip = vma->vm_private_data; in ipath_vma_close() local
75 kref_put(&ip->ref, ipath_release_mmap_info); in ipath_vma_close()
94 struct ipath_mmap_info *ip, *pp; in ipath_mmap() local
[all …]
Dipath_cq.c80 if (cq->ip) { in ipath_cq_enter()
138 if (cq->ip) { in ipath_poll_cq()
252 cq->ip = ipath_create_mmap_info(dev, sz, context, wc); in ipath_create_cq()
253 if (!cq->ip) { in ipath_create_cq()
258 err = ib_copy_to_udata(udata, &cq->ip->offset, in ipath_create_cq()
259 sizeof(cq->ip->offset)); in ipath_create_cq()
265 cq->ip = NULL; in ipath_create_cq()
277 if (cq->ip) { in ipath_create_cq()
279 list_add(&cq->ip->pending_mmaps, &dev->pending_mmaps); in ipath_create_cq()
302 kfree(cq->ip); in ipath_create_cq()
[all …]
Dipath_srq.c153 srq->ip = in ipath_create_srq()
157 if (!srq->ip) { in ipath_create_srq()
162 err = ib_copy_to_udata(udata, &srq->ip->offset, in ipath_create_srq()
163 sizeof(srq->ip->offset)); in ipath_create_srq()
169 srq->ip = NULL; in ipath_create_srq()
189 if (srq->ip) { in ipath_create_srq()
191 list_add(&srq->ip->pending_mmaps, &dev->pending_mmaps); in ipath_create_srq()
199 kfree(srq->ip); in ipath_create_srq()
309 if (srq->ip) { in ipath_modify_srq()
310 struct ipath_mmap_info *ip = srq->ip; in ipath_modify_srq() local
[all …]
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_mmap.c48 struct qib_mmap_info *ip = in qib_release_mmap_info() local
50 struct qib_ibdev *dev = to_idev(ip->context->device); in qib_release_mmap_info()
53 list_del(&ip->pending_mmaps); in qib_release_mmap_info()
56 vfree(ip->obj); in qib_release_mmap_info()
57 kfree(ip); in qib_release_mmap_info()
66 struct qib_mmap_info *ip = vma->vm_private_data; in qib_vma_open() local
68 kref_get(&ip->ref); in qib_vma_open()
73 struct qib_mmap_info *ip = vma->vm_private_data; in qib_vma_close() local
75 kref_put(&ip->ref, qib_release_mmap_info); in qib_vma_close()
94 struct qib_mmap_info *ip, *pp; in qib_mmap() local
[all …]
Dqib_srq.c150 srq->ip = in qib_create_srq()
153 if (!srq->ip) { in qib_create_srq()
158 err = ib_copy_to_udata(udata, &srq->ip->offset, in qib_create_srq()
159 sizeof(srq->ip->offset)); in qib_create_srq()
165 srq->ip = NULL; in qib_create_srq()
185 if (srq->ip) { in qib_create_srq()
187 list_add(&srq->ip->pending_mmaps, &dev->pending_mmaps); in qib_create_srq()
195 kfree(srq->ip); in qib_create_srq()
305 if (srq->ip) { in qib_modify_srq()
306 struct qib_mmap_info *ip = srq->ip; in qib_modify_srq() local
[all …]
Dqib_cq.c83 if (cq->ip) { in qib_cq_enter()
145 if (cq->ip) { in qib_poll_cq()
267 cq->ip = qib_create_mmap_info(dev, sz, context, wc); in qib_create_cq()
268 if (!cq->ip) { in qib_create_cq()
273 err = ib_copy_to_udata(udata, &cq->ip->offset, in qib_create_cq()
274 sizeof(cq->ip->offset)); in qib_create_cq()
280 cq->ip = NULL; in qib_create_cq()
292 if (cq->ip) { in qib_create_cq()
294 list_add(&cq->ip->pending_mmaps, &dev->pending_mmaps); in qib_create_cq()
318 kfree(cq->ip); in qib_create_cq()
[all …]
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dmmap.c66 struct hfi1_mmap_info *ip = in hfi1_release_mmap_info() local
68 struct hfi1_ibdev *dev = to_idev(ip->context->device); in hfi1_release_mmap_info()
71 list_del(&ip->pending_mmaps); in hfi1_release_mmap_info()
74 vfree(ip->obj); in hfi1_release_mmap_info()
75 kfree(ip); in hfi1_release_mmap_info()
84 struct hfi1_mmap_info *ip = vma->vm_private_data; in hfi1_vma_open() local
86 kref_get(&ip->ref); in hfi1_vma_open()
91 struct hfi1_mmap_info *ip = vma->vm_private_data; in hfi1_vma_close() local
93 kref_put(&ip->ref, hfi1_release_mmap_info); in hfi1_vma_close()
112 struct hfi1_mmap_info *ip, *pp; in hfi1_mmap() local
[all …]
Dsrq.c167 srq->ip = in hfi1_create_srq()
170 if (!srq->ip) { in hfi1_create_srq()
175 err = ib_copy_to_udata(udata, &srq->ip->offset, in hfi1_create_srq()
176 sizeof(srq->ip->offset)); in hfi1_create_srq()
182 srq->ip = NULL; in hfi1_create_srq()
202 if (srq->ip) { in hfi1_create_srq()
204 list_add(&srq->ip->pending_mmaps, &dev->pending_mmaps); in hfi1_create_srq()
212 kfree(srq->ip); in hfi1_create_srq()
322 if (srq->ip) { in hfi1_modify_srq()
323 struct hfi1_mmap_info *ip = srq->ip; in hfi1_modify_srq() local
[all …]
Dcq.c99 if (cq->ip) { in hfi1_cq_enter()
161 if (cq->ip) { in hfi1_poll_cq()
280 cq->ip = hfi1_create_mmap_info(dev, sz, context, wc); in hfi1_create_cq()
281 if (!cq->ip) { in hfi1_create_cq()
286 err = ib_copy_to_udata(udata, &cq->ip->offset, in hfi1_create_cq()
287 sizeof(cq->ip->offset)); in hfi1_create_cq()
293 cq->ip = NULL; in hfi1_create_cq()
305 if (cq->ip) { in hfi1_create_cq()
307 list_add(&cq->ip->pending_mmaps, &dev->pending_mmaps); in hfi1_create_cq()
331 kfree(cq->ip); in hfi1_create_cq()
[all …]
/linux-4.4.14/arch/sh/kernel/
Dftrace.c47 static unsigned char *ftrace_nop_replace(unsigned long ip) in ftrace_nop_replace() argument
49 __raw_writel(ip + MCOUNT_INSN_SIZE, ftrace_nop); in ftrace_nop_replace()
53 static unsigned char *ftrace_call_replace(unsigned long ip, unsigned long addr) in ftrace_call_replace() argument
185 do_ftrace_mod_code(unsigned long ip, void *new_code) in do_ftrace_mod_code() argument
187 mod_code_ip = (void *)ip; in do_ftrace_mod_code()
209 static int ftrace_modify_code(unsigned long ip, unsigned char *old_code, in ftrace_modify_code() argument
225 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
233 if (do_ftrace_mod_code(ip, new_code)) in ftrace_modify_code()
236 flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); in ftrace_modify_code()
243 unsigned long ip = (unsigned long)(&ftrace_call) + MCOUNT_INSN_OFFSET; in ftrace_update_ftrace_func() local
[all …]
/linux-4.4.14/arch/unicore32/kernel/
Dhibernate_asm.S49 movl ip, #128
52 sub.a ip, ip, #1
75 ldw ip, 1f
76 add ip, ip, #SWSUSP_FPSTATE
77 lfm.w (f0 - f7 ), [ip]+
78 lfm.w (f8 - f15), [ip]+
79 lfm.w (f16 - f23), [ip]+
80 lfm.w (f24 - f31), [ip]+
81 ldw r4, [ip]
85 ldw ip, 1f
[all …]
Dentry.S368 cff ip, s31
369 cand.a ip, #0x08000000 @ FPU execption traps?
372 ldw ip, [sp+], #S_PC
373 add ip, ip, #4
374 stw ip, [sp+], #S_PC
498 add ip, r1, #TI_CPU_SAVE
499 stm.w (r4 - r15), [ip]+
500 stm.w (r16 - r27, sp, lr), [ip]+
503 add ip, r1, #TI_FPSTATE
504 sfm.w (f0 - f7 ), [ip]+
[all …]
/linux-4.4.14/arch/arm/boot/compressed/
Dll_char_wr.S38 @ Smashable regs: {r0 - r3}, [r4 - r7], (r8 - fp), [ip], (sp), [lr], (pc)
47 adr ip, LC0
48 ldmia ip, {r3, r4, r5, r6, lr}
49 sub ip, ip, r3
50 add r6, r6, ip
51 add lr, lr, ip
52 ldr r4, [r4, ip]
53 ldr r5, [r5, ip]
65 @ Smashable regs: {r0 - r3}, [r4], {r5 - r7}, (r8 - fp), [ip], (sp), {lr}, (pc)
83 @ Smashable regs: {r0 - r3}, [r4], {r5 - r7}, (r8 - fp), [ip], (sp), {lr}, (pc)
[all …]
/linux-4.4.14/arch/mips/kernel/
Dftrace.c47 static inline int in_kernel_space(unsigned long ip) in in_kernel_space() argument
49 if (ip >= (unsigned long)_stext && in in_kernel_space()
50 ip <= (unsigned long)_etext) in in_kernel_space()
90 static int ftrace_modify_code(unsigned long ip, unsigned int new_code) in ftrace_modify_code() argument
96 safe_store_code(new_code, ip, faulted); in ftrace_modify_code()
103 flush_icache_range(ip, ip + 8); in ftrace_modify_code()
110 static int ftrace_modify_code_2(unsigned long ip, unsigned int new_code1, in ftrace_modify_code_2() argument
116 safe_store_code(new_code1, ip, faulted); in ftrace_modify_code_2()
120 ip += 4; in ftrace_modify_code_2()
121 safe_store_code(new_code2, ip, faulted); in ftrace_modify_code_2()
[all …]
Dprocess.c194 static inline int is_ra_save_ins(union mips_instruction *ip) in is_ra_save_ins() argument
208 if (mm_insn_16bit(ip->halfword[0])) { in is_ra_save_ins()
209 mmi.word = (ip->halfword[0] << 16); in is_ra_save_ins()
216 mmi.halfword[0] = ip->halfword[1]; in is_ra_save_ins()
217 mmi.halfword[1] = ip->halfword[0]; in is_ra_save_ins()
228 return (ip->i_format.opcode == sw_op || ip->i_format.opcode == sd_op) && in is_ra_save_ins()
229 ip->i_format.rs == 29 && in is_ra_save_ins()
230 ip->i_format.rt == 31; in is_ra_save_ins()
234 static inline int is_jump_ins(union mips_instruction *ip) in is_jump_ins() argument
247 mmi.word = (ip->halfword[0] << 16); in is_jump_ins()
[all …]
/linux-4.4.14/arch/sparc/kernel/
Dftrace.c14 static u32 ftrace_call_replace(unsigned long ip, unsigned long addr) in ftrace_call_replace() argument
19 off = ((s32)addr - (s32)ip); in ftrace_call_replace()
25 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() argument
46 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip) in ftrace_modify_code()
57 unsigned long ip = rec->ip; in ftrace_make_nop() local
60 old = ftrace_call_replace(ip, addr); in ftrace_make_nop()
62 return ftrace_modify_code(ip, old, new); in ftrace_make_nop()
67 unsigned long ip = rec->ip; in ftrace_make_call() local
71 new = ftrace_call_replace(ip, addr); in ftrace_make_call()
72 return ftrace_modify_code(ip, old, new); in ftrace_make_call()
[all …]
/linux-4.4.14/net/netfilter/ipset/
Dip_set_hash_ip.c46 __be32 ip; member
56 return e1->ip == e2->ip; in hash_ip4_data_equal()
62 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, e->ip)) in hash_ip4_data_list()
73 next->ip = e->ip; in hash_ip4_data_next()
89 __be32 ip; in hash_ip4_kadt() local
91 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &ip); in hash_ip4_kadt()
92 ip &= ip_set_netmask(h->netmask); in hash_ip4_kadt()
93 if (ip == 0) in hash_ip4_kadt()
96 e.ip = ip; in hash_ip4_kadt()
108 u32 ip = 0, ip_to = 0, hosts; in hash_ip4_uadt() local
[all …]
Dip_set_hash_netnet.c45 __be32 ip[2]; member
89 elem->ip[1] = orig->ip[1]; in hash_netnet4_data_reset_elem()
96 elem->ip[1] &= ip_set_netmask(cidr); in hash_netnet4_data_netmask()
99 elem->ip[0] &= ip_set_netmask(cidr); in hash_netnet4_data_netmask()
110 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip[0]) || in hash_netnet4_data_list()
111 nla_put_ipaddr4(skb, IPSET_ATTR_IP2, data->ip[1]) || in hash_netnet4_data_list()
156 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netnet4_kadt()
157 ip4addrptr(skb, opt->flags & IPSET_DIM_TWO_SRC, &e.ip[1]); in hash_netnet4_kadt()
158 e.ip[0] &= ip_set_netmask(e.cidr[0]); in hash_netnet4_kadt()
159 e.ip[1] &= ip_set_netmask(e.cidr[1]); in hash_netnet4_kadt()
[all …]
Dip_set_hash_netportnet.c48 __be32 ip[2]; member
96 elem->ip[1] = orig->ip[1]; in hash_netportnet4_data_reset_elem()
104 elem->ip[1] &= ip_set_netmask(cidr); in hash_netportnet4_data_netmask()
107 elem->ip[0] &= ip_set_netmask(cidr); in hash_netportnet4_data_netmask()
118 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip[0]) || in hash_netportnet4_data_list()
119 nla_put_ipaddr4(skb, IPSET_ATTR_IP2, data->ip[1]) || in hash_netportnet4_data_list()
171 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netportnet4_kadt()
172 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip[1]); in hash_netportnet4_kadt()
173 e.ip[0] &= ip_set_netmask(e.cidr[0]); in hash_netportnet4_kadt()
174 e.ip[1] &= ip_set_netmask(e.cidr[1]); in hash_netportnet4_kadt()
[all …]
Dip_set_hash_net.c46 __be32 ip; member
59 return ip1->ip == ip2->ip && in hash_net4_data_equal()
84 elem->ip &= ip_set_netmask(cidr); in hash_net4_data_netmask()
93 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) || in hash_net4_data_list()
108 next->ip = d->ip; in hash_net4_data_next()
132 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_net4_kadt()
133 e.ip &= ip_set_netmask(e.cidr); in hash_net4_kadt()
146 u32 ip = 0, ip_to = 0, last; in hash_net4_uadt() local
156 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_net4_uadt()
178 e.ip = htonl(ip & ip_set_hostmask(e.cidr)); in hash_net4_uadt()
[all …]
Dip_set_hash_ipport.c46 __be32 ip; member
59 return ip1->ip == ip2->ip && in hash_ipport4_data_equal()
68 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) || in hash_ipport4_data_list()
82 next->ip = d->ip; in hash_ipport4_data_next()
96 struct hash_ipport4_elem e = { .ip = 0 }; in hash_ipport4_kadt()
103 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipport4_kadt()
113 struct hash_ipport4_elem e = { .ip = 0 }; in hash_ipport4_uadt()
115 u32 ip, ip_to = 0, p = 0, port, port_to; in hash_ipport4_uadt() local
127 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipport4_uadt()
157 ip_to = ip = ntohl(e.ip); in hash_ipport4_uadt()
[all …]
Dip_set_hash_ipmark.c44 __be32 ip; member
55 return ip1->ip == ip2->ip && in hash_ipmark4_data_equal()
63 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) || in hash_ipmark4_data_list()
76 next->ip = d->ip; in hash_ipmark4_data_next()
96 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipmark4_kadt()
108 u32 ip, ip_to = 0; in hash_ipmark4_uadt() local
118 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipmark4_uadt()
135 ip_to = ip = ntohl(e.ip); in hash_ipmark4_uadt()
140 if (ip > ip_to) in hash_ipmark4_uadt()
141 swap(ip, ip_to); in hash_ipmark4_uadt()
[all …]
Dip_set_hash_ipportip.c46 __be32 ip; member
58 return ip1->ip == ip2->ip && in hash_ipportip4_data_equal()
68 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) || in hash_ipportip4_data_list()
83 next->ip = d->ip; in hash_ipportip4_data_next()
98 struct hash_ipportip4_elem e = { .ip = 0 }; in hash_ipportip4_kadt()
105 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipportip4_kadt()
116 struct hash_ipportip4_elem e = { .ip = 0 }; in hash_ipportip4_uadt()
118 u32 ip, ip_to = 0, p = 0, port, port_to; in hash_ipportip4_uadt() local
130 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipportip4_uadt()
164 ip_to = ip = ntohl(e.ip); in hash_ipportip4_uadt()
[all …]
Dip_set_hash_netport.c55 __be32 ip; member
69 return ip1->ip == ip2->ip && in hash_netport4_data_equal()
96 elem->ip &= ip_set_netmask(cidr); in hash_netport4_data_netmask()
106 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) || in hash_netport4_data_list()
123 next->ip = d->ip; in hash_netport4_data_next()
150 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_netport4_kadt()
151 e.ip &= ip_set_netmask(e.cidr + 1); in hash_netport4_kadt()
164 u32 port, port_to, p = 0, ip = 0, ip_to = 0, last; in hash_netport4_uadt() local
178 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_netport4_uadt()
218 e.ip = htonl(ip & ip_set_hostmask(e.cidr + 1)); in hash_netport4_uadt()
[all …]
Dip_set_hash_netiface.c50 __be32 ip; member
59 __be32 ip; member
74 return ip1->ip == ip2->ip && in hash_netiface4_data_equal()
102 elem->ip &= ip_set_netmask(cidr); in hash_netiface4_data_netmask()
114 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) || in hash_netiface4_data_list()
130 next->ip = d->ip; in hash_netiface4_data_next()
172 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_netiface4_kadt()
173 e.ip &= ip_set_netmask(e.cidr); in hash_netiface4_kadt()
205 u32 ip = 0, ip_to = 0, last; in hash_netiface4_uadt() local
216 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_netiface4_uadt()
[all …]
Dip_set_hash_ipportnet.c56 __be32 ip; member
71 return ip1->ip == ip2->ip && in hash_ipportnet4_data_equal()
109 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) || in hash_ipportnet4_data_list()
127 next->ip = d->ip; in hash_ipportnet4_data_next()
155 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip); in hash_ipportnet4_kadt()
170 u32 ip = 0, ip_to = 0, p = 0, port, port_to; in hash_ipportnet4_uadt() local
185 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_ipportnet4_uadt()
230 e.ip = htonl(ip); in hash_ipportnet4_uadt()
237 ip_to = ip; in hash_ipportnet4_uadt()
242 if (ip > ip_to) in hash_ipportnet4_uadt()
[all …]
Dip_set_bitmap_ip.c61 ip_to_id(const struct bitmap_ip *m, u32 ip) in ip_to_id() argument
63 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip) / m->hosts; in ip_to_id()
120 u32 ip; in bitmap_ip_kadt() local
122 ip = ntohl(ip4addr(skb, opt->flags & IPSET_DIM_ONE_SRC)); in bitmap_ip_kadt()
123 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_kadt()
126 e.id = ip_to_id(map, ip); in bitmap_ip_kadt()
137 u32 ip = 0, ip_to = 0; in bitmap_ip_uadt() local
148 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in bitmap_ip_uadt()
156 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ip_uadt()
160 e.id = ip_to_id(map, ip); in bitmap_ip_uadt()
[all …]
/linux-4.4.14/sound/oss/
Dvidc_fill.S20 mov ip, #0xff00
25 and r4, ip, r4, lsl #8
33 mov ip, #0xff00
37 and r5, r4, ip
38 and r4, ip, r4, lsl #8
47 mov ip, #0xff00
51 and r4, ip, r4, lsl #8
59 mov ip, #0xff00
63 and r5, r4, ip
64 and r4, ip, r4, lsl #8
[all …]
/linux-4.4.14/arch/mips/oprofile/
Dbacktrace.c31 static inline int is_ra_save_ins(union mips_instruction *ip) in is_ra_save_ins() argument
34 return (ip->i_format.opcode == sw_op || ip->i_format.opcode == sd_op) in is_ra_save_ins()
35 && ip->i_format.rs == 29 && ip->i_format.rt == 31; in is_ra_save_ins()
38 static inline int is_sp_move_ins(union mips_instruction *ip) in is_sp_move_ins() argument
41 if (ip->i_format.rs != 29 || ip->i_format.rt != 29) in is_sp_move_ins()
43 if (ip->i_format.opcode == addiu_op || ip->i_format.opcode == daddiu_op) in is_sp_move_ins()
52 static inline int is_end_of_function_marker(union mips_instruction *ip) in is_end_of_function_marker() argument
55 if (ip->r_format.func == jr_op && ip->r_format.rs == 31) in is_end_of_function_marker()
58 if (ip->i_format.opcode == lui_op && ip->i_format.rt == 28) in is_end_of_function_marker()
84 union mips_instruction ip; in unwind_user_frame() local
[all …]
/linux-4.4.14/arch/ia64/kernel/
Dftrace.c81 static unsigned char *ftrace_call_replace(unsigned long ip, unsigned long addr) in ftrace_call_replace() argument
84 unsigned long offset = addr - (ip + 0x10); in ftrace_call_replace()
94 ftrace_modify_code(unsigned long ip, unsigned char *old_code, in ftrace_modify_code() argument
113 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
122 if (probe_kernel_write(((void *)ip), new_code, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
124 flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); in ftrace_modify_code()
132 unsigned long ip = rec->ip; in ftrace_make_nop_check() local
134 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_make_nop_check()
171 return ftrace_modify_code(rec->ip, NULL, new, 0); in ftrace_make_nop()
176 unsigned long ip = rec->ip; in ftrace_make_call() local
[all …]
Dpatch.c103 u64 ip; in ia64_patch_vtop() local
106 ip = (u64) offp + *offp; in ia64_patch_vtop()
109 ia64_patch_imm64(ip, ia64_tpa(get_imm64(ip))); in ia64_patch_vtop()
110 ia64_fc((void *) ip); in ia64_patch_vtop()
126 u64 ip, *b; in ia64_patch_rse() local
129 ip = (u64) offp + *offp; in ia64_patch_rse()
131 b = (u64 *)(ip & -16); in ia64_patch_rse()
133 ia64_fc((void *) ip); in ia64_patch_rse()
176 u64 ip; in patch_fsyscall_table() local
179 ip = (u64) ia64_imva((char *) offp + *offp); in patch_fsyscall_table()
[all …]
Dstacktrace.c15 unsigned long ip; in ia64_do_save_stack() local
20 unw_get_ip(info, &ip); in ia64_do_save_stack()
21 if (ip == 0) in ia64_do_save_stack()
24 trace->entries[trace->nr_entries++] = ip; in ia64_do_save_stack()
/linux-4.4.14/drivers/video/fbdev/
Dpmag-aa-fb.c229 struct aafb_info *ip = (struct aafb_info *)info; in aafb_get_fix() local
233 fix->smem_start = ip->fb_start; in aafb_get_fix()
234 fix->smem_len = ip->fb_size; in aafb_get_fix()
307 struct aafb_info *ip = (struct aafb_info *)info; in aafb_switch() local
308 struct display *old = (currcon < 0) ? &ip->disp : (fb_display + currcon); in aafb_switch()
309 struct display *new = (con < 0) ? &ip->disp : (fb_display + con); in aafb_switch()
316 aafb_set_disp(new, con, ip); in aafb_switch()
380 struct aafb_info *ip = (struct aafb_info *)info; in aafb_update_var() local
381 struct display *disp = (con < 0) ? &ip->disp : (fb_display + con); in aafb_update_var()
384 aafbcon_cursor(disp, CM_ERASE, ip->cursor.x, ip->cursor.y); in aafb_update_var()
[all …]
/linux-4.4.14/include/trace/events/
Dmodule.h71 TP_PROTO(struct module *mod, unsigned long ip),
73 TP_ARGS(mod, ip),
76 __field( unsigned long, ip )
82 __entry->ip = ip;
88 __get_str(name), (void *)__entry->ip, __entry->refcnt)
93 TP_PROTO(struct module *mod, unsigned long ip),
95 TP_ARGS(mod, ip)
100 TP_PROTO(struct module *mod, unsigned long ip),
102 TP_ARGS(mod, ip)
108 TP_PROTO(char *name, bool wait, unsigned long ip),
[all …]
Dlock.h16 struct lockdep_map *next_lock, unsigned long ip),
18 TP_ARGS(lock, subclass, trylock, read, check, next_lock, ip),
40 TP_PROTO(struct lockdep_map *lock, unsigned long ip),
42 TP_ARGS(lock, ip),
59 TP_PROTO(struct lockdep_map *lock, unsigned long ip),
61 TP_ARGS(lock, ip)
68 TP_PROTO(struct lockdep_map *lock, unsigned long ip),
70 TP_ARGS(lock, ip)
75 TP_PROTO(struct lockdep_map *lock, unsigned long ip),
77 TP_ARGS(lock, ip)
Drpm.h78 TP_PROTO(struct device *dev, unsigned long ip, int ret),
79 TP_ARGS(dev, ip, ret),
83 __field( unsigned long, ip )
89 __entry->ip = ip;
93 TP_printk("%pS:%s ret=%d", (void *)__entry->ip, __get_str(name),
/linux-4.4.14/arch/arm/mm/
Dproc-arm1020.S98 mov ip, #0
99 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
100 mcr p15, 0, ip, c7, c10, 4 @ drain WB
102 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
104 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
105 bic ip, ip, #0x000f @ ............wcam
106 bic ip, ip, #0x1100 @ ...i...s........
107 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
152 mov ip, #0
155 mcr p15, 0, ip, c7, c10, 4 @ drain WB
[all …]
Dproc-arm1020e.S98 mov ip, #0
99 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
100 mcr p15, 0, ip, c7, c10, 4 @ drain WB
102 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
104 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
105 bic ip, ip, #0x000f @ ............wcam
106 bic ip, ip, #0x1100 @ ...i...s........
107 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
152 mov ip, #0
155 mcr p15, 0, ip, c7, c10, 4 @ drain WB
[all …]
Dproc-fa526.S62 mov ip, #0
63 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
64 mcr p15, 0, ip, c7, c10, 4 @ drain WB
66 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
68 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
69 bic ip, ip, #0x000f @ ............wcam
70 bic ip, ip, #0x1100 @ ...i...s........
71 bic ip, ip, #0x0800 @ BTB off
72 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
107 mov ip, #0
[all …]
Dproc-arm1026.S89 mov ip, #0
90 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
91 mcr p15, 0, ip, c7, c10, 4 @ drain WB
93 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
95 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
96 bic ip, ip, #0x000f @ ............wcam
97 bic ip, ip, #0x1100 @ ...i...s........
98 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
143 mov ip, #0
151 mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache
[all …]
Dproc-arm1022.S89 mov ip, #0
90 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
91 mcr p15, 0, ip, c7, c10, 4 @ drain WB
93 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
95 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
96 bic ip, ip, #0x000f @ ............wcam
97 bic ip, ip, #0x1100 @ ...i...s........
98 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
143 mov ip, #0
156 mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache
[all …]
Dproc-mohawk.S74 mov ip, #0
75 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
76 mcr p15, 0, ip, c7, c10, 4 @ drain WB
77 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
78 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
79 bic ip, ip, #0x0007 @ .............cam
80 bic ip, ip, #0x1100 @ ...i...s........
81 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
125 mov ip, #0
127 mcr p15, 0, ip, c7, c14, 0 @ clean & invalidate all D cache
[all …]
Dproc-sa1100.S56 mcr p15, 0, ip, c15, c2, 2 @ Disable clock switching
75 mov ip, #0
76 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
77 mcr p15, 0, ip, c7, c10, 4 @ drain WB
79 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
81 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
82 bic ip, ip, #0x000f @ ............wcam
83 bic ip, ip, #0x1100 @ ...i...s........
84 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
150 mcr p15, 0, ip, c9, c0, 0 @ invalidate RB
[all …]
Dproc-arm920.S90 mov ip, #0
91 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
92 mcr p15, 0, ip, c7, c10, 4 @ drain WB
94 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
96 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
97 bic ip, ip, #0x000f @ ............wcam
98 bic ip, ip, #0x1100 @ ...i...s........
99 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
142 mov ip, #0
152 mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache
[all …]
Dproc-arm925.S114 mov ip, #0xff000000
115 orr ip, ip, #0x00fe0000
116 orr ip, ip, #0x0000ce00
118 strh r4, [ip, #0x10]
122 mov ip, #0
123 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
124 mcr p15, 0, ip, c7, c10, 4 @ drain WB
126 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
128 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
129 bic ip, ip, #0x000f @ ............wcam
[all …]
Dproc-arm926.S82 mov ip, #0
83 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
84 mcr p15, 0, ip, c7, c10, 4 @ drain WB
86 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
88 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
89 bic ip, ip, #0x000f @ ............wcam
90 bic ip, ip, #0x1100 @ ...i...s........
91 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
108 orr ip, r3, #PSR_F_BIT @ is disabled
109 msr cpsr_c, ip
[all …]
Dproc-arm940.S53 mov ip, #0
54 mcr p15, 0, ip, c7, c5, 0 @ flush I cache
55 mcr p15, 0, ip, c7, c6, 0 @ flush D cache
56 mcr p15, 0, ip, c7, c10, 4 @ drain WB
57 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
58 bic ip, ip, #0x00000005 @ .............c.p
59 bic ip, ip, #0x00001000 @ i-cache
60 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
110 mov ip, #0
112 mcr p15, 0, ip, c7, c6, 0 @ flush D cache
[all …]
Dproc-arm922.S92 mov ip, #0
93 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
94 mcr p15, 0, ip, c7, c10, 4 @ drain WB
96 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
98 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
99 bic ip, ip, #0x000f @ ............wcam
100 bic ip, ip, #0x1100 @ ...i...s........
101 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
144 mov ip, #0
154 mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache
[all …]
Dabort-ev7.S18 uaccess_disable ip @ disable userspace access
36 mrc p15, 0, ip, c7, c4, 0 @ Read the PAR
37 and r3, ip, #0x7b @ On translation fault
41 and ip, ip, #0x7e
42 orr r1, r1, ip, LSR #1
Dproc-sa110.S67 mov ip, #0
68 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
69 mcr p15, 0, ip, c7, c10, 4 @ drain WB
71 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
73 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
74 bic ip, ip, #0x000f @ ............wcam
75 bic ip, ip, #0x1100 @ ...i...s........
76 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
95 mcr p15, 0, ip, c15, c2, 2 @ disable clock switching
141 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
Dproc-xsc3.S116 mcr p15, 0, ip, c7, c7, 0 @ invalidate L1 caches and BTB
121 mcr p15, 0, ip, c8, c7, 0 @ invalidate I and D TLBs
172 mov ip, #0
176 mcrne p15, 0, ip, c7, c5, 0 @ invalidate L1 I cache and BTB
177 mcrne p15, 0, ip, c7, c10, 4 @ data write barrier
178 mcrne p15, 0, ip, c7, c5, 4 @ prefetch flush
193 mov ip, #0
205 mcrne p15, 0, ip, c7, c5, 6 @ invalidate BTB
206 mcrne p15, 0, ip, c7, c10, 4 @ data write barrier
207 mcrne p15, 0, ip, c7, c5, 4 @ prefetch flush
[all …]
Dproc-arm720.S106 mov ip, #0
107 mcr p15, 0, ip, c7, c7, 0 @ invalidate cache
109 mcr p15, 0, ip, c8, c7, 0 @ flush TLB (v4)
111 mrc p15, 0, ip, c1, c0, 0 @ get ctrl register
112 bic ip, ip, #0x000f @ ............wcam
113 bic ip, ip, #0x2100 @ ..v....s........
114 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
Dproc-feroceon.S103 mov ip, #0
104 mcr p15, 0, ip, c7, c7, 0 @ invalidate I,D caches
105 mcr p15, 0, ip, c7, c10, 4 @ drain WB
107 mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs
109 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
110 bic ip, ip, #0x000f @ ............wcam
111 bic ip, ip, #0x1100 @ ...i...s........
112 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
161 1: orr ip, r1, r3
162 2: mcr p15, 0, ip, c7, c14, 2 @ clean + invalidate D set/way
[all …]
Dcache-fa.S66 mov ip, #0
69 mcr p15, 0, ip, c7, c14, 0 @ clean/invalidate D cache
71 mcrne p15, 0, ip, c7, c5, 0 @ invalidate I cache
72 mcrne p15, 0, ip, c7, c5, 6 @ invalidate BTB
73 mcrne p15, 0, ip, c7, c10, 4 @ drain write buffer
74 mcrne p15, 0, ip, c7, c5, 4 @ prefetch flush
88 mov ip, #0
100 mcrne p15, 0, ip, c7, c5, 6 @ invalidate BTB
101 mcrne p15, 0, ip, c7, c10, 4 @ data write barrier
102 mcrne p15, 0, ip, c7, c5, 4 @ prefetch flush
Dproc-arm946.S60 mov ip, #0
61 mcr p15, 0, ip, c7, c5, 0 @ flush I cache
62 mcr p15, 0, ip, c7, c6, 0 @ flush D cache
63 mcr p15, 0, ip, c7, c10, 4 @ drain WB
64 mrc p15, 0, ip, c1, c0, 0 @ ctrl register
65 bic ip, ip, #0x00000005 @ .............c.p
66 bic ip, ip, #0x00001000 @ i-cache
67 mcr p15, 0, ip, c1, c0, 0 @ ctrl register
104 mov ip, #0
107 mcr p15, 0, ip, c7, c6, 0 @ flush D cache
[all …]
/linux-4.4.14/arch/s390/kernel/
Dftrace.c109 if (probe_kernel_read(&old, (void *) rec->ip, sizeof(old))) in ftrace_make_nop()
127 ftrace_generate_call_insn(&orig, rec->ip); in ftrace_make_nop()
133 s390_kernel_write((void *) rec->ip, &new, sizeof(new)); in ftrace_make_nop()
141 if (probe_kernel_read(&old, (void *) rec->ip, sizeof(old))) in ftrace_make_call()
156 ftrace_generate_call_insn(&new, rec->ip); in ftrace_make_call()
161 s390_kernel_write((void *) rec->ip, &new, sizeof(new)); in ftrace_make_call()
177 unsigned int *ip; in ftrace_plt_init() local
182 ip = (unsigned int *) ftrace_plt; in ftrace_plt_init()
183 ip[0] = 0x0d10e310; /* basr 1,0; lg 1,10(1); br 1 */ in ftrace_plt_init()
184 ip[1] = 0x100a0004; in ftrace_plt_init()
[all …]
/linux-4.4.14/arch/mips/rb532/
Dirq.c92 static inline void enable_local_irq(unsigned int ip) in enable_local_irq() argument
94 int ipnum = 0x100 << ip; in enable_local_irq()
99 static inline void disable_local_irq(unsigned int ip) in disable_local_irq() argument
101 int ipnum = 0x100 << ip; in disable_local_irq()
106 static inline void ack_local_irq(unsigned int ip) in ack_local_irq() argument
108 int ipnum = 0x100 << ip; in ack_local_irq()
116 int ip = irq_nr - GROUP0_IRQ_BASE; in rb532_enable_irq() local
119 if (ip < 0) in rb532_enable_irq()
122 group = ip >> 5; in rb532_enable_irq()
124 ip &= (1 << 5) - 1; in rb532_enable_irq()
[all …]
/linux-4.4.14/arch/microblaze/kernel/
Dftrace.c146 imm = *(unsigned int *)rec->ip; in ftrace_make_nop()
149 bralid = *(unsigned int *)(rec->ip + 4); in ftrace_make_nop()
155 ret = ftrace_modify_code(rec->ip, MICROBLAZE_NOP); in ftrace_make_nop()
156 ret += ftrace_modify_code(rec->ip + 4, MICROBLAZE_NOP); in ftrace_make_nop()
158 ret = ftrace_modify_code(rec->ip, MICROBLAZE_BRI); in ftrace_make_nop()
168 __func__, (unsigned int)addr, (unsigned int)rec->ip, imm); in ftrace_make_call()
169 ret = ftrace_modify_code(rec->ip, imm); in ftrace_make_call()
172 ret += ftrace_modify_code(rec->ip + 4, bralid); in ftrace_make_call()
184 unsigned long ip = (unsigned long)(&ftrace_call); in ftrace_update_ftrace_func() local
194 __func__, (unsigned int)func, (unsigned int)ip, upper, lower); in ftrace_update_ftrace_func()
[all …]
/linux-4.4.14/arch/unicore32/mm/
Dproc-ucv2.S23 mov ip, #PSR_R_BIT | PSR_I_BIT | PRIV_MODE
24 mov.a asr, ip
39 mov ip, #0
40 movc p0.c5, ip, #28 @ Cache invalidate all
43 movc p0.c6, ip, #6 @ TLB invalidate all
46 movc ip, p0.c1, #0 @ ctrl register
47 or ip, ip, #0x2000 @ vector base address
48 andn ip, ip, #0x000f @ ............idam
49 movc p0.c1, ip, #0 @ disable caches and mmu
86 101: mov ip, #0
[all …]
Dcache-ucv2.S72 2: mov ip, #0
73 movc p0.c5, ip, #14 @ Dcache flush all
76 3: mov ip, #0
77 movc p0.c5, ip, #20 @ Icache invalidate all
122 2: mov ip, #0
123 movc p0.c5, ip, #10 @ Dcache clean all
126 3: mov ip, #0
127 movc p0.c5, ip, #20 @ Icache invalidate all
139 mov ip, #0
140 movc p0.c5, ip, #14 @ Dcache flush all
[all …]
/linux-4.4.14/arch/blackfin/kernel/
Dftrace.c33 static int ftrace_modify_code(unsigned long ip, const unsigned char *code, in ftrace_modify_code() argument
36 int ret = probe_kernel_write((void *)ip, (void *)code, len); in ftrace_modify_code()
37 flush_icache_range(ip, ip + len); in ftrace_modify_code()
45 return ftrace_modify_code(rec->ip, mnop, sizeof(mnop)); in ftrace_make_nop()
54 bfin_make_pcrel24(&call[2], rec->ip + 2, addr); in ftrace_make_call()
57 return ftrace_modify_code(rec->ip, call, sizeof(call)); in ftrace_make_call()
63 unsigned long ip = (unsigned long)&ftrace_call; in ftrace_update_ftrace_func() local
64 bfin_make_pcrel24(call, ip, func); in ftrace_update_ftrace_func()
65 return ftrace_modify_code(ip, call, sizeof(call)); in ftrace_update_ftrace_func()
83 unsigned long ip = (unsigned long)&ftrace_graph_call; in ftrace_enable_ftrace_graph_caller() local
[all …]
/linux-4.4.14/drivers/scsi/
Dscsicam.c67 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) in scsicam_bios_param() argument
78 ret = scsi_partsize(p, (unsigned long)capacity, (unsigned int *)ip + 2, in scsicam_bios_param()
79 (unsigned int *)ip + 0, (unsigned int *)ip + 1); in scsicam_bios_param()
86 ret = setsize((unsigned long)capacity, (unsigned int *)ip + 2, in scsicam_bios_param()
87 (unsigned int *)ip + 0, (unsigned int *)ip + 1); in scsicam_bios_param()
92 if (ret || ip[0] > 255 || ip[1] > 63) { in scsicam_bios_param()
94 ip[0] = 255; in scsicam_bios_param()
95 ip[1] = 63; in scsicam_bios_param()
97 ip[0] = 64; in scsicam_bios_param()
98 ip[1] = 32; in scsicam_bios_param()
[all …]
Dqlogicfas408.c469 sector_t capacity, int ip[]) in DEF_SCSI_QCMD()
472 ip[0] = 0x40; in DEF_SCSI_QCMD()
473 ip[1] = 0x20; in DEF_SCSI_QCMD()
474 ip[2] = (unsigned long) capacity / (ip[0] * ip[1]); in DEF_SCSI_QCMD()
475 if (ip[2] > 1024) { in DEF_SCSI_QCMD()
476 ip[0] = 0xff; in DEF_SCSI_QCMD()
477 ip[1] = 0x3f; in DEF_SCSI_QCMD()
478 ip[2] = (unsigned long) capacity / (ip[0] * ip[1]); in DEF_SCSI_QCMD()
480 if (ip[2] > 1023) in DEF_SCSI_QCMD()
481 ip[2] = 1023; in DEF_SCSI_QCMD()
/linux-4.4.14/drivers/net/slip/
Dslhc.c238 struct iphdr *ip; in slhc_compress() local
250 ip = (struct iphdr *) icp; in slhc_compress()
253 if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) { in slhc_compress()
255 if(ip->protocol != IPPROTO_TCP) in slhc_compress()
263 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); in slhc_compress()
264 hlen = ip->ihl*4 + th->doff*4; in slhc_compress()
291 if( ip->saddr == cs->cs_ip.saddr in slhc_compress()
292 && ip->daddr == cs->cs_ip.daddr in slhc_compress()
347 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl in slhc_compress()
348 || ip->tos != cs->cs_ip.tos in slhc_compress()
[all …]
/linux-4.4.14/fs/ocfs2/dlmfs/
Ddlmfs.c137 struct dlmfs_inode_private *ip; in dlmfs_file_open() local
160 ip = DLMFS_I(inode); in dlmfs_file_open()
162 status = user_dlm_cluster_lock(&ip->ip_lockres, level, flags); in dlmfs_file_open()
183 struct dlmfs_inode_private *ip = DLMFS_I(inode); in dlmfs_file_release() local
195 user_dlm_cluster_unlock(&ip->ip_lockres, level); in dlmfs_file_release()
227 struct dlmfs_inode_private *ip = DLMFS_I(inode); in dlmfs_file_poll() local
229 poll_wait(file, &ip->ip_lockres.l_event, wait); in dlmfs_file_poll()
231 spin_lock(&ip->ip_lockres.l_lock); in dlmfs_file_poll()
232 if (ip->ip_lockres.l_flags & USER_LOCK_BLOCKED) in dlmfs_file_poll()
234 spin_unlock(&ip->ip_lockres.l_lock); in dlmfs_file_poll()
[all …]
/linux-4.4.14/tools/testing/selftests/x86/
Dunwind_vdso.c92 unsigned long ip; /* trap source */ member
99 unsigned long ip = _Unwind_GetIP(ctx); in trace_fn() local
102 if (ip == state->ip) in trace_fn()
107 printf("\t 0x%lx\n", ip); in trace_fn()
109 if (ip == return_address) { in trace_fn()
139 unsigned long ip = ctx->uc_mcontext.gregs[REG_EIP]; in sigtrap() local
141 if (!got_sysinfo && ip == sysinfo) { in sigtrap()
148 ip, return_address); in sigtrap()
154 if (ip == return_address) { in sigtrap()
160 printf("\tSIGTRAP at 0x%lx\n", ip); in sigtrap()
[all …]
/linux-4.4.14/include/uapi/linux/
Dbfs_fs.h69 #define BFS_NZFILESIZE(ip) \ argument
70 ((le32_to_cpu((ip)->i_eoffset) + 1) - le32_to_cpu((ip)->i_sblock) * BFS_BSIZE)
72 #define BFS_FILESIZE(ip) \ argument
73 ((ip)->i_sblock == 0 ? 0 : BFS_NZFILESIZE(ip))
75 #define BFS_FILEBLOCKS(ip) \ argument
76 ((ip)->i_sblock == 0 ? 0 : (le32_to_cpu((ip)->i_eblock) + 1) - le32_to_cpu((ip)->i_sblock))
/linux-4.4.14/kernel/trace/
Dtrace_functions.c24 function_trace_call(unsigned long ip, unsigned long parent_ip,
27 function_stack_trace_call(unsigned long ip, unsigned long parent_ip,
124 function_trace_call(unsigned long ip, unsigned long parent_ip, in function_trace_call() argument
148 trace_function(tr, ip, parent_ip, flags, pc); in function_trace_call()
157 function_stack_trace_call(unsigned long ip, unsigned long parent_ip, in function_stack_trace_call() argument
181 trace_function(tr, ip, parent_ip, flags, pc); in function_stack_trace_call()
323 ftrace_traceon_count(unsigned long ip, unsigned long parent_ip, void **data) in ftrace_traceon_count() argument
329 ftrace_traceoff_count(unsigned long ip, unsigned long parent_ip, void **data) in ftrace_traceoff_count() argument
335 ftrace_traceon(unsigned long ip, unsigned long parent_ip, void **data) in ftrace_traceon() argument
344 ftrace_traceoff(unsigned long ip, unsigned long parent_ip, void **data) in ftrace_traceoff() argument
[all …]
Dftrace.c122 static void ftrace_ops_recurs_func(unsigned long ip, unsigned long parent_ip,
126 static void ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip,
130 static void ftrace_ops_no_ops(unsigned long ip, unsigned long parent_ip);
186 static void ftrace_pid_func(unsigned long ip, unsigned long parent_ip, in ftrace_pid_func() argument
192 op->saved_func(ip, parent_ip, op, regs); in ftrace_pid_func()
503 unsigned long ip; member
645 kallsyms_lookup(rec->ip, NULL, NULL, NULL, str); in function_stat_show()
806 ftrace_find_profiled_func(struct ftrace_profile_stat *stat, unsigned long ip) in ftrace_find_profiled_func() argument
812 key = hash_long(ip, FTRACE_PROFILE_HASH_BITS); in ftrace_find_profiled_func()
819 if (rec->ip == ip) in ftrace_find_profiled_func()
[all …]
/linux-4.4.14/drivers/mtd/
Dinftlmount.c52 struct INFTLPartition *ip; in find_boot_record() local
190 ip = &mh->Partitions[i]; in find_boot_record()
191 ip->virtualUnits = le32_to_cpu(ip->virtualUnits); in find_boot_record()
192 ip->firstUnit = le32_to_cpu(ip->firstUnit); in find_boot_record()
193 ip->lastUnit = le32_to_cpu(ip->lastUnit); in find_boot_record()
194 ip->flags = le32_to_cpu(ip->flags); in find_boot_record()
195 ip->spareUnits = le32_to_cpu(ip->spareUnits); in find_boot_record()
196 ip->Reserved0 = le32_to_cpu(ip->Reserved0); in find_boot_record()
204 i, ip->virtualUnits, ip->firstUnit, in find_boot_record()
205 ip->lastUnit, ip->flags, in find_boot_record()
[all …]
/linux-4.4.14/Documentation/networking/
Dvrf.txt3 The VRF device combined with ip rules provides the ability to create virtual
14 the use of higher priority ip rules (Policy Based Routing, PBR) to take
59 e.g, ip link add vrf-blue type vrf table 10
60 ip link set dev vrf-blue up
64 ip ru add oif vrf-blue table 10
65 ip ru add iif vrf-blue table 10
68 e.g, ip route add table 10 prohibit default
71 e.g, ip link set dev eth1 master vrf-blue
78 e.g., ip route add table 10 ...
106 $ ip link add dev NAME type vrf table ID
[all …]
Dipvlan.txt23 using IProute2/ip utility.
25 ip link add link <master-dev> <slave-dev> type ipvlan mode { l2 | L3 }
27 e.g. ip link add link ipvl0 eth0 type ipvlan mode l2
82 ip netns add ns0
83 ip netns add ns1
86 ip link add link eth0 ipvl0 type ipvlan mode l2
87 ip link add link eth0 ipvl1 type ipvlan mode l2
90 ip link set dev ipvl0 netns ns0
91 ip link set dev ipvl1 netns ns1
95 (1) ip netns exec ns0 bash
[all …]
/linux-4.4.14/tools/perf/tests/
Dhists_link.c15 u64 ip; member
24 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, },
26 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, },
28 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, },
30 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, },
32 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, },
38 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_RUN_COMMAND, },
40 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, },
42 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_PAGE_FAULT, },
44 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_SYS_PERF_EVENT_OPEN, },
[all …]
Dhists_filter.c15 u64 ip; member
25 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, .socket = 0 },
27 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_MAIN, .socket = 0 },
29 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, .socket = 0 },
31 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, .socket = 0 }, /* will be merged */
33 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, .socket = 1 },
35 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_PAGE_FAULT, .socket = 1 },
37 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_MAIN, .socket = 2 },
39 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, .socket = 2 },
41 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, .socket = 3 },
[all …]
/linux-4.4.14/samples/bpf/
Dtracex4_kern.c14 u64 ip; member
40 long ip = 0; in bpf_prog2() local
43 bpf_probe_read(&ip, sizeof(ip), (void *)(PT_REGS_FP(ctx) + sizeof(ip))); in bpf_prog2()
47 .ip = ip, in bpf_prog2()
/linux-4.4.14/tools/perf/util/
Dunwind-libdw.c23 static int __report_module(struct addr_location *al, u64 ip, in __report_module() argument
31 MAP__FUNCTION, ip, al); in __report_module()
39 mod = dwfl_addrmodule(ui->dwfl, ip); in __report_module()
45 return mod && dwfl_addrmodule(ui->dwfl, ip) == mod ? 0 : -1; in __report_module()
48 static int report_module(u64 ip, struct unwind_info *ui) in report_module() argument
52 return __report_module(&al, ip, ui); in report_module()
55 static int entry(u64 ip, struct unwind_info *ui) in entry() argument
61 if (__report_module(&al, ip, ui)) in entry()
64 e.ip = ip; in entry()
70 ip, in entry()
[all …]
Dthread-stack.c323 size_t sz, u64 ip) in thread_stack__sample() argument
332 chain->ips[0] = ip; in thread_stack__sample()
339 struct symbol *sym, u64 ip, bool in_kernel) in call_path__init() argument
343 cp->ip = sym ? 0 : ip; in call_path__init()
375 struct symbol *sym, u64 ip, in call_path__new() argument
396 call_path__init(cp, parent, sym, ip, in_kernel); in call_path__new()
403 struct symbol *sym, u64 ip, u64 ks) in call_path__findnew() argument
408 bool in_kernel = ip >= ks; in call_path__findnew()
411 ip = 0; in call_path__findnew()
414 return call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
[all …]
Dunwind-libunwind.c38 unw_word_t ip,
47 unw_word_t ip,
316 static struct map *find_map(unw_word_t ip, struct unwind_info *ui) in find_map() argument
321 MAP__FUNCTION, ip, &al); in find_map()
326 find_proc_info(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, in find_proc_info() argument
335 map = find_map(ip, ui); in find_proc_info()
352 ret = dwarf_search_unwind_table(as, ip, &di, pi, in find_proc_info()
371 if (dwarf_find_debug_frame(0, &di, ip, base, symfile, in find_proc_info()
373 return dwarf_search_unwind_table(as, ip, &di, pi, in find_proc_info()
524 static int entry(u64 ip, struct thread *thread, in entry() argument
[all …]
/linux-4.4.14/arch/parisc/kernel/
Dunwind.c233 e = find_unwind_entry(info->ip); in unwind_frame_regs()
237 dbg("Cannot find unwind entry for 0x%lx; forced unwinding\n", info->ip); in unwind_frame_regs()
245 kallsyms_lookup(info->ip, NULL, NULL, &modname, in unwind_frame_regs()
248 dbg("info->ip = 0x%lx, name = %s\n", info->ip, symname); in unwind_frame_regs()
255 info->ip, info->prev_sp, in unwind_frame_regs()
288 "prev_sp=%lx prev_ip=%lx\n", info->ip, in unwind_frame_regs()
301 npc < info->ip; in unwind_frame_regs()
312 "%lx, frame_size = %ld\n", info->ip, in unwind_frame_regs()
319 "%lx, frame_size = %ld\n", info->ip, in unwind_frame_regs()
326 "-20(sp) @ %lx\n", info->ip, npc); in unwind_frame_regs()
[all …]
/linux-4.4.14/net/ipv4/netfilter/
Dnf_nat_h323.c26 unsigned int addroff, __be32 ip, __be16 port) in set_addr() argument
31 __be32 ip; in set_addr() member
37 buf.ip = ip; in set_addr()
77 return set_addr(skb, protoff, data, dataoff, taddr->ipAddress.ip, in set_h225_addr()
78 addr->ip, port); in set_h225_addr()
89 addr->ip, port); in set_h245_addr()
106 if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_sig_addr()
114 (ntohl(addr.ip) & 0xff000000) == 0x7f000000) in set_sig_addr()
118 &addr.ip, port, in set_sig_addr()
119 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_sig_addr()
[all …]
Dnf_nat_l3proto_ipv4.c42 fl4->daddr = t->dst.u3.ip; in nf_nat_ipv4_decode_session()
54 fl4->saddr = t->src.u3.ip; in nf_nat_ipv4_decode_session()
68 return ntohl(t->src.u3.ip) >= ntohl(range->min_addr.ip) && in nf_nat_ipv4_in_range()
69 ntohl(t->src.u3.ip) <= ntohl(range->max_addr.ip); in nf_nat_ipv4_in_range()
75 return secure_ipv4_port_ephemeral(t->src.u3.ip, t->dst.u3.ip, dport); in nf_nat_ipv4_secure_port()
99 csum_replace4(&iph->check, iph->saddr, target->src.u3.ip); in nf_nat_ipv4_manip_pkt()
100 iph->saddr = target->src.u3.ip; in nf_nat_ipv4_manip_pkt()
102 csum_replace4(&iph->check, iph->daddr, target->dst.u3.ip); in nf_nat_ipv4_manip_pkt()
103 iph->daddr = target->dst.u3.ip; in nf_nat_ipv4_manip_pkt()
118 newip = t->src.u3.ip; in nf_nat_ipv4_csum_update()
[all …]
Dnf_conntrack_l3proto_ipv4.c44 tuple->src.u3.ip = ap[0]; in ipv4_pkt_to_tuple()
45 tuple->dst.u3.ip = ap[1]; in ipv4_pkt_to_tuple()
53 tuple->src.u3.ip = orig->dst.u3.ip; in ipv4_invert_tuple()
54 tuple->dst.u3.ip = orig->src.u3.ip; in ipv4_invert_tuple()
63 &tuple->src.u3.ip, &tuple->dst.u3.ip); in ipv4_print_tuple()
258 tuple.src.u3.ip = inet->inet_rcv_saddr; in getorigdst()
260 tuple.dst.u3.ip = inet->inet_daddr; in getorigdst()
286 .tuple.dst.u3.ip; in getorigdst()
298 &tuple.src.u3.ip, ntohs(tuple.src.u.tcp.port), in getorigdst()
299 &tuple.dst.u3.ip, ntohs(tuple.dst.u.tcp.port)); in getorigdst()
[all …]
/linux-4.4.14/include/linux/netfilter/ipset/
Dpfxlen.h15 return ip_set_netmask_map[pfxlen].ip; in ip_set_netmask()
27 return (__force u32) ip_set_hostmask_map[pfxlen].ip; in ip_set_hostmask()
45 ip6_netmask(union nf_inet_addr *ip, u8 prefix) in ip6_netmask() argument
47 ip->ip6[0] &= ip_set_netmask6(prefix)[0]; in ip6_netmask()
48 ip->ip6[1] &= ip_set_netmask6(prefix)[1]; in ip6_netmask()
49 ip->ip6[2] &= ip_set_netmask6(prefix)[2]; in ip6_netmask()
50 ip->ip6[3] &= ip_set_netmask6(prefix)[3]; in ip6_netmask()
/linux-4.4.14/arch/metag/kernel/
Dftrace.c100 unsigned long ip = rec->ip; in ftrace_make_nop() local
102 old = ftrace_call_replace(ip, addr); in ftrace_make_nop()
105 return ftrace_modify_code(ip, old, new); in ftrace_make_nop()
111 unsigned long ip = rec->ip; in ftrace_make_call() local
114 new = ftrace_call_replace(ip, addr); in ftrace_make_call()
116 return ftrace_modify_code(ip, old, new); in ftrace_make_call()
/linux-4.4.14/net/atm/
Dmpoa_proc.c246 unsigned char ip[4]; in parse_qos() local
254 ip, ip+1, ip+2, ip+3) == 4) { in parse_qos()
255 ipaddr = *(__be32 *)ip; in parse_qos()
260 ip, ip+1, ip+2, ip+3, &tx_pcr, &tx_sdu) == 6) { in parse_qos()
264 ip, ip+1, ip+2, ip+3, &tx_pcr, &tx_sdu, &rx_pcr, &rx_sdu) != 8) in parse_qos()
267 ipaddr = *(__be32 *)ip; in parse_qos()
/linux-4.4.14/drivers/dma/ipu/
Dipu_idmac.c273 struct chan_param_mem_interleaved ip; member
313 params->ip.bpp = 2; in ipu_ch_param_set_size()
314 params->ip.pfs = 4; in ipu_ch_param_set_size()
315 params->ip.npb = 15; in ipu_ch_param_set_size()
316 params->ip.sat = 2; /* SAT = 32-bit access */ in ipu_ch_param_set_size()
317 params->ip.ofs0 = 0; /* Red bit offset */ in ipu_ch_param_set_size()
318 params->ip.ofs1 = 5; /* Green bit offset */ in ipu_ch_param_set_size()
319 params->ip.ofs2 = 11; /* Blue bit offset */ in ipu_ch_param_set_size()
320 params->ip.ofs3 = 16; /* Alpha bit offset */ in ipu_ch_param_set_size()
321 params->ip.wid0 = 4; /* Red bit width - 1 */ in ipu_ch_param_set_size()
[all …]
/linux-4.4.14/drivers/media/usb/usbtv/
Dusbtv-video.c336 static void usbtv_iso_cb(struct urb *ip) in usbtv_iso_cb() argument
340 struct usbtv *usbtv = (struct usbtv *)ip->context; in usbtv_iso_cb()
342 switch (ip->status) { in usbtv_iso_cb()
358 for (i = 0; i < ip->number_of_packets; i++) { in usbtv_iso_cb()
359 int size = ip->iso_frame_desc[i].actual_length; in usbtv_iso_cb()
360 unsigned char *data = ip->transfer_buffer + in usbtv_iso_cb()
361 ip->iso_frame_desc[i].offset; in usbtv_iso_cb()
370 ret = usb_submit_urb(ip, GFP_ATOMIC); in usbtv_iso_cb()
377 struct urb *ip; in usbtv_setup_iso_transfer() local
381 ip = usb_alloc_urb(USBTV_ISOC_PACKETS, GFP_KERNEL); in usbtv_setup_iso_transfer()
[all …]
/linux-4.4.14/arch/unicore32/lib/
Dcopy_template.S65 and.a ip, r0, #3
67 and.a ip, r1, #3
80 5: and.a ip, r2, #28
81 rsub ip, ip, #32
83 add pc, pc, ip @ C is always clear here
94 add pc, pc, ip
117 9: rsub ip, ip, #4
118 csub.a ip, #2
124 sub.a r2, r2, ip
127 and.a ip, r1, #3
[all …]
/linux-4.4.14/arch/x86/kernel/kprobes/
Dftrace.c36 regs->ip = (unsigned long)p->addr + MCOUNT_INSN_SIZE; in __skip_singlestep()
43 regs->ip = orig_ip; in __skip_singlestep()
58 void kprobe_ftrace_handler(unsigned long ip, unsigned long parent_ip, in kprobe_ftrace_handler() argument
68 p = get_kprobe((kprobe_opcode_t *)ip); in kprobe_ftrace_handler()
76 unsigned long orig_ip = regs->ip; in kprobe_ftrace_handler()
78 regs->ip = ip + sizeof(kprobe_opcode_t); in kprobe_ftrace_handler()
/linux-4.4.14/include/linux/
Dbottom_half.h7 extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt);
9 static __always_inline void __local_bh_disable_ip(unsigned long ip, unsigned int cnt) in __local_bh_disable_ip() argument
22 extern void __local_bh_enable_ip(unsigned long ip, unsigned int cnt);
24 static inline void local_bh_enable_ip(unsigned long ip) in local_bh_enable_ip() argument
26 __local_bh_enable_ip(ip, SOFTIRQ_DISABLE_OFFSET); in local_bh_enable_ip()
Dprofile.h52 void profile_hits(int type, void *ip, unsigned int nr_hits);
57 static inline void profile_hit(int type, void *ip) in profile_hit() argument
63 profile_hits(type, ip, 1); in profile_hit()
102 static inline void profile_hits(int type, void *ip, unsigned int nr_hits) in profile_hits() argument
107 static inline void profile_hit(int type, void *ip) in profile_hit() argument
/linux-4.4.14/arch/arm/kernel/
Dftrace.c157 unsigned long ip = rec->ip; in ftrace_make_call() local
160 new = ftrace_call_replace(ip, adjust_address(rec, addr)); in ftrace_make_call()
162 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_make_call()
168 unsigned long ip = rec->ip; in ftrace_make_nop() local
173 old = ftrace_call_replace(ip, adjust_address(rec, addr)); in ftrace_make_nop()
175 ret = ftrace_modify_code(ip, old, new, true); in ftrace_make_nop()
181 old = ftrace_call_replace(ip, adjust_address(rec, addr)); in ftrace_make_nop()
183 ret = ftrace_modify_code(ip, old, new, true); in ftrace_make_nop()
/linux-4.4.14/tools/perf/util/intel-pt-decoder/
Dintel-pt-decoder.c45 uint64_t ip[INTEL_PT_BLK_SIZE]; member
81 uint64_t *insn_cnt_ptr, uint64_t *ip, uint64_t to_ip,
94 uint64_t ip; member
262 return stack->blk->ip[--stack->pos]; in intel_pt_pop()
284 static int intel_pt_push(struct intel_pt_stack *stack, uint64_t ip) in intel_pt_push() argument
294 stack->blk->ip[stack->pos++] = ip; in intel_pt_push()
369 uint64_t ip; in intel_pt_calc_ip() local
373 ip = (last_ip & (uint64_t)0xffffffffffff0000ULL) | in intel_pt_calc_ip()
377 ip = (last_ip & (uint64_t)0xffffffff00000000ULL) | in intel_pt_calc_ip()
381 ip = packet->payload; in intel_pt_calc_ip()
[all …]
/linux-4.4.14/net/openvswitch/
Dflow.c268 key->ip.proto = NEXTHDR_NONE; in parse_ipv6hdr()
269 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr()
270 key->ip.ttl = nh->hop_limit; in parse_ipv6hdr()
279 key->ip.frag = OVS_FRAG_TYPE_LATER; in parse_ipv6hdr()
281 key->ip.frag = OVS_FRAG_TYPE_FIRST; in parse_ipv6hdr()
283 key->ip.frag = OVS_FRAG_TYPE_NONE; in parse_ipv6hdr()
295 key->ip.proto = nexthdr; in parse_ipv6hdr()
505 memset(&key->ip, 0, sizeof(key->ip)); in key_extract()
518 key->ip.proto = nh->protocol; in key_extract()
519 key->ip.tos = nh->tos; in key_extract()
[all …]
/linux-4.4.14/arch/mips/mm/
Duasm-micromips.c152 struct insn *ip = NULL; in build_insn() local
159 ip = &insn_table_MM[i]; in build_insn()
163 if (!ip || (opc == insn_daddiu && r4k_daddiu_bug())) in build_insn()
166 op = ip->match; in build_insn()
168 if (ip->fields & RS) { in build_insn()
174 if (ip->fields & RT) { in build_insn()
180 if (ip->fields & RD) in build_insn()
182 if (ip->fields & RE) in build_insn()
184 if (ip->fields & SIMM) in build_insn()
186 if (ip->fields & UIMM) in build_insn()
[all …]
Duasm-mips.c185 struct insn *ip = NULL; in build_insn() local
192 ip = &insn_table[i]; in build_insn()
196 if (!ip || (opc == insn_daddiu && r4k_daddiu_bug())) in build_insn()
199 op = ip->match; in build_insn()
201 if (ip->fields & RS) in build_insn()
203 if (ip->fields & RT) in build_insn()
205 if (ip->fields & RD) in build_insn()
207 if (ip->fields & RE) in build_insn()
209 if (ip->fields & SIMM) in build_insn()
211 if (ip->fields & UIMM) in build_insn()
[all …]
/linux-4.4.14/arch/arm/crypto/
Daes-ce-core.S94 vld1.8 {q10-q11}, [ip]!
96 vld1.8 {q12-q13}, [ip]!
98 vld1.8 {q10-q11}, [ip]!
100 vld1.8 {q12-q13}, [ip]!
103 vld1.8 {q10-q11}, [ip]!
106 vld1.8 {q12-q13}, [ip]
130 add ip, r2, #32 @ 3rd round key
137 add ip, r2, #32 @ 3rd round key
143 add ip, r2, #32 @ 3rd round key
149 add ip, r2, #32 @ 3rd round key
[all …]
/linux-4.4.14/drivers/isdn/hardware/mISDN/
DmISDNipac.c41 #define ReadHSCX(h, o) (h->ip->read_reg(h->ip->hw, h->off + o))
42 #define WriteHSCX(h, o, v) (h->ip->write_reg(h->ip->hw, h->off + o, v))
43 #define ReadIPAC(ip, o) (ip->read_reg(ip->hw, o)) argument
44 #define WriteIPAC(ip, o, v) (ip->write_reg(ip->hw, o, v)) argument
901 pr_debug("%s: B%1d CEC %d us\n", hx->ip->name, hx->bch.nr, in waitforCEC()
904 pr_info("%s: B%1d CEC timeout\n", hx->ip->name, hx->bch.nr); in waitforCEC()
921 pr_debug("%s: B%1d XFW %d us\n", hx->ip->name, hx->bch.nr, in waitforXFW()
924 pr_info("%s: B%1d XFW timeout\n", hx->ip->name, hx->bch.nr); in waitforXFW()
930 if (hx->ip->type & IPAC_TYPE_IPACX) in hscx_cmdr()
944 pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count); in hscx_empty_fifo()
[all …]
/linux-4.4.14/net/netfilter/
Dxt_iprange.c27 m = ntohl(iph->saddr) < ntohl(info->src_min.ip); in iprange_mt4()
28 m |= ntohl(iph->saddr) > ntohl(info->src_max.ip); in iprange_mt4()
34 &info->src_min.ip, in iprange_mt4()
35 &info->src_max.ip); in iprange_mt4()
40 m = ntohl(iph->daddr) < ntohl(info->dst_min.ip); in iprange_mt4()
41 m |= ntohl(iph->daddr) > ntohl(info->dst_max.ip); in iprange_mt4()
47 &info->dst_min.ip, in iprange_mt4()
48 &info->dst_max.ip); in iprange_mt4()
Dxt_osf.c160 const struct iphdr *ip = ip_hdr(skb); in xt_osf_ttl() local
164 return ip->ttl == f_ttl; in xt_osf_ttl()
167 else if (ip->ttl <= f_ttl) in xt_osf_ttl()
174 if (inet_ifa_match(ip->saddr, ifa)) { in xt_osf_ttl()
175 ret = (ip->ttl == f_ttl); in xt_osf_ttl()
185 return ip->ttl == f_ttl; in xt_osf_ttl()
192 const struct iphdr *ip = ip_hdr(skb); in xt_osf_match_packet() local
215 totlen = ntohs(ip->tot_len); in xt_osf_match_packet()
216 df = ntohs(ip->frag_off) & IP_DF; in xt_osf_match_packet()
334 &ip->saddr, ntohs(tcp->source), in xt_osf_match_packet()
[all …]
Dxt_HMARK.c258 struct iphdr *ip, _ip; in hmark_pkt_set_htuple_ipv4() local
261 ip = (struct iphdr *) (skb->data + nhoff); in hmark_pkt_set_htuple_ipv4()
262 if (ip->protocol == IPPROTO_ICMP) { in hmark_pkt_set_htuple_ipv4()
264 if (get_inner_hdr(skb, ip->ihl * 4, &nhoff)) { in hmark_pkt_set_htuple_ipv4()
265 ip = skb_header_pointer(skb, nhoff, sizeof(_ip), &_ip); in hmark_pkt_set_htuple_ipv4()
266 if (ip == NULL) in hmark_pkt_set_htuple_ipv4()
271 t->src = ip->saddr & info->src_mask.ip; in hmark_pkt_set_htuple_ipv4()
272 t->dst = ip->daddr & info->dst_mask.ip; in hmark_pkt_set_htuple_ipv4()
277 t->proto = ip->protocol; in hmark_pkt_set_htuple_ipv4()
284 if (ip->frag_off & htons(IP_MF | IP_OFFSET)) in hmark_pkt_set_htuple_ipv4()
[all …]
/linux-4.4.14/arch/tile/kernel/
Dftrace.c151 unsigned long ip = rec->ip; in ftrace_make_call() local
154 new = ftrace_call_replace(ip, addr); in ftrace_make_call()
156 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_call()
162 unsigned long ip = rec->ip; in ftrace_make_nop() local
167 old = ftrace_call_replace(ip, addr); in ftrace_make_nop()
169 ret = ftrace_modify_code(ip, old, new); in ftrace_make_nop()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_ftp.c213 &from.ip, &port, in ip_vs_ftp_out()
218 &from.ip, ntohs(port), &cp->caddr.ip, 0); in ip_vs_ftp_out()
250 from.ip = n_cp->vaddr.ip; in ip_vs_ftp_out()
253 ((unsigned char *)&from.ip)[0], in ip_vs_ftp_out()
254 ((unsigned char *)&from.ip)[1], in ip_vs_ftp_out()
255 ((unsigned char *)&from.ip)[2], in ip_vs_ftp_out()
256 ((unsigned char *)&from.ip)[3], in ip_vs_ftp_out()
374 ' ', '\r', &to.ip, &port, in ip_vs_ftp_in()
378 IP_VS_DBG(7, "PORT %pI4:%d detected\n", &to.ip, ntohs(port)); in ip_vs_ftp_in()
388 &to.ip, ntohs(port), &cp->vaddr.ip, 0); in ip_vs_ftp_in()
/linux-4.4.14/include/net/netfilter/
Dnf_tables_ipv4.h12 struct iphdr *ip; in nft_set_pktinfo_ipv4() local
16 ip = ip_hdr(pkt->skb); in nft_set_pktinfo_ipv4()
17 pkt->tprot = ip->protocol; in nft_set_pktinfo_ipv4()
19 pkt->xt.fragoff = ntohs(ip->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4()
/linux-4.4.14/arch/mips/lasat/
Dsysctl.c88 unsigned int ip; in proc_lasat_ip() local
116 ip = in_aton(ipbuf); in proc_lasat_ip()
117 *(unsigned int *)(table->data) = ip; in proc_lasat_ip()
120 ip = *(unsigned int *)(table->data); in proc_lasat_ip()
122 (ip) & 0xff, in proc_lasat_ip()
123 (ip >> 8) & 0xff, in proc_lasat_ip()
124 (ip >> 16) & 0xff, in proc_lasat_ip()
125 (ip >> 24) & 0xff); in proc_lasat_ip()
/linux-4.4.14/arch/alpha/kernel/
Dsmc37c669.c2334 struct INODE *ip;
2336 allocinode( smc_ddb.name, 1, &ip );
2337 ip->dva = &smc_ddb;
2338 ip->attr = ATTR$M_WRITE | ATTR$M_READ;
2339 ip->len[0] = 0x30;
2340 ip->misc = 0;
2341 INODE_UNLOCK( ip );
2348 struct INODE *ip;
2353 ip = fp->ip;
2354 INODE_LOCK( ip );
[all …]
/linux-4.4.14/arch/c6x/kernel/
Dmodule.c17 static inline int fixup_pcr(u32 *ip, Elf32_Addr dest, u32 maskbits, int shift) in fixup_pcr() argument
20 long ep = (long)ip & ~31; in fixup_pcr()
26 opcode = *ip; in fixup_pcr()
29 *ip = opcode; in fixup_pcr()
32 maskbits, ip, (void *)dest, opcode); in fixup_pcr()
37 maskbits, ip, (void *)dest); in fixup_pcr()

12345