Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 25 of 1854) sorted by relevance

12345678910>>...75

/drivers/staging/lustre/lustre/ldlm/
Dldlm_lock.c149 struct ldlm_lock *ldlm_lock_get(struct ldlm_lock *lock) in ldlm_lock_get()
161 void ldlm_lock_put(struct ldlm_lock *lock) in ldlm_lock_put()
198 int ldlm_lock_remove_from_lru_nolock(struct ldlm_lock *lock) in ldlm_lock_remove_from_lru_nolock()
225 int ldlm_lock_remove_from_lru_check(struct ldlm_lock *lock, time_t last_use) in ldlm_lock_remove_from_lru_check()
241 static void ldlm_lock_add_to_lru_nolock(struct ldlm_lock *lock) in ldlm_lock_add_to_lru_nolock()
258 static void ldlm_lock_add_to_lru(struct ldlm_lock *lock) in ldlm_lock_add_to_lru()
271 static void ldlm_lock_touch_in_lru(struct ldlm_lock *lock) in ldlm_lock_touch_in_lru()
302 static int ldlm_lock_destroy_internal(struct ldlm_lock *lock) in ldlm_lock_destroy_internal()
341 static void ldlm_lock_destroy(struct ldlm_lock *lock) in ldlm_lock_destroy()
359 void ldlm_lock_destroy_nolock(struct ldlm_lock *lock) in ldlm_lock_destroy_nolock()
[all …]
Dldlm_request.c117 struct ldlm_lock *lock = lwd->lwd_lock; in ldlm_expired_completion_wait() local
162 static unsigned int ldlm_cp_timeout(struct ldlm_lock *lock) in ldlm_cp_timeout()
182 static int ldlm_completion_tail(struct ldlm_lock *lock, void *data) in ldlm_completion_tail()
209 int ldlm_completion_ast_async(struct ldlm_lock *lock, __u64 flags, void *data) in ldlm_completion_ast_async()
247 int ldlm_completion_ast(struct ldlm_lock *lock, __u64 flags, void *data) in ldlm_completion_ast()
318 struct ldlm_lock *lock, int mode) in failed_lock_cleanup()
377 struct ldlm_lock *lock; in ldlm_cli_enqueue_fini() local
718 struct ldlm_lock *lock; in ldlm_cli_enqueue() local
835 static __u64 ldlm_cli_cancel_local(struct ldlm_lock *lock) in ldlm_cli_cancel_local()
872 struct ldlm_lock *lock; in ldlm_cancel_pack() local
[all …]
Dldlm_flock.c74 ldlm_same_flock_owner(struct ldlm_lock *lock, struct ldlm_lock *new) in ldlm_same_flock_owner()
82 ldlm_flocks_overlap(struct ldlm_lock *lock, struct ldlm_lock *new) in ldlm_flocks_overlap()
91 ldlm_flock_destroy(struct ldlm_lock *lock, enum ldlm_mode mode, __u64 flags) in ldlm_flock_destroy()
139 struct ldlm_lock *lock = NULL; in ldlm_process_flock_lock() local
426 struct ldlm_lock *lock; in ldlm_flock_interrupted_wait() local
448 ldlm_flock_completion_ast(struct ldlm_lock *lock, __u64 flags, void *data) in ldlm_flock_completion_ast()
Dldlm_extent.c63 __u64 ldlm_extent_shift_kms(struct ldlm_lock *lock, __u64 old_kms) in ldlm_extent_shift_kms()
109 struct ldlm_interval *ldlm_interval_alloc(struct ldlm_lock *lock) in ldlm_interval_alloc()
160 struct ldlm_lock *lock) in ldlm_extent_add_lock()
220 void ldlm_extent_unlink_lock(struct ldlm_lock *lock) in ldlm_extent_unlink_lock()
Dl_lock.c47 struct ldlm_resource *lock_res_and_lock(struct ldlm_lock *lock) in lock_res_and_lock()
63 void unlock_res_and_lock(struct ldlm_lock *lock) in unlock_res_and_lock()
Dldlm_lockd.c116 struct ldlm_lock_desc *ld, struct ldlm_lock *lock) in ldlm_handle_bl_callback()
156 struct ldlm_lock *lock) in ldlm_handle_cp_callback()
307 struct ldlm_lock *lock) in ldlm_handle_gl_callback()
383 struct ldlm_lock *lock, in init_blwi()
416 struct ldlm_lock *lock, in ldlm_bl_to_thread()
445 struct ldlm_lock *lock) in ldlm_bl_to_thread_lock()
525 struct ldlm_lock *lock; in ldlm_callback_handler() local
/drivers/gpu/drm/ttm/
Dttm_lock.c45 void ttm_lock_init(struct ttm_lock *lock) in ttm_lock_init()
56 void ttm_read_unlock(struct ttm_lock *lock) in ttm_read_unlock()
65 static bool __ttm_read_lock(struct ttm_lock *lock) in __ttm_read_lock()
83 int ttm_read_lock(struct ttm_lock *lock, bool interruptible) in ttm_read_lock()
96 static bool __ttm_read_trylock(struct ttm_lock *lock, bool *locked) in __ttm_read_trylock()
120 int ttm_read_trylock(struct ttm_lock *lock, bool interruptible) in ttm_read_trylock()
139 void ttm_write_unlock(struct ttm_lock *lock) in ttm_write_unlock()
148 static bool __ttm_write_lock(struct ttm_lock *lock) in __ttm_write_lock()
169 int ttm_write_lock(struct ttm_lock *lock, bool interruptible) in ttm_write_lock()
189 static int __ttm_vt_unlock(struct ttm_lock *lock) in __ttm_vt_unlock()
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dcl_lock.c48 const char *prefix, const struct cl_lock *lock, in cl_lock_trace0()
56 #define cl_lock_trace(level, env, prefix, lock) \ argument
68 void cl_lock_slice_add(struct cl_lock *lock, struct cl_lock_slice *slice, in cl_lock_slice_add()
79 void cl_lock_fini(const struct lu_env *env, struct cl_lock *lock) in cl_lock_fini()
95 int cl_lock_init(const struct lu_env *env, struct cl_lock *lock, in cl_lock_init()
125 const struct cl_lock_slice *cl_lock_at(const struct cl_lock *lock, in cl_lock_at()
138 void cl_lock_cancel(const struct lu_env *env, struct cl_lock *lock) in cl_lock_cancel()
158 struct cl_lock *lock, struct cl_sync_io *anchor) in cl_lock_enqueue()
180 struct cl_lock *lock) in cl_lock_request()
217 void cl_lock_release(const struct lu_env *env, struct cl_lock *lock) in cl_lock_release()
[all …]
/drivers/acpi/acpica/
Dutlock.c62 acpi_status acpi_ut_create_rw_lock(struct acpi_rw_lock *lock) in acpi_ut_create_rw_lock()
76 void acpi_ut_delete_rw_lock(struct acpi_rw_lock *lock) in acpi_ut_delete_rw_lock()
105 acpi_status acpi_ut_acquire_read_lock(struct acpi_rw_lock *lock) in acpi_ut_acquire_read_lock()
127 acpi_status acpi_ut_release_read_lock(struct acpi_rw_lock *lock) in acpi_ut_release_read_lock()
163 acpi_status acpi_ut_acquire_write_lock(struct acpi_rw_lock *lock) in acpi_ut_acquire_write_lock()
171 void acpi_ut_release_write_lock(struct acpi_rw_lock *lock) in acpi_ut_release_write_lock()
/drivers/staging/lustre/lustre/llite/
Drange_lock.c64 int range_lock_init(struct range_lock *lock, __u64 start, __u64 end) in range_lock_init()
83 static inline struct range_lock *next_lock(struct range_lock *lock) in next_lock()
101 struct range_lock *lock = arg; in range_unlock_cb() local
129 void range_unlock(struct range_lock_tree *tree, struct range_lock *lock) in range_unlock()
177 struct range_lock *lock = arg; in range_lock_cb() local
197 int range_lock(struct range_lock_tree *tree, struct range_lock *lock) in range_lock()
/drivers/md/persistent-data/
Ddm-block-manager.c41 spinlock_t lock; member
58 static unsigned __find_holder(struct block_lock *lock, in __find_holder()
72 static void __add_holder(struct block_lock *lock, struct task_struct *task) in __add_holder()
93 static void __del_holder(struct block_lock *lock, struct task_struct *task) in __del_holder()
100 static int __check_holder(struct block_lock *lock) in __check_holder()
149 static void __wake_many(struct block_lock *lock) in __wake_many()
174 static void bl_init(struct block_lock *lock) in bl_init()
185 static int __available_for_read(struct block_lock *lock) in __available_for_read()
192 static int bl_down_read(struct block_lock *lock) in bl_down_read()
223 static int bl_down_read_nonblock(struct block_lock *lock) in bl_down_read_nonblock()
[all …]
/drivers/gpu/drm/
Ddrm_modeset_lock.c212 struct drm_modeset_lock *lock; in drm_modeset_drop_locks() local
222 static inline int modeset_lock(struct drm_modeset_lock *lock, in modeset_lock()
309 void drm_modeset_lock_init(struct drm_modeset_lock *lock) in drm_modeset_lock_init()
330 int drm_modeset_lock(struct drm_modeset_lock *lock, in drm_modeset_lock()
348 int drm_modeset_lock_interruptible(struct drm_modeset_lock *lock, in drm_modeset_lock_interruptible()
362 void drm_modeset_unlock(struct drm_modeset_lock *lock) in drm_modeset_unlock()
Ddrm_lock.c59 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_lock_take() local
108 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_lock_transfer() local
123 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_legacy_lock_free() local
164 struct drm_lock *lock = data; in drm_legacy_lock() local
255 struct drm_lock *lock = data; in drm_legacy_unlock() local
309 volatile unsigned int *lock = &lock_data->hw_lock->lock; in drm_legacy_idlelock_release() local
/drivers/hwspinlock/
Dsprd_hwspinlock.c51 static int sprd_hwspinlock_trylock(struct hwspinlock *lock) in sprd_hwspinlock_trylock()
71 static void sprd_hwspinlock_unlock(struct hwspinlock *lock) in sprd_hwspinlock_unlock()
79 static void sprd_hwspinlock_relax(struct hwspinlock *lock) in sprd_hwspinlock_relax()
93 struct hwspinlock *lock; in sprd_hwspinlock_probe() local
Domap_hwspinlock.c45 static int omap_hwspinlock_trylock(struct hwspinlock *lock) in omap_hwspinlock_trylock()
53 static void omap_hwspinlock_unlock(struct hwspinlock *lock) in omap_hwspinlock_unlock()
71 static void omap_hwspinlock_relax(struct hwspinlock *lock) in omap_hwspinlock_relax()
Du8500_hsem.c59 static int u8500_hsem_trylock(struct hwspinlock *lock) in u8500_hsem_trylock()
72 static void u8500_hsem_unlock(struct hwspinlock *lock) in u8500_hsem_unlock()
83 static void u8500_hsem_relax(struct hwspinlock *lock) in u8500_hsem_relax()
/drivers/staging/lustre/lustre/lov/
Dlov_lock.c114 struct cl_lock *lock) in lov_lock_sub_init()
222 struct cl_lock *lock = slice->cls_lock; in lov_lock_enqueue() local
249 struct cl_lock *lock = slice->cls_lock; in lov_lock_cancel() local
298 struct cl_lock *lock, const struct cl_io *io) in lov_lock_init_raid0()
334 struct cl_lock *lock, const struct cl_io *io) in lov_lock_init_empty()
/drivers/usb/phy/
Dotg-wakelock.c56 static void otgwl_hold(struct otgwl_lock *lock) in otgwl_hold()
64 static void otgwl_temporary_hold(struct otgwl_lock *lock) in otgwl_temporary_hold()
70 static void otgwl_drop(struct otgwl_lock *lock) in otgwl_drop()
/drivers/clk/spear/
Dclk.h55 spinlock_t *lock; member
68 spinlock_t *lock; member
82 spinlock_t *lock; member
99 spinlock_t *lock; member
106 spinlock_t *lock; member
/drivers/staging/lustre/lustre/include/
Dlustre_dlm.h881 static inline bool ldlm_has_layout(struct ldlm_lock *lock) in ldlm_has_layout()
900 ldlm_lock_to_ns(struct ldlm_lock *lock) in ldlm_lock_to_ns()
906 ldlm_lock_to_ns_name(struct ldlm_lock *lock) in ldlm_lock_to_ns_name()
912 ldlm_lock_to_ns_at(struct ldlm_lock *lock) in ldlm_lock_to_ns_at()
927 static inline int ldlm_lvbo_size(struct ldlm_lock *lock) in ldlm_lvbo_size()
937 static inline int ldlm_lvbo_fill(struct ldlm_lock *lock, void *buf, int len) in ldlm_lvbo_fill()
987 #define ldlm_lock_debug(msgdata, mask, cdls, lock, fmt, a...) do { \ argument
1004 #define LDLM_DEBUG_LIMIT(mask, lock, fmt, a...) do { \ argument
1010 #define LDLM_ERROR(lock, fmt, a...) LDLM_DEBUG_LIMIT(D_ERROR, lock, fmt, ## a) argument
1011 #define LDLM_WARN(lock, fmt, a...) LDLM_DEBUG_LIMIT(D_WARNING, lock, fmt, ## a) argument
[all …]
/drivers/clk/
Dclk-mux.c128 u8 clk_mux_flags, u32 *table, spinlock_t *lock) in clk_hw_register_mux_table()
184 u8 clk_mux_flags, u32 *table, spinlock_t *lock) in clk_register_mux_table()
201 u8 clk_mux_flags, spinlock_t *lock) in clk_register_mux()
215 u8 clk_mux_flags, spinlock_t *lock) in clk_hw_register_mux()
/drivers/staging/lustre/lustre/osc/
Dosc_lock.c73 struct ldlm_lock *lock; in osc_handle_ptr() local
86 struct ldlm_lock *lock = osc_handle_ptr(&ols->ols_handle); in osc_lock_invariant() local
147 const struct cl_lock *lock, in osc_lock_build_policy()
734 const struct cl_lock *lock, in osc_lock_build_einfo()
922 struct cl_lock *lock = slice->cls_lock; in osc_lock_enqueue() local
1068 struct osc_lock *lock = cl2osc_lock(slice); in osc_lock_print() local
1145 struct cl_object *obj, struct cl_lock *lock, in osc_lock_init()
1201 struct ldlm_lock *lock = NULL; in osc_dlmlock_at_pgoff() local
/drivers/iio/common/ms_sensors/
Dms_sensors_i2c.h27 struct mutex lock; member
41 struct mutex lock; member
/drivers/gpu/drm/via/
Dvia_video.c51 volatile int *lock; in via_release_futex() local
71 volatile int *lock; in via_decoder_futex() local
/drivers/base/
Dmap.c26 int (*lock)(dev_t, void *); member
29 struct mutex *lock; member
135 struct kobj_map *kobj_map_init(kobj_probe_t *base_probe, struct mutex *lock) in kobj_map_init()

12345678910>>...75