/drivers/char/tpm/ |
D | tpm_vtpm_proxy.c | 35 struct mutex buf_lock; /* protect buffer and flags */ member 85 mutex_lock(&proxy_dev->buf_lock); in vtpm_proxy_fops_read() 88 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_read() 95 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_read() 108 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_read() 132 mutex_lock(&proxy_dev->buf_lock); in vtpm_proxy_fops_write() 135 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_write() 141 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_write() 150 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_write() 156 mutex_unlock(&proxy_dev->buf_lock); in vtpm_proxy_fops_write() [all …]
|
/drivers/iio/gyro/ |
D | adxrs450.c | 75 struct mutex buf_lock; member 108 mutex_lock(&st->buf_lock); in adxrs450_spi_read_reg_16() 125 mutex_unlock(&st->buf_lock); in adxrs450_spi_read_reg_16() 144 mutex_lock(&st->buf_lock); in adxrs450_spi_write_reg_16() 156 mutex_unlock(&st->buf_lock); in adxrs450_spi_write_reg_16() 182 mutex_lock(&st->buf_lock); in adxrs450_spi_sensor_data() 194 mutex_unlock(&st->buf_lock); in adxrs450_spi_sensor_data() 216 mutex_lock(&st->buf_lock); in adxrs450_spi_initial() 230 mutex_unlock(&st->buf_lock); in adxrs450_spi_initial() 423 mutex_init(&st->buf_lock); in adxrs450_probe()
|
D | adis16130.c | 43 struct mutex buf_lock; member 57 mutex_lock(&st->buf_lock); in adis16130_spi_read() 65 mutex_unlock(&st->buf_lock); in adis16130_spi_read() 154 mutex_init(&st->buf_lock); in adis16130_probe()
|
/drivers/input/serio/ |
D | userio.c | 44 spinlock_t buf_lock; member 60 spin_lock_irqsave(&userio->buf_lock, flags); in userio_device_write() 69 spin_unlock_irqrestore(&userio->buf_lock, flags); in userio_device_write() 85 spin_lock_init(&userio->buf_lock); in userio_char_open() 138 spin_lock_irqsave(&userio->buf_lock, flags); in userio_char_read() 150 spin_unlock_irqrestore(&userio->buf_lock, flags); in userio_char_read()
|
/drivers/tty/hvc/ |
D | hvc_vio.c | 60 spinlock_t buf_lock; member 79 spin_lock_irqsave(&pv->buf_lock, flags); in hvterm_raw_get_chars() 105 spin_unlock_irqrestore(&pv->buf_lock, flags); in hvterm_raw_get_chars() 344 spin_lock_init(&pv->buf_lock); in hvc_vio_probe() 398 spin_lock_init(&hvterm_priv0.buf_lock); in hvc_vio_init_early() 448 spin_lock_init(&hvterm_priv0.buf_lock); in udbg_init_debug_lpar() 465 spin_lock_init(&hvterm_priv0.buf_lock); in udbg_init_debug_lpar_hvsi()
|
/drivers/media/cec/usb/rainshadow/ |
D | rainshadow-cec.c | 52 spinlock_t buf_lock; member 116 spin_lock_irqsave(&rain->buf_lock, flags); in rain_irq_work_handler() 118 spin_unlock_irqrestore(&rain->buf_lock, flags); in rain_irq_work_handler() 126 spin_unlock_irqrestore(&rain->buf_lock, flags); in rain_irq_work_handler() 178 spin_lock(&rain->buf_lock); in rain_interrupt() 182 spin_unlock(&rain->buf_lock); in rain_interrupt() 330 spin_lock_init(&rain->buf_lock); in rain_connect()
|
/drivers/staging/iio/meter/ |
D | ade7854-i2c.c | 27 mutex_lock(&st->buf_lock); in ade7854_i2c_write_reg() 62 mutex_unlock(&st->buf_lock); in ade7854_i2c_write_reg() 76 mutex_lock(&st->buf_lock); in ade7854_i2c_read_reg() 108 mutex_unlock(&st->buf_lock); in ade7854_i2c_read_reg()
|
D | ade7854-spi.c | 31 mutex_lock(&st->buf_lock); in ade7854_spi_write_reg() 64 mutex_unlock(&st->buf_lock); in ade7854_spi_write_reg() 89 mutex_lock(&st->buf_lock); in ade7854_spi_read_reg() 118 mutex_unlock(&st->buf_lock); in ade7854_spi_read_reg()
|
D | ade7854.h | 164 struct mutex buf_lock; member
|
D | ade7854.c | 539 mutex_init(&st->buf_lock); in ade7854_probe()
|
/drivers/spi/ |
D | spidev.c | 76 struct mutex buf_lock; member 158 mutex_lock(&spidev->buf_lock); in spidev_read() 169 mutex_unlock(&spidev->buf_lock); in spidev_read() 189 mutex_lock(&spidev->buf_lock); in spidev_write() 195 mutex_unlock(&spidev->buf_lock); in spidev_write() 375 mutex_lock(&spidev->buf_lock); in spidev_ioctl() 509 mutex_unlock(&spidev->buf_lock); in spidev_ioctl() 540 mutex_lock(&spidev->buf_lock); in spidev_compat_ioc_message() 562 mutex_unlock(&spidev->buf_lock); in spidev_compat_ioc_message() 778 mutex_init(&spidev->buf_lock); in spidev_probe()
|
D | spi-sunplus-sp7021.c | 89 struct mutex buf_lock; member 311 mutex_lock(&pspim->buf_lock); in sp7021_spi_master_transfer_one() 343 mutex_unlock(&pspim->buf_lock); in sp7021_spi_master_transfer_one() 357 mutex_unlock(&pspim->buf_lock); in sp7021_spi_master_transfer_one() 444 mutex_init(&pspim->buf_lock); in sp7021_spi_controller_probe()
|
/drivers/gpu/drm/ |
D | drm_bufs.c | 776 spin_lock(&dev->buf_lock); in drm_legacy_addbufs_agp() 778 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_agp() 782 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_agp() 926 spin_lock(&dev->buf_lock); in drm_legacy_addbufs_pci() 928 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_pci() 932 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_pci() 1154 spin_lock(&dev->buf_lock); in drm_legacy_addbufs_sg() 1156 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_sg() 1160 spin_unlock(&dev->buf_lock); in drm_legacy_addbufs_sg() 1334 spin_lock(&dev->buf_lock); in __drm_legacy_infobufs() [all …]
|
D | drm_legacy_misc.c | 48 spin_lock_init(&dev->buf_lock); in drm_legacy_init_members()
|
/drivers/media/usb/stk1160/ |
D | stk1160-v4l.c | 692 spin_lock_irqsave(&dev->buf_lock, flags); in buffer_queue() 716 spin_unlock_irqrestore(&dev->buf_lock, flags); in buffer_queue() 758 spin_lock_irqsave(&dev->buf_lock, flags); in stk1160_clear_queue() 777 spin_unlock_irqrestore(&dev->buf_lock, flags); in stk1160_clear_queue()
|
D | stk1160-video.c | 73 spin_lock_irqsave(&dev->buf_lock, flags); in stk1160_next_buffer() 79 spin_unlock_irqrestore(&dev->buf_lock, flags); in stk1160_next_buffer()
|
D | stk1160.h | 158 spinlock_t buf_lock; member
|
D | stk1160-core.c | 324 spin_lock_init(&dev->buf_lock); in stk1160_probe()
|
/drivers/scsi/lpfc/ |
D | lpfc_nvme.c | 962 spin_lock(&lpfc_ncmd->buf_lock); in lpfc_nvme_io_cmd_cmpl() 965 spin_unlock(&lpfc_ncmd->buf_lock); in lpfc_nvme_io_cmd_cmpl() 1168 spin_unlock(&lpfc_ncmd->buf_lock); in lpfc_nvme_io_cmd_cmpl() 1927 spin_lock(&lpfc_nbuf->buf_lock); in lpfc_nvme_fcp_abort() 1974 spin_unlock(&lpfc_nbuf->buf_lock); in lpfc_nvme_fcp_abort() 2001 spin_unlock(&lpfc_nbuf->buf_lock); in lpfc_nvme_fcp_abort() 2811 spin_lock(&lpfc_ncmd->buf_lock); in lpfc_nvme_cancel_iocb() 2814 spin_unlock(&lpfc_ncmd->buf_lock); in lpfc_nvme_cancel_iocb() 2818 spin_unlock(&lpfc_ncmd->buf_lock); in lpfc_nvme_cancel_iocb()
|
D | lpfc_scsi.c | 371 spin_lock_init(&psb->buf_lock); in lpfc_new_scsi_buf_s3() 492 spin_lock_irqsave(&psb->buf_lock, iflag); in lpfc_sli4_io_xri_aborted() 495 spin_unlock_irqrestore(&psb->buf_lock, iflag); in lpfc_sli4_io_xri_aborted() 507 spin_lock_irqsave(&psb->buf_lock, iflag); in lpfc_sli4_io_xri_aborted() 512 spin_unlock_irqrestore(&psb->buf_lock, iflag); in lpfc_sli4_io_xri_aborted() 4041 spin_lock(&lpfc_cmd->buf_lock); in lpfc_fcp_io_cmd_wqe_cmpl() 4298 spin_unlock(&lpfc_cmd->buf_lock); in lpfc_fcp_io_cmd_wqe_cmpl() 4319 spin_lock(&lpfc_cmd->buf_lock); in lpfc_fcp_io_cmd_wqe_cmpl() 4323 spin_unlock(&lpfc_cmd->buf_lock); in lpfc_fcp_io_cmd_wqe_cmpl() 4355 spin_lock(&lpfc_cmd->buf_lock); in lpfc_scsi_cmd_iocb_cmpl() [all …]
|
D | lpfc_sli.h | 433 spinlock_t buf_lock; /* lock used in case of simultaneous abort */ member
|
D | lpfc_sli.c | 12857 spin_lock(&lpfc_cmd->buf_lock); in lpfc_sli_abort_taskmgmt() 12860 spin_unlock(&lpfc_cmd->buf_lock); in lpfc_sli_abort_taskmgmt() 12868 spin_unlock(&lpfc_cmd->buf_lock); in lpfc_sli_abort_taskmgmt() 12883 spin_unlock(&lpfc_cmd->buf_lock); in lpfc_sli_abort_taskmgmt() 12892 spin_unlock(&lpfc_cmd->buf_lock); in lpfc_sli_abort_taskmgmt() 12950 spin_unlock(&lpfc_cmd->buf_lock); in lpfc_sli_abort_taskmgmt()
|
/drivers/net/arcnet/ |
D | arcnet.c | 313 if (!atomic_dec_and_test(&lp->buf_lock)) { in get_arcbuf() 316 lp->buf_lock.counter); in get_arcbuf() 337 atomic_inc(&lp->buf_lock); in get_arcbuf() 562 atomic_set(&lp->buf_lock, 1); in arcnet_open()
|
D | arcdevice.h | 291 atomic_t buf_lock; member
|
/drivers/net/ethernet/marvell/ |
D | mvneta_bm.c | 193 mutex_init(&hwbm_pool->buf_lock); in mvneta_bm_pool_use()
|