Lines Matching refs:lock
37 spinlock_t lock; member
98 spin_lock_irqsave(&bd->lock, flags); in bsg_free_command()
100 spin_unlock_irqrestore(&bd->lock, flags); in bsg_free_command()
109 spin_lock_irq(&bd->lock); in bsg_alloc_command()
115 spin_unlock_irq(&bd->lock); in bsg_alloc_command()
119 spin_lock_irq(&bd->lock); in bsg_alloc_command()
130 spin_unlock_irq(&bd->lock); in bsg_alloc_command()
144 spin_lock_irq(&bd->lock); in bsg_io_schedule()
165 spin_unlock_irq(&bd->lock); in bsg_io_schedule()
171 spin_unlock_irq(&bd->lock); in bsg_io_schedule()
349 spin_lock_irqsave(&bd->lock, flags); in bsg_rq_end_io()
352 spin_unlock_irqrestore(&bd->lock, flags); in bsg_rq_end_io()
374 spin_lock_irq(&bd->lock); in bsg_add_command()
376 spin_unlock_irq(&bd->lock); in bsg_add_command()
388 spin_lock_irq(&bd->lock); in bsg_next_done_cmd()
394 spin_unlock_irq(&bd->lock); in bsg_next_done_cmd()
512 spin_lock_irq(&bd->lock); in bsg_complete_all_commands()
514 spin_unlock_irq(&bd->lock); in bsg_complete_all_commands()
517 spin_unlock_irq(&bd->lock); in bsg_complete_all_commands()
709 spin_lock_init(&bd->lock); in bsg_alloc_device()
880 spin_lock_irq(&bd->lock); in bsg_poll()
885 spin_unlock_irq(&bd->lock); in bsg_poll()
910 spin_lock_irq(&bd->lock); in bsg_ioctl()
912 spin_unlock_irq(&bd->lock); in bsg_ioctl()