Home
last modified time | relevance | path

Searched refs:hw_lock (Results 1 – 25 of 49) sorted by relevance

12

/linux-2.4.37.9/drivers/isdn/hisax/
Dhisax_fcpcipnp.c146 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 …]
Dhisax_fcpcipnp.h47 spinlock_t hw_lock; member
/linux-2.4.37.9/drivers/char/drm-4.0/
Di810_drv.c172 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 …]
Dmga_drv.c173 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 …]
Dtdfx_drv.c155 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 …]
Dr128_drv.c180 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 …]
Dradeon_drv.c178 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 …]
Dfops.c100 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()
Dffb_drv.c185 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 …]
Dgamma_dma.c225 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()
Dgamma_drv.c163 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()
Dradeon_cp.c876 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 ) ||
Di810_dma.c1186 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()
Dr128_cce.c569 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()
Dmga_state.c762 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()
Dradeon_state.c1123 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()
Dmga_dma.c550 !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()
Dr128_state.c1343 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/
Dewrk3.c290 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/
Ddrm_drv.h313 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 …]
Di810_dma.c951 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()
Dgamma_dma.c189 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()
Dgamma_drv.h47 if ( !_DRM_LOCK_IS_HELD( dev->lock.hw_lock->lock ) || \
Ddrm_ioctl.h254 = (dev->lock.hw_lock in DRM()
255 ? dev->lock.hw_lock->lock : 0); in DRM()
/linux-2.4.37.9/drivers/isdn/hysdn/
Dboardergo.c62 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()

12