Home
last modified time | relevance | path

Searched refs:iolock (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/fs/xfs/
Dxfs_file.c385 unsigned int *iolock) in xfs_file_write_checks() argument
405 error = xfs_break_layouts(inode, iolock, BREAK_WRITE); in xfs_file_write_checks()
415 if (*iolock == XFS_IOLOCK_SHARED && !IS_NOSEC(inode)) { in xfs_file_write_checks()
416 xfs_iunlock(ip, *iolock); in xfs_file_write_checks()
417 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
418 error = xfs_ilock_iocb(iocb, *iolock); in xfs_file_write_checks()
420 *iolock = 0; in xfs_file_write_checks()
458 if (*iolock == XFS_IOLOCK_SHARED) { in xfs_file_write_checks()
459 xfs_iunlock(ip, *iolock); in xfs_file_write_checks()
460 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
[all …]
Dxfs_pnfs.h12 int xfs_break_leased_layouts(struct inode *inode, uint *iolock,
16 xfs_break_leased_layouts(struct inode *inode, uint *iolock, bool *did_unlock) in xfs_break_leased_layouts() argument
Dxfs_pnfs.c30 uint *iolock, in xfs_break_leased_layouts() argument
37 xfs_iunlock(ip, *iolock); in xfs_break_leased_layouts()
40 *iolock &= ~XFS_IOLOCK_SHARED; in xfs_break_leased_layouts()
41 *iolock |= XFS_IOLOCK_EXCL; in xfs_break_leased_layouts()
42 xfs_ilock(ip, *iolock); in xfs_break_leased_layouts()
Dxfs_iops.c1010 uint iolock; in xfs_vn_setattr() local
1013 iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_vn_setattr()
1015 error = xfs_break_layouts(inode, &iolock, BREAK_UNMAP); in xfs_vn_setattr()
Dxfs_inode.h564 int xfs_break_layouts(struct inode *inode, uint *iolock,
/linux-6.6.21/drivers/mfd/
Dmax8998.c47 mutex_lock(&max8998->iolock); in max8998_read_reg()
49 mutex_unlock(&max8998->iolock); in max8998_read_reg()
64 mutex_lock(&max8998->iolock); in max8998_bulk_read()
66 mutex_unlock(&max8998->iolock); in max8998_bulk_read()
79 mutex_lock(&max8998->iolock); in max8998_write_reg()
81 mutex_unlock(&max8998->iolock); in max8998_write_reg()
91 mutex_lock(&max8998->iolock); in max8998_bulk_write()
93 mutex_unlock(&max8998->iolock); in max8998_bulk_write()
106 mutex_lock(&max8998->iolock); in max8998_update_reg()
113 mutex_unlock(&max8998->iolock); in max8998_update_reg()
[all …]
Dmax8997.c51 mutex_lock(&max8997->iolock); in max8997_read_reg()
53 mutex_unlock(&max8997->iolock); in max8997_read_reg()
68 mutex_lock(&max8997->iolock); in max8997_bulk_read()
70 mutex_unlock(&max8997->iolock); in max8997_bulk_read()
83 mutex_lock(&max8997->iolock); in max8997_write_reg()
85 mutex_unlock(&max8997->iolock); in max8997_write_reg()
95 mutex_lock(&max8997->iolock); in max8997_bulk_write()
97 mutex_unlock(&max8997->iolock); in max8997_bulk_write()
110 mutex_lock(&max8997->iolock); in max8997_update_reg()
117 mutex_unlock(&max8997->iolock); in max8997_update_reg()
[all …]
/linux-6.6.21/net/unix/
Dunix_bpf.c31 mutex_unlock(&u->iolock); in unix_msg_wait_data()
33 mutex_lock(&u->iolock); in unix_msg_wait_data()
64 mutex_lock(&u->iolock); in unix_bpf_recvmsg()
67 mutex_unlock(&u->iolock); in unix_bpf_recvmsg()
83 mutex_unlock(&u->iolock); in unix_bpf_recvmsg()
89 mutex_unlock(&u->iolock); in unix_bpf_recvmsg()
Daf_unix.c788 if (mutex_lock_interruptible(&u->iolock)) in unix_set_peek_off()
792 mutex_unlock(&u->iolock); in unix_set_peek_off()
1001 mutex_init(&u->iolock); /* single task reading lock */ in unix_create1()
2355 mutex_lock(&u->iolock); in __unix_dgram_recvmsg()
2366 mutex_unlock(&u->iolock); in __unix_dgram_recvmsg()
2439 mutex_unlock(&u->iolock); in __unix_dgram_recvmsg()
2464 mutex_lock(&u->iolock); in unix_read_skb()
2466 mutex_unlock(&u->iolock); in unix_read_skb()
2539 mutex_lock(&u->iolock); in unix_stream_recv_urg()
2544 mutex_unlock(&u->iolock); in unix_stream_recv_urg()
[all …]
/linux-6.6.21/drivers/scsi/aic94xx/
Daic94xx_reg.c203 spin_lock_irqsave(&asd_ha->iolock, flags); \
218 spin_unlock_irqrestore(&asd_ha->iolock, flags); \
254 spin_lock_irqsave(&asd_ha->iolock, flags); \
269 spin_unlock_irqrestore(&asd_ha->iolock, flags); \
290 spin_lock_irqsave(&asd_ha->iolock, flags); in asd_read_reg_string()
293 spin_unlock_irqrestore(&asd_ha->iolock, flags); in asd_read_reg_string()
309 spin_lock_irqsave(&asd_ha->iolock, flags); in asd_write_reg_string()
312 spin_unlock_irqrestore(&asd_ha->iolock, flags); in asd_write_reg_string()
Daic94xx_hwi.h189 spinlock_t iolock; member
Daic94xx_hwi.c178 spin_lock_init(&asd_ha->iolock); in asd_init_sw()
/linux-6.6.21/include/linux/mfd/
Dmax8998-private.h144 struct mutex iolock; member
Dmax8997-private.h375 struct mutex iolock; member
/linux-6.6.21/include/net/
Daf_unix.h55 struct mutex iolock, bindlock; member
/linux-6.6.21/include/media/
Dvideobuf-core.h122 int (*iolock) (struct videobuf_queue *q, member
/linux-6.6.21/drivers/media/v4l2-core/
Dvideobuf-vmalloc.c272 .iolock = __videobuf_iolock,
Dvideobuf-dma-contig.c336 .iolock = __videobuf_iolock,
Dvideobuf-dma-sg.c648 .iolock = __videobuf_iolock,
Dvideobuf-core.c127 return CALL(q, iolock, q, vb, fbuf); in videobuf_iolock()
/linux-6.6.21/drivers/net/hamradio/
Dscc.c242 static DEFINE_SPINLOCK(iolock); /* Guards paired accesses */
249 spin_lock_irqsave(&iolock, flags); in InReg()
259 spin_unlock_irqrestore(&iolock, flags); in InReg()
267 spin_lock_irqsave(&iolock, flags); in OutReg()
275 spin_unlock_irqrestore(&iolock, flags); in OutReg()