Lines Matching refs:cqp
902 mp_call_head_lock(mp_call_queue_t *cqp)
907 simple_lock(&cqp->lock);
913 mp_call_head_is_locked(mp_call_queue_t *cqp)
916 hw_lock_held((hw_lock_t)&cqp->lock);
920 mp_call_head_unlock(mp_call_queue_t *cqp, boolean_t intrs_enabled)
922 simple_unlock(&cqp->lock);
931 mp_call_queue_t *cqp = &mp_cpus_call_freelist;
933 intrs_enabled = mp_call_head_lock(cqp);
934 if (!queue_empty(&cqp->queue))
935 queue_remove_first(&cqp->queue, callp, typeof(callp), link);
936 mp_call_head_unlock(cqp, intrs_enabled);
945 mp_call_queue_t *cqp = &mp_cpus_call_freelist;
947 intrs_enabled = mp_call_head_lock(cqp);
948 queue_enter_first(&cqp->queue, callp, typeof(callp), link);
949 mp_call_head_unlock(cqp, intrs_enabled);
953 mp_call_dequeue_locked(mp_call_queue_t *cqp)
957 assert(mp_call_head_is_locked(cqp));
958 if (!queue_empty(&cqp->queue))
959 queue_remove_first(&cqp->queue, callp, typeof(callp), link);
965 mp_call_queue_t *cqp,
968 queue_enter(&cqp->queue, callp, typeof(callp), link);
975 mp_call_queue_t *cqp = &mp_cpus_call_freelist;
978 simple_lock_init(&cqp->lock, 0);
979 queue_init(&cqp->queue);
991 mp_call_queue_t *cqp = &mp_cpus_call_head[cpu_number()];
994 if (cqp->queue.next != NULL)
997 simple_lock_init(&cqp->lock, 0);
998 queue_init(&cqp->queue);
1014 mp_call_queue_t *cqp;
1020 cqp = &mp_cpus_call_head[cpu_number()];
1021 intrs_enabled = mp_call_head_lock(cqp);
1022 while ((callp = mp_call_dequeue_locked(cqp)) != NULL) {
1027 mp_call_head_unlock(cqp, intrs_enabled);
1032 (void) mp_call_head_lock(cqp);
1037 mp_call_head_unlock(cqp, intrs_enabled);
1075 mp_call_queue_t *cqp;
1077 cqp = &mp_cpus_call_head[cpu_number()];
1082 if (!queue_empty(&cqp->queue))
1154 mp_call_queue_t *cqp = &mp_cpus_call_head[cpu];
1159 intrs_enabled = mp_call_head_lock(cqp);
1161 mp_call_head_unlock(cqp, intrs_enabled);
1167 mp_call_head_unlock(cqp, intrs_enabled);
1176 mp_call_head_unlock(cqp, intrs_enabled);
1182 if (!queue_empty(&cqp->queue))
1194 mp_call_enqueue_locked(cqp, callp);
1198 mp_call_head_unlock(cqp, intrs_enabled);