Lines Matching refs:shpq_items
47 bcopy(pqp->shpq_items, items, sizeof (void *) * pqp->shpq_size);
48 free(pqp->shpq_items);
49 pqp->shpq_items = items;
56 pqp->shpq_items[i] = p;
64 jp = pqp->shpq_priority(pqp->shpq_items[j]);
70 p = pqp->shpq_items[i];
71 pqp->shpq_items[i] = pqp->shpq_items[j];
72 pqp->shpq_items[j] = p;
86 assert(pqp->shpq_items[i] != NULL);
88 pqp->shpq_items[i] = pqp->shpq_items[pqp->shpq_last];
89 pqp->shpq_items[pqp->shpq_last] = NULL;
95 ip = pqp->shpq_priority(pqp->shpq_items[i]);
98 if (pqp->shpq_items[i * 2 + 1] == NULL) {
99 if (pqp->shpq_items[i * 2] == NULL)
102 cp = pqp->shpq_priority(pqp->shpq_items[c]);
104 assert(pqp->shpq_items[i * 2] != NULL);
105 cp0 = pqp->shpq_priority(pqp->shpq_items[i * 2]);
106 cp1 = pqp->shpq_priority(pqp->shpq_items[i * 2 + 1]);
122 p = pqp->shpq_items[i];
123 pqp->shpq_items[i] = pqp->shpq_items[c];
124 pqp->shpq_items[c] = p;
140 bcopy(pqp->shpq_items, items, sizeof (void *) * size);
141 free(pqp->shpq_items);
142 pqp->shpq_items = items;
156 p = pqp->shpq_items[1];
167 return (pqp->shpq_items[1]);
181 if (pqp->shpq_items[i] == p) {
198 if ((ret = callback(pqp, pqp->shpq_items[i], data)) != 0)
211 pqp->shpq_items = shadow_zalloc(sizeof (void *) * pqp->shpq_size);
213 return (pqp->shpq_items == NULL ? -1 : 0);
219 free(pqp->shpq_items);