| /linux/include/linux/ |
| H A D | spinlock.h | 536 raw_spin_lock(_T->lock), 537 raw_spin_unlock(_T->lock)) 539 DEFINE_LOCK_GUARD_1_COND(raw_spinlock, _try, raw_spin_trylock(_T->lock)) 542 raw_spin_lock_nested(_T->lock, SINGLE_DEPTH_NESTING), 543 raw_spin_unlock(_T->lock)) 546 raw_spin_lock_irq(_T->lock), 547 raw_spin_unlock_irq(_T->lock)) 549 DEFINE_LOCK_GUARD_1_COND(raw_spinlock_irq, _try, raw_spin_trylock_irq(_T->lock)) 552 raw_spin_lock_bh(_T->lock), 553 raw_spin_unlock_bh(_T [all...] |
| H A D | cleanup.h | 211 static __always_inline void __free_##_name(void *p) { _type _T = *(_type *)p; _free; } 282 { _type _T = *p; _exit; } \ 353 static inline void * class_##_name##_lock_ptr(class_##_name##_t *_T) \ 363 static __always_inline void *class_##_name##_lock_ptr(class_##_name##_t *_T) \ 371 static __always_inline int class_##_name##_lock_err(class_##_name##_t *_T) \ 385 __DEFINE_GUARD_LOCK_PTR(_name, _T) 389 __DEFINE_GUARD_LOCK_PTR(_name, _T) 392 DEFINE_CLASS(_name, _type, if (!__GUARD_IS_ERR(_T)) { _unlock; }, ({ _lock; _T; }), _type _T); \ 398 ({ void *_t = _T; int _RET = (_lock); if (_T && !(_cond)) _t = ERR_PTR(_RET); _t; }), \ 399 class_##_name##_t _T) \ [all …]
|
| H A D | srcu.h | 600 _T->idx = srcu_read_lock(_T->lock), 601 srcu_read_unlock(_T->lock, _T->idx), 605 _T->scp = srcu_read_lock_fast(_T->lock), 606 srcu_read_unlock_fast(_T->lock, _T->scp), 610 _T->scp = srcu_read_lock_fast_notrace(_T->lock), 611 srcu_read_unlock_fast_notrace(_T->lock, _T->scp),
|
| H A D | rwsem.h | 253 DEFINE_GUARD(rwsem_read, struct rw_semaphore *, down_read(_T), up_read(_T)) 254 DEFINE_GUARD_COND(rwsem_read, _try, down_read_trylock(_T)) 255 DEFINE_GUARD_COND(rwsem_read, _intr, down_read_interruptible(_T), _RET == 0) 257 DEFINE_GUARD(rwsem_write, struct rw_semaphore *, down_write(_T), up_write(_T)) 258 DEFINE_GUARD_COND(rwsem_write, _try, down_write_trylock(_T)) 259 DEFINE_GUARD_COND(rwsem_write, _kill, down_write_killable(_T), _RET == 0)
|
| H A D | file.h | 83 DEFINE_CLASS(fd, struct fd, fdput(_T), fdget(fd), int fd) 84 DEFINE_CLASS(fd_raw, struct fd, fdput(_T), fdget_raw(fd), int fd) 85 DEFINE_CLASS(fd_pos, struct fd, fdput_pos(_T), fdget_pos(fd), int fd) 95 DEFINE_CLASS(get_unused_fd, int, if (_T >= 0) put_unused_fd(_T), 97 DEFINE_FREE(fput, struct file *, if (!IS_ERR_OR_NULL(_T)) fput(_T))
|
| H A D | pm_runtime.h | 618 pm_runtime_get_noresume(_T), pm_runtime_put_noidle(_T)); 621 pm_runtime_get_sync(_T), pm_runtime_put(_T)); 623 pm_runtime_get_sync(_T), pm_runtime_put_autosuspend(_T)); 632 pm_runtime_get_active(_T, RPM_TRANSPARENT), _RET == 0) 634 pm_runtime_resume_and_get(_T), _RET == 0) 636 pm_runtime_get_active(_T, RPM_TRANSPARENT), _RET == 0) 638 pm_runtime_resume_and_get(_T), _RET == 0)
|
| H A D | cred.h | 192 revert_creds(_T), in DEFINE_CLASS() argument 285 if (_T) put_cred(_T), 288 DEFINE_FREE(put_cred, struct cred *, if (!IS_ERR_OR_NULL(_T)) put_cred(_T))
|
| H A D | mnt_namespace.h | 19 DEFINE_FREE(put_mnt_ns, struct mnt_namespace *, if (!IS_ERR_OR_NULL(_T)) put_mnt_ns(_T))
|
| H A D | execmem.h | 179 DEFINE_FREE(execmem, void *, if (_T) execmem_free(_T));
|
| H A D | nsproxy.h | 118 DEFINE_FREE(put_nsproxy, struct nsproxy *, if (_T) put_nsproxy(_T))
|
| H A D | tsm.h | 119 if (!IS_ERR_OR_NULL(_T)) put_device(&_T->dev))
|
| H A D | pci-ide.h | 118 DEFINE_FREE(pci_ide_stream_release, struct pci_ide *, if (_T) pci_ide_stream_release(_T))
|
| H A D | idr.h | 137 if (_T.id >= 0) idr_remove(_T.idr, _T.id),
|
| H A D | slab.h | 512 DEFINE_FREE(kfree, void *, if (!IS_ERR_OR_NULL(_T)) kfree(_T)) 513 DEFINE_FREE(kfree_sensitive, void *, if (_T) kfree_sensitive(_T)) 1141 DEFINE_FREE(kvfree, void *, if (!IS_ERR_OR_NULL(_T)) kvfree(_T))
|
| H A D | serio.h | 165 DEFINE_GUARD(serio_pause_rx, struct serio *, serio_pause_rx(_T), serio_continue_rx(_T))
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_pm.h | 44 xe_pm_runtime_get(_T), xe_pm_runtime_put(_T)) 46 xe_pm_runtime_get_noresume(_T), xe_pm_runtime_put(_T)) 47 DEFINE_GUARD_COND(xe_pm_runtime, _ioctl, xe_pm_runtime_get_ioctl(_T), _RET >= 0) 55 __xe_pm_runtime_noop(_T), xe_pm_runtime_put(_T));
|
| /linux/tools/perf/tests/ |
| H A D | event-times.c | 222 #define _T(attach, detach) \ in test__event_times() macro 228 _T(attach__enable_on_exec, detach__enable_on_exec) in test__event_times() 230 _T(attach__current_enabled, detach__disable) in test__event_times() 232 _T(attach__current_disabled, detach__disable) in test__event_times() 234 _T(attach__cpu_disabled, detach__disable) in test__event_times() 236 _T(attach__cpu_enabled, detach__disable) in test__event_times() 238 #undef _T in test__event_times()
|
| /linux/include/linux/sched/ |
| H A D | task.h | 162 DEFINE_FREE(put_task, struct task_struct *, if (_T) put_task_struct(_T)) in DEFINE_FREE() argument 226 DEFINE_GUARD(task_lock, struct task_struct *, task_lock(_T), task_unlock(_T))
|
| /linux/kernel/sched/ |
| H A D | sched.h | 1859 _T->rq = task_rq_lock(_T->lock, &_T->rf), 1860 task_rq_unlock(_T->rq, _T->lock, &_T->rf), 1864 _T->rq = __task_rq_lock(_T->lock, &_T->rf), 1865 __task_rq_unlock(_T->rq, _T->lock, &_T->rf), 1911 rq_lock(_T->lock, &_T->rf), 1912 rq_unlock(_T->lock, &_T->rf), 1916 rq_lock_irq(_T->lock, &_T->rf), 1917 rq_unlock_irq(_T->lock, &_T->rf), 1921 rq_lock_irqsave(_T->lock, &_T->rf), 1922 rq_unlock_irqrestore(_T->lock, &_T->rf), [all …]
|
| /linux/kernel/trace/rv/ |
| H A D | rv.h | 20 DEFINE_FREE(rv_remove, struct dentry *, if (_T) rv_remove(_T));
|
| /linux/crypto/asymmetric_keys/ |
| H A D | x509_parser.h | 49 if (!IS_ERR(_T)) x509_free_certificate(_T))
|
| /linux/drivers/cxl/ |
| H A D | cxl.h | 785 DEFINE_FREE(put_cxl_root, struct cxl_root *, if (_T) put_device(&_T->port.dev)) 786 DEFINE_FREE(put_cxl_port, struct cxl_port *, if (!IS_ERR_OR_NULL(_T)) put_device(&_T->dev)) 787 …t_cxl_root_decoder, struct cxl_root_decoder *, if (!IS_ERR_OR_NULL(_T)) put_device(&_T->cxlsd.cxld… 788 DEFINE_FREE(put_cxl_region, struct cxl_region *, if (!IS_ERR_OR_NULL(_T)) put_device(&_T->dev))
|
| /linux/include/linux/firmware/qcom/ |
| H A D | qcom_tzmem.h | 61 DEFINE_FREE(qcom_tzmem, void *, if (_T) qcom_tzmem_free(_T))
|
| /linux/drivers/firewire/ |
| H A D | core-card.c | 379 DEFINE_FREE(node_unref, struct fw_node *, if (_T) fw_node_put(_T)) in DEFINE_FREE() argument 380 DEFINE_FREE(card_unref, struct fw_card *, if (_T) fw_card_put(_T)) in DEFINE_FREE() 596 DEFINE_FREE(workqueue_destroy, struct workqueue_struct *, if (_T) destroy_workqueue(_T)) in DEFINE_FREE() argument
|
| /linux/include/linux/fs/ |
| H A D | super.h | 130 sb_start_write(_T), in DEFINE_GUARD() argument 131 sb_end_write(_T)) in DEFINE_GUARD() argument
|