Home
last modified time | relevance | path

Searched refs:s_flags (Results 1 – 25 of 28) sorted by relevance

12

/drivers/media/pci/cx18/
Dcx18-fileops.c56 if (test_and_set_bit(CX18_F_S_CLAIMED, &s->s_flags)) { in cx18_claim_stream()
93 set_bit(CX18_F_S_CLAIMED, &s_assoc->s_flags); in cx18_claim_stream()
96 set_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags); in cx18_claim_stream()
118 test_bit(CX18_F_S_INTERNAL_USE, &s->s_flags)) { in cx18_release_stream()
122 if (!test_and_clear_bit(CX18_F_S_CLAIMED, &s->s_flags)) { in cx18_release_stream()
140 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { in cx18_release_stream()
141 clear_bit(CX18_F_S_CLAIMED, &s_assoc->s_flags); in cx18_release_stream()
147 if (test_and_clear_bit(CX18_F_S_INTERNAL_USE, &s_assoc->s_flags)) { in cx18_release_stream()
153 clear_bit(CX18_F_S_CLAIMED, &s_assoc->s_flags); in cx18_release_stream()
199 if (test_bit(CX18_F_S_INTERNAL_USE, &s_vbi->s_flags) && in cx18_get_mdl()
[all …]
Dcx18-alsa-pcm.c174 if (test_bit(CX18_F_S_STREAMOFF, &s->s_flags) || in snd_cx18_pcm_capture_open()
175 test_and_set_bit(CX18_F_S_STREAMING, &s->s_flags)) { in snd_cx18_pcm_capture_open()
190 set_bit(CX18_F_S_STREAMING, &s->s_flags); in snd_cx18_pcm_capture_open()
208 clear_bit(CX18_F_S_STREAMING, &s->s_flags); in snd_cx18_pcm_capture_close()
Dcx18-streams.c701 test_bit(CX18_F_S_STOPPING, &s->s_flags) || in _cx18_stream_put_mdl_fw()
702 !test_bit(CX18_F_S_STREAMING, &s->s_flags)) in _cx18_stream_put_mdl_fw()
842 clear_bit(CX18_F_S_STREAMOFF, &s->s_flags); in cx18_start_v4l2_encode_stream()
939 set_bit(CX18_F_S_STOPPING, &s->s_flags); in cx18_start_v4l2_encode_stream()
944 clear_bit(CX18_F_S_STREAMING, &s->s_flags); in cx18_start_v4l2_encode_stream()
949 clear_bit(CX18_F_S_STOPPING, &s->s_flags); in cx18_start_v4l2_encode_stream()
974 if (test_bit(CX18_F_S_STREAMING, &s->s_flags)) in cx18_stop_all_captures()
994 set_bit(CX18_F_S_STOPPING, &s->s_flags); in cx18_stop_v4l2_encode_stream()
1009 clear_bit(CX18_F_S_STREAMING, &s->s_flags); in cx18_stop_v4l2_encode_stream()
1016 clear_bit(CX18_F_S_STOPPING, &s->s_flags); in cx18_stop_v4l2_encode_stream()
Dcx18-dvb.c304 set_bit(CX18_F_S_STREAMING, &stream->s_flags); in cx18_dvb_start_feed()
310 clear_bit(CX18_F_S_STREAMING, &stream->s_flags); in cx18_dvb_start_feed()
Dcx18-driver.h385 unsigned long s_flags; /* status flags, see above */ member
/drivers/media/pci/ivtv/
Divtv-fileops.c51 if (test_and_set_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { in ivtv_claim_stream()
90 if (!test_and_set_bit(IVTV_F_S_CLAIMED, &s_vbi->s_flags)) { in ivtv_claim_stream()
96 set_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags); in ivtv_claim_stream()
110 test_bit(IVTV_F_S_INTERNAL_USE, &s->s_flags)) { in ivtv_release_stream()
114 if (!test_and_clear_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { in ivtv_release_stream()
136 if (!test_and_clear_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags)) { in ivtv_release_stream()
147 clear_bit(IVTV_F_S_CLAIMED, &s_vbi->s_flags); in ivtv_release_stream()
225 if (test_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags) && in ivtv_get_buffer()
226 !test_bit(IVTV_F_S_APPL_IO, &s_vbi->s_flags)) { in ivtv_get_buffer()
261 if (s->type != IVTV_DEC_STREAM_TYPE_VBI && !test_bit(IVTV_F_S_STREAMING, &s->s_flags)) { in ivtv_get_buffer()
[all …]
Divtv-streams.c546 clear_bit(IVTV_F_S_STREAMOFF, &s->s_flags); in ivtv_start_v4l2_encode_stream()
730 if (test_and_set_bit(IVTV_F_S_STREAMING, &s->s_flags)) in ivtv_start_v4l2_decode_stream()
737 clear_bit(IVTV_F_S_STREAMING, &s->s_flags); in ivtv_start_v4l2_decode_stream()
745 clear_bit(IVTV_F_S_STREAMOFF, &s->s_flags); in ivtv_start_v4l2_decode_stream()
784 if (test_bit(IVTV_F_S_STREAMING, &s->s_flags)) { in ivtv_stop_all_captures()
837 if (!test_bit(IVTV_F_S_PASSTHROUGH, &s->s_flags)) { in ivtv_stop_v4l2_encode_stream()
871 set_bit(IVTV_F_S_STREAMOFF, &s->s_flags); in ivtv_stop_v4l2_encode_stream()
881 clear_bit(IVTV_F_S_STREAMING, &s->s_flags); in ivtv_stop_v4l2_encode_stream()
927 if (!test_bit(IVTV_F_S_STREAMING, &s->s_flags)) in ivtv_stop_v4l2_decode_stream()
961 clear_bit(IVTV_F_S_NEEDS_DATA, &s->s_flags); in ivtv_stop_v4l2_decode_stream()
[all …]
Divtv-irq.c139 if (!test_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { in stream_enc_dma_append()
222 if (rc && !s->buffers_stolen && test_bit(IVTV_F_S_APPL_IO, &s->s_flags)) { in stream_enc_dma_append()
418 set_bit(IVTV_F_S_DMA_PENDING, &s->s_flags); in ivtv_dma_stream_dec_prepare()
479 clear_bit(IVTV_F_S_DMA_HAS_VBI, &s->s_flags); in ivtv_dma_enc_start()
491 set_bit(IVTV_F_S_DMA_HAS_VBI, &s->s_flags); in ivtv_dma_enc_start()
642 if (test_and_clear_bit(IVTV_F_S_DMA_HAS_VBI, &s->s_flags)) { in ivtv_irq_enc_dma_complete()
671 if (test_and_clear_bit(IVTV_F_S_DMA_HAS_VBI, &s->s_flags)) { in ivtv_irq_enc_pio_complete()
768 set_bit(ivtv_use_pio(s) ? IVTV_F_S_PIO_PENDING : IVTV_F_S_DMA_PENDING, &s->s_flags); in ivtv_irq_enc_start_cap()
781 set_bit(ivtv_use_pio(s) ? IVTV_F_S_PIO_PENDING : IVTV_F_S_DMA_PENDING, &s->s_flags); in ivtv_irq_enc_vbi_cap()
790 if (test_bit(IVTV_F_S_CLAIMED, &s->s_flags) && in ivtv_irq_dec_vbi_reinsert()
[all …]
Divtv-alsa-pcm.c175 if (test_bit(IVTV_F_S_STREAMOFF, &s->s_flags) || in snd_ivtv_pcm_capture_open()
176 test_and_set_bit(IVTV_F_S_STREAMING, &s->s_flags)) { in snd_ivtv_pcm_capture_open()
191 set_bit(IVTV_F_S_STREAMING, &s->s_flags); in snd_ivtv_pcm_capture_open()
209 clear_bit(IVTV_F_S_STREAMING, &s->s_flags); in snd_ivtv_pcm_capture_close()
Divtv-driver.h338 unsigned long s_flags; /* status flags, see above */ member
/drivers/infiniband/hw/qib/
Dqib_rc.c59 qp->s_flags |= QIB_S_TIMER; in start_timer()
115 if (qp->s_flags & QIB_S_ACK_PENDING) in qib_make_rc_ack()
199 qp->s_flags &= ~QIB_S_ACK_PENDING; in qib_make_rc_ack()
221 qp->s_flags &= ~(QIB_S_RESP_PENDING | QIB_S_ACK_PENDING); in qib_make_rc_ack()
258 if ((qp->s_flags & QIB_S_RESP_PENDING) && in qib_make_rc_req()
270 qp->s_flags |= QIB_S_WAIT_DMA; in qib_make_rc_req()
280 if (qp->s_flags & (QIB_S_WAIT_RNR | QIB_S_WAIT_ACK)) in qib_make_rc_req()
285 qp->s_flags |= QIB_S_WAIT_PSN; in qib_make_rc_req()
320 qp->s_flags |= QIB_S_WAIT_FENCE; in qib_make_rc_req()
338 if (!(qp->s_flags & QIB_S_UNLIMITED_CREDIT) && in qib_make_rc_req()
[all …]
Dqib_qp.c372 qp->s_flags &= QIB_S_SIGNAL_REQ_WR; in qib_reset_qp()
480 if (qp->s_flags & (QIB_S_TIMER | QIB_S_WAIT_RNR)) { in qib_error_qp()
481 qp->s_flags &= ~(QIB_S_TIMER | QIB_S_WAIT_RNR); in qib_error_qp()
485 if (qp->s_flags & QIB_S_ANY_WAIT_SEND) in qib_error_qp()
486 qp->s_flags &= ~QIB_S_ANY_WAIT_SEND; in qib_error_qp()
489 if (!list_empty(&qp->iowait) && !(qp->s_flags & QIB_S_BUSY)) { in qib_error_qp()
490 qp->s_flags &= ~QIB_S_ANY_WAIT_IO; in qib_error_qp()
495 if (!(qp->s_flags & QIB_S_BUSY)) { in qib_error_qp()
698 qp->s_flags &= ~(QIB_S_TIMER | QIB_S_ANY_WAIT); in qib_modify_qp()
891 if (qp->s_flags & QIB_S_SIGNAL_REQ_WR) in qib_query_qp()
[all …]
Dqib_ruc.c378 if ((sqp->s_flags & (QIB_S_BUSY | QIB_S_ANY_WAIT)) || in qib_ruc_loopback()
382 sqp->s_flags |= QIB_S_BUSY; in qib_ruc_loopback()
592 sqp->s_flags |= QIB_S_WAIT_RNR; in qib_ruc_loopback()
622 sqp->s_flags &= ~QIB_S_BUSY; in qib_ruc_loopback()
635 sqp->s_flags &= ~QIB_S_BUSY; in qib_ruc_loopback()
746 qp->s_flags |= QIB_S_BUSY; in qib_do_send()
789 if (!(qp->s_flags & QIB_S_SIGNAL_REQ_WR) || in qib_send_complete()
Dqib_verbs.c722 if (qp->s_flags & QIB_S_WAIT_KMEM) { in mem_timer()
723 qp->s_flags &= ~QIB_S_WAIT_KMEM; in mem_timer()
945 qp->s_flags |= QIB_S_WAIT_TX; in __get_txreq()
948 qp->s_flags &= ~QIB_S_BUSY; in __get_txreq()
1014 if (qp->s_flags & QIB_S_WAIT_TX) { in qib_put_txreq()
1015 qp->s_flags &= ~QIB_S_WAIT_TX; in qib_put_txreq()
1062 if (qp->s_flags & QIB_S_WAIT_DMA_DESC) { in qib_verbs_sdma_desc_avail()
1063 qp->s_flags &= ~QIB_S_WAIT_DMA_DESC; in qib_verbs_sdma_desc_avail()
1099 else if (qp->s_flags & QIB_S_WAIT_DMA) { in sdma_complete()
1100 qp->s_flags &= ~QIB_S_WAIT_DMA; in sdma_complete()
[all …]
Dqib_verbs.h483 u32 s_flags; member
830 return !(qp->s_flags & (QIB_S_BUSY | QIB_S_ANY_WAIT_IO)) && in qib_send_ok()
831 (qp->s_hdrwords || (qp->s_flags & QIB_S_RESP_PENDING) || in qib_send_ok()
832 !(qp->s_flags & QIB_S_ANY_WAIT_SEND)); in qib_send_ok()
Dqib_ud.c254 qp->s_flags |= QIB_S_WAIT_DMA; in qib_make_ud_req()
291 qp->s_flags |= QIB_S_WAIT_DMA; in qib_make_ud_req()
382 qp->s_flags &= ~QIB_S_BUSY; in qib_make_ud_req()
Dqib_uc.c67 qp->s_flags |= QIB_S_WAIT_DMA; in qib_make_uc_req()
223 qp->s_flags &= ~QIB_S_BUSY; in qib_make_uc_req()
Dqib_sdma.c695 qp->s_flags |= QIB_S_WAIT_DMA_DESC; in qib_sdma_verbs_send()
699 qp->s_flags &= ~QIB_S_BUSY; in qib_sdma_verbs_send()
/drivers/infiniband/hw/ipath/
Dipath_ruc.c281 if ((sqp->s_flags & (IPATH_S_BUSY | IPATH_S_ANY_WAIT)) || in ipath_ruc_loopback()
285 sqp->s_flags |= IPATH_S_BUSY; in ipath_ruc_loopback()
472 sqp->s_flags |= IPATH_S_WAITING; in ipath_ruc_loopback()
496 sqp->s_flags &= ~IPATH_S_BUSY; in ipath_ruc_loopback()
509 sqp->s_flags &= ~IPATH_S_BUSY; in ipath_ruc_loopback()
556 qp->s_flags |= IPATH_S_WAITING; in ipath_no_bufs_available()
557 qp->s_flags &= ~IPATH_S_BUSY; in ipath_no_bufs_available()
663 if ((qp->s_flags & (IPATH_S_BUSY | IPATH_S_ANY_WAIT)) || in ipath_do_send()
669 qp->s_flags |= IPATH_S_BUSY; in ipath_do_send()
708 if (!(qp->s_flags & IPATH_S_SIGNAL_REQ_WR) || in ipath_send_complete()
Dipath_rc.c118 if (qp->s_flags & IPATH_S_ACK_PENDING) in ipath_make_rc_ack()
184 qp->s_flags &= ~IPATH_S_ACK_PENDING; in ipath_make_rc_ack()
240 (qp->s_flags & IPATH_S_ACK_PENDING) || in ipath_make_rc_req()
253 qp->s_flags |= IPATH_S_WAIT_DMA; in ipath_make_rc_req()
263 qp->s_flags |= IPATH_S_WAITING; in ipath_make_rc_req()
296 qp->s_flags |= IPATH_S_FENCE_PENDING; in ipath_make_rc_req()
316 qp->s_flags |= IPATH_S_WAIT_SSN_CREDIT; in ipath_make_rc_req()
349 qp->s_flags |= IPATH_S_WAIT_SSN_CREDIT; in ipath_make_rc_req()
389 qp->s_flags |= IPATH_S_RDMAR_PENDING; in ipath_make_rc_req()
425 qp->s_flags |= IPATH_S_RDMAR_PENDING; in ipath_make_rc_req()
[all …]
Dipath_qp.c330 qp->s_flags &= IPATH_S_SIGNAL_REQ_WR; in ipath_reset_qp()
520 qp->s_flags &= ~IPATH_S_ANY_WAIT; in ipath_modify_qp()
662 if (qp->s_flags & IPATH_S_SIGNAL_REQ_WR) in ipath_query_qp()
857 qp->s_flags = IPATH_S_SIGNAL_REQ_WR; in ipath_create_qp()
859 qp->s_flags = 0; in ipath_create_qp()
977 qp->s_flags &= ~IPATH_S_ANY_WAIT; in ipath_destroy_qp()
1074 if ((qp->s_flags & IPATH_S_WAIT_SSN_CREDIT) && in ipath_get_credit()
Dipath_verbs.h418 u8 s_flags; member
695 if (qp->s_flags & IPATH_S_ANY_WAIT) in ipath_schedule_send()
696 qp->s_flags &= ~IPATH_S_ANY_WAIT; in ipath_schedule_send()
697 if (!(qp->s_flags & IPATH_S_BUSY)) in ipath_schedule_send()
Dipath_ud.c266 qp->s_flags |= IPATH_S_WAIT_DMA; in ipath_make_ud_req()
301 qp->s_flags |= IPATH_S_WAIT_DMA; in ipath_make_ud_req()
390 qp->s_flags &= ~IPATH_S_BUSY; in ipath_make_ud_req()
Dipath_uc.c67 qp->s_flags |= IPATH_S_WAIT_DMA; in ipath_make_uc_req()
221 qp->s_flags &= ~IPATH_S_BUSY; in ipath_make_uc_req()
/drivers/mtd/
Dmtdsuper.c84 sb->s_flags |= MS_ACTIVE; in mount_mtd_aux()

12