Lines Matching defs:sqlist

4524  * Wait for sd_refcnt to reach 0 and, if sqlist is present, wait for the
4552 * - If sqlist is non-NULL all the syncq locks in the sqlist will be acquired
4559 strlock(struct stdata *stp, sqlist_t *sqlist)
4618 if (sqlist == NULL)
4621 for (sql = sqlist->sqlist_head; sql; sql = sql->sql_next) {
4645 for (sql2 = sqlist->sqlist_head; sql2 != sql;
4682 strunlock(struct stdata *stp, sqlist_t *sqlist)
4698 if (sqlist == NULL)
4701 for (sql = sqlist->sqlist_head; sql; sql = sql->sql_next) {
4856 sqlist_t *sqlist = NULL;
4915 sqlist = sqlist_build(qp, stp, STRMATED(stp));
4916 strlock(stp, sqlist);
4961 strunlock(stp, sqlist);
4962 sqlist_free(sqlist);
5156 sqlist_insert(sqlist_t *sqlist, syncq_t *sqp)
5160 prev_sqlpp = &sqlist->sqlist_head;
5169 new_sqlp = &sqlist->sqlist_array[sqlist->sqlist_index++];
5170 ASSERT((char *)new_sqlp < (char *)sqlist + sqlist->sqlist_size);
5183 sqlist_insertall(sqlist_t *sqlist, queue_t *q)
5186 sqlist_insert(sqlist, q->q_syncq);
5206 sqlist_t *sqlist = sqlist_alloc(stp, KM_SLEEP);
5213 sqlist_insert(sqlist, q->q_syncq);
5214 sqlist_insert(sqlist, _WR(q)->q_syncq);
5216 sqlist_insertall(sqlist, stp->sd_wrq);
5218 sqlist_insertall(sqlist, stp->sd_mate->sd_wrq);
5220 return (sqlist);
5227 sqlist_t *sqlist;
5238 sqlist = kmem_alloc(sqlist_size, kmflag);
5240 sqlist->sqlist_head = NULL;
5241 sqlist->sqlist_size = sqlist_size;
5242 sqlist->sqlist_index = 0;
5244 return (sqlist);
5251 sqlist_free(sqlist_t *sqlist)
5253 kmem_free(sqlist, sqlist->sqlist_size);
5265 sqlist_t *sqlist;
5276 sqlist = sqlist_build(q, stp, B_FALSE);
5277 for (sql = sqlist->sqlist_head; sql != NULL; sql = sql->sql_next)
5279 sqlist_free(sqlist);
5290 sqlist_t *sqlist;
5305 sqlist = sqlist_build(q, stp, B_FALSE);
5307 for (sql = sqlist->sqlist_head; sql != NULL; sql = sql->sql_next)
5310 for (sql = sqlist->sqlist_head; sql != NULL;
5314 sqlist_free(sqlist);
7839 sqlist_t sqlist;
7855 sqlist.sqlist_head = NULL;
7856 sqlist.sqlist_index = 0;
7857 sqlist.sqlist_size = sizeof (sqlist_t);
7858 sqlist_insert(&sqlist, _RD(stpdown->sd_wrq)->q_syncq);
7859 strlock(stpdown, &sqlist);
7860 strunlock(stpdown, &sqlist);