Lines Matching refs:spinlock

128 	spin_lock_irqsave(&ch->spinlock, flags);  in srpt_get_ch_state()
130 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_get_ch_state()
140 spin_lock_irqsave(&ch->spinlock, flags); in srpt_set_ch_state()
143 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_set_ch_state()
159 spin_lock_irqsave(&ch->spinlock, flags); in srpt_test_and_set_ch_state()
163 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_test_and_set_ch_state()
719 spin_lock_irqsave(&ioctx->spinlock, flags); in srpt_get_cmd_state()
721 spin_unlock_irqrestore(&ioctx->spinlock, flags); in srpt_get_cmd_state()
739 spin_lock_irqsave(&ioctx->spinlock, flags); in srpt_set_cmd_state()
743 spin_unlock_irqrestore(&ioctx->spinlock, flags); in srpt_set_cmd_state()
764 spin_lock_irqsave(&ioctx->spinlock, flags); in srpt_test_and_set_cmd_state()
768 spin_unlock_irqrestore(&ioctx->spinlock, flags); in srpt_test_and_set_cmd_state()
1264 spin_lock_irqsave(&ch->spinlock, flags); in srpt_get_send_ioctx()
1270 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_get_send_ioctx()
1276 spin_lock_init(&ioctx->spinlock); in srpt_get_send_ioctx()
1316 spin_lock_irqsave(&ioctx->spinlock, flags); in srpt_abort_cmd()
1330 spin_unlock_irqrestore(&ioctx->spinlock, flags); in srpt_abort_cmd()
2128 spin_lock_irqsave(&ch->spinlock, flags); in __srpt_close_ch()
2138 spin_unlock_irqrestore(&ch->spinlock, flags); in __srpt_close_ch()
2165 spin_lock_irq(&sdev->spinlock); in srpt_close_ch()
2167 spin_unlock_irq(&sdev->spinlock); in srpt_close_ch()
2178 spin_lock_irqsave(&ch->spinlock, flags); in srpt_shutdown_session()
2180 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_shutdown_session()
2186 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_shutdown_session()
2214 spin_lock_irq(&sdev->spinlock); in srpt_drain_channel()
2226 spin_unlock_irq(&sdev->spinlock); in srpt_drain_channel()
2255 spin_lock_irq(&sdev->spinlock); in srpt_find_channel()
2262 spin_unlock_irq(&sdev->spinlock); in srpt_find_channel()
2310 spin_lock_irq(&sdev->spinlock); in srpt_release_channel_work()
2312 spin_unlock_irq(&sdev->spinlock); in srpt_release_channel_work()
2421 spin_lock_irq(&sdev->spinlock); in srpt_cm_req_recv()
2448 spin_unlock_irq(&sdev->spinlock); in srpt_cm_req_recv()
2483 spin_lock_init(&ch->spinlock); in srpt_cm_req_recv()
2579 spin_lock_irq(&sdev->spinlock); in srpt_cm_req_recv()
2581 spin_unlock_irq(&sdev->spinlock); in srpt_cm_req_recv()
2681 spin_lock_irqsave(&ch->spinlock, flags); in srpt_cm_dreq_recv()
2694 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_cm_dreq_recv()
2968 spin_lock_irqsave(&ioctx->spinlock, flags); in srpt_queue_response()
2983 spin_unlock_irqrestore(&ioctx->spinlock, flags); in srpt_queue_response()
3068 spin_lock_irq(&sdev->spinlock); in srpt_ch_list_empty()
3070 spin_unlock_irq(&sdev->spinlock); in srpt_ch_list_empty()
3087 spin_lock_irq(&sdev->spinlock); in srpt_release_sdev()
3090 spin_unlock_irq(&sdev->spinlock); in srpt_release_sdev()
3154 spin_lock_init(&sdev->spinlock); in srpt_add_one()
3441 spin_lock_irqsave(&ch->spinlock, flags); in srpt_release_cmd()
3443 spin_unlock_irqrestore(&ch->spinlock, flags); in srpt_release_cmd()
3466 spin_lock_irq(&sdev->spinlock); in srpt_close_session()
3470 spin_unlock_irq(&sdev->spinlock); in srpt_close_session()