Home
last modified time | relevance | path

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

/Linux-v6.1/fs/xfs/
Dxfs_file.c320 unsigned int *iolock) in xfs_file_write_checks() argument
340 error = xfs_break_layouts(inode, iolock, BREAK_WRITE); in xfs_file_write_checks()
350 if (*iolock == XFS_IOLOCK_SHARED && !IS_NOSEC(inode)) { in xfs_file_write_checks()
351 xfs_iunlock(ip, *iolock); in xfs_file_write_checks()
352 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
353 error = xfs_ilock_iocb(iocb, *iolock); in xfs_file_write_checks()
355 *iolock = 0; in xfs_file_write_checks()
393 if (*iolock == XFS_IOLOCK_SHARED) { in xfs_file_write_checks()
394 xfs_iunlock(ip, *iolock); in xfs_file_write_checks()
395 *iolock = XFS_IOLOCK_EXCL; in xfs_file_write_checks()
[all …]
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_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_iops.c1004 uint iolock; in xfs_vn_setattr() local
1007 iolock = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xfs_vn_setattr()
1009 error = xfs_break_layouts(inode, &iolock, BREAK_UNMAP); in xfs_vn_setattr()
Dxfs_inode.h535 int xfs_break_layouts(struct inode *inode, uint *iolock,
/Linux-v6.1/drivers/mfd/
Dmax8998.c48 mutex_lock(&max8998->iolock); in max8998_read_reg()
50 mutex_unlock(&max8998->iolock); in max8998_read_reg()
65 mutex_lock(&max8998->iolock); in max8998_bulk_read()
67 mutex_unlock(&max8998->iolock); in max8998_bulk_read()
80 mutex_lock(&max8998->iolock); in max8998_write_reg()
82 mutex_unlock(&max8998->iolock); in max8998_write_reg()
92 mutex_lock(&max8998->iolock); in max8998_bulk_write()
94 mutex_unlock(&max8998->iolock); in max8998_bulk_write()
107 mutex_lock(&max8998->iolock); in max8998_update_reg()
114 mutex_unlock(&max8998->iolock); in max8998_update_reg()
[all …]
Dmax8997.c52 mutex_lock(&max8997->iolock); in max8997_read_reg()
54 mutex_unlock(&max8997->iolock); in max8997_read_reg()
69 mutex_lock(&max8997->iolock); in max8997_bulk_read()
71 mutex_unlock(&max8997->iolock); in max8997_bulk_read()
84 mutex_lock(&max8997->iolock); in max8997_write_reg()
86 mutex_unlock(&max8997->iolock); in max8997_write_reg()
96 mutex_lock(&max8997->iolock); in max8997_bulk_write()
98 mutex_unlock(&max8997->iolock); in max8997_bulk_write()
111 mutex_lock(&max8997->iolock); in max8997_update_reg()
118 mutex_unlock(&max8997->iolock); in max8997_update_reg()
[all …]
/Linux-v6.1/net/unix/
Dunix_bpf.c31 mutex_unlock(&u->iolock); in unix_msg_wait_data()
33 mutex_lock(&u->iolock); in unix_msg_wait_data()
61 mutex_lock(&u->iolock); in unix_bpf_recvmsg()
64 mutex_unlock(&u->iolock); in unix_bpf_recvmsg()
80 mutex_unlock(&u->iolock); in unix_bpf_recvmsg()
86 mutex_unlock(&u->iolock); in unix_bpf_recvmsg()
Daf_unix.c779 if (mutex_lock_interruptible(&u->iolock)) in unix_set_peek_off()
783 mutex_unlock(&u->iolock); in unix_set_peek_off()
979 mutex_init(&u->iolock); /* single task reading lock */ in unix_create1()
2281 mutex_unlock(&unix_sk(other)->iolock); in unix_stream_sendpage()
2291 err = mutex_lock_interruptible(&unix_sk(other)->iolock); in unix_stream_sendpage()
2358 mutex_unlock(&unix_sk(other)->iolock); in unix_stream_sendpage()
2367 mutex_unlock(&unix_sk(other)->iolock); in unix_stream_sendpage()
2435 mutex_lock(&u->iolock); in __unix_dgram_recvmsg()
2446 mutex_unlock(&u->iolock); in __unix_dgram_recvmsg()
2519 mutex_unlock(&u->iolock); in __unix_dgram_recvmsg()
[all …]
/Linux-v6.1/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.c180 spin_lock_init(&asd_ha->iolock); in asd_init_sw()
/Linux-v6.1/include/linux/mfd/
Dmax8998-private.h144 struct mutex iolock; member
Dmax8997-private.h375 struct mutex iolock; member
/Linux-v6.1/include/net/
Daf_unix.h60 struct mutex iolock, bindlock; member
/Linux-v6.1/include/media/
Dvideobuf-core.h122 int (*iolock) (struct videobuf_queue *q, member
/Linux-v6.1/drivers/media/v4l2-core/
Dvideobuf-vmalloc.c272 .iolock = __videobuf_iolock,
Dvideobuf-dma-contig.c342 .iolock = __videobuf_iolock,
Dvideobuf-dma-sg.c652 .iolock = __videobuf_iolock,
Dvideobuf-core.c127 return CALL(q, iolock, q, vb, fbuf); in videobuf_iolock()
/Linux-v6.1/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()