Searched refs:q_busy (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/media/pci/cx18/ |
H A D | cx18-queue.c | 55 /* q_busy is restricted to a max buffer count imposed by firmware */ in _cx18_enqueue() 56 if (q == &s->q_busy && in _cx18_enqueue() 138 * they are moved from q_busy to q_full or to the dvb ring buffer. in cx18_queue_get_mdl() 140 spin_lock(&s->q_busy.lock); in cx18_queue_get_mdl() 141 list_for_each_entry_safe(mdl, tmp, &s->q_busy.list, list) { in cx18_queue_get_mdl() 147 * q_busy, we have high confidence we've missed it. in cx18_queue_get_mdl() 151 if (mdl->skipped >= atomic_read(&s->q_busy.depth)-1) { in cx18_queue_get_mdl() 158 atomic_dec(&s->q_busy.depth); in cx18_queue_get_mdl() 167 atomic_dec(&s->q_busy.depth); in cx18_queue_get_mdl() 171 spin_unlock(&s->q_busy in cx18_queue_get_mdl() [all...] |
H A D | cx18-streams.c | 266 spin_lock_init(&s->q_busy.lock); in cx18_stream_init() 267 cx18_queue_init(&s->q_busy); in cx18_stream_init() 656 if ((atomic_read(&s->q_free.depth) + atomic_read(&s->q_busy.depth)) >= in cx18_stream_rotate_idx_mdls() 686 q = cx18_enqueue(s, mdl, &s->q_busy); in _cx18_stream_put_mdl_fw() 687 if (q != &s->q_busy) in _cx18_stream_put_mdl_fw() 704 atomic_read(&s->q_busy.depth) >= CX18_MAX_FW_MDLS_PER_STREAM) in _cx18_stream_load_fw_queue() 707 /* Move from q_free to q_busy notifying the firmware, until the limit */ in _cx18_stream_load_fw_queue() 713 } while (atomic_read(&s->q_busy.depth) < CX18_MAX_FW_MDLS_PER_STREAM in _cx18_stream_load_fw_queue() 714 && q == &s->q_busy); in _cx18_stream_load_fw_queue()
|
H A D | cx18-driver.h | 389 struct cx18_queue q_busy; /* busy - in use by firmware */ member
|
/kernel/linux/linux-6.6/drivers/media/pci/cx18/ |
H A D | cx18-queue.c | 55 /* q_busy is restricted to a max buffer count imposed by firmware */ in _cx18_enqueue() 56 if (q == &s->q_busy && in _cx18_enqueue() 138 * they are moved from q_busy to q_full or to the dvb ring buffer. in cx18_queue_get_mdl() 140 spin_lock(&s->q_busy.lock); in cx18_queue_get_mdl() 141 list_for_each_entry_safe(mdl, tmp, &s->q_busy.list, list) { in cx18_queue_get_mdl() 147 * q_busy, we have high confidence we've missed it. in cx18_queue_get_mdl() 151 if (mdl->skipped >= atomic_read(&s->q_busy.depth)-1) { in cx18_queue_get_mdl() 158 atomic_dec(&s->q_busy.depth); in cx18_queue_get_mdl() 167 atomic_dec(&s->q_busy.depth); in cx18_queue_get_mdl() 171 spin_unlock(&s->q_busy in cx18_queue_get_mdl() [all...] |
H A D | cx18-streams.c | 261 spin_lock_init(&s->q_busy.lock); in cx18_stream_init() 262 cx18_queue_init(&s->q_busy); in cx18_stream_init() 668 if ((atomic_read(&s->q_free.depth) + atomic_read(&s->q_busy.depth)) >= in cx18_stream_rotate_idx_mdls() 698 q = cx18_enqueue(s, mdl, &s->q_busy); in _cx18_stream_put_mdl_fw() 699 if (q != &s->q_busy) in _cx18_stream_put_mdl_fw() 716 atomic_read(&s->q_busy.depth) >= CX18_MAX_FW_MDLS_PER_STREAM) in _cx18_stream_load_fw_queue() 719 /* Move from q_free to q_busy notifying the firmware, until the limit */ in _cx18_stream_load_fw_queue() 725 } while (atomic_read(&s->q_busy.depth) < CX18_MAX_FW_MDLS_PER_STREAM in _cx18_stream_load_fw_queue() 726 && q == &s->q_busy); in _cx18_stream_load_fw_queue()
|
H A D | cx18-driver.h | 396 struct cx18_queue q_busy; /* busy - in use by firmware */ member
|
Completed in 9 milliseconds