Home
last modified time | relevance | path

Searched refs:lock_count (Results 1 – 22 of 22) sorted by relevance

/linux/lib/
A Dlockref.c15 old.lock_count = READ_ONCE(lockref->lock_count); \
19 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \
20 old.lock_count, \
21 new.lock_count); \
22 if (likely(old.lock_count == prev.lock_count)) { \
/linux/drivers/video/fbdev/omap2/omapfb/
A Domapfb.h54 atomic_t lock_count; member
186 atomic_inc(&rg->lock_count); in omapfb_get_mem_region()
192 atomic_dec(&rg->lock_count); in omapfb_put_mem_region()
A Domapfb-sysfs.c447 atomic_inc(&rg->lock_count); in store_size()
481 atomic_dec(&rg->lock_count); in store_size()
A Domapfb-ioctl.c222 atomic_inc(&rg->lock_count); in omapfb_setup_mem()
256 atomic_dec(&rg->lock_count); in omapfb_setup_mem()
A Domapfb-main.c664 WARN_ON(!atomic_read(&ofbi->region->lock_count)); in check_fb_var()
847 WARN_ON(!atomic_read(&ofbi->region->lock_count)); in omapfb_setup_overlay()
941 WARN_ON(!atomic_read(&ofbi->region->lock_count)); in omapfb_apply_changes()
/linux/fs/ksmbd/
A Dsmb2misc.c154 int lock_count; in smb2_get_data_area_len() local
160 lock_count = le16_to_cpu(((struct smb2_lock_req *)hdr)->LockCount) - 1; in smb2_get_data_area_len()
161 if (lock_count > 0) { in smb2_get_data_area_len()
163 *len = sizeof(struct smb2_lock_element) * lock_count; in smb2_get_data_area_len()
A Dsmb2pdu.c6751 int lock_count; in smb2_lock() local
6775 lock_count = le16_to_cpu(req->LockCount); in smb2_lock()
6778 ksmbd_debug(SMB, "lock count is %d\n", lock_count); in smb2_lock()
6779 if (!lock_count) { in smb2_lock()
6784 for (i = 0; i < lock_count; i++) { in smb2_lock()
/linux/fs/afs/
A Dflock.c530 if (vnode->status.lock_count == -1) in afs_do_setlk()
533 if (vnode->status.lock_count != 0) in afs_do_setlk()
726 int ret, lock_count; in afs_do_getlk() local
743 lock_count = READ_ONCE(vnode->status.lock_count); in afs_do_getlk()
744 if (lock_count != 0) { in afs_do_getlk()
745 if (lock_count > 0) in afs_do_getlk()
A Dxdr_fs.h31 __be32 lock_count; member
A Dafs.h142 s32 lock_count; /* file lock count (0=UNLK -1=WRLCK +ve=#RDLCK */ member
A Dprotocol_yfs.h101 __be32 lock_count; member
A Dyfsclient.c207 status->lock_count = ntohl(xdr->lock_count); in xdr_decode_YFSFetchStatus()
A Dfsclient.c107 status->lock_count = ntohl(xdr->lock_count); in xdr_decode_AFSFetchStatus()
/linux/include/linux/
A Dlockref.h28 aligned_u64 lock_count; member
/linux/drivers/gpu/drm/
A Ddrm_lock.c175 ++file_priv->lock_count; in drm_legacy_lock()
334 return (file_priv->lock_count && master->lock.hw_lock && in drm_legacy_i_have_hw_lock()
/linux/drivers/clk/qcom/
A Dcommon.h49 qcom_pll_set_fsm_mode(struct regmap *m, u32 reg, u8 bias_count, u8 lock_count);
A Dcommon.c99 qcom_pll_set_fsm_mode(struct regmap *map, u32 reg, u8 bias_count, u8 lock_count) in qcom_pll_set_fsm_mode() argument
109 lock_count << PLL_LOCK_COUNT_SHIFT; in qcom_pll_set_fsm_mode()
/linux/include/drm/
A Ddrm_file.h367 unsigned long lock_count; /* DRI1 legacy lock count */ member
/linux/include/pcmcia/
A Dss.h136 u_short lock_count; member
/linux/Documentation/pcmcia/
A Dlocking.rst91 u_short lock_count;
/linux/drivers/pcmcia/
A Dpcmcia_resource.c357 if (--(s->lock_count) == 0) { in pcmcia_release_configuration()
534 s->lock_count++; in pcmcia_enable_device()
A Dcs.c303 s->lock_count = 0; in socket_shutdown()

Completed in 47 milliseconds