Home
last modified time | relevance | path

Searched full:unlock (Results 1 – 25 of 1927) sorted by relevance

12345678910>>...78

/linux-6.14.4/tools/memory-model/
Dlinux-kernel.bell29 'rcu-unlock (*rcu_read_unlock*) ||
34 'after-unlock-lock (*smp_mb__after_unlock_lock*) ||
35 'after-srcu-read-unlock (*smp_mb__after_srcu_read_unlock*)
39 enum SRCU = 'srcu-lock || 'srcu-unlock || 'sync-srcu
42 let Srcu = Srcu-lock | Srcu-unlock | Sync-srcu
44 (* Compute matching pairs of nested Rcu-lock and Rcu-unlock *)
47 and unmatched-unlocks = Rcu-unlock \ range(matched)
58 flag ~empty Rcu-unlock \ range(rcu-rscs) as unmatched-rcu-unlock
60 (* Compute matching pairs of nested Srcu-lock and Srcu-unlock *)
61 let carry-srcu-data = (data ; [~ Srcu-unlock] ; rf)*
[all …]
/linux-6.14.4/fs/ocfs2/dlm/
Ddlmunlock.c67 * So to unlock a converting lock, you must first cancel the
68 * convert (passing LKM_CANCEL in flags), then call the unlock
181 /* must clear the actions because this unlock in dlmunlock_common()
236 /* Unlock request will directly succeed after owner dies, in dlmunlock_common()
258 /* if cancel or unlock succeeded, lvb work is done */ in dlmunlock_common()
314 struct dlm_unlock_lock unlock; in dlm_send_remote_unlock_request() local
333 memset(&unlock, 0, sizeof(unlock)); in dlm_send_remote_unlock_request()
334 unlock.node_idx = dlm->node_num; in dlm_send_remote_unlock_request()
335 unlock.flags = cpu_to_be32(flags); in dlm_send_remote_unlock_request()
336 unlock.cookie = lock->ml.cookie; in dlm_send_remote_unlock_request()
[all …]
/linux-6.14.4/scripts/coccinelle/locks/
Dmini_lock.cocci3 /// where the unlock is missing from an if branch, and there is a lock
4 /// before the if and an unlock after the if. False positives are due to
67 identifier lock,unlock;
79 *unlock@up(E1,...);
84 unlock << err.unlock;
89 cocci.print_secs(unlock,p2)
94 unlock << err.unlock;
/linux-6.14.4/include/linux/
Dhwspinlock.h387 * hwspin_unlock_irqrestore() - unlock hwspinlock, restore irq state
388 * @hwlock: a previously-acquired hwspinlock which we want to unlock
391 * This function will unlock a specific hwspinlock, enable preemption and
396 * to call unlock on a @hwlock that is already unlocked.
405 * hwspin_unlock_irq() - unlock hwspinlock, enable interrupts
406 * @hwlock: a previously-acquired hwspinlock which we want to unlock
408 * This function will unlock a specific hwspinlock, enable preemption and
412 * calling this function: it is a bug to call unlock on a @hwlock that is
421 * hwspin_unlock_raw() - unlock hwspinlock
422 * @hwlock: a previously-acquired hwspinlock which we want to unlock
[all …]
/linux-6.14.4/drivers/accel/ivpu/
Divpu_ms.c57 goto unlock; in ivpu_ms_start_ioctl()
63 goto unlock; in ivpu_ms_start_ioctl()
96 goto unlock; in ivpu_ms_start_ioctl()
102 unlock: in ivpu_ms_start_ioctl()
180 goto unlock; in ivpu_ms_get_data_ioctl()
186 goto unlock; in ivpu_ms_get_data_ioctl()
188 goto unlock; in ivpu_ms_get_data_ioctl()
193 goto unlock; in ivpu_ms_get_data_ioctl()
198 unlock: in ivpu_ms_get_data_ioctl()
277 goto unlock; in ivpu_ms_get_info_ioctl()
[all …]
/linux-6.14.4/drivers/crypto/ccp/
Dplatform-access.c84 goto unlock; in psp_send_platform_access_msg()
90 goto unlock; in psp_send_platform_access_msg()
111 goto unlock; in psp_send_platform_access_msg()
118 goto unlock; in psp_send_platform_access_msg()
133 goto unlock; in psp_send_platform_access_msg()
141 unlock: in psp_send_platform_access_msg()
167 goto unlock; in psp_ring_platform_doorbell()
175 goto unlock; in psp_ring_platform_doorbell()
183 goto unlock; in psp_ring_platform_doorbell()
187 unlock: in psp_ring_platform_doorbell()
/linux-6.14.4/drivers/leds/
Dled-class-flash.c48 goto unlock; in flash_brightness_store()
53 goto unlock; in flash_brightness_store()
57 goto unlock; in flash_brightness_store()
60 unlock: in flash_brightness_store()
99 goto unlock; in flash_strobe_store()
103 goto unlock; in flash_strobe_store()
107 goto unlock; in flash_strobe_store()
112 goto unlock; in flash_strobe_store()
114 unlock: in flash_strobe_store()
148 goto unlock; in flash_timeout_store()
[all …]
/linux-6.14.4/sound/usb/
Dmixer_scarlett2.c2386 goto unlock; in scarlett2_usb()
2397 goto unlock; in scarlett2_usb()
2416 goto unlock; in scarlett2_usb()
2424 goto unlock; in scarlett2_usb()
2448 goto unlock; in scarlett2_usb()
2454 unlock: in scarlett2_usb()
3323 goto unlock; in scarlett2_sync_ctl_get()
3329 goto unlock; in scarlett2_sync_ctl_get()
3333 unlock: in scarlett2_sync_ctl_get()
3589 goto unlock; in scarlett2_autogain_switch_ctl_info()
[all …]
/linux-6.14.4/Documentation/locking/
Dfutex-requeue-pi.rst30 unlock(mutex);
32 unlock(cond->__data.__lock);
36 unlock(cond->__data.__lock);
43 unlock(cond->__data.__lock);
64 unlock(mutex);
66 unlock(cond->__data.__lock);
70 unlock(cond->__data.__lock);
77 unlock(cond->__data.__lock);
Dhwspinlock.rst263 Unlock a previously-locked hwspinlock. Always succeed, and can be called
268 code should **never** unlock an hwspinlock which is already unlocked
275 Unlock a previously-locked hwspinlock and enable local interrupts.
276 The caller should **never** unlock an hwspinlock which is already unlocked.
287 Unlock a previously-locked hwspinlock.
289 The caller should **never** unlock an hwspinlock which is already unlocked.
299 Unlock a previously-locked hwspinlock.
301 The caller should **never** unlock an hwspinlock which is already unlocked.
309 Unlock a previously-locked hwspinlock.
311 The caller should **never** unlock an hwspinlock which is already unlocked.
[all …]
/linux-6.14.4/drivers/media/rc/
Dbpf-lirc.c154 goto unlock; in lirc_bpf_attach()
160 goto unlock; in lirc_bpf_attach()
165 goto unlock; in lirc_bpf_attach()
170 unlock: in lirc_bpf_attach()
192 goto unlock; in lirc_bpf_detach()
203 goto unlock; in lirc_bpf_detach()
208 unlock: in lirc_bpf_detach()
324 goto unlock; in lirc_prog_query()
329 goto unlock; in lirc_prog_query()
336 unlock: in lirc_prog_query()
/linux-6.14.4/rust/kernel/sync/
Dlock.rs32 /// is owned, that is, between calls to [`lock`] and [`unlock`].
37 /// [`unlock`]: Backend::unlock
43 /// The state required to be kept between [`lock`] and [`unlock`].
46 /// [`unlock`]: Backend::unlock
81 unsafe fn unlock(ptr: *mut Self::State, guard_state: &Self::GuardState); in unlock() method
88 /// variant) that has been unlocked with [`Backend::unlock`] and will be relocked now.
189 /// Allows mutual exclusion primitives that implement the [`Backend`] trait to automatically unlock
204 // SAFETY: The caller owns the lock, so it is safe to unlock it. in do_unlocked()
205 unsafe { B::unlock(self.lock.state.get(), &self.state) }; in do_unlocked()
233 // SAFETY: The caller owns the lock, so it is safe to unlock it. in drop()
[all …]
/linux-6.14.4/arch/arm64/kvm/hyp/nvhe/
Dmem_protect.c557 goto unlock; in host_stage2_idmap()
560 unlock: in host_stage2_idmap()
699 goto unlock; in __pkvm_host_share_hyp()
703 goto unlock; in __pkvm_host_share_hyp()
710 unlock: in __pkvm_host_share_hyp()
729 goto unlock; in __pkvm_host_unshare_hyp()
732 goto unlock; in __pkvm_host_unshare_hyp()
735 goto unlock; in __pkvm_host_unshare_hyp()
741 unlock: in __pkvm_host_unshare_hyp()
761 goto unlock; in __pkvm_host_donate_hyp()
[all …]
/linux-6.14.4/kernel/locking/
Dosq_lock.c45 * Get a stable @node->next pointer, either for unlock() or unqueue() purposes.
66 * unlock()/unqueue(). in osq_wait_next()
73 * leave it in, a concurrent unlock()/unqueue() from in osq_wait_next()
77 * If the concurrent unlock()/unqueue() wins the race, we'll in osq_wait_next()
106 * unlock() uncontended, or fastpath) and RELEASE (to publish in osq_lock()
133 * moment unlock can proceed and wipe the node element from stack. in osq_lock()
155 * unlock()/unqueue() wait for a next pointer since @lock points to us in osq_lock()
169 * We can only fail the cmpxchg() racing against an unlock(), in osq_lock()
188 * Similar to unlock(), wait for @node->next or move @lock from @node in osq_lock()
/linux-6.14.4/drivers/media/mc/
Dmc-request.c107 goto unlock; in media_request_poll()
111 goto unlock; in media_request_poll()
114 unlock: in media_request_poll()
413 goto unlock; in media_request_object_bind()
426 unlock: in media_request_object_bind()
446 goto unlock; in media_request_object_unbind()
449 goto unlock; in media_request_object_unbind()
454 goto unlock; in media_request_object_unbind()
458 goto unlock; in media_request_object_unbind()
468 unlock: in media_request_object_unbind()
[all …]
/linux-6.14.4/include/asm-generic/bitops/
Dinstrumented-lock.h17 * clear_bit_unlock - Clear a bit in memory, for unlock
36 * memory operation. It can be used for an unlock if no other CPUs can
63 * it is negative, for unlock.
70 * with an unlock or end of writeback. Bit 7 is used as PG_waiters to
71 * indicate whether anybody is waiting for the unlock.
/linux-6.14.4/drivers/crypto/intel/qat/qat_common/
Dadf_dev_mgr.c164 goto unlock; in adf_devmgr_add_dev()
172 goto unlock; in adf_devmgr_add_dev()
178 goto unlock; in adf_devmgr_add_dev()
204 goto unlock; in adf_devmgr_add_dev()
210 goto unlock; in adf_devmgr_add_dev()
216 goto unlock; in adf_devmgr_add_dev()
227 unlock: in adf_devmgr_add_dev()
262 goto unlock; in adf_devmgr_rm_dev()
272 unlock: in adf_devmgr_rm_dev()
315 goto unlock; in adf_devmgr_get_dev_by_id()
[all …]
/linux-6.14.4/net/bluetooth/
Dhci_event.c825 goto unlock; in hci_cc_write_auth_payload_timeout()
831 unlock: in hci_cc_write_auth_payload_timeout()
1072 goto unlock; in hci_cc_read_clock()
1076 goto unlock; in hci_cc_read_clock()
1085 unlock: in hci_cc_read_clock()
1155 goto unlock; in hci_cc_pin_code_reply()
1159 goto unlock; in hci_cc_pin_code_reply()
1165 unlock: in hci_cc_pin_code_reply()
1615 goto unlock; in hci_cc_le_set_ext_adv_enable()
1627 unlock: in hci_cc_le_set_ext_adv_enable()
[all …]
/linux-6.14.4/arch/powerpc/platforms/powermac/
Dfeature.c64 #define UNLOCK(flags) raw_spin_unlock_irqrestore(&feature_lock, flags); macro
154 UNLOCK(flags); in simple_feature_tweak()
209 UNLOCK(flags); in ohare_htw_scc_enable()
222 UNLOCK(flags); in ohare_htw_scc_enable()
242 UNLOCK(flags); in ohare_htw_scc_enable()
328 UNLOCK(flags); in heathrow_modem_enable()
339 UNLOCK(flags); in heathrow_modem_enable()
347 UNLOCK(flags); mdelay(250); LOCK(flags); in heathrow_modem_enable()
350 UNLOCK(flags); mdelay(250); LOCK(flags); in heathrow_modem_enable()
353 UNLOCK(flags); mdelay(250); in heathrow_modem_enable()
[all …]
/linux-6.14.4/crypto/
Daf_alg.c70 goto unlock; in af_alg_register_type()
76 goto unlock; in af_alg_register_type()
85 unlock: in af_alg_register_type()
193 goto unlock; in alg_bind()
200 unlock: in alg_bind()
367 goto unlock; in alg_setsockopt()
373 goto unlock; in alg_setsockopt()
379 goto unlock; in alg_setsockopt()
381 goto unlock; in alg_setsockopt()
390 goto unlock; in alg_setsockopt()
[all …]
/linux-6.14.4/drivers/media/platform/qcom/venus/
Dhfi.c57 goto unlock; in hfi_core_init()
63 goto unlock; in hfi_core_init()
68 goto unlock; in hfi_core_init()
75 goto unlock; in hfi_core_init()
79 unlock: in hfi_core_init()
91 goto unlock; in hfi_core_deinit()
97 goto unlock; in hfi_core_deinit()
108 goto unlock; in hfi_core_deinit()
115 unlock: in hfi_core_deinit()
172 goto unlock; in hfi_session_create()
[all …]
/linux-6.14.4/drivers/net/ethernet/intel/igb/
De1000_mbx.c12 * @unlock: skip locking or not
17 bool unlock) in igb_read_mbx() argument
27 ret_val = mbx->ops.read(hw, msg, size, mbx_id, unlock); in igb_read_mbx()
110 * igb_unlock_mbx - unlock the mailbox
121 if (mbx->ops.unlock) in igb_unlock_mbx()
122 ret_val = mbx->ops.unlock(hw, mbx_id); in igb_unlock_mbx()
408 * @unlock: unlock the mailbox when done?
415 u16 vf_number, bool unlock) in igb_read_mbx_pf() argument
430 if (unlock) in igb_read_mbx_pf()
465 mbx->ops.unlock = igb_release_mbx_lock_pf; in igb_init_mbx_params_pf()
/linux-6.14.4/drivers/net/wireless/silabs/wfx/
Dhwio.c59 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in wfx_read32_locked()
70 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in wfx_write32_locked()
92 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in wfx_write32_bits_locked()
168 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in wfx_indirect_read_locked()
180 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in wfx_indirect_write_locked()
195 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in wfx_indirect_read32_locked()
211 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in wfx_indirect_write32_locked()
224 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in wfx_data_read()
238 wdev->hwbus_ops->unlock(wdev->hwbus_priv); in wfx_data_write()
/linux-6.14.4/kernel/power/
Duser.c60 goto Unlock; in snapshot_open()
66 goto Unlock; in snapshot_open()
101 Unlock: in snapshot_open()
147 goto Unlock; in snapshot_read()
152 goto Unlock; in snapshot_read()
162 Unlock: in snapshot_read()
188 goto unlock; in snapshot_write()
195 goto unlock; in snapshot_write()
202 unlock: in snapshot_write()
/linux-6.14.4/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dlegacy.c395 goto unlock; in mlx5_esw_query_vport_drop_stats()
407 goto unlock; in mlx5_esw_query_vport_drop_stats()
413 goto unlock; in mlx5_esw_query_vport_drop_stats()
420 unlock: in mlx5_esw_query_vport_drop_stats()
440 goto unlock; /* compatibility with libvirt */ in mlx5_eswitch_set_vport_vlan()
443 goto unlock; in mlx5_eswitch_set_vport_vlan()
448 unlock: in mlx5_eswitch_set_vport_vlan()
468 goto unlock; in mlx5_eswitch_set_vport_spoofchk()
481 unlock: in mlx5_eswitch_set_vport_spoofchk()
500 goto unlock; in mlx5_eswitch_set_vport_trust()
[all …]

12345678910>>...78