Lines Matching refs:lock
160 rt_mutex_take(sensor->module->lock, RT_WAITING_FOREVER); in rt_sensor_open()
220 rt_mutex_release(sensor->module->lock); in rt_sensor_open()
236 rt_mutex_take(sensor->module->lock, RT_WAITING_FOREVER); in rt_sensor_close()
279 rt_mutex_release(sensor->module->lock); in rt_sensor_close()
298 rt_mutex_take(sensor->module->lock, RT_WAITING_FOREVER); in rt_sensor_read()
326 rt_mutex_release(sensor->module->lock); in rt_sensor_read()
341 rt_mutex_take(sensor->module->lock, RT_WAITING_FOREVER); in rt_sensor_control()
409 rt_mutex_release(sensor->module->lock); in rt_sensor_control()
459 if (sensor->module != RT_NULL && sensor->module->lock == RT_NULL) in rt_hw_sensor_register()
462 sensor->module->lock = rt_mutex_create(name, RT_IPC_FLAG_PRIO); in rt_hw_sensor_register()
463 if (sensor->module->lock == RT_NULL) in rt_hw_sensor_register()