| /linux/include/linux/ |
| A D | spinlock.h | 552 raw_spin_lock_irqsave(_T->lock, _T->flags), 553 raw_spin_unlock_irqrestore(_T->lock, _T->flags), 557 raw_spin_trylock_irqsave(_T->lock, _T->flags)) 560 spin_lock(_T->lock), 573 spin_lock_irqsave(_T->lock, _T->flags), 574 spin_unlock_irqrestore(_T->lock, _T->flags), 578 spin_trylock_irqsave(_T->lock, _T->flags)) 589 read_lock_irqsave(_T->lock, _T->flags), 590 read_unlock_irqrestore(_T->lock, _T->flags), 602 write_lock_irqsave(_T->lock, _T->flags), [all …]
|
| A D | cleanup.h | 246 { _type _T = *p; _exit; } \ 291 DEFINE_CLASS(_name, _type, if (_T) { _unlock; }, ({ _lock; _T; }), _type _T); \ 293 { return *_T; } 297 ({ void *_t = _T; if (_T && !(_condlock)) _t = NULL; _t; }), \ 298 class_##_name##_t _T) \ 300 { return class_##_name##_lock_ptr(_T); } 345 if (_T->lock) { _unlock; } \ 350 return _T->lock; \ 366 *_T __maybe_unused = &_t; \ 382 if (_T->lock && !(_condlock)) _T->lock = NULL; \ [all …]
|
| A D | local_lock.h | 55 local_lock(_T), 56 local_unlock(_T)) 58 local_lock_irq(_T), 59 local_unlock_irq(_T)) 61 local_lock_irqsave(_T->lock, _T->flags), 62 local_unlock_irqrestore(_T->lock, _T->flags), 72 local_lock_nested_bh(_T), 73 local_unlock_nested_bh(_T))
|
| A D | file.h | 88 DEFINE_CLASS(fd, struct fd, fdput(_T), fdget(fd), int fd) 89 DEFINE_CLASS(fd_raw, struct fd, fdput(_T), fdget_raw(fd), int fd) 99 DEFINE_CLASS(get_unused_fd, int, if (_T >= 0) put_unused_fd(_T), 101 DEFINE_FREE(fput, struct file *, if (!IS_ERR_OR_NULL(_T)) fput(_T))
|
| A D | rwsem.h | 241 DEFINE_GUARD(rwsem_read, struct rw_semaphore *, down_read(_T), up_read(_T)) 242 DEFINE_GUARD_COND(rwsem_read, _try, down_read_trylock(_T)) 243 DEFINE_GUARD_COND(rwsem_read, _intr, down_read_interruptible(_T) == 0) 245 DEFINE_GUARD(rwsem_write, struct rw_semaphore *, down_write(_T), up_write(_T)) 246 DEFINE_GUARD_COND(rwsem_write, _try, down_write_trylock(_T))
|
| A D | mutex.h | 201 DEFINE_GUARD(mutex, struct mutex *, mutex_lock(_T), mutex_unlock(_T)) 202 DEFINE_GUARD_COND(mutex, _try, mutex_trylock(_T)) 203 DEFINE_GUARD_COND(mutex, _intr, mutex_lock_interruptible(_T) == 0)
|
| A D | srcu.h | 396 _T->idx = srcu_read_lock(_T->lock), 397 srcu_read_unlock(_T->lock, _T->idx),
|
| A D | mnt_namespace.h | 17 DEFINE_FREE(put_mnt_ns, struct mnt_namespace *, if (!IS_ERR_OR_NULL(_T)) put_mnt_ns(_T))
|
| A D | nsproxy.h | 126 DEFINE_FREE(put_nsproxy, struct nsproxy *, if (_T) put_nsproxy(_T))
|
| A D | irqflags.h | 261 local_irq_save(_T->flags), 262 local_irq_restore(_T->flags),
|
| A D | device.h | 1032 DEFINE_GUARD(device, struct device *, device_lock(_T), device_unlock(_T)) in DEFINE_GUARD() argument 1075 DEFINE_FREE(device_del, struct device *, if (_T) device_del(_T)) 1242 DEFINE_FREE(put_device, struct device *, if (_T) put_device(_T))
|
| A D | slab.h | 450 DEFINE_FREE(kfree, void *, if (!IS_ERR_OR_NULL(_T)) kfree(_T)) 1056 DEFINE_FREE(kvfree, void *, if (!IS_ERR_OR_NULL(_T)) kvfree(_T))
|
| /linux/tools/perf/tests/ |
| A D | event-times.c | 223 #define _T(attach, detach) \ in test__event_times() macro 229 _T(attach__enable_on_exec, detach__enable_on_exec) in test__event_times() 231 _T(attach__current_enabled, detach__disable) in test__event_times() 233 _T(attach__current_disabled, detach__disable) in test__event_times() 235 _T(attach__cpu_disabled, detach__disable) in test__event_times() 237 _T(attach__cpu_enabled, detach__disable) in test__event_times() 239 #undef _T in test__event_times()
|
| /linux/include/linux/sched/ |
| A D | task.h | 172 DEFINE_FREE(put_task, struct task_struct *, if (_T) put_task_struct(_T)) in DEFINE_FREE() argument 237 DEFINE_GUARD(task_lock, struct task_struct *, task_lock(_T), task_unlock(_T))
|
| /linux/include/linux/firmware/qcom/ |
| A D | qcom_tzmem.h | 52 DEFINE_FREE(qcom_tzmem, void *, if (_T) qcom_tzmem_free(_T))
|
| /linux/crypto/asymmetric_keys/ |
| A D | x509_parser.h | 49 if (!IS_ERR(_T)) x509_free_certificate(_T))
|
| /linux/kernel/sched/ |
| A D | sched.h | 1784 _T->rq = task_rq_lock(_T->lock, &_T->rf), 1785 task_rq_unlock(_T->rq, _T->lock, &_T->rf), 1831 rq_lock(_T->lock, &_T->rf), 1832 rq_unlock(_T->lock, &_T->rf), 1836 rq_lock_irq(_T->lock, &_T->rf), 1837 rq_unlock_irq(_T->lock, &_T->rf), 1841 rq_lock_irqsave(_T->lock, &_T->rf), 1842 rq_unlock_irqrestore(_T->lock, &_T->rf), 3075 double_raw_lock(_T->lock, _T->lock2), 3137 double_rq_lock(_T->lock, _T->lock2), [all …]
|
| /linux/include/linux/gpio/ |
| A D | driver.h | 544 if (*_T.label) kfree(*_T.label), 648 if (!IS_ERR_OR_NULL(_T)) gpio_device_put(_T))
|
| /linux/include/linux/iio/ |
| A D | iio.h | 669 DEFINE_GUARD(iio_claim_direct, struct iio_dev *, iio_device_claim_direct_mode(_T), 670 iio_device_release_direct_mode(_T)) 674 int d = iio_device_claim_direct_mode(_T); 679 dev = _T;
|
| /linux/drivers/thermal/ |
| A D | thermal_core.h | 198 if (_T) put_device(&_T->device), thermal_zone_get_by_id(id), int id)
|
| /linux/include/sound/ |
| A D | pcm.h | 677 snd_pcm_stream_lock(_T->lock), 678 snd_pcm_stream_unlock(_T->lock)) 680 snd_pcm_stream_lock_irq(_T->lock), 681 snd_pcm_stream_unlock_irq(_T->lock)) 683 snd_pcm_stream_lock_irqsave(_T->lock, _T->flags), 684 snd_pcm_stream_unlock_irqrestore(_T->lock, _T->flags),
|
| /linux/drivers/gpio/ |
| A D | gpiolib.h | 217 srcu_read_unlock(&_T.gdev->srcu, _T.idx),
|
| /linux/fs/pstore/ |
| A D | inode.c | 38 DEFINE_FREE(pstore_iput, struct inode *, if (_T) iput(_T)) 66 DEFINE_FREE(pstore_private, struct pstore_private *, free_pstore_private(_T));
|
| /linux/drivers/cxl/ |
| A D | cxl.h | 746 DEFINE_FREE(put_cxl_root, struct cxl_root *, if (_T) put_cxl_root(_T)) 748 DEFINE_FREE(put_cxl_port, struct cxl_port *, if (!IS_ERR_OR_NULL(_T)) put_device(&_T->dev))
|
| /linux/drivers/platform/x86/intel/pmc/ |
| A D | core_ssram.c | 32 DEFINE_FREE(pmc_core_iounmap, void __iomem *, if (_T) iounmap(_T)) in DEFINE_FREE() argument
|