Home
last modified time | relevance | path

Searched refs:reg_lock (Results 1 – 25 of 52) sorted by relevance

123

/drivers/staging/rts5208/
Drtsx_transport.c218 spin_lock_irq(&chip->rtsx->reg_lock); in rtsx_add_cmd()
222 spin_unlock_irq(&chip->rtsx->reg_lock); in rtsx_add_cmd()
254 spin_lock_irq(&rtsx->reg_lock); in rtsx_send_cmd()
269 spin_unlock_irq(&rtsx->reg_lock); in rtsx_send_cmd()
282 spin_lock_irq(&rtsx->reg_lock); in rtsx_send_cmd()
288 spin_unlock_irq(&rtsx->reg_lock); in rtsx_send_cmd()
361 spin_lock_irq(&rtsx->reg_lock); in rtsx_transfer_sglist_adma_partial()
369 spin_unlock_irq(&rtsx->reg_lock); in rtsx_transfer_sglist_adma_partial()
427 spin_lock_irq(&rtsx->reg_lock); in rtsx_transfer_sglist_adma_partial()
434 spin_unlock_irq(&rtsx->reg_lock); in rtsx_transfer_sglist_adma_partial()
[all …]
Drtsx_sys.h35 spin_lock(&dev->reg_lock); in rtsx_exclusive_enter_ss()
37 spin_unlock(&dev->reg_lock); in rtsx_exclusive_enter_ss()
Drtsx.h102 spinlock_t reg_lock; member
171 #define lock_state(chip) spin_lock_irq(&((chip)->rtsx->reg_lock))
172 #define unlock_state(chip) spin_unlock_irq(&((chip)->rtsx->reg_lock))
/drivers/video/fbdev/via/
Dvia-gpio.c91 spin_lock_irqsave(&cfg->vdev->reg_lock, flags); in via_gpio_set()
100 spin_unlock_irqrestore(&cfg->vdev->reg_lock, flags); in via_gpio_set()
120 spin_lock_irqsave(&cfg->vdev->reg_lock, flags); in via_gpio_dir_input()
124 spin_unlock_irqrestore(&cfg->vdev->reg_lock, flags); in via_gpio_dir_input()
135 spin_lock_irqsave(&cfg->vdev->reg_lock, flags); in via_gpio_get()
138 spin_unlock_irqrestore(&cfg->vdev->reg_lock, flags); in via_gpio_get()
244 spin_lock_irqsave(&viafb_gpio_config.vdev->reg_lock, flags); in viafb_gpio_probe()
247 spin_unlock_irqrestore(&viafb_gpio_config.vdev->reg_lock, flags); in viafb_gpio_probe()
283 spin_lock_irqsave(&viafb_gpio_config.vdev->reg_lock, flags); in viafb_gpio_remove()
287 spin_unlock_irqrestore(&viafb_gpio_config.vdev->reg_lock, flags); in viafb_gpio_remove()
Dvia_i2c.c43 spin_lock_irqsave(&i2c_vdev->reg_lock, flags); in via_i2c_setscl()
60 spin_unlock_irqrestore(&i2c_vdev->reg_lock, flags); in via_i2c_setscl()
69 spin_lock_irqsave(&i2c_vdev->reg_lock, flags); in via_i2c_getscl()
75 spin_unlock_irqrestore(&i2c_vdev->reg_lock, flags); in via_i2c_getscl()
85 spin_lock_irqsave(&i2c_vdev->reg_lock, flags); in via_i2c_getsda()
91 spin_unlock_irqrestore(&i2c_vdev->reg_lock, flags); in via_i2c_getsda()
101 spin_lock_irqsave(&i2c_vdev->reg_lock, flags); in via_i2c_setsda()
118 spin_unlock_irqrestore(&i2c_vdev->reg_lock, flags); in via_i2c_setsda()
Dvia-core.c170 spin_lock(&global_dev.reg_lock); in viafb_dma_irq()
177 spin_unlock(&global_dev.reg_lock); in viafb_dma_irq()
240 spin_lock_irqsave(&global_dev.reg_lock, flags);
255 spin_unlock_irqrestore(&global_dev.reg_lock, flags);
315 spin_lock_irqsave(&global_dev.reg_lock, flags); in viafb_dma_copy_out_sg()
325 spin_unlock_irqrestore(&global_dev.reg_lock, flags); in viafb_dma_copy_out_sg()
692 spin_lock_init(&global_dev.reg_lock); in via_pci_probe()
/drivers/mfd/
Dti_am335x_tscadc.c41 spin_lock_irqsave(&tscadc->reg_lock, flags); in am335x_tsc_se_set_cache()
48 spin_unlock_irqrestore(&tscadc->reg_lock, flags); in am335x_tsc_se_set_cache()
62 spin_unlock_irq(&tscadc->reg_lock); in am335x_tscadc_need_adc()
66 spin_lock_irq(&tscadc->reg_lock); in am335x_tscadc_need_adc()
82 spin_lock_irq(&tscadc->reg_lock); in am335x_tsc_se_set_once()
86 spin_unlock_irq(&tscadc->reg_lock); in am335x_tsc_se_set_once()
94 spin_lock_irqsave(&tscadc->reg_lock, flags); in am335x_tsc_se_adc_done()
97 spin_unlock_irqrestore(&tscadc->reg_lock, flags); in am335x_tsc_se_adc_done()
105 spin_lock_irqsave(&tscadc->reg_lock, flags); in am335x_tsc_se_clr()
108 spin_unlock_irqrestore(&tscadc->reg_lock, flags); in am335x_tsc_se_clr()
[all …]
/drivers/net/dsa/mv88e6xxx/
Dchip.c45 if (unlikely(!mutex_is_locked(&chip->reg_lock))) { in assert_reg_lock()
264 mutex_lock(&chip->reg_lock); in mv88e6xxx_g1_irq_thread_fn()
266 mutex_unlock(&chip->reg_lock); in mv88e6xxx_g1_irq_thread_fn()
281 mutex_lock(&chip->reg_lock); in mv88e6xxx_g1_irq_thread_fn()
287 mutex_unlock(&chip->reg_lock); in mv88e6xxx_g1_irq_thread_fn()
301 mutex_lock(&chip->reg_lock); in mv88e6xxx_g1_irq_bus_lock()
323 mutex_unlock(&chip->reg_lock); in mv88e6xxx_g1_irq_bus_sync_unlock()
526 mutex_lock(&chip->reg_lock); in mv88e6xxx_adjust_link()
529 mutex_unlock(&chip->reg_lock); in mv88e6xxx_adjust_link()
778 mutex_lock(&chip->reg_lock); in mv88e6xxx_get_ethtool_stats()
[all …]
Dglobal2.c893 mutex_lock(&chip->reg_lock); in mv88e6xxx_g2_watchdog_thread_fn()
896 mutex_unlock(&chip->reg_lock); in mv88e6xxx_g2_watchdog_thread_fn()
903 mutex_lock(&chip->reg_lock); in mv88e6xxx_g2_watchdog_free()
906 mutex_unlock(&chip->reg_lock); in mv88e6xxx_g2_watchdog_free()
928 mutex_lock(&chip->reg_lock); in mv88e6xxx_g2_watchdog_setup()
931 mutex_unlock(&chip->reg_lock); in mv88e6xxx_g2_watchdog_setup()
986 mutex_lock(&chip->reg_lock); in mv88e6xxx_g2_irq_thread_fn()
988 mutex_unlock(&chip->reg_lock); in mv88e6xxx_g2_irq_thread_fn()
1007 mutex_lock(&chip->reg_lock); in mv88e6xxx_g2_irq_bus_lock()
1019 mutex_unlock(&chip->reg_lock); in mv88e6xxx_g2_irq_bus_sync_unlock()
Dphy.c144 mutex_lock(&chip->reg_lock); in mv88e6xxx_phy_ppu_reenable_work()
152 mutex_unlock(&chip->reg_lock); in mv88e6xxx_phy_ppu_reenable_work()
/drivers/gpu/drm/msm/hdmi/
Dhdmi_hdcp.c211 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_irq()
215 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_irq()
224 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_irq()
420 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_reauth_work()
427 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_reauth_work()
442 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_reauth_work()
446 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_reauth_work()
482 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_auth_prepare()
492 spin_unlock_irqrestore(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_auth_prepare()
554 spin_lock_irqsave(&hdmi->reg_lock, flags); in msm_hdmi_hdcp_auth_fail()
[all …]
/drivers/watchdog/
Dmei_wdt.c108 struct mutex reg_lock; member
349 mutex_lock(&wdt->reg_lock); in mei_wdt_unregister()
357 mutex_unlock(&wdt->reg_lock); in mei_wdt_unregister()
377 mutex_lock(&wdt->reg_lock); in mei_wdt_register()
403 mutex_unlock(&wdt->reg_lock); in mei_wdt_register()
511 mutex_lock(&wdt->reg_lock); in mei_dbgfs_read_activation()
514 mutex_unlock(&wdt->reg_lock); in mei_dbgfs_read_activation()
599 mutex_init(&wdt->reg_lock); in mei_wdt_probe()
/drivers/clk/microchip/
Dclk-core.c189 spin_lock_irqsave(&pb->core->reg_lock, flags); in pbclk_set_rate()
200 spin_unlock_irqrestore(&pb->core->reg_lock, flags); in pbclk_set_rate()
464 spin_lock_irqsave(&refo->core->reg_lock, flags); in roclk_set_parent()
475 spin_unlock_irqrestore(&refo->core->reg_lock, flags); in roclk_set_parent()
505 spin_lock_irqsave(&refo->core->reg_lock, flags); in roclk_set_rate_and_parent()
537 spin_unlock_irqrestore(&refo->core->reg_lock, flags); in roclk_set_rate_and_parent()
704 spin_lock_irqsave(&pll->core->reg_lock, flags); in spll_clk_set_rate()
725 spin_unlock_irqrestore(&pll->core->reg_lock, flags); in spll_clk_set_rate()
804 spin_lock_irqsave(&sclk->core->reg_lock, flags); in sclk_set_rate()
819 spin_unlock_irqrestore(&sclk->core->reg_lock, flags); in sclk_set_rate()
[all …]
Dclk-pic32mzda.c178 spin_lock_init(&core->reg_lock); in pic32mzda_clk_probe()
205 &core->reg_lock); in pic32mzda_clk_probe()
210 PLL_ICLK_SHIFT, 1, 0, &core->reg_lock); in pic32mzda_clk_probe()
Dclk-core.h23 spinlock_t reg_lock; /* clock lock */ member
/drivers/gpu/drm/meson/
Dmeson_dw_hdmi.c121 static DEFINE_SPINLOCK(reg_lock);
159 spin_lock_irqsave(&reg_lock, flags); in dw_hdmi_top_read()
169 spin_unlock_irqrestore(&reg_lock, flags); in dw_hdmi_top_read()
179 spin_lock_irqsave(&reg_lock, flags); in dw_hdmi_top_write()
188 spin_unlock_irqrestore(&reg_lock, flags); in dw_hdmi_top_write()
211 spin_lock_irqsave(&reg_lock, flags); in dw_hdmi_dwc_read()
221 spin_unlock_irqrestore(&reg_lock, flags); in dw_hdmi_dwc_read()
231 spin_lock_irqsave(&reg_lock, flags); in dw_hdmi_dwc_write()
240 spin_unlock_irqrestore(&reg_lock, flags); in dw_hdmi_dwc_write()
/drivers/net/ethernet/wiznet/
Dw5100.c185 spinlock_t reg_lock; member
275 spin_lock_init(&mmio_priv->reg_lock); in w5100_mmio_init()
315 spin_lock_irqsave(&mmio_priv->reg_lock, flags); in w5100_read_indirect()
318 spin_unlock_irqrestore(&mmio_priv->reg_lock, flags); in w5100_read_indirect()
328 spin_lock_irqsave(&mmio_priv->reg_lock, flags); in w5100_write_indirect()
331 spin_unlock_irqrestore(&mmio_priv->reg_lock, flags); in w5100_write_indirect()
342 spin_lock_irqsave(&mmio_priv->reg_lock, flags); in w5100_read16_indirect()
346 spin_unlock_irqrestore(&mmio_priv->reg_lock, flags); in w5100_read16_indirect()
356 spin_lock_irqsave(&mmio_priv->reg_lock, flags); in w5100_write16_indirect()
360 spin_unlock_irqrestore(&mmio_priv->reg_lock, flags); in w5100_write16_indirect()
[all …]
Dw5300.c89 spinlock_t reg_lock; member
142 spin_lock_irqsave(&priv->reg_lock, flags); in w5300_read_indirect()
146 spin_unlock_irqrestore(&priv->reg_lock, flags); in w5300_read_indirect()
155 spin_lock_irqsave(&priv->reg_lock, flags); in w5300_write_indirect()
160 spin_unlock_irqrestore(&priv->reg_lock, flags); in w5300_write_indirect()
565 spin_lock_init(&priv->reg_lock); in w5300_hw_probe()
/drivers/media/pci/cx88/
Dcx88-alsa.c74 spinlock_t reg_lock; member
544 spin_lock(&chip->reg_lock); in snd_cx88_card_trigger()
558 spin_unlock(&chip->reg_lock); in snd_cx88_card_trigger()
698 spin_lock_irq(&chip->reg_lock); in snd_cx88_volume_put()
708 spin_unlock_irq(&chip->reg_lock); in snd_cx88_volume_put()
746 spin_lock_irq(&chip->reg_lock); in snd_cx88_switch_put()
757 spin_unlock_irq(&chip->reg_lock); in snd_cx88_switch_put()
892 spin_lock_init(&chip->reg_lock); in snd_cx88_create()
/drivers/media/platform/
Dvia-camera.c310 spin_lock(&cam->viadev->reg_lock); in viacam_quick_irq()
317 spin_unlock(&cam->viadev->reg_lock); in viacam_quick_irq()
329 spin_lock_irqsave(&cam->viadev->reg_lock, flags); in viacam_next_buffer()
342 spin_unlock_irqrestore(&cam->viadev->reg_lock, flags); in viacam_next_buffer()
539 spin_lock_irqsave(&cam->viadev->reg_lock, flags); in viacam_config_controller()
543 spin_unlock_irqrestore(&cam->viadev->reg_lock, flags); in viacam_config_controller()
553 spin_lock_irq(&cam->viadev->reg_lock); in viacam_start_engine()
559 spin_unlock_irq(&cam->viadev->reg_lock); in viacam_start_engine()
565 spin_lock_irq(&cam->viadev->reg_lock); in viacam_stop_engine()
570 spin_unlock_irq(&cam->viadev->reg_lock); in viacam_stop_engine()
[all …]
/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c120 spinlock_t reg_lock; member
540 spin_lock(&vop->reg_lock); in vop_enable()
542 spin_unlock(&vop->reg_lock); in vop_enable()
552 spin_lock(&vop->reg_lock); in vop_enable()
556 spin_unlock(&vop->reg_lock); in vop_enable()
596 spin_lock(&vop->reg_lock); in vop_crtc_atomic_disable()
600 spin_unlock(&vop->reg_lock); in vop_crtc_atomic_disable()
696 spin_lock(&vop->reg_lock); in vop_plane_atomic_disable()
700 spin_unlock(&vop->reg_lock); in vop_plane_atomic_disable()
759 spin_lock(&vop->reg_lock); in vop_plane_atomic_update()
[all …]
/drivers/clk/zte/
Dclk-zx296702.c15 static DEFINE_SPINLOCK(reg_lock);
204 width, 0, table, &reg_lock); in zx_divtbl()
211 reg, shift, width, 0, &reg_lock); in zx_div()
218 0, reg, shift, width, 0, &reg_lock); in zx_mux()
225 reg, shift, CLK_SET_RATE_PARENT, &reg_lock); in zx_gate()
241 ARRAY_SIZE(pll_a9_config), &reg_lock); in zx296702_top_clocks_init()
/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_offload.c303 spin_lock_irqsave(&adapter->sge.reg_lock, flags); in cxgb_rdma_ctl()
306 spin_unlock_irqrestore(&adapter->sge.reg_lock, flags); in cxgb_rdma_ctl()
334 spin_lock_irq(&adapter->sge.reg_lock); in cxgb_rdma_ctl()
341 spin_unlock_irq(&adapter->sge.reg_lock); in cxgb_rdma_ctl()
345 spin_lock_irq(&adapter->sge.reg_lock); in cxgb_rdma_ctl()
347 spin_unlock_irq(&adapter->sge.reg_lock); in cxgb_rdma_ctl()
352 spin_lock_irq(&adapter->sge.reg_lock); in cxgb_rdma_ctl()
358 spin_unlock_irq(&adapter->sge.reg_lock); in cxgb_rdma_ctl()
/drivers/media/pci/cx25821/
Dcx25821-alsa.c82 spinlock_t reg_lock; member
600 spin_lock(&chip->reg_lock); in snd_cx25821_card_trigger()
614 spin_unlock(&chip->reg_lock); in snd_cx25821_card_trigger()
732 spin_lock_init(&chip->reg_lock); in cx25821_audio_initdev()
/drivers/net/wireless/intel/iwlegacy/
Dcommon.h1189 spinlock_t reg_lock; /* protect hw register access */ member
2048 spin_lock_irqsave(&il->reg_lock, reg_flags); in il_rd()
2052 spin_unlock_irqrestore(&il->reg_lock, reg_flags); in il_rd()
2061 spin_lock_irqsave(&il->reg_lock, reg_flags); in il_wr()
2066 spin_unlock_irqrestore(&il->reg_lock, reg_flags); in il_wr()
2088 spin_lock_irqsave(&il->reg_lock, reg_flags); in il_set_bits_prph()
2093 spin_unlock_irqrestore(&il->reg_lock, reg_flags); in il_set_bits_prph()
2101 spin_lock_irqsave(&il->reg_lock, reg_flags); in il_set_bits_mask_prph()
2106 spin_unlock_irqrestore(&il->reg_lock, reg_flags); in il_set_bits_mask_prph()
2115 spin_lock_irqsave(&il->reg_lock, reg_flags); in il_clear_bits_prph()
[all …]

123