/linux-2.4.37.9/drivers/isdn/hisax/ |
D | hisax_fcpcipnp.c | 146 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_read_isac() 149 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_read_isac() 165 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_write_isac() 168 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_write_isac() 177 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_read_isac_fifo() 180 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_read_isac_fifo() 189 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_write_isac_fifo() 192 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_write_isac_fifo() 201 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_read_hdlc_status() 204 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_read_hdlc_status() [all …]
|
D | hisax_fcpcipnp.h | 47 spinlock_t hw_lock; member
|
/linux-2.4.37.9/drivers/char/drm-4.0/ |
D | i810_drv.c | 172 dev->lock.hw_lock = NULL; in i810_setup() 328 if (dev->lock.hw_lock) { in i810_takedown() 329 dev->lock.hw_lock = NULL; /* SHM removed */ in i810_takedown() 492 if (dev->lock.hw_lock && _DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock) in i810_release() 497 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock)); in i810_release() 499 &dev->lock.hw_lock->lock, in i810_release() 500 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock)); in i810_release() 506 } else if (dev->lock.hw_lock) { in i810_release() 512 if (!dev->lock.hw_lock) { in i810_release() 517 if (drm_lock_take(&dev->lock.hw_lock->lock, in i810_release() [all …]
|
D | mga_drv.c | 173 dev->lock.hw_lock = NULL; in mga_setup() 328 if (dev->lock.hw_lock) { in mga_takedown() 329 dev->lock.hw_lock = NULL; /* SHM removed */ in mga_takedown() 503 if (dev->lock.hw_lock && _DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock) in mga_release() 508 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock), in mga_release() 519 &dev->lock.hw_lock->lock, in mga_release() 520 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock)); in mga_release() 521 } else if (dev->lock.hw_lock) { in mga_release() 527 if (!dev->lock.hw_lock) { in mga_release() 532 if (drm_lock_take(&dev->lock.hw_lock->lock, in mga_release() [all …]
|
D | tdfx_drv.c | 155 dev->lock.hw_lock = NULL; in tdfx_setup() 289 if (dev->lock.hw_lock) { in tdfx_takedown() 290 dev->lock.hw_lock = NULL; /* SHM removed */ in tdfx_takedown() 533 lock.context, current->pid, dev->lock.hw_lock->lock, in tdfx_lock() 545 if (_DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock) in tdfx_lock() 566 if (!dev->lock.hw_lock) { in tdfx_lock() 571 if (drm_lock_take(&dev->lock.hw_lock->lock, in tdfx_lock() 623 dev->sigdata.lock = dev->lock.hw_lock; in tdfx_lock() 671 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock)); in tdfx_unlock() 673 if (_DRM_LOCK_IS_CONT(dev->lock.hw_lock->lock)) in tdfx_unlock() [all …]
|
D | r128_drv.c | 180 dev->lock.hw_lock = NULL; in r128_setup() 324 if (dev->lock.hw_lock) { in r128_takedown() 325 dev->lock.hw_lock = NULL; /* SHM removed */ in r128_takedown() 589 lock.context, current->pid, dev->lock.hw_lock->lock, in r128_lock() 599 if (!dev->lock.hw_lock) { in r128_lock() 604 if (drm_lock_take(&dev->lock.hw_lock->lock, in r128_lock() 631 dev->sigdata.lock = dev->lock.hw_lock; in r128_lock() 679 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock)); in r128_unlock() 681 if (_DRM_LOCK_IS_CONT(dev->lock.hw_lock->lock)) in r128_unlock() 683 drm_lock_transfer(dev, &dev->lock.hw_lock->lock, DRM_KERNEL_CONTEXT); in r128_unlock() [all …]
|
D | radeon_drv.c | 178 dev->lock.hw_lock = NULL; in radeon_setup() 322 if (dev->lock.hw_lock) { in radeon_takedown() 323 dev->lock.hw_lock = NULL; /* SHM removed */ in radeon_takedown() 592 lock.context, current->pid, dev->lock.hw_lock->lock, in radeon_lock() 602 if (!dev->lock.hw_lock) { in radeon_lock() 607 if (drm_lock_take(&dev->lock.hw_lock->lock, in radeon_lock() 634 dev->sigdata.lock = dev->lock.hw_lock; in radeon_lock() 682 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock)); in radeon_unlock() 684 if (_DRM_LOCK_IS_CONT(dev->lock.hw_lock->lock)) in radeon_unlock() 686 drm_lock_transfer(dev, &dev->lock.hw_lock->lock, DRM_KERNEL_CONTEXT); in radeon_unlock() [all …]
|
D | fops.c | 100 if (dev->lock.hw_lock in drm_release() 101 && _DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock) in drm_release() 105 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock)); in drm_release() 107 &dev->lock.hw_lock->lock, in drm_release() 108 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock)); in drm_release()
|
D | ffb_drv.c | 185 if (dev->lock.hw_lock) { in ffb_takedown() 186 dev->lock.hw_lock = NULL; /* SHM removed */ in ffb_takedown() 515 dev->lock.hw_lock = NULL; in ffb_setup() 592 if (dev->lock.hw_lock != NULL in ffb_release() 593 && _DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock) in ffb_release() 596 int context = _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock); in ffb_release() 692 lock.context, current->pid, dev->lock.hw_lock->lock, in ffb_lock() 697 if (!dev->lock.hw_lock) { in ffb_lock() 702 if (drm_lock_take(&dev->lock.hw_lock->lock, in ffb_lock() 729 dev->sigdata.lock = dev->lock.hw_lock; in ffb_lock() [all …]
|
D | gamma_dma.c | 225 if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in gamma_do_dma() 231 if (!locked && !drm_lock_take(&dev->lock.hw_lock->lock, in gamma_do_dma() 273 if (drm_lock_free(dev, &dev->lock.hw_lock->lock, in gamma_do_dma() 403 while (!drm_lock_take(&dev->lock.hw_lock->lock, in gamma_dma_priority() 514 if (drm_lock_free(dev, &dev->lock.hw_lock->lock, in gamma_dma_priority() 757 lock.context, current->pid, dev->lock.hw_lock->lock, in gamma_lock() 767 if (_DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock) in gamma_lock() 781 if (!dev->lock.hw_lock) { in gamma_lock() 786 if (drm_lock_take(&dev->lock.hw_lock->lock, in gamma_lock() 816 dev->sigdata.lock = dev->lock.hw_lock; in gamma_lock()
|
D | gamma_drv.c | 163 dev->lock.hw_lock = NULL; in gamma_setup() 302 if (dev->lock.hw_lock) { in gamma_takedown() 303 dev->lock.hw_lock = NULL; /* SHM removed */ in gamma_takedown() 553 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock)); in gamma_unlock() 555 if (_DRM_LOCK_IS_CONT(dev->lock.hw_lock->lock)) in gamma_unlock() 557 drm_lock_transfer(dev, &dev->lock.hw_lock->lock, DRM_KERNEL_CONTEXT); in gamma_unlock() 560 if (drm_lock_free(dev, &dev->lock.hw_lock->lock, in gamma_unlock()
|
D | radeon_cp.c | 876 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_start() 909 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_stop() 955 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_reset() 981 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_idle() 997 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_engine_reset() 1051 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_fullscreen() 1282 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) ||
|
D | i810_dma.c | 1186 lock.context, current->pid, dev->lock.hw_lock->lock, in i810_lock() 1199 if (!dev->lock.hw_lock) { in i810_lock() 1204 if (drm_lock_take(&dev->lock.hw_lock->lock, in i810_lock() 1232 dev->sigdata.lock = dev->lock.hw_lock; in i810_lock() 1252 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_flush_ioctl() 1277 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_dma_vertex() 1311 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_clear_bufs() 1330 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_swap_bufs() 1369 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_getbuf() 1402 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_copybuf()
|
D | r128_cce.c | 569 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_start() 597 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_stop() 643 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_reset() 669 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_idle() 689 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_engine_reset() 1032 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_packet() 1221 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_buffers()
|
D | mga_state.c | 762 if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in mga_clear_bufs() 793 if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in mga_swap_bufs() 830 if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in mga_iload() 873 if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in mga_vertex() 921 if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in mga_indices() 985 if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in mga_dma()
|
D | radeon_state.c | 1123 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_clear() 1150 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_swap() 1181 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_vertex() 1246 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_indices() 1320 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_blit() 1352 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_stipple() 1383 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in radeon_cp_indirect()
|
D | mga_dma.c | 550 !drm_lock_take(&dev->lock.hw_lock->lock, DRM_KERNEL_CONTEXT)) { in mga_dma_schedule() 573 if (drm_lock_free(dev, &dev->lock.hw_lock->lock, in mga_dma_schedule() 971 if (!dev->lock.hw_lock) { in mga_lock() 976 if (drm_lock_take(&dev->lock.hw_lock->lock, in mga_lock() 1003 dev->sigdata.lock = dev->lock.hw_lock; in mga_lock() 1029 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in mga_flush_ioctl()
|
D | r128_state.c | 1343 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_clear() 1376 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_swap() 1405 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_vertex() 1468 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_indices() 1539 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_blit() 1568 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_depth() 1600 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || in r128_cce_stipple()
|
/linux-2.4.37.9/drivers/net/ |
D | ewrk3.c | 290 spinlock_t hw_lock; member 546 spin_lock_init(&lp->hw_lock); in ewrk3_hw_init() 795 spin_lock_irq (&lp->hw_lock); in ewrk3_queue_pkt() 883 spin_unlock_irq (&lp->hw_lock); in ewrk3_queue_pkt() 897 spin_unlock_irq (&lp->hw_lock); in ewrk3_queue_pkt() 920 spin_lock(&lp->hw_lock); in ewrk3_interrupt() 952 spin_unlock(&lp->hw_lock); in ewrk3_interrupt() 1210 spin_lock_irq(&lp->hw_lock); in SetMulticastFilter() 1271 spin_unlock_irq(&lp->hw_lock); in SetMulticastFilter() 1728 spin_lock_irqsave(&lp->hw_lock, flags); in ewrk3_ethtool_ioctl() [all …]
|
/linux-2.4.37.9/drivers/char/drm/ |
D | drm_drv.h | 313 dev->sigdata.lock = dev->lock.hw_lock = NULL; in DRM() 497 if ( dev->lock.hw_lock ) { in DRM() 498 dev->sigdata.lock = dev->lock.hw_lock = NULL; /* SHM removed */ in DRM() 771 if ( dev->lock.hw_lock && in DRM() 772 _DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock) && in DRM() 776 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock) ); in DRM() 780 DRM(lock_free)( dev, &dev->lock.hw_lock->lock, in DRM() 781 _DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock) ); in DRM() 789 else if ( dev->lock.hw_lock ) { in DRM() 795 if ( !dev->lock.hw_lock ) { in DRM() [all …]
|
D | i810_dma.c | 951 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_flush_ioctl() 976 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_dma_vertex() 1007 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_clear_bufs() 1029 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_swap_bufs() 1067 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_getbuf() 1178 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_dma_mc() 1226 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_fstatus() 1240 if(!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in i810_ov0_flip()
|
D | gamma_dma.c | 189 if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock)) { in gamma_do_dma() 195 if (!locked && !gamma_lock_take(&dev->lock.hw_lock->lock, in gamma_do_dma() 240 if (gamma_lock_free(dev, &dev->lock.hw_lock->lock, in gamma_do_dma() 363 while (!gamma_lock_take(&dev->lock.hw_lock->lock, in gamma_dma_priority() 473 if (gamma_lock_free(dev, &dev->lock.hw_lock->lock, in gamma_dma_priority()
|
D | gamma_drv.h | 47 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || \
|
D | drm_ioctl.h | 254 = (dev->lock.hw_lock in DRM() 255 ? dev->lock.hw_lock->lock : 0); in DRM()
|
/linux-2.4.37.9/drivers/isdn/hysdn/ |
D | boardergo.c | 62 if (!card->hw_lock) { in ergo_interrupt() 89 if (card->hw_lock) { in ergo_irq_bh() 93 card->hw_lock = 1; /* we now lock the hardware */ in ergo_irq_bh() 121 card->hw_lock = 0; /* free hardware again */ in ergo_irq_bh()
|