Home
last modified time | relevance | path

Searched refs:i_flags (Results 1 – 25 of 175) sorted by relevance

1234567

/linux-6.12.1/drivers/media/pci/ivtv/
Divtv-irq.c94 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_PIO, &itv->i_flags)) in ivtv_irq_work_handler()
97 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_VBI, &itv->i_flags)) in ivtv_irq_work_handler()
100 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_YUV, &itv->i_flags)) in ivtv_irq_work_handler()
103 if (test_and_clear_bit(IVTV_F_I_WORK_HANDLER_PCM, &itv->i_flags)) in ivtv_irq_work_handler()
329 set_bit(IVTV_F_I_WORK_HANDLER_PCM, &itv->i_flags); in dma_post()
330 set_bit(IVTV_F_I_HAVE_WORK, &itv->i_flags); in dma_post()
401 if (!test_bit(IVTV_F_I_DMA, &itv->i_flags)) in ivtv_dma_stream_dec_prepare()
407 if (!test_bit(IVTV_F_I_DMA, &itv->i_flags)) in ivtv_dma_stream_dec_prepare()
495 set_bit(IVTV_F_I_WORK_HANDLER_PIO, &itv->i_flags); in ivtv_dma_enc_start()
496 set_bit(IVTV_F_I_HAVE_WORK, &itv->i_flags); in ivtv_dma_enc_start()
[all …]
Divtv-udma.c211 set_bit(IVTV_F_I_DMA, &itv->i_flags); in ivtv_udma_start()
212 set_bit(IVTV_F_I_UDMA, &itv->i_flags); in ivtv_udma_start()
213 clear_bit(IVTV_F_I_UDMA_PENDING, &itv->i_flags); in ivtv_udma_start()
221 if (!test_bit(IVTV_F_I_DMA, &itv->i_flags)) in ivtv_udma_prepare()
224 set_bit(IVTV_F_I_UDMA_PENDING, &itv->i_flags); in ivtv_udma_prepare()
Divtv-vbi.c108 set_bit(IVTV_F_I_UPDATE_VPS, &itv->i_flags); in ivtv_write_vbi_line()
116 set_bit(IVTV_F_I_UPDATE_WSS, &itv->i_flags); in ivtv_write_vbi_line()
129 set_bit(IVTV_F_I_UPDATE_CC, &itv->i_flags); in ivtv_write_vbi_cc_lines()
456 clear_bit(IVTV_F_I_UPDATE_CC, &itv->i_flags); in ivtv_disable_cc()
511 if (test_and_clear_bit(IVTV_F_I_UPDATE_WSS, &itv->i_flags)) { in ivtv_vbi_work_handler()
515 if (test_bit(IVTV_F_I_UPDATE_CC, &itv->i_flags)) { in ivtv_vbi_work_handler()
517 clear_bit(IVTV_F_I_UPDATE_CC, &itv->i_flags); in ivtv_vbi_work_handler()
534 if (test_and_clear_bit(IVTV_F_I_UPDATE_VPS, &itv->i_flags)) { in ivtv_vbi_work_handler()
Divtv-fileops.c482 if (test_and_clear_bit(IVTV_F_I_ENC_PAUSED, &itv->i_flags)) in ivtv_start_capture()
748 clear_bit(IVTV_F_I_EV_VSYNC_ENABLED, &itv->i_flags); in ivtv_v4l2_dec_poll()
755 set_bit(IVTV_F_I_EV_VSYNC_ENABLED, &itv->i_flags); in ivtv_v4l2_dec_poll()
756 if (test_bit(IVTV_F_I_EV_VSYNC, &itv->i_flags) || in ivtv_v4l2_dec_poll()
757 test_bit(IVTV_F_I_EV_DEC_STOPPED, &itv->i_flags)) in ivtv_v4l2_dec_poll()
855 test_bit(IVTV_F_I_DECODING_YUV, &itv->i_flags)) { in ivtv_stop_decoding()
874 clear_bit(IVTV_F_I_DEC_PAUSED, &itv->i_flags); in ivtv_stop_decoding()
895 clear_bit(IVTV_F_I_RADIO_USER, &itv->i_flags); in ivtv_v4l2_close()
1007 if (!test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags)) {
1018 set_bit(IVTV_F_I_RADIO_USER, &itv->i_flags);
[all …]
Divtv-streams.c602 if (test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags)) in ivtv_start_v4l2_encode_stream()
608 if (itv->has_cx23415 && !test_and_set_bit(IVTV_F_I_DIG_RST, &itv->i_flags)) { in ivtv_start_v4l2_encode_stream()
618 clear_bit(IVTV_F_I_EOS, &itv->i_flags); in ivtv_start_v4l2_encode_stream()
848 while (!test_bit(IVTV_F_I_EOS, &itv->i_flags) && in ivtv_stop_v4l2_encode_stream()
863 if (!test_bit(IVTV_F_I_EOS, &itv->i_flags)) { in ivtv_stop_v4l2_encode_stream()
897 if (test_and_clear_bit(IVTV_F_I_DIG_RST, &itv->i_flags)) { in ivtv_stop_v4l2_encode_stream()
971 set_bit(IVTV_F_I_EV_DEC_STOPPED, &itv->i_flags); in ivtv_stop_v4l2_decode_stream()
Divtv-controls.c98 if (test_bit(IVTV_F_I_VALID_DEC_TIMINGS, &itv->i_flags)) { in ivtv_g_pts_frame()
112 set_bit(IVTV_F_I_VALID_DEC_TIMINGS, &itv->i_flags); in ivtv_g_pts_frame()
/linux-6.12.1/fs/efivarfs/
Dinode.c33 inode->i_flags = is_removable ? 0 : S_IMMUTABLE; in efivarfs_get_inode()
158 unsigned int i_flags; in efivarfs_fileattr_get() local
161 i_flags = d_inode(dentry)->i_flags; in efivarfs_fileattr_get()
162 if (i_flags & S_IMMUTABLE) in efivarfs_fileattr_get()
174 unsigned int i_flags = 0; in efivarfs_fileattr_set() local
183 i_flags |= S_IMMUTABLE; in efivarfs_fileattr_set()
185 inode_set_flags(d_inode(dentry), i_flags, S_IMMUTABLE); in efivarfs_fileattr_set()
/linux-6.12.1/fs/ubifs/
Dioctl.c39 inode->i_flags &= ~(S_SYNC | S_APPEND | S_IMMUTABLE | S_DIRSYNC | in ubifs_set_inode_flags()
42 inode->i_flags |= S_SYNC; in ubifs_set_inode_flags()
44 inode->i_flags |= S_APPEND; in ubifs_set_inode_flags()
46 inode->i_flags |= S_IMMUTABLE; in ubifs_set_inode_flags()
48 inode->i_flags |= S_DIRSYNC; in ubifs_set_inode_flags()
50 inode->i_flags |= S_ENCRYPTED; in ubifs_set_inode_flags()
141 dbg_gen("get flags: %#x, i_flags %#x", flags, inode->i_flags); in ubifs_fileattr_get()
167 dbg_gen("set flags: %#x, i_flags %#x", flags, inode->i_flags); in ubifs_fileattr_set()
/linux-6.12.1/fs/ocfs2/
Dinode.c75 inode->i_flags &= ~(S_IMMUTABLE | in ocfs2_set_inode_flags()
79 inode->i_flags |= S_IMMUTABLE; in ocfs2_set_inode_flags()
82 inode->i_flags |= S_SYNC; in ocfs2_set_inode_flags()
84 inode->i_flags |= S_APPEND; in ocfs2_set_inode_flags()
86 inode->i_flags |= S_NOATIME; in ocfs2_set_inode_flags()
88 inode->i_flags |= S_DIRSYNC; in ocfs2_set_inode_flags()
94 unsigned int flags = oi->vfs_inode.i_flags; in ocfs2_get_inode_flags()
282 BUG_ON(!(fe->i_flags & cpu_to_le32(OCFS2_VALID_FL))); in ocfs2_populate_inode()
321 le32_to_cpu(fe->i_flags)); in ocfs2_populate_inode()
322 if (fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) { in ocfs2_populate_inode()
[all …]
/linux-6.12.1/fs/xfs/
Dxfs_inode.h56 unsigned long i_flags; /* see defined flags below */ member
213 ip->i_flags |= flags; in __xfs_iflags_set()
228 ip->i_flags &= ~flags; in xfs_iflags_clear()
235 return (ip->i_flags & flags); in __xfs_iflags_test()
254 ret = ip->i_flags & flags; in xfs_iflags_test_and_clear()
256 ip->i_flags &= ~flags; in xfs_iflags_test_and_clear()
267 ret = ip->i_flags & flags; in xfs_iflags_test_and_set()
269 ip->i_flags |= flags; in xfs_iflags_test_and_set()
Dxfs_icache.c118 ip->i_flags = 0; in xfs_inode_alloc()
190 ip->i_flags = XFS_IRECLAIM; in xfs_inode_free()
393 ip->i_flags |= XFS_IRECLAIM; in xfs_iget_recycle()
408 ip->i_flags &= ~(XFS_INEW | XFS_IRECLAIM); in xfs_iget_recycle()
409 ASSERT(ip->i_flags & XFS_IRECLAIMABLE); in xfs_iget_recycle()
425 ip->i_flags &= ~XFS_IRECLAIM_RESET_FLAGS; in xfs_iget_recycle()
426 ip->i_flags |= XFS_INEW; in xfs_iget_recycle()
567 if (ip->i_flags & (XFS_INEW | XFS_IRECLAIM | XFS_INACTIVATING)) in xfs_iget_cache_hit()
570 if (ip->i_flags & XFS_NEED_INACTIVE) { in xfs_iget_cache_hit()
589 (ip->i_flags & XFS_IRECLAIMABLE)) in xfs_iget_cache_hit()
[all …]
/linux-6.12.1/fs/reiserfs/
Dioctl.c167 REISERFS_I(inode)->i_flags |= i_nopack_mask; in reiserfs_unpack()
171 if (REISERFS_I(inode)->i_flags & i_nopack_mask) { in reiserfs_unpack()
188 REISERFS_I(inode)->i_flags |= i_nopack_mask; in reiserfs_unpack()
211 REISERFS_I(inode)->i_flags |= i_nopack_mask; in reiserfs_unpack()
Dxattr.h23 #define has_xattr_dir(inode) (REISERFS_I(inode)->i_flags & i_has_xattr_dir)
77 if ((REISERFS_I(inode)->i_flags & i_has_xattr_dir) == 0) { in reiserfs_xattr_jcreate_nblocks()
Dinode.c541 if (REISERFS_I(inode)->i_flags & i_pack_on_close_mask) { in reiserfs_get_blocks_direct_io()
547 REISERFS_I(inode)->i_flags &= ~i_pack_on_close_mask; in reiserfs_get_blocks_direct_io()
718 REISERFS_I(inode)->i_flags |= i_pack_on_close_mask; in reiserfs_get_block()
1241 REISERFS_I(inode)->i_flags = 0; in init_inode()
1299 REISERFS_I(inode)->i_flags &= ~i_nopack_mask; in init_inode()
1991 REISERFS_I(inode)->i_flags = 0; in reiserfs_new_inode()
2140 inode->i_flags |= S_NOQUOTA; in reiserfs_new_inode()
2909 REISERFS_I(inode)->i_flags &= ~i_pack_on_close_mask; in reiserfs_write_end()
2998 REISERFS_I(inode)->i_flags &= ~i_pack_on_close_mask; in reiserfs_commit_write()
3043 inode->i_flags |= S_SYNC; in sd_attrs_to_i_attrs()
[all …]
/linux-6.12.1/fs/ext2/
Dioctl.c25 fileattr_fill_flags(fa, ei->i_flags & EXT2_FL_USER_VISIBLE); in ext2_fileattr_get()
43 ei->i_flags = (ei->i_flags & ~EXT2_FL_USER_MODIFIABLE) | in ext2_fileattr_set()
Dinode.c1348 unsigned int flags = EXT2_I(inode)->i_flags; in ext2_set_inode_flags()
1350 inode->i_flags &= ~(S_SYNC | S_APPEND | S_IMMUTABLE | S_NOATIME | in ext2_set_inode_flags()
1353 inode->i_flags |= S_SYNC; in ext2_set_inode_flags()
1355 inode->i_flags |= S_APPEND; in ext2_set_inode_flags()
1357 inode->i_flags |= S_IMMUTABLE; in ext2_set_inode_flags()
1359 inode->i_flags |= S_NOATIME; in ext2_set_inode_flags()
1361 inode->i_flags |= S_DIRSYNC; in ext2_set_inode_flags()
1363 inode->i_flags |= S_DAX; in ext2_set_inode_flags()
1428 ei->i_flags = le32_to_cpu(raw_inode->i_flags); in ext2_iget()
1550 raw_inode->i_flags = cpu_to_le32(ei->i_flags); in __ext2_write_inode()
[all …]
/linux-6.12.1/fs/
Dstack.c73 dest->i_flags = src->i_flags; in fsstack_copy_attr_all()
/linux-6.12.1/net/ipv4/
Dip_gre.c814 __be16 i_flags, o_flags; in ipgre_tunnel_ctl() local
817 if (!ip_tunnel_flags_is_be16_compat(p->i_flags) || in ipgre_tunnel_ctl()
821 i_flags = ip_tunnel_flags_to_be16(p->i_flags); in ipgre_tunnel_ctl()
827 ((i_flags | o_flags) & (GRE_VERSION | GRE_ROUTING))) in ipgre_tunnel_ctl()
831 gre_flags_to_tnl_flags(p->i_flags, i_flags); in ipgre_tunnel_ctl()
841 ip_tunnel_flags_copy(t->parms.i_flags, p->i_flags); in ipgre_tunnel_ctl()
848 i_flags = gre_tnl_flags_to_gre_flags(p->i_flags); in ipgre_tunnel_ctl()
849 ip_tunnel_flags_from_be16(p->i_flags, i_flags); in ipgre_tunnel_ctl()
1184 gre_flags_to_tnl_flags(parms->i_flags, in ipgre_netlink_parms()
1449 ip_tunnel_flags_copy(t->parms.i_flags, p.i_flags); in ipgre_changelink()
[all …]
Dip_tunnel.c64 return !test_bit(IP_TUNNEL_KEY_BIT, p->i_flags); in ip_tunnel_key_match()
66 return test_bit(IP_TUNNEL_KEY_BIT, p->i_flags) && p->i_key == key; in ip_tunnel_key_match()
183 if (!test_bit(IP_TUNNEL_KEY_BIT, parms->i_flags) && in ip_bucket()
184 test_bit(IP_TUNNEL_VTI_BIT, parms->i_flags)) in ip_bucket()
219 ip_tunnel_flags_copy(flags, parms->i_flags); in ip_tunnel_find()
390 if (test_bit(IP_TUNNEL_CSUM_BIT, tunnel->parms.i_flags) != in ip_tunnel_rcv()
397 if (test_bit(IP_TUNNEL_SEQ_BIT, tunnel->parms.i_flags)) { in ip_tunnel_rcv()
932 if (!test_bit(IP_TUNNEL_VTI_BIT, p->i_flags)) { in ip_tunnel_ctl()
933 if (!test_bit(IP_TUNNEL_KEY_BIT, p->i_flags)) in ip_tunnel_ctl()
1020 ip_tunnel_flags_from_be16(kp->i_flags, p.i_flags); in ip_tunnel_parm_from_user()
[all …]
Dip_vti.c393 if (!ip_tunnel_flags_is_be16_compat(p->i_flags) || in vti_tunnel_ctl()
397 if (!(ip_tunnel_flags_to_be16(p->i_flags) & GRE_KEY)) in vti_tunnel_ctl()
403 ip_tunnel_flags_copy(p->i_flags, flags); in vti_tunnel_ctl()
411 ip_tunnel_flags_or(p->i_flags, p->i_flags, flags); in vti_tunnel_ctl()
557 __set_bit(IP_TUNNEL_VTI_BIT, parms->i_flags); in vti_netlink_parms()
/linux-6.12.1/fs/hfsplus/
Dinode.c206 inode->i_flags |= S_IMMUTABLE; in hfsplus_get_perms()
208 inode->i_flags &= ~S_IMMUTABLE; in hfsplus_get_perms()
210 inode->i_flags |= S_APPEND; in hfsplus_get_perms()
212 inode->i_flags &= ~S_APPEND; in hfsplus_get_perms()
234 if (inode->i_flags & S_DEAD) { in hfsplus_file_release()
286 if (inode->i_flags & S_APPEND) in hfsplus_getattr()
288 if (inode->i_flags & S_IMMUTABLE) in hfsplus_getattr()
663 if (inode->i_flags & S_IMMUTABLE) in hfsplus_fileattr_get()
665 if (inode->i_flags & S_APPEND) in hfsplus_fileattr_get()
/linux-6.12.1/fs/jbd2/
Dcommit.c183 if (!jinode || !(jinode->i_flags & JI_WRITE_DATA)) in jbd2_submit_inode_data()
194 if (!jinode || !(jinode->i_flags & JI_WAIT_DATA) || in jbd2_wait_inode_data()
219 if (!(jinode->i_flags & JI_WRITE_DATA)) in journal_submit_data_buffers()
221 jinode->i_flags |= JI_COMMIT_RUNNING; in journal_submit_data_buffers()
232 jinode->i_flags &= ~JI_COMMIT_RUNNING; in journal_submit_data_buffers()
234 wake_up_bit(&jinode->i_flags, __JI_COMMIT_RUNNING); in journal_submit_data_buffers()
263 if (!(jinode->i_flags & JI_WAIT_DATA)) in journal_finish_inode_data_buffers()
265 jinode->i_flags |= JI_COMMIT_RUNNING; in journal_finish_inode_data_buffers()
275 jinode->i_flags &= ~JI_COMMIT_RUNNING; in journal_finish_inode_data_buffers()
277 wake_up_bit(&jinode->i_flags, __JI_COMMIT_RUNNING); in journal_finish_inode_data_buffers()
/linux-6.12.1/fs/f2fs/
Dinode.c47 unsigned int flags = F2FS_I(inode)->i_flags; in f2fs_set_inode_flags()
315 fi->i_flags & F2FS_COMPR_FL && in sanity_check_inode()
363 if ((fi->i_flags & F2FS_CASEFOLD_FL) && !f2fs_sb_has_casefold(sbi)) { in sanity_check_inode()
424 fi->i_flags = le32_to_cpu(ri->i_flags); in do_read_inode()
426 fi->i_flags &= ~F2FS_PROJINHERIT_FL; in do_read_inode()
477 if (fi->i_flags & F2FS_PROJINHERIT_FL) in do_read_inode()
494 (fi->i_flags & F2FS_COMPR_FL)) { in do_read_inode()
686 ri->i_flags = cpu_to_le32(fi->i_flags); in f2fs_update_inode()
/linux-6.12.1/fs/ext4/
Dioctl.c333 tmp = ei1->i_flags & EXT4_FL_SHOULD_SWAP; in swap_inode_data()
334 ei1->i_flags = (ei2->i_flags & EXT4_FL_SHOULD_SWAP) | in swap_inode_data()
335 (ei1->i_flags & ~EXT4_FL_SHOULD_SWAP); in swap_inode_data()
336 ei2->i_flags = tmp | (ei2->i_flags & ~EXT4_FL_SHOULD_SWAP); in swap_inode_data()
395 (EXT4_I(inode)->i_flags & EXT4_JOURNAL_DATA_FL) || in swap_inode_boot_loader()
439 inode_bl->i_flags = 0; in swap_inode_boot_loader()
440 ei_bl->i_flags = 0; in swap_inode_boot_loader()
534 unsigned int oldflags = ei->i_flags; in ext4_ioctl_check_immutable()
559 if ((ei->i_flags ^ flags) & EXT4_DAX_FL) in ext4_dax_dontcache()
600 oldflags = ei->i_flags; in ext4_ioctl_setflags()
[all …]
Dialloc.c926 __u32 goal, uid_t *owner, __u32 i_flags, in __ext4_new_inode() argument
985 if (!(i_flags & EXT4_EA_INODE_FL)) { in __ext4_new_inode()
995 if (!handle && sbi->s_journal && !(i_flags & EXT4_EA_INODE_FL)) { in __ext4_new_inode()
1258 ei->i_flags = in __ext4_new_inode()
1259 ext4_mask_flags(mode, EXT4_I(dir)->i_flags & EXT4_FL_INHERITED); in __ext4_new_inode()
1260 ei->i_flags |= i_flags; in __ext4_new_inode()
1300 (!(ei->i_flags & EXT4_DAX_FL) || S_ISDIR(mode))) in __ext4_new_inode()
1318 if (!(ei->i_flags & EXT4_EA_INODE_FL)) { in __ext4_new_inode()
1356 inode->i_flags |= S_NOQUOTA; in __ext4_new_inode()

1234567