/linux-6.12.1/include/linux/ |
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_irqsave(_T->lock, _T->flags), 553 raw_spin_unlock_irqrestore(_T->lock, _T->flags), [all …]
|
D | cleanup.h | 198 static inline void __free_##_name(void *p) { _type _T = *(_type *)p; _free; } 246 { _type _T = *p; _exit; } \ 291 DEFINE_CLASS(_name, _type, if (_T) { _unlock; }, ({ _lock; _T; }), _type _T); \ 292 static inline void * class_##_name##_lock_ptr(class_##_name##_t *_T) \ 293 { return *_T; } 297 ({ void *_t = _T; if (_T && !(_condlock)) _t = NULL; _t; }), \ 298 class_##_name##_t _T) \ 299 static inline void * class_##_name##_ext##_lock_ptr(class_##_name##_t *_T) \ 300 { return class_##_name##_lock_ptr(_T); } 343 static inline void class_##_name##_destructor(class_##_name##_t *_T) \ [all …]
|
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))
|
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))
|
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))
|
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)
|
D | srcu.h | 396 _T->idx = srcu_read_lock(_T->lock), 397 srcu_read_unlock(_T->lock, _T->idx),
|
D | mnt_namespace.h | 17 DEFINE_FREE(put_mnt_ns, struct mnt_namespace *, if (!IS_ERR_OR_NULL(_T)) put_mnt_ns(_T))
|
D | nsproxy.h | 126 DEFINE_FREE(put_nsproxy, struct nsproxy *, if (_T) put_nsproxy(_T))
|
D | irqflags.h | 261 local_irq_save(_T->flags), 262 local_irq_restore(_T->flags),
|
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))
|
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-6.12.1/tools/perf/tests/ |
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-6.12.1/include/linux/sched/ |
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-6.12.1/include/linux/firmware/qcom/ |
D | qcom_tzmem.h | 52 DEFINE_FREE(qcom_tzmem, void *, if (_T) qcom_tzmem_free(_T))
|
/linux-6.12.1/crypto/asymmetric_keys/ |
D | x509_parser.h | 49 if (!IS_ERR(_T)) x509_free_certificate(_T))
|
/linux-6.12.1/kernel/sched/ |
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), 2936 { class_##name##_t _t = { .lock = lock, .lock2 = lock2 }, *_T = &_t; \ 3075 double_raw_lock(_T->lock, _T->lock2), [all …]
|
/linux-6.12.1/include/linux/iio/ |
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-6.12.1/include/linux/gpio/ |
D | driver.h | 544 if (*_T.label) kfree(*_T.label), 648 if (!IS_ERR_OR_NULL(_T)) gpio_device_put(_T))
|
/linux-6.12.1/include/sound/ |
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-6.12.1/drivers/thermal/ |
D | thermal_core.h | 198 if (_T) put_device(&_T->device), thermal_zone_get_by_id(id), int id)
|
/linux-6.12.1/drivers/gpio/ |
D | gpiolib.h | 217 srcu_read_unlock(&_T.gdev->srcu, _T.idx),
|
/linux-6.12.1/fs/pstore/ |
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-6.12.1/drivers/cxl/ |
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-6.12.1/drivers/platform/x86/intel/pmc/ |
D | core_ssram.c | 32 DEFINE_FREE(pmc_core_iounmap, void __iomem *, if (_T) iounmap(_T)) in DEFINE_FREE() argument
|