Lines Matching refs:msg_q

172 static QDF_STATUS scheduler_mq_init(struct scheduler_mq_type *msg_q)  in scheduler_mq_init()  argument
176 qdf_spinlock_create(&msg_q->mq_lock); in scheduler_mq_init()
177 qdf_list_create(&msg_q->mq_list, SCHEDULER_CORE_MAX_MESSAGES); in scheduler_mq_init()
184 static void scheduler_mq_deinit(struct scheduler_mq_type *msg_q) in scheduler_mq_deinit() argument
188 qdf_list_destroy(&msg_q->mq_list); in scheduler_mq_deinit()
189 qdf_spinlock_destroy(&msg_q->mq_lock); in scheduler_mq_deinit()
251 void scheduler_mq_put(struct scheduler_mq_type *msg_q, in scheduler_mq_put() argument
254 qdf_spin_lock_irqsave(&msg_q->mq_lock); in scheduler_mq_put()
255 sched_history_queue(msg_q, msg); in scheduler_mq_put()
256 qdf_list_insert_back(&msg_q->mq_list, &msg->node); in scheduler_mq_put()
257 qdf_spin_unlock_irqrestore(&msg_q->mq_lock); in scheduler_mq_put()
260 void scheduler_mq_put_front(struct scheduler_mq_type *msg_q, in scheduler_mq_put_front() argument
263 qdf_spin_lock_irqsave(&msg_q->mq_lock); in scheduler_mq_put_front()
264 sched_history_queue(msg_q, msg); in scheduler_mq_put_front()
265 qdf_list_insert_front(&msg_q->mq_list, &msg->node); in scheduler_mq_put_front()
266 qdf_spin_unlock_irqrestore(&msg_q->mq_lock); in scheduler_mq_put_front()
269 struct scheduler_msg *scheduler_mq_get(struct scheduler_mq_type *msg_q) in scheduler_mq_get() argument
274 qdf_spin_lock_irqsave(&msg_q->mq_lock); in scheduler_mq_get()
275 status = qdf_list_remove_front(&msg_q->mq_list, &node); in scheduler_mq_get()
276 qdf_spin_unlock_irqrestore(&msg_q->mq_lock); in scheduler_mq_get()