Lines Matching refs:lock
155 rt_mutex_take(sensor->module->lock, RT_WAITING_FOREVER); in _sensor_open()
223 rt_mutex_release(sensor->module->lock); in _sensor_open()
239 rt_mutex_take(sensor->module->lock, RT_WAITING_FOREVER); in _sensor_close()
282 rt_mutex_release(sensor->module->lock); in _sensor_close()
301 rt_mutex_take(sensor->module->lock, RT_WAITING_FOREVER); in _sensor_read()
329 rt_mutex_release(sensor->module->lock); in _sensor_read()
345 rt_mutex_take(sensor->module->lock, RT_WAITING_FOREVER); in _sensor_control()
433 rt_mutex_release(sensor->module->lock); in _sensor_control()
482 if (sensor->module != RT_NULL && sensor->module->lock == RT_NULL) in rt_hw_sensor_register()
485 sensor->module->lock = rt_mutex_create(name, RT_IPC_FLAG_PRIO); in rt_hw_sensor_register()
486 if (sensor->module->lock == RT_NULL) in rt_hw_sensor_register()