Searched refs:hw_lock (Results 1 - 25 of 36) sorted by relevance

12

/drivers/gpu/drm/
H A Ddrm_lock.c71 master->lock.hw_lock->lock, lock->flags);
84 if (!master->lock.hw_lock) {
126 dev->sigdata.lock = master->lock.hw_lock;
188 volatile unsigned int *lock = &lock_data->hw_lock->lock;
237 volatile unsigned int *lock = &lock_data->hw_lock->lock;
262 volatile unsigned int *lock = &lock_data->hw_lock->lock;
354 volatile unsigned int *lock = &lock_data->hw_lock->lock;
374 return (file_priv->lock_count && master->lock.hw_lock &&
375 _DRM_LOCK_IS_HELD(master->lock.hw_lock->lock) &&
H A Ddrm_fops.c417 file_priv->master->lock.hw_lock)
421 file_priv->master->lock.hw_lock) {
430 filp, _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock));
432 _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock));
553 if (master->lock.hw_lock) {
554 if (dev->sigdata.lock == master->lock.hw_lock)
556 master->lock.hw_lock = NULL;
H A Ddrm_ioctl.c253 (file_priv->master->lock.hw_lock ? file_priv->master->lock.hw_lock->lock : 0);
H A Ddrm_context.c266 if (!_DRM_LOCK_IS_HELD(file_priv->master->lock.hw_lock->lock)) {
/drivers/isdn/hisax/
H A Dhisax_fcpcipnp.c161 spin_lock_irqsave(&adapter->hw_lock, flags);
164 spin_unlock_irqrestore(&adapter->hw_lock, flags);
180 spin_lock_irqsave(&adapter->hw_lock, flags);
183 spin_unlock_irqrestore(&adapter->hw_lock, flags);
192 spin_lock_irqsave(&adapter->hw_lock, flags);
195 spin_unlock_irqrestore(&adapter->hw_lock, flags);
204 spin_lock_irqsave(&adapter->hw_lock, flags);
207 spin_unlock_irqrestore(&adapter->hw_lock, flags);
216 spin_lock_irqsave(&adapter->hw_lock, flags);
219 spin_unlock_irqrestore(&adapter->hw_lock, flag
[all...]
H A Dhisax_fcpcipnp.h48 spinlock_t hw_lock; member in struct:fritz_adapter
/drivers/media/rc/
H A Dene_ir.c539 spin_lock_irqsave(&dev->hw_lock, flags);
560 spin_unlock_irqrestore(&dev->hw_lock, flags);
568 spin_lock_irqsave(&dev->hw_lock, flags);
573 spin_unlock_irqrestore(&dev->hw_lock, flags);
611 /* TX one sample - must be called with dev->hw_lock*/
672 spin_lock_irqsave(&dev->hw_lock, flags);
674 spin_unlock_irqrestore(&dev->hw_lock, flags);
732 spin_lock_irqsave(&dev->hw_lock, flags);
812 spin_unlock_irqrestore(&dev->hw_lock, flags);
845 spin_lock_irqsave(&dev->hw_lock, flag
[all...]
H A Dene_ir.h202 spinlock_t hw_lock; member in struct:ene_device
/drivers/usb/serial/
H A Dark3116.c76 struct mutex hw_lock; member in struct:ark3116_private
152 mutex_init(&priv->hw_lock);
211 mutex_destroy(&priv->hw_lock);
290 mutex_lock(&priv->hw_lock);
333 mutex_unlock(&priv->hw_lock);
496 mutex_lock(&priv->hw_lock);
498 mutex_unlock(&priv->hw_lock);
524 mutex_lock(&priv->hw_lock);
545 mutex_unlock(&priv->hw_lock);
556 mutex_lock(&priv->hw_lock);
[all...]
/drivers/net/ethernet/dec/
H A Dewrk3.c287 spinlock_t hw_lock; member in struct:ewrk3_private
552 spin_lock_init(&lp->hw_lock);
776 spin_lock_irq (&lp->hw_lock);
862 spin_unlock_irq (&lp->hw_lock);
875 spin_unlock_irq (&lp->hw_lock);
898 spin_lock(&lp->hw_lock);
930 spin_unlock(&lp->hw_lock);
934 /* Called with lp->hw_lock held */
1059 ** Called with lp->hw_lock held
1179 spin_lock_irq(&lp->hw_lock);
[all...]
/drivers/scsi/
H A Dvmw_pvscsi.c75 spinlock_t hw_lock; member in struct:pvscsi_adapter
700 spin_lock_irqsave(&adapter->hw_lock, flags);
706 spin_unlock_irqrestore(&adapter->hw_lock, flags);
715 spin_unlock_irqrestore(&adapter->hw_lock, flags);
733 spin_lock_irqsave(&adapter->hw_lock, flags);
756 spin_unlock_irqrestore(&adapter->hw_lock, flags);
793 spin_lock_irqsave(&adapter->hw_lock, flags);
799 spin_unlock_irqrestore(&adapter->hw_lock, flags);
806 spin_lock_irqsave(&adapter->hw_lock, flags);
833 spin_unlock_irqrestore(&adapter->hw_lock, flag
[all...]
/drivers/isdn/hysdn/
H A Dboardergo.c60 if (!card->hw_lock)
87 if (card->hw_lock) {
91 card->hw_lock = 1; /* we now lock the hardware */
117 card->hw_lock = 0; /* free hardware again */
H A Dhysdn_defs.h169 unsigned char volatile hw_lock;/* hardware is currently locked -> no access */ member in struct:HYSDN_CARD
/drivers/media/video/s5p-mfc/
H A Ds5p_mfc.c77 if (test_bit(0, &dev->hw_lock))
123 clear_bit(0, &dev->hw_lock);
297 if (test_and_clear_bit(0, &dev->hw_lock) == 0)
361 if (test_and_clear_bit(0, &dev->hw_lock) == 0)
396 if (test_and_clear_bit(0, &dev->hw_lock) == 0)
414 if (test_and_clear_bit(0, &dev->hw_lock) == 0)
484 if (test_and_clear_bit(0, &dev->hw_lock) == 0)
525 if (test_and_clear_bit(0, &dev->hw_lock) == 0)
533 if (test_and_clear_bit(0, &dev->hw_lock) == 0)
576 if (test_and_clear_bit(0, &dev->hw_lock)
[all...]
H A Ds5p_mfc_common.h204 * @hw_lock: used for hardware locking
240 unsigned long hw_lock; member in struct:s5p_mfc_dev
/drivers/net/ethernet/qlogic/
H A Dqla3xxx.c103 * Caller must take hw_lock.
144 * Caller holds hw_lock.
184 spin_lock_irqsave(&qdev->hw_lock, hw_flags);
186 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags);
201 spin_lock_irqsave(&qdev->hw_lock, hw_flags);
207 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags);
223 spin_lock_irqsave(&qdev->hw_lock, hw_flags);
226 spin_unlock_irqrestore(&qdev->hw_lock, hw_flags);
254 * Caller holds hw_lock. Only called during init.
266 * Caller holds hw_lock
[all...]
/drivers/net/ethernet/freescale/
H A Dfec.c230 spinlock_t hw_lock; member in struct:fec_enet_private
292 spin_lock_irqsave(&fep->hw_lock, flags);
303 spin_unlock_irqrestore(&fep->hw_lock, flags);
371 spin_unlock_irqrestore(&fep->hw_lock, flags);
568 spin_lock(&fep->hw_lock);
628 spin_unlock(&fep->hw_lock);
653 spin_lock(&fep->hw_lock);
752 spin_unlock(&fep->hw_lock);
865 spin_lock_irqsave(&fep->hw_lock, flags);
894 spin_unlock_irqrestore(&fep->hw_lock, flag
[all...]
/drivers/staging/media/go7007/
H A Dgo7007-i2c.c71 mutex_lock(&go->hw_lock);
138 mutex_unlock(&go->hw_lock);
H A Dgo7007-driver.c44 * Must be called with the hw_lock held.
67 * Must be called with the hw_lock held.
89 * Must be called with the hw_lock held.
138 * Must NOT be called with the hw_lock held.
144 mutex_lock(&go->hw_lock);
146 mutex_unlock(&go->hw_lock);
163 * Must be called with the hw_lock held.
183 * Must be called with the hw_lock held.
214 * Must NOT be called with the hw_lock held.
222 mutex_lock(&go->hw_lock);
[all...]
H A Dgo7007-v4l2.c82 mutex_lock(&go->hw_lock);
92 mutex_unlock(&go->hw_lock);
704 mutex_lock(&go->hw_lock);
706 mutex_unlock(&go->hw_lock);
725 mutex_unlock(&go->hw_lock);
742 mutex_unlock(&go->hw_lock);
945 mutex_lock(&go->hw_lock);
956 mutex_unlock(&go->hw_lock);
1826 mutex_lock(&go->hw_lock);
1834 mutex_unlock(&go->hw_lock);
[all...]
H A Dgo7007-priv.h176 struct mutex hw_lock; member in struct:go7007
/drivers/scsi/qla4xxx/
H A Dql4_nx.c385 write_lock_irqsave(&ha->hw_lock, flags);
394 write_unlock_irqrestore(&ha->hw_lock, flags);
410 write_lock_irqsave(&ha->hw_lock, flags);
418 write_unlock_irqrestore(&ha->hw_lock, flags);
460 * qla4_8xxx_idc_lock - hw_lock
671 write_lock_irqsave(&ha->hw_lock, flags);
680 write_unlock_irqrestore(&ha->hw_lock, flags);
688 write_unlock_irqrestore(&ha->hw_lock, flags);
705 write_lock_irqsave(&ha->hw_lock, flags);
725 write_unlock_irqrestore(&ha->hw_lock, flag
[all...]
/drivers/scsi/qla2xxx/
H A Dqla_nx.c477 write_lock_irqsave(&ha->hw_lock, flags);
486 write_unlock_irqrestore(&ha->hw_lock, flags);
503 write_lock_irqsave(&ha->hw_lock, flags);
511 write_unlock_irqrestore(&ha->hw_lock, flags);
688 write_lock_irqsave(&ha->hw_lock, flags);
697 write_unlock_irqrestore(&ha->hw_lock, flags);
705 write_unlock_irqrestore(&ha->hw_lock, flags);
721 write_lock_irqsave(&ha->hw_lock, flags);
740 write_unlock_irqrestore(&ha->hw_lock, flags);
760 write_lock_irqsave(&ha->hw_lock, flag
[all...]
/drivers/crypto/
H A Dpicoxcell_crypto.c112 spinlock_t hw_lock; member in struct:spacc_engine
721 spin_lock_irqsave(&engine->hw_lock, flags);
726 spin_unlock_irqrestore(&engine->hw_lock, flags);
734 spin_unlock_irqrestore(&engine->hw_lock, flags);
1059 spin_lock_irqsave(&engine->hw_lock, flags);
1069 spin_unlock_irqrestore(&engine->hw_lock, flags);
1077 spin_unlock_irqrestore(&engine->hw_lock, flags);
1157 spin_lock_irqsave(&engine->hw_lock, flags);
1197 spin_unlock_irqrestore(&engine->hw_lock, flags);
1235 spin_lock_irqsave(&engine->hw_lock, flag
[all...]
/drivers/net/ethernet/marvell/
H A Dskge.c2603 spin_lock_irq(&hw->hw_lock);
2607 spin_unlock_irq(&hw->hw_lock);
2655 spin_lock_irq(&hw->hw_lock);
2659 spin_unlock_irq(&hw->hw_lock);
3193 spin_lock_irqsave(&hw->hw_lock, flags);
3198 spin_unlock_irqrestore(&hw->hw_lock, flags);
3328 spin_lock_irq(&hw->hw_lock);
3332 spin_unlock_irq(&hw->hw_lock);
3341 spin_lock(&hw->hw_lock);
3398 spin_unlock(&hw->hw_lock);
[all...]

Completed in 604 milliseconds

12