| /include/linux/ |
| 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 …]
|
| 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))
|
| A D | cleanup.h | 278 { _type _T = *p; _exit; } \ 372 __DEFINE_GUARD_LOCK_PTR(_name, _T) 376 __DEFINE_GUARD_LOCK_PTR(_name, _T) 379 DEFINE_CLASS(_name, _type, if (!__GUARD_IS_ERR(_T)) { _unlock; }, ({ _lock; _T; }), _type _T); \ 385 ({ void *_t = _T; int _RET = (_lock); if (_T && !(_cond)) _t = ERR_PTR(_RET); _t; }), \ 386 class_##_name##_t _T) \ 390 { return class_##_name##_lock_err(_T); } 474 __DEFINE_GUARD_LOCK_PTR(_name, &_T->lock) 488 *_T __maybe_unused = &_t; \ 508 if (_T->lock && !(_cond)) _T->lock = ERR_PTR(_RET);\ [all …]
|
| 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))
|
| 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 | 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)
|
| A D | percpu-rwsem.h | 142 percpu_down_read(_T), percpu_up_read(_T)) in DEFINE_GUARD() argument 143 DEFINE_GUARD_COND(percpu_read, _try, percpu_down_read_trylock(_T)) in DEFINE_GUARD() 146 percpu_down_write(_T), percpu_up_write(_T)) in DEFINE_GUARD()
|
| A D | srcu.h | 480 _T->idx = srcu_read_lock(_T->lock), 481 srcu_read_unlock(_T->lock, _T->idx), 485 _T->scp = srcu_read_lock_fast(_T->lock), 486 srcu_read_unlock_fast(_T->lock, _T->scp),
|
| A D | execmem.h | 179 DEFINE_FREE(execmem, void *, if (_T) execmem_free(_T));
|
| A D | fwctl.h | 116 DEFINE_FREE(fwctl, struct fwctl_device *, if (_T) fwctl_put(_T));
|
| A D | nsproxy.h | 126 DEFINE_FREE(put_nsproxy, struct nsproxy *, if (_T) put_nsproxy(_T))
|
| A D | mutex.h | 228 DEFINE_GUARD(mutex, struct mutex *, mutex_lock(_T), mutex_unlock(_T)) 229 DEFINE_GUARD_COND(mutex, _try, mutex_trylock(_T)) 230 DEFINE_GUARD_COND(mutex, _intr, mutex_lock_interruptible(_T), _RET == 0)
|
| A D | serio.h | 165 DEFINE_GUARD(serio_pause_rx, struct serio *, serio_pause_rx(_T), serio_continue_rx(_T))
|
| A D | idr.h | 137 if (_T.id >= 0) idr_remove(_T.idr, _T.id),
|
| A D | irqflags.h | 267 local_irq_save(_T->flags), 268 local_irq_restore(_T->flags),
|
| 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))
|
| A D | device.h | 929 DEFINE_GUARD(device, struct device *, device_lock(_T), device_unlock(_T)) in DEFINE_GUARD() argument 984 DEFINE_FREE(device_del, struct device *, if (_T) device_del(_T)) 1180 DEFINE_FREE(put_device, struct device *, if (_T) put_device(_T))
|
| A D | ring_buffer.h | 148 ring_buffer_nest_start(_T), ring_buffer_nest_end(_T))
|
| A D | cred.h | 266 DEFINE_FREE(put_cred, struct cred *, if (!IS_ERR_OR_NULL(_T)) put_cred(_T))
|
| A D | thermal.h | 141 DEFINE_GUARD(cooling_dev, struct thermal_cooling_device *, mutex_lock(&_T->lock), 142 mutex_unlock(&_T->lock))
|
| /include/linux/gpio/ |
| A D | generic.h | 111 gpio_generic_chip_lock(_T->lock), 112 gpio_generic_chip_unlock(_T->lock)) 116 gpio_generic_chip_lock_irqsave(_T->lock, _T->flags), 117 gpio_generic_chip_unlock_irqrestore(_T->lock, _T->flags),
|
| A D | driver.h | 566 if (*_T.label) kfree(*_T.label), 675 if (!IS_ERR_OR_NULL(_T)) gpio_device_put(_T))
|
| /include/linux/firmware/qcom/ |
| A D | qcom_tzmem.h | 52 DEFINE_FREE(qcom_tzmem, void *, if (_T) qcom_tzmem_free(_T))
|
| /include/linux/sched/ |
| A D | task.h | 162 DEFINE_FREE(put_task, struct task_struct *, if (_T) put_task_struct(_T)) in DEFINE_FREE() argument 227 DEFINE_GUARD(task_lock, struct task_struct *, task_lock(_T), task_unlock(_T))
|
| /include/drm/ttm/ |
| A D | ttm_bo.h | 507 if (_T) {ttm_bo_lru_cursor_fini(_T); }, 512 class_ttm_bo_lru_cursor_lock_ptr(class_ttm_bo_lru_cursor_t *_T) in class_ttm_bo_lru_cursor_lock_ptr() argument 513 { return *_T; } in class_ttm_bo_lru_cursor_lock_ptr()
|