Lines Matching refs:msg_queue
176 struct ipi_message_queue *msg_queue; in ipi_handler_int1() local
182 msg_queue = &__get_cpu_var(ipi_msg_queue); in ipi_handler_int1()
184 spin_lock_irqsave(&msg_queue->lock, flags); in ipi_handler_int1()
186 while (msg_queue->count) { in ipi_handler_int1()
187 msg = &msg_queue->ipi_message[msg_queue->head]; in ipi_handler_int1()
206 msg_queue->head++; in ipi_handler_int1()
207 msg_queue->head %= BFIN_IPI_MSGQ_LEN; in ipi_handler_int1()
208 msg_queue->count--; in ipi_handler_int1()
210 spin_unlock_irqrestore(&msg_queue->lock, flags); in ipi_handler_int1()
217 struct ipi_message_queue *msg_queue; in ipi_queue_init() local
219 msg_queue = &per_cpu(ipi_msg_queue, cpu); in ipi_queue_init()
220 spin_lock_init(&msg_queue->lock); in ipi_queue_init()
221 msg_queue->count = 0; in ipi_queue_init()
222 msg_queue->head = 0; in ipi_queue_init()
230 struct ipi_message_queue *msg_queue; in smp_send_message() local
237 msg_queue = &per_cpu(ipi_msg_queue, cpu); in smp_send_message()
238 spin_lock_irqsave(&msg_queue->lock, flags); in smp_send_message()
239 if (msg_queue->count < BFIN_IPI_MSGQ_LEN) { in smp_send_message()
240 next_msg = (msg_queue->head + msg_queue->count) in smp_send_message()
242 msg = &msg_queue->ipi_message[next_msg]; in smp_send_message()
250 msg_queue->count++; in smp_send_message()
253 spin_unlock_irqrestore(&msg_queue->lock, flags); in smp_send_message()