Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 900) sorted by relevance

12345678910>>...36

/linux-4.19.296/include/linux/
Dmutex.h53 struct mutex { struct
73 static inline struct task_struct *__mutex_owner(struct mutex *lock) in __mutex_owner()
96 extern void mutex_destroy(struct mutex *lock);
102 static inline void mutex_destroy(struct mutex *lock) {} in mutex_destroy()
114 #define mutex_init(mutex) \ argument
118 __mutex_init((mutex), #mutex, &__key); \
136 struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
138 extern void __mutex_init(struct mutex *lock, const char *name,
147 static inline bool mutex_is_locked(struct mutex *lock) in mutex_is_locked()
157 extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
[all …]
/linux-4.19.296/drivers/media/dvb-core/
Ddmxdev.c135 if (mutex_lock_interruptible(&dmxdev->mutex)) in dvb_dvr_open()
139 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
163 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
173 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
178 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
192 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
199 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
206 mutex_unlock(&dmxdev->mutex); in dvb_dvr_open()
215 mutex_lock(&dmxdev->mutex); in dvb_dvr_release()
244 mutex_unlock(&dmxdev->mutex); in dvb_dvr_release()
[all …]
Ddvb_demux.c706 if (mutex_lock_interruptible(&demux->mutex)) in dmx_ts_feed_set()
711 mutex_unlock(&demux->mutex); in dmx_ts_feed_set()
717 mutex_unlock(&demux->mutex); in dmx_ts_feed_set()
733 mutex_unlock(&demux->mutex); in dmx_ts_feed_set()
744 if (mutex_lock_interruptible(&demux->mutex)) in dmx_ts_feed_start_filtering()
748 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
753 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
758 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
766 mutex_unlock(&demux->mutex); in dmx_ts_feed_start_filtering()
777 mutex_lock(&demux->mutex); in dmx_ts_feed_stop_filtering()
[all …]
/linux-4.19.296/drivers/uwb/
Dlc-dev.c51 if (mutex_lock_interruptible(&rc->notifs_chain.mutex)) in uwb_notifs_register()
54 mutex_unlock(&rc->notifs_chain.mutex); in uwb_notifs_register()
64 if (mutex_lock_interruptible(&rc->notifs_chain.mutex)) in uwb_notifs_deregister()
67 mutex_unlock(&rc->notifs_chain.mutex); in uwb_notifs_deregister()
81 if (mutex_lock_interruptible(&rc->notifs_chain.mutex)) in uwb_notify()
88 mutex_unlock(&rc->notifs_chain.mutex); in uwb_notify()
110 mutex_init(&uwb_dev->mutex); in uwb_dev_init()
155 mutex_lock(&bce->mutex); in uwb_dev_BPST_show()
159 mutex_unlock(&bce->mutex); in uwb_dev_BPST_show()
190 mutex_lock(&bce->mutex); in uwb_dev_LQE_show()
[all …]
Dradio.c104 mutex_lock(&rc->uwb_dev.mutex); in uwb_radio_start()
112 mutex_unlock(&rc->uwb_dev.mutex); in uwb_radio_start()
127 mutex_lock(&rc->uwb_dev.mutex); in uwb_radio_stop()
135 mutex_unlock(&rc->uwb_dev.mutex); in uwb_radio_stop()
149 mutex_lock(&rc->uwb_dev.mutex); in uwb_radio_force_channel()
154 mutex_unlock(&rc->uwb_dev.mutex); in uwb_radio_force_channel()
181 mutex_lock(&rc->uwb_dev.mutex); in uwb_radio_reset_state()
194 mutex_unlock(&rc->uwb_dev.mutex); in uwb_radio_reset_state()
Dbeacon.c218 mutex_lock(&rc->uwb_beca.mutex); in uwb_dev_get_by_devaddr()
222 mutex_unlock(&rc->uwb_beca.mutex); in uwb_dev_get_by_devaddr()
238 mutex_lock(&rc->uwb_beca.mutex); in uwb_dev_get_by_macaddr()
242 mutex_unlock(&rc->uwb_beca.mutex); in uwb_dev_get_by_macaddr()
250 mutex_init(&bce->mutex); in uwb_beca_e_init()
291 mutex_lock(&rc->uwb_beca.mutex); in uwb_beca_purge()
298 mutex_unlock(&rc->uwb_beca.mutex); in uwb_beca_purge()
306 mutex_lock(&rc->uwb_beca.mutex); in uwb_beca_release()
311 mutex_unlock(&rc->uwb_beca.mutex); in uwb_beca_release()
342 mutex_lock(&bce->mutex); in uwb_bce_print_IEs()
[all …]
/linux-4.19.296/drivers/pwm/
Dpwm-twl-led.c61 struct mutex mutex; member
109 mutex_lock(&twl->mutex); in twl4030_pwmled_enable()
123 mutex_unlock(&twl->mutex); in twl4030_pwmled_enable()
134 mutex_lock(&twl->mutex); in twl4030_pwmled_disable()
148 mutex_unlock(&twl->mutex); in twl4030_pwmled_disable()
174 mutex_lock(&twl->mutex); in twl6030_pwmled_enable()
190 mutex_unlock(&twl->mutex); in twl6030_pwmled_enable()
201 mutex_lock(&twl->mutex); in twl6030_pwmled_disable()
217 mutex_unlock(&twl->mutex); in twl6030_pwmled_disable()
226 mutex_lock(&twl->mutex); in twl6030_pwmled_request()
[all …]
Dpwm-twl.c61 struct mutex mutex; member
111 mutex_lock(&twl->mutex); in twl4030_pwm_enable()
131 mutex_unlock(&twl->mutex); in twl4030_pwm_enable()
141 mutex_lock(&twl->mutex); in twl4030_pwm_disable()
161 mutex_unlock(&twl->mutex); in twl4030_pwm_disable()
178 mutex_lock(&twl->mutex); in twl4030_pwm_request()
198 mutex_unlock(&twl->mutex); in twl4030_pwm_request()
213 mutex_lock(&twl->mutex); in twl4030_pwm_free()
229 mutex_unlock(&twl->mutex); in twl4030_pwm_free()
238 mutex_lock(&twl->mutex); in twl6030_pwm_enable()
[all …]
Dpwm-omap-dmtimer.c39 struct mutex mutex; member
78 mutex_lock(&omap->mutex); in pwm_omap_dmtimer_enable()
80 mutex_unlock(&omap->mutex); in pwm_omap_dmtimer_enable()
90 mutex_lock(&omap->mutex); in pwm_omap_dmtimer_disable()
92 mutex_unlock(&omap->mutex); in pwm_omap_dmtimer_disable()
109 mutex_lock(&omap->mutex); in pwm_omap_dmtimer_config()
113 mutex_unlock(&omap->mutex); in pwm_omap_dmtimer_config()
204 mutex_unlock(&omap->mutex); in pwm_omap_dmtimer_config()
209 mutex_unlock(&omap->mutex); in pwm_omap_dmtimer_config()
224 mutex_lock(&omap->mutex); in pwm_omap_dmtimer_set_polarity()
[all …]
/linux-4.19.296/drivers/iio/gyro/
Dbmg160_core.c105 struct mutex mutex; member
504 mutex_lock(&data->mutex); in bmg160_get_temp()
507 mutex_unlock(&data->mutex); in bmg160_get_temp()
515 mutex_unlock(&data->mutex); in bmg160_get_temp()
521 mutex_unlock(&data->mutex); in bmg160_get_temp()
534 mutex_lock(&data->mutex); in bmg160_get_axis()
537 mutex_unlock(&data->mutex); in bmg160_get_axis()
546 mutex_unlock(&data->mutex); in bmg160_get_axis()
552 mutex_unlock(&data->mutex); in bmg160_get_axis()
612 mutex_lock(&data->mutex); in bmg160_read_raw()
[all …]
/linux-4.19.296/drivers/iio/accel/
Dmma9551.c55 struct mutex mutex; member
125 mutex_lock(&data->mutex); in mma9551_read_raw()
127 mutex_unlock(&data->mutex); in mma9551_read_raw()
135 mutex_lock(&data->mutex); in mma9551_read_raw()
138 mutex_unlock(&data->mutex); in mma9551_read_raw()
243 mutex_lock(&data->mutex); in mma9551_write_event_config()
246 mutex_unlock(&data->mutex); in mma9551_write_event_config()
267 mutex_lock(&data->mutex); in mma9551_write_event_value()
273 mutex_unlock(&data->mutex); in mma9551_write_event_value()
293 mutex_lock(&data->mutex); in mma9551_read_event_value()
[all …]
Dmma9553.c187 struct mutex mutex; member
463 mutex_lock(&data->mutex); in mma9553_read_status_word()
466 mutex_unlock(&data->mutex); in mma9553_read_status_word()
542 mutex_lock(&data->mutex); in mma9553_read_raw()
545 mutex_unlock(&data->mutex); in mma9553_read_raw()
624 mutex_lock(&data->mutex); in mma9553_write_raw()
627 mutex_unlock(&data->mutex); in mma9553_write_raw()
631 mutex_unlock(&data->mutex); in mma9553_write_raw()
638 mutex_lock(&data->mutex); in mma9553_write_raw()
643 mutex_unlock(&data->mutex); in mma9553_write_raw()
[all …]
Dbmc150-accel-core.c197 struct mutex mutex; member
538 mutex_lock(&data->mutex); in bmc150_accel_get_temp()
543 mutex_unlock(&data->mutex); in bmc150_accel_get_temp()
548 mutex_unlock(&data->mutex); in bmc150_accel_get_temp()
562 mutex_lock(&data->mutex); in bmc150_accel_get_axis()
565 mutex_unlock(&data->mutex); in bmc150_accel_get_axis()
574 mutex_unlock(&data->mutex); in bmc150_accel_get_axis()
580 mutex_unlock(&data->mutex); in bmc150_accel_get_axis()
639 mutex_lock(&data->mutex); in bmc150_accel_read_raw()
641 mutex_unlock(&data->mutex); in bmc150_accel_read_raw()
[all …]
/linux-4.19.296/drivers/isdn/gigaset/
Dinterface.c127 if (mutex_lock_interruptible(&cs->mutex)) { in if_open()
140 mutex_unlock(&cs->mutex); in if_open()
155 mutex_lock(&cs->mutex); in if_close()
164 mutex_unlock(&cs->mutex); in if_close()
180 if (mutex_lock_interruptible(&cs->mutex)) in if_ioctl()
231 mutex_unlock(&cs->mutex); in if_ioctl()
243 if (mutex_lock_interruptible(&cs->mutex)) in if_tiocmget()
248 mutex_unlock(&cs->mutex); in if_tiocmget()
263 if (mutex_lock_interruptible(&cs->mutex)) in if_tiocmset()
275 mutex_unlock(&cs->mutex); in if_tiocmset()
[all …]
/linux-4.19.296/fs/squashfs/
Ddecompressor_multi.c43 struct mutex mutex; member
58 mutex_lock(&stream->mutex); in put_decomp_stream()
60 mutex_unlock(&stream->mutex); in put_decomp_stream()
76 mutex_init(&stream->mutex); in squashfs_decompressor_create()
135 mutex_lock(&stream->mutex); in get_decomp_stream()
142 mutex_unlock(&stream->mutex); in get_decomp_stream()
168 mutex_unlock(&stream->mutex); in get_decomp_stream()
176 mutex_unlock(&stream->mutex); in get_decomp_stream()
Ddecompressor_single.c26 struct mutex mutex; member
46 mutex_init(&stream->mutex); in squashfs_decompressor_create()
70 mutex_lock(&stream->mutex); in squashfs_decompress()
73 mutex_unlock(&stream->mutex); in squashfs_decompress()
/linux-4.19.296/include/drm/
Ddrm_device.h62 struct mutex struct_mutex; /**< For others */
63 struct mutex master_mutex; /**< For drm_minor::master and drm_file::is_master */
74 struct mutex filelist_mutex;
89 struct mutex clientlist_mutex;
106 struct mutex ctxlist_mutex; /**< For ctxlist */
217 struct mutex object_name_lock;
/linux-4.19.296/drivers/iio/light/
Dcm3323.c52 struct mutex mutex; member
166 mutex_lock(&data->mutex); in cm3323_read_raw()
169 mutex_unlock(&data->mutex); in cm3323_read_raw()
173 mutex_unlock(&data->mutex); in cm3323_read_raw()
177 mutex_lock(&data->mutex); in cm3323_read_raw()
180 mutex_unlock(&data->mutex); in cm3323_read_raw()
186 mutex_unlock(&data->mutex); in cm3323_read_raw()
203 mutex_lock(&data->mutex); in cm3323_write_raw()
205 mutex_unlock(&data->mutex); in cm3323_write_raw()
234 mutex_init(&data->mutex); in cm3323_probe()
/linux-4.19.296/drivers/misc/
Dapds9802als.c41 struct mutex mutex; member
88 mutex_lock(&data->mutex); in als_lux0_input_data_show()
109 mutex_unlock(&data->mutex); in als_lux0_input_data_show()
115 mutex_unlock(&data->mutex); in als_lux0_input_data_show()
143 mutex_lock(&data->mutex); in als_sensing_range_store()
161 mutex_unlock(&data->mutex); in als_sensing_range_store()
166 mutex_unlock(&data->mutex); in als_sensing_range_store()
176 mutex_lock(&data->mutex); in als_set_power_state()
186 mutex_unlock(&data->mutex); in als_set_power_state()
246 mutex_init(&data->mutex); in apds9802als_probe()
/linux-4.19.296/drivers/s390/char/
Dvmcp.c36 struct mutex mutex; member
113 mutex_init(&session->mutex); in vmcp_open()
137 if (mutex_lock_interruptible(&session->mutex)) in vmcp_read()
140 mutex_unlock(&session->mutex); in vmcp_read()
147 mutex_unlock(&session->mutex); in vmcp_read()
165 if (mutex_lock_interruptible(&session->mutex)) { in vmcp_write()
172 mutex_unlock(&session->mutex); in vmcp_write()
179 mutex_unlock(&session->mutex); in vmcp_write()
209 if (mutex_lock_interruptible(&session->mutex)) in vmcp_ioctl()
231 mutex_unlock(&session->mutex); in vmcp_ioctl()
/linux-4.19.296/drivers/iio/magnetometer/
Dbmc150_magn.c144 struct mutex mutex; member
473 mutex_lock(&data->mutex); in bmc150_magn_read_raw()
477 mutex_unlock(&data->mutex); in bmc150_magn_read_raw()
484 mutex_unlock(&data->mutex); in bmc150_magn_read_raw()
491 mutex_unlock(&data->mutex); in bmc150_magn_read_raw()
495 mutex_unlock(&data->mutex); in bmc150_magn_read_raw()
547 mutex_lock(&data->mutex); in bmc150_magn_write_raw()
549 mutex_unlock(&data->mutex); in bmc150_magn_write_raw()
557 mutex_lock(&data->mutex); in bmc150_magn_write_raw()
560 mutex_unlock(&data->mutex); in bmc150_magn_write_raw()
[all …]
/linux-4.19.296/drivers/iio/proximity/
Dsx9500.c83 struct mutex mutex; member
313 mutex_lock(&data->mutex); in sx9500_read_proximity()
323 mutex_unlock(&data->mutex); in sx9500_read_proximity()
330 mutex_lock(&data->mutex); in sx9500_read_proximity()
356 mutex_unlock(&data->mutex); in sx9500_read_proximity()
368 mutex_lock(&data->mutex); in sx9500_read_samp_freq()
370 mutex_unlock(&data->mutex); in sx9500_read_samp_freq()
422 mutex_lock(&data->mutex); in sx9500_set_samp_freq()
428 mutex_unlock(&data->mutex); in sx9500_set_samp_freq()
508 mutex_lock(&data->mutex); in sx9500_irq_thread_handler()
[all …]
/linux-4.19.296/drivers/gpio/
Dgpio-twl4030.c68 struct mutex mutex; member
206 mutex_lock(&priv->mutex); in twl_request()
265 mutex_unlock(&priv->mutex); in twl_request()
273 mutex_lock(&priv->mutex); in twl_free()
286 mutex_unlock(&priv->mutex); in twl_free()
294 mutex_lock(&priv->mutex); in twl_direction_in()
303 mutex_unlock(&priv->mutex); in twl_direction_in()
314 mutex_lock(&priv->mutex); in twl_get()
327 mutex_unlock(&priv->mutex); in twl_get()
335 mutex_lock(&priv->mutex); in twl_set()
[all …]
/linux-4.19.296/drivers/iio/adc/
Dxilinx-xadc.h67 struct mutex mutex; member
89 lockdep_assert_held(&xadc->mutex); in _xadc_read_adc_reg()
96 lockdep_assert_held(&xadc->mutex); in _xadc_write_adc_reg()
105 mutex_lock(&xadc->mutex); in xadc_read_adc_reg()
107 mutex_unlock(&xadc->mutex); in xadc_read_adc_reg()
116 mutex_lock(&xadc->mutex); in xadc_write_adc_reg()
118 mutex_unlock(&xadc->mutex); in xadc_write_adc_reg()
/linux-4.19.296/drivers/misc/sgi-xp/
Dxp_main.c148 if (mutex_lock_interruptible(&registration->mutex) != 0) in xpc_connect()
153 mutex_unlock(&registration->mutex); in xpc_connect()
165 mutex_unlock(&registration->mutex); in xpc_connect()
201 mutex_lock(&registration->mutex); in xpc_disconnect()
205 mutex_unlock(&registration->mutex); in xpc_disconnect()
220 mutex_unlock(&registration->mutex); in xpc_disconnect()
234 mutex_init(&xpc_registrations[ch_number].mutex); in xp_init()

12345678910>>...36