Lines Matching refs:sqp

4766 	struct sdebug_queue *sqp;
4775 sqp = sdebug_q_arr + sd_dp->sqa_idx;
4785 spin_lock_irqsave(&sqp->qc_lock, iflags);
4786 sqcp = &sqp->qc_arr[qc_idx];
4789 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
4803 if (unlikely(!test_and_clear_bit(qc_idx, sqp->in_use_bm))) {
4804 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
4814 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
4818 k = find_last_bit(sqp->in_use_bm, retval);
4824 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
5078 struct sdebug_queue *sqp;
5083 for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) {
5084 spin_lock_irqsave(&sqp->qc_lock, iflags);
5090 if (test_bit(k, sqp->in_use_bm)) {
5091 sqcp = &sqp->qc_arr[k];
5106 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
5108 clear_bit(k, sqp->in_use_bm);
5112 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
5123 struct sdebug_queue *sqp;
5128 for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) {
5129 spin_lock_irqsave(&sqp->qc_lock, iflags);
5131 if (test_bit(k, sqp->in_use_bm)) {
5132 sqcp = &sqp->qc_arr[k];
5146 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
5148 clear_bit(k, sqp->in_use_bm);
5149 spin_lock_irqsave(&sqp->qc_lock, iflags);
5152 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
5160 struct sdebug_queue *sqp;
5163 for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) {
5165 sqcp = &sqp->qc_arr[k];
5353 struct sdebug_queue *sqp;
5355 for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp)
5356 atomic_set(&sqp->blocked, (int)block);
5408 struct sdebug_queue *sqp;
5423 sqp = get_queue(cmnd);
5424 spin_lock_irqsave(&sqp->qc_lock, iflags);
5425 if (unlikely(atomic_read(&sqp->blocked))) {
5426 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
5433 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
5449 k = find_first_zero_bit(sqp->in_use_bm, sdebug_max_queue);
5451 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
5467 set_bit(k, sqp->in_use_bm);
5469 sqcp = &sqp->qc_arr[k];
5473 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
5478 clear_bit(k, sqp->in_use_bm);
5535 spin_lock_irqsave(&sqp->qc_lock, iflags);
5538 clear_bit(k, sqp->in_use_bm);
5539 spin_unlock_irqrestore(&sqp->qc_lock, iflags);
5556 sd_dp->sqa_idx = sqp - sdebug_q_arr;
5568 sd_dp->sqa_idx = sqp - sdebug_q_arr;
5789 struct sdebug_queue *sqp;
5817 for (j = 0, sqp = sdebug_q_arr; j < submit_queues; ++j, ++sqp) {
5819 f = find_first_bit(sqp->in_use_bm, sdebug_max_queue);
5821 l = find_last_bit(sqp->in_use_bm, sdebug_max_queue);
5873 struct sdebug_queue *sqp;
5876 for (j = 0, sqp = sdebug_q_arr; j < submit_queues;
5877 ++j, ++sqp) {
5878 k = find_first_bit(sqp->in_use_bm,
5913 struct sdebug_queue *sqp;
5916 for (j = 0, sqp = sdebug_q_arr; j < submit_queues;
5917 ++j, ++sqp) {
5918 k = find_first_bit(sqp->in_use_bm,
6239 struct sdebug_queue *sqp;
6246 for (j = 0, sqp = sdebug_q_arr; j < submit_queues;
6247 ++j, ++sqp) {
6248 a = find_last_bit(sqp->in_use_bm, SDEBUG_CANQUEUE);