Home
last modified time | relevance | path

Searched refs:resource_lock (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/kernel/
Dresource.c57 static DEFINE_RWLOCK(resource_lock);
92 __acquires(resource_lock) in r_start()
96 read_lock(&resource_lock); in r_start()
103 __releases(resource_lock) in r_stop()
105 read_unlock(&resource_lock); in r_stop()
253 write_lock(&resource_lock); in release_child_resources()
255 write_unlock(&resource_lock); in release_child_resources()
269 write_lock(&resource_lock); in request_resource_conflict()
271 write_unlock(&resource_lock); in request_resource_conflict()
300 write_lock(&resource_lock); in release_resource()
[all …]
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_resource.c105 spin_lock(&dev_priv->resource_lock); in vmw_resource_release_id()
109 spin_unlock(&dev_priv->resource_lock); in vmw_resource_release_id()
121 spin_lock(&dev_priv->resource_lock); in vmw_resource_release()
123 spin_unlock(&dev_priv->resource_lock); in vmw_resource_release()
160 spin_lock(&dev_priv->resource_lock); in vmw_resource_release()
163 spin_unlock(&dev_priv->resource_lock); in vmw_resource_release()
192 spin_lock(&dev_priv->resource_lock); in vmw_resource_alloc_id()
198 spin_unlock(&dev_priv->resource_lock); in vmw_resource_alloc_id()
489 spin_lock(&dev_priv->resource_lock); in vmw_resource_unreserve()
492 spin_unlock(&dev_priv->resource_lock); in vmw_resource_unreserve()
[all …]
Dvmwgfx_drv.h553 spinlock_t resource_lock; member
Dvmwgfx_drv.c865 spin_lock_init(&dev_priv->resource_lock); in vmw_driver_load()
/linux-6.6.21/drivers/acpi/
Dpower.c56 struct mutex resource_lock; member
233 mutex_lock(&resource->resource_lock); in acpi_power_get_list_state()
235 mutex_unlock(&resource->resource_lock); in acpi_power_get_list_state()
256 mutex_lock(&resource->resource_lock); in acpi_power_resource_add_dependent()
275 mutex_unlock(&resource->resource_lock); in acpi_power_resource_add_dependent()
285 mutex_lock(&resource->resource_lock); in acpi_power_resource_remove_dependent()
295 mutex_unlock(&resource->resource_lock); in acpi_power_resource_remove_dependent()
415 mutex_lock(&resource->resource_lock); in acpi_power_on()
417 mutex_unlock(&resource->resource_lock); in acpi_power_on()
464 mutex_lock(&resource->resource_lock); in acpi_power_off()
[all …]
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_cppcore.c70 rwlock_t resource_lock; member
139 write_lock(&cpp->resource_lock); in __release_cpp_area()
141 write_unlock(&cpp->resource_lock); in __release_cpp_area()
332 write_lock(&cpp->resource_lock); in nfp_cpp_area_alloc_with_name()
334 write_unlock(&cpp->resource_lock); in nfp_cpp_area_alloc_with_name()
1194 rwlock_init(&cpp->resource_lock); in nfp_cpp_from_operations()
1196 lockdep_set_class(&cpp->resource_lock, &nfp_cpp_resource_lock_key); in nfp_cpp_from_operations()
/linux-6.6.21/drivers/scsi/
Dpmcraid.c155 spin_lock_irqsave(&pinstance->resource_lock, lock_flags); in pmcraid_slave_alloc()
193 spin_unlock_irqrestore(&pinstance->resource_lock, lock_flags); in pmcraid_slave_alloc()
1569 spin_lock_irqsave(&pinstance->resource_lock, lock_flags); in pmcraid_handle_config_change()
1583 spin_unlock_irqrestore(&pinstance->resource_lock, in pmcraid_handle_config_change()
1593 spin_unlock_irqrestore(&pinstance->resource_lock, in pmcraid_handle_config_change()
1635 spin_unlock_irqrestore(&pinstance->resource_lock, lock_flags); in pmcraid_handle_config_change()
3805 spin_lock_irqsave(&pinstance->resource_lock, lock_flags); in pmcraid_worker_function()
3825 &pinstance->resource_lock, in pmcraid_worker_function()
3829 spin_lock_irqsave(&pinstance->resource_lock, in pmcraid_worker_function()
3864 spin_unlock_irqrestore(&pinstance->resource_lock, in pmcraid_worker_function()
[all …]
Dpmcraid.h666 spinlock_t resource_lock; /* spinlock to protect resource list */ member
/linux-6.6.21/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_kms.c54 spin_lock_irqsave(&mdp5_kms->resource_lock, flags); in mdp5_hw_init()
56 spin_unlock_irqrestore(&mdp5_kms->resource_lock, flags); in mdp5_hw_init()
801 spin_lock_init(&mdp5_kms->resource_lock); in mdp5_init()
Dmdp5_ctl.c106 spin_lock_irqsave(&mdp5_kms->resource_lock, flags); in set_display_intf()
132 spin_unlock_irqrestore(&mdp5_kms->resource_lock, flags); in set_display_intf()
Dmdp5_kms.h64 spinlock_t resource_lock; member