Searched refs:resource_lock (Results 1 – 11 of 11) sorted by relevance
/Linux-v6.1/kernel/ |
D | resource.c | 57 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-v6.1/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_resource.c | 104 spin_lock(&dev_priv->resource_lock); in vmw_resource_release_id() 108 spin_unlock(&dev_priv->resource_lock); in vmw_resource_release_id() 120 spin_lock(&dev_priv->resource_lock); in vmw_resource_release() 122 spin_unlock(&dev_priv->resource_lock); in vmw_resource_release() 159 spin_lock(&dev_priv->resource_lock); in vmw_resource_release() 162 spin_unlock(&dev_priv->resource_lock); in vmw_resource_release() 191 spin_lock(&dev_priv->resource_lock); in vmw_resource_alloc_id() 197 spin_unlock(&dev_priv->resource_lock); in vmw_resource_alloc_id() 517 spin_lock(&dev_priv->resource_lock); in vmw_resource_unreserve() 520 spin_unlock(&dev_priv->resource_lock); in vmw_resource_unreserve() [all …]
|
D | vmwgfx_drv.h | 562 spinlock_t resource_lock; member
|
D | vmwgfx_drv.c | 820 spin_lock_init(&dev_priv->resource_lock); in vmw_driver_load()
|
/Linux-v6.1/drivers/acpi/ |
D | power.c | 55 struct mutex resource_lock; member 232 mutex_lock(&resource->resource_lock); in acpi_power_get_list_state() 234 mutex_unlock(&resource->resource_lock); in acpi_power_get_list_state() 255 mutex_lock(&resource->resource_lock); in acpi_power_resource_add_dependent() 274 mutex_unlock(&resource->resource_lock); in acpi_power_resource_add_dependent() 284 mutex_lock(&resource->resource_lock); in acpi_power_resource_remove_dependent() 294 mutex_unlock(&resource->resource_lock); in acpi_power_resource_remove_dependent() 414 mutex_lock(&resource->resource_lock); in acpi_power_on() 416 mutex_unlock(&resource->resource_lock); in acpi_power_on() 463 mutex_lock(&resource->resource_lock); in acpi_power_off() [all …]
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_cppcore.c | 70 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-v6.1/drivers/scsi/ |
D | pmcraid.c | 155 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() 3806 spin_lock_irqsave(&pinstance->resource_lock, lock_flags); in pmcraid_worker_function() 3826 &pinstance->resource_lock, in pmcraid_worker_function() 3830 spin_lock_irqsave(&pinstance->resource_lock, in pmcraid_worker_function() 3865 spin_unlock_irqrestore(&pinstance->resource_lock, in pmcraid_worker_function() [all …]
|
D | pmcraid.h | 666 spinlock_t resource_lock; /* spinlock to protect resource list */ member
|
/Linux-v6.1/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_kms.c | 54 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() 802 spin_lock_init(&mdp5_kms->resource_lock); in mdp5_init()
|
D | mdp5_ctl.c | 106 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()
|
D | mdp5_kms.h | 64 spinlock_t resource_lock; member
|