Lines Matching refs:spinlock
125 spin_lock_irqsave(&ch->spinlock, flags); in srpt_get_ch_state()
127 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_get_ch_state()
137 spin_lock_irqsave(&ch->spinlock, flags); in srpt_set_ch_state()
140 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_set_ch_state()
156 spin_lock_irqsave(&ch->spinlock, flags); in srpt_test_and_set_ch_state()
160 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_test_and_set_ch_state()
718 spin_lock_irqsave(&ioctx->spinlock, flags); in srpt_get_cmd_state()
720 spin_unlock_irqrestore(&ioctx->spinlock, flags); in srpt_get_cmd_state()
738 spin_lock_irqsave(&ioctx->spinlock, flags); in srpt_set_cmd_state()
742 spin_unlock_irqrestore(&ioctx->spinlock, flags); in srpt_set_cmd_state()
763 spin_lock_irqsave(&ioctx->spinlock, flags); in srpt_test_and_set_cmd_state()
767 spin_unlock_irqrestore(&ioctx->spinlock, flags); in srpt_test_and_set_cmd_state()
1263 spin_lock_irqsave(&ch->spinlock, flags); in srpt_get_send_ioctx()
1269 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_get_send_ioctx()
1275 spin_lock_init(&ioctx->spinlock); in srpt_get_send_ioctx()
1315 spin_lock_irqsave(&ioctx->spinlock, flags); in srpt_abort_cmd()
1329 spin_unlock_irqrestore(&ioctx->spinlock, flags); in srpt_abort_cmd()
2122 spin_lock_irqsave(&ch->spinlock, flags); in __srpt_close_ch()
2132 spin_unlock_irqrestore(&ch->spinlock, flags); in __srpt_close_ch()
2159 spin_lock_irq(&sdev->spinlock); in srpt_close_ch()
2161 spin_unlock_irq(&sdev->spinlock); in srpt_close_ch()
2172 spin_lock_irqsave(&ch->spinlock, flags); in srpt_shutdown_session()
2174 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_shutdown_session()
2180 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_shutdown_session()
2208 spin_lock_irq(&sdev->spinlock); in srpt_drain_channel()
2220 spin_unlock_irq(&sdev->spinlock); in srpt_drain_channel()
2249 spin_lock_irq(&sdev->spinlock); in srpt_find_channel()
2256 spin_unlock_irq(&sdev->spinlock); in srpt_find_channel()
2304 spin_lock_irq(&sdev->spinlock); in srpt_release_channel_work()
2306 spin_unlock_irq(&sdev->spinlock); in srpt_release_channel_work()
2415 spin_lock_irq(&sdev->spinlock); in srpt_cm_req_recv()
2442 spin_unlock_irq(&sdev->spinlock); in srpt_cm_req_recv()
2477 spin_lock_init(&ch->spinlock); in srpt_cm_req_recv()
2572 spin_lock_irq(&sdev->spinlock); in srpt_cm_req_recv()
2574 spin_unlock_irq(&sdev->spinlock); in srpt_cm_req_recv()
2674 spin_lock_irqsave(&ch->spinlock, flags); in srpt_cm_dreq_recv()
2687 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_cm_dreq_recv()
2961 spin_lock_irqsave(&ioctx->spinlock, flags); in srpt_queue_response()
2976 spin_unlock_irqrestore(&ioctx->spinlock, flags); in srpt_queue_response()
3061 spin_lock_irq(&sdev->spinlock); in srpt_ch_list_empty()
3063 spin_unlock_irq(&sdev->spinlock); in srpt_ch_list_empty()
3080 spin_lock_irq(&sdev->spinlock); in srpt_release_sdev()
3083 spin_unlock_irq(&sdev->spinlock); in srpt_release_sdev()
3147 spin_lock_init(&sdev->spinlock); in srpt_add_one()
3358 spin_lock_irqsave(&ch->spinlock, flags); in srpt_release_cmd()
3360 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_release_cmd()
3383 spin_lock_irq(&sdev->spinlock); in srpt_close_session()
3387 spin_unlock_irq(&sdev->spinlock); in srpt_close_session()