Lines Matching refs:sqs
186 squeue_set_t *sqs;
191 sqs = kmem_zalloc(sizeof (squeue_set_t), KM_SLEEP);
192 sqs->sqs_cpuid = id;
196 sqset_global_list[0] = sqs;
198 return (sqs);
249 sq->sq_set = sqs;
250 sqs->sqs_default = sq;
254 sqset_global_list[sqset_global_size++] = sqs;
256 return (sqs);
266 squeue_set_t *sqs = sqset_global_list[0];
270 for (sq = sqs->sqs_head; sq != NULL; sq = sq->sq_next) {
281 sq->sq_set = sqs;
282 sq->sq_next = sqs->sqs_head;
283 sqs->sqs_head = sq;
316 squeue_set_t *sqs;
330 sqs = ip_squeue_set_create(-1);
331 ASSERT(sqs != NULL);
358 squeue_set_t *sqs = NULL;
373 sqs = CPU->cpu_squeue_set;
379 if (sqs == NULL)
380 sqs = sqset_global_list[(index % (sqset_global_size - 1)) + 1];
381 sq = sqs->sqs_default;
703 squeue_set_t *sqs, *unbound = sqset_global_list[0];
706 if ((sqs = cpu->cpu_squeue_set) == NULL) {
713 for (sqp = sqs->sqs_head; sqp; lastsqp = sqp, sqp = sqp->sq_next) {
717 if (sqs->sqs_head) {
719 unbound->sqs_head = sqs->sqs_head;
724 sqp = sqs->sqs_default;
734 if (sqset_global_list[i] == sqs)
743 kmem_free(sqs, sizeof (*sqs));