Home
last modified time | relevance | path

Searched refs:dev_lock (Results 1 – 25 of 35) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/media/platform/marvell-ccic/
Dcafe-driver.c164 spin_lock_irqsave(&mcam->dev_lock, flags); in cafe_smbus_write_done()
166 spin_unlock_irqrestore(&mcam->dev_lock, flags); in cafe_smbus_write_done()
177 spin_lock_irqsave(&mcam->dev_lock, flags); in cafe_smbus_write_data()
188 spin_unlock_irqrestore(&mcam->dev_lock, flags); in cafe_smbus_write_data()
211 spin_lock_irqsave(&mcam->dev_lock, flags); in cafe_smbus_write_data()
213 spin_unlock_irqrestore(&mcam->dev_lock, flags); in cafe_smbus_write_data()
241 spin_lock_irqsave(&mcam->dev_lock, flags); in cafe_smbus_read_done()
243 spin_unlock_irqrestore(&mcam->dev_lock, flags); in cafe_smbus_read_done()
256 spin_lock_irqsave(&mcam->dev_lock, flags); in cafe_smbus_read_data()
267 spin_unlock_irqrestore(&mcam->dev_lock, flags); in cafe_smbus_read_data()
[all …]
Dmcam-core.c449 spin_lock_irqsave(&cam->dev_lock, flags); in mcam_frame_tasklet()
471 spin_unlock_irqrestore(&cam->dev_lock, flags); in mcam_frame_tasklet()
476 spin_lock_irqsave(&cam->dev_lock, flags); in mcam_frame_tasklet()
478 spin_unlock_irqrestore(&cam->dev_lock, flags); in mcam_frame_tasklet()
802 spin_lock_irqsave(&cam->dev_lock, flags); in mcam_ctlr_configure()
807 spin_unlock_irqrestore(&cam->dev_lock, flags); in mcam_ctlr_configure()
839 spin_lock_irqsave(&cam->dev_lock, flags); in mcam_ctlr_stop_dma()
843 spin_unlock_irqrestore(&cam->dev_lock, flags); in mcam_ctlr_stop_dma()
855 spin_lock_irqsave(&cam->dev_lock, flags); in mcam_ctlr_stop_dma()
857 spin_unlock_irqrestore(&cam->dev_lock, flags); in mcam_ctlr_stop_dma()
[all …]
Dmmp-driver.c152 spin_lock(&mcam->dev_lock); in mmpcam_irq()
155 spin_unlock(&mcam->dev_lock); in mmpcam_irq()
221 spin_lock_init(&mcam->dev_lock); in mmpcam_probe()
Dmcam-core.h108 spinlock_t dev_lock; member
/kernel/linux/linux-5.10/Documentation/translations/zh_CN/
Dio_ordering.txt35 CPU A: spin_lock_irqsave(&dev_lock, flags)
39 CPU A: spin_unlock_irqrestore(&dev_lock, flags)
41 CPU B: spin_lock_irqsave(&dev_lock, flags)
45 CPU B: spin_unlock_irqrestore(&dev_lock, flags)
52 CPU A: spin_lock_irqsave(&dev_lock, flags)
57 CPU A: spin_unlock_irqrestore(&dev_lock, flags)
59 CPU B: spin_lock_irqsave(&dev_lock, flags)
64 CPU B: spin_unlock_irqrestore(&dev_lock, flags)
/kernel/linux/linux-5.10/Documentation/driver-api/
Dio_ordering.rst18 CPU A: spin_lock_irqsave(&dev_lock, flags)
22 CPU A: spin_unlock_irqrestore(&dev_lock, flags)
24 CPU B: spin_lock_irqsave(&dev_lock, flags)
28 CPU B: spin_unlock_irqrestore(&dev_lock, flags)
35 CPU A: spin_lock_irqsave(&dev_lock, flags)
40 CPU A: spin_unlock_irqrestore(&dev_lock, flags)
42 CPU B: spin_lock_irqsave(&dev_lock, flags)
47 CPU B: spin_unlock_irqrestore(&dev_lock, flags)
/kernel/linux/linux-5.10/drivers/dma/idxd/
Ddevice.c309 lockdep_assert_held(&idxd->dev_lock); in idxd_wq_disable_cleanup()
360 spin_lock_irqsave(&idxd->dev_lock, flags); in idxd_device_init_reset()
366 spin_unlock_irqrestore(&idxd->dev_lock, flags); in idxd_device_init_reset()
389 spin_lock_irqsave(&idxd->dev_lock, flags); in idxd_cmd_exec()
392 idxd->dev_lock); in idxd_cmd_exec()
406 spin_unlock_irqrestore(&idxd->dev_lock, flags); in idxd_cmd_exec()
408 spin_lock_irqsave(&idxd->dev_lock, flags); in idxd_cmd_exec()
417 spin_unlock_irqrestore(&idxd->dev_lock, flags); in idxd_cmd_exec()
447 lockdep_assert_held(&idxd->dev_lock); in idxd_device_wqs_clear_state()
479 spin_lock_irqsave(&idxd->dev_lock, flags); in idxd_device_disable()
[all …]
Dirq.c65 spin_lock_bh(&idxd->dev_lock); in process_misc_interrupts()
90 spin_unlock_bh(&idxd->dev_lock); in process_misc_interrupts()
137 spin_lock_bh(&idxd->dev_lock); in process_misc_interrupts()
143 spin_unlock_bh(&idxd->dev_lock); in process_misc_interrupts()
Dsysfs.c122 spin_lock_irqsave(&idxd->dev_lock, flags); in idxd_config_bus_probe()
124 spin_unlock_irqrestore(&idxd->dev_lock, flags); in idxd_config_bus_probe()
185 spin_lock_irqsave(&idxd->dev_lock, flags); in idxd_config_bus_probe()
187 spin_unlock_irqrestore(&idxd->dev_lock, flags); in idxd_config_bus_probe()
1311 spin_lock_irqsave(&idxd->dev_lock, flags); in clients_show()
1317 spin_unlock_irqrestore(&idxd->dev_lock, flags); in clients_show()
1351 spin_lock_irqsave(&idxd->dev_lock, flags); in errors_show()
1354 spin_unlock_irqrestore(&idxd->dev_lock, flags); in errors_show()
Dcdev.c176 spin_lock_irqsave(&idxd->dev_lock, flags); in idxd_cdev_poll()
179 spin_unlock_irqrestore(&idxd->dev_lock, flags); in idxd_cdev_poll()
/kernel/linux/linux-5.10/block/
Dsed-opal.c83 struct mutex dev_lock; member
2109 mutex_lock(&dev->dev_lock); in check_opal_support()
2113 mutex_unlock(&dev->dev_lock); in check_opal_support()
2123 mutex_lock(&dev->dev_lock); in clean_opal_dev()
2128 mutex_unlock(&dev->dev_lock); in clean_opal_dev()
2164 mutex_init(&dev->dev_lock); in init_opal_dev()
2198 mutex_lock(&dev->dev_lock); in opal_secure_erase_locking_range()
2201 mutex_unlock(&dev->dev_lock); in opal_secure_erase_locking_range()
2216 mutex_lock(&dev->dev_lock); in opal_erase_locking_range()
2219 mutex_unlock(&dev->dev_lock); in opal_erase_locking_range()
[all …]
/kernel/linux/linux-5.10/drivers/block/rsxx/
Ddev.c195 mutex_lock(&card->dev_lock); in rsxx_attach_dev()
207 mutex_unlock(&card->dev_lock); in rsxx_attach_dev()
214 mutex_lock(&card->dev_lock); in rsxx_detach_dev()
221 mutex_unlock(&card->dev_lock); in rsxx_detach_dev()
228 mutex_init(&card->dev_lock); in rsxx_setup_dev()
/kernel/linux/linux-5.10/drivers/xen/xen-pciback/
Dxenbus.c48 mutex_init(&pdev->dev_lock); in alloc_pdev()
69 mutex_lock(&pdev->dev_lock); in xen_pcibk_disconnect()
85 mutex_unlock(&pdev->dev_lock); in xen_pcibk_disconnect()
150 mutex_lock(&pdev->dev_lock); in xen_pcibk_attach()
196 mutex_unlock(&pdev->dev_lock); in xen_pcibk_attach()
376 mutex_lock(&pdev->dev_lock); in xen_pcibk_reconfigure()
514 mutex_unlock(&pdev->dev_lock); in xen_pcibk_reconfigure()
571 mutex_lock(&pdev->dev_lock); in xen_pcibk_setup_backend()
652 mutex_unlock(&pdev->dev_lock); in xen_pcibk_setup_backend()
Dpciback.h36 struct mutex dev_lock; member
/kernel/linux/linux-5.10/drivers/block/rnbd/
Drnbd-srv.c64 static DEFINE_SPINLOCK(dev_lock);
187 spin_lock(&dev_lock); in destroy_device()
189 spin_unlock(&dev_lock); in destroy_device()
444 spin_lock(&dev_lock); in rnbd_srv_find_or_add_srv_dev()
453 spin_unlock(&dev_lock); in rnbd_srv_find_or_add_srv_dev()
458 spin_unlock(&dev_lock); in rnbd_srv_find_or_add_srv_dev()
/kernel/linux/linux-5.10/net/core/
Dnetpoll.c183 if (!ni || down_trylock(&ni->dev_lock)) in netpoll_poll_dev()
187 up(&ni->dev_lock); in netpoll_poll_dev()
197 up(&ni->dev_lock); in netpoll_poll_dev()
211 down(&ni->dev_lock); in netpoll_poll_disable()
222 up(&ni->dev_lock); in netpoll_poll_enable()
628 sema_init(&npinfo->dev_lock, 1); in __netpoll_setup()
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/
Dsmsc911x.c103 spinlock_t dev_lock; member
182 spin_lock_irqsave(&pdata->dev_lock, flags); in smsc911x_reg_read()
184 spin_unlock_irqrestore(&pdata->dev_lock, flags); in smsc911x_reg_read()
230 spin_lock_irqsave(&pdata->dev_lock, flags); in smsc911x_reg_write()
232 spin_unlock_irqrestore(&pdata->dev_lock, flags); in smsc911x_reg_write()
242 spin_lock_irqsave(&pdata->dev_lock, flags); in smsc911x_tx_writefifo()
264 spin_unlock_irqrestore(&pdata->dev_lock, flags); in smsc911x_tx_writefifo()
274 spin_lock_irqsave(&pdata->dev_lock, flags); in smsc911x_tx_writefifo_shift()
298 spin_unlock_irqrestore(&pdata->dev_lock, flags); in smsc911x_tx_writefifo_shift()
308 spin_lock_irqsave(&pdata->dev_lock, flags); in smsc911x_rx_readfifo()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dnetpoll.h39 struct semaphore dev_lock; member
/kernel/linux/linux-5.10/drivers/usb/class/
Dusbtmc.c112 spinlock_t dev_lock; /* lock for file_list */ member
201 spin_lock_irq(&data->dev_lock); in usbtmc_open()
203 spin_unlock_irq(&data->dev_lock); in usbtmc_open()
252 spin_lock_irq(&file_data->data->dev_lock); in usbtmc_release()
256 spin_unlock_irq(&file_data->data->dev_lock); in usbtmc_release()
492 spin_lock_irq(&data->dev_lock); in usbtmc488_ioctl_read_stb()
497 spin_unlock_irq(&data->dev_lock); in usbtmc488_ioctl_read_stb()
503 spin_unlock_irq(&data->dev_lock); in usbtmc488_ioctl_read_stb()
2268 spin_lock_irqsave(&data->dev_lock, flags); in usbtmc_interrupt()
2278 spin_unlock_irqrestore(&data->dev_lock, flags); in usbtmc_interrupt()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec/
Dsec_drv.c635 mutex_lock(&info->dev_lock); in sec_alloc_queue()
642 mutex_unlock(&info->dev_lock); in sec_alloc_queue()
646 mutex_unlock(&info->dev_lock); in sec_alloc_queue()
665 mutex_lock(&info->dev_lock); in sec_queue_free()
668 mutex_unlock(&info->dev_lock); in sec_queue_free()
1219 mutex_init(&info->dev_lock); in sec_probe()
Dsec_drv.h410 struct mutex dev_lock; member
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
Dcxusb.h129 struct mutex dev_lock; member
Dcxusb-analog.c1604 mutex_destroy(&cxdev->dev_lock); in cxusb_medion_v4l2_release()
1636 cxdev->videoqueue.lock = &cxdev->dev_lock; in cxusb_medion_register_analog_video()
1660 cxdev->videodev->lock = &cxdev->dev_lock; in cxusb_medion_register_analog_video()
1695 cxdev->radiodev->lock = &cxdev->dev_lock; in cxusb_medion_register_analog_radio()
1781 mutex_init(&cxdev->dev_lock); in cxusb_medion_register_analog()
1791 mutex_destroy(&cxdev->dev_lock); in cxusb_medion_register_analog()
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c307 mutex_lock(&dev->dev_lock); in ocrdma_put_pd_num()
309 mutex_unlock(&dev->dev_lock); in ocrdma_put_pd_num()
318 mutex_lock(&dev->dev_lock); in ocrdma_get_pd_num()
341 mutex_unlock(&dev->dev_lock); in ocrdma_get_pd_num()
1321 mutex_lock(&dev->dev_lock); in ocrdma_create_qp()
1348 mutex_unlock(&dev->dev_lock); in ocrdma_create_qp()
1356 mutex_unlock(&dev->dev_lock); in ocrdma_create_qp()
1398 mutex_lock(&dev->dev_lock); in ocrdma_modify_qp()
1420 mutex_unlock(&dev->dev_lock); in ocrdma_modify_qp()
1464 mutex_lock(&dev->dev_lock); in ocrdma_query_qp()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/8390/
Daxnet_cs.c877 #define dev_lock(dev) (((struct ei_device *)netdev_priv(dev))->page_lock) macro
893 spin_lock_irqsave(&dev_lock(dev), flags); in ax_close()
895 spin_unlock_irqrestore(&dev_lock(dev), flags); in ax_close()
1610 spin_lock_irqsave(&dev_lock(dev), flags); in set_multicast_list()
1612 spin_unlock_irqrestore(&dev_lock(dev), flags); in set_multicast_list()

12