| /linux-6.15/include/linux/ |
| H A D | spinlock.h | 558 raw_spin_lock_irqsave(_T->lock, _T->flags), 559 raw_spin_unlock_irqrestore(_T->lock, _T->flags), 563 raw_spin_trylock_irqsave(_T->lock, _T->flags)) 566 spin_lock(_T->lock), 586 spin_lock_irqsave(_T->lock, _T->flags), 587 spin_unlock_irqrestore(_T->lock, _T->flags), 591 spin_trylock_irqsave(_T->lock, _T->flags)) 602 read_lock_irqsave(_T->lock, _T->flags), 603 read_unlock_irqrestore(_T->lock, _T->flags), 615 write_lock_irqsave(_T->lock, _T->flags), [all …]
|
| H A D | cleanup.h | 246 { _type _T = *p; _exit; } \ 300 __DEFINE_GUARD_LOCK_PTR(_name, _T) 304 __DEFINE_GUARD_LOCK_PTR(_name, _T) 307 DEFINE_CLASS(_name, _type, if (_T) { _unlock; }, ({ _lock; _T; }), _type _T); \ 313 ({ void *_t = _T; if (_T && !(_condlock)) _t = NULL; _t; }), \ 314 class_##_name##_t _T) \ 316 { return class_##_name##_lock_ptr(_T); } 385 if (_T->lock) { _unlock; } \ 388 __DEFINE_GUARD_LOCK_PTR(_name, &_T->lock) 402 *_T __maybe_unused = &_t; \ [all …]
|
| H A D | local_lock.h | 83 local_lock(_T), 84 local_unlock(_T)) 86 local_lock_irq(_T), 87 local_unlock_irq(_T)) 89 local_lock_irqsave(_T->lock, _T->flags), 90 local_unlock_irqrestore(_T->lock, _T->flags), 100 local_lock_nested_bh(_T), 101 local_unlock_nested_bh(_T))
|
| 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 | 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))
|
| H A D | percpu-rwsem.h | 130 percpu_down_read(_T), percpu_up_read(_T)) in DEFINE_GUARD() argument 131 DEFINE_GUARD_COND(percpu_read, _try, percpu_down_read_trylock(_T)) in DEFINE_GUARD() 134 percpu_down_write(_T), percpu_up_write(_T)) in DEFINE_GUARD()
|
| H 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)
|
| H A D | mnt_namespace.h | 17 DEFINE_FREE(put_mnt_ns, struct mnt_namespace *, if (!IS_ERR_OR_NULL(_T)) put_mnt_ns(_T))
|
| H A D | srcu.h | 523 _T->idx = srcu_read_lock(_T->lock), 524 srcu_read_unlock(_T->lock, _T->idx),
|
| H A D | execmem.h | 180 DEFINE_FREE(execmem, void *, if (_T) execmem_free(_T));
|
| H A D | fwctl.h | 116 DEFINE_FREE(fwctl, struct fwctl_device *, if (_T) fwctl_put(_T));
|
| H A D | nsproxy.h | 126 DEFINE_FREE(put_nsproxy, struct nsproxy *, if (_T) put_nsproxy(_T))
|
| H A D | idr.h | 137 if (_T.id >= 0) idr_remove(_T.idr, _T.id),
|
| H A D | slab.h | 476 DEFINE_FREE(kfree, void *, if (!IS_ERR_OR_NULL(_T)) kfree(_T)) 477 DEFINE_FREE(kfree_sensitive, void *, if (_T) kfree_sensitive(_T)) 1081 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-6.15/tools/perf/tests/ |
| H A D | event-times.c | 224 #define _T(attach, detach) \ in test__event_times() macro 230 _T(attach__enable_on_exec, detach__enable_on_exec) in test__event_times() 232 _T(attach__current_enabled, detach__disable) in test__event_times() 234 _T(attach__current_disabled, detach__disable) in test__event_times() 236 _T(attach__cpu_disabled, detach__disable) in test__event_times() 238 _T(attach__cpu_enabled, detach__disable) in test__event_times() 240 #undef _T in test__event_times()
|
| /linux-6.15/drivers/thermal/ |
| H A D | thermal_core.h | 155 DEFINE_GUARD(thermal_zone, struct thermal_zone_device *, mutex_lock(&_T->lock), 156 mutex_unlock(&_T->lock)) 159 mutex_unlock(&_T->lock), mutex_lock(&_T->lock)) 214 if (_T) put_device(&_T->device), thermal_zone_get_by_id(id), int id)
|
| /linux-6.15/include/linux/sched/ |
| H A D | task.h | 173 DEFINE_FREE(put_task, struct task_struct *, if (_T) put_task_struct(_T)) in DEFINE_FREE() argument 238 DEFINE_GUARD(task_lock, struct task_struct *, task_lock(_T), task_unlock(_T))
|
| /linux-6.15/include/linux/firmware/qcom/ |
| H A D | qcom_tzmem.h | 52 DEFINE_FREE(qcom_tzmem, void *, if (_T) qcom_tzmem_free(_T))
|
| /linux-6.15/crypto/asymmetric_keys/ |
| H A D | x509_parser.h | 49 if (!IS_ERR(_T)) x509_free_certificate(_T))
|
| /linux-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_guc_buf.h | 38 xe_guc_buf_release(_T), 43 xe_guc_buf_release(_T),
|
| /linux-6.15/kernel/sched/ |
| H A D | sched.h | 1816 _T->rq = task_rq_lock(_T->lock, &_T->rf), 1817 task_rq_unlock(_T->rq, _T->lock, &_T->rf), 1863 rq_lock(_T->lock, &_T->rf), 1864 rq_unlock(_T->lock, &_T->rf), 1868 rq_lock_irq(_T->lock, &_T->rf), 1869 rq_unlock_irq(_T->lock, &_T->rf), 1873 rq_lock_irqsave(_T->lock, &_T->rf), 3043 double_raw_lock(_T->lock, _T->lock2), 3044 double_raw_unlock(_T->lock, _T->lock2)) 3105 double_rq_lock(_T->lock, _T->lock2), [all …]
|
| /linux-6.15/include/drm/ttm/ |
| H A D | ttm_bo.h | 531 if (_T) {ttm_bo_lru_cursor_fini(_T); }, 536 class_ttm_bo_lru_cursor_lock_ptr(class_ttm_bo_lru_cursor_t *_T) in class_ttm_bo_lru_cursor_lock_ptr() argument 537 { return *_T; } in class_ttm_bo_lru_cursor_lock_ptr()
|
| /linux-6.15/drivers/thermal/testing/ |
| H A D | zone.c | 54 DEFINE_GUARD(tt_zone, struct tt_thermal_zone *, mutex_lock(&_T->lock), mutex_unlock(&_T->lock)) 309 if (!IS_ERR_OR_NULL(_T)) tt_put_tt_zone(_T))
|
| /linux-6.15/include/linux/gpio/ |
| H A D | driver.h | 573 if (*_T.label) kfree(*_T.label), 682 if (!IS_ERR_OR_NULL(_T)) gpio_device_put(_T))
|