Lines Matching defs:lq

3717 	ql_lun_t		*lq;
3747 lq = sp->lun_queue;
3777 for (link = lq->cmd.first; link != NULL;
3782 ql_remove_link(&lq->cmd, &sp->cmd);
5564 ql_lun_t *lq;
5633 lq = link->base_address;
5635 if (lq->cmd.first != NULL) {
5636 ql_next(ha, lq);
6881 ql_lun_t *lq;
6886 lq = link->base_address;
6887 if (lq->cmd.first != NULL) {
6902 lq = link->base_address;
6906 &lq->link);
6907 kmem_free(lq, sizeof (ql_lun_t));
6938 ql_lun_t *lq;
6954 lq = NULL;
6956 lq = link->base_address;
6957 if (lq->lun_no == lun) {
6959 tq->last_lun_queue = lq;
6960 return (lq);
6965 lq = (ql_lun_t *)kmem_zalloc(sizeof (ql_lun_t), KM_SLEEP);
6968 if (lq != NULL) {
6969 lq->link.base_address = lq;
6971 lq->lun_no = lun;
6972 lq->target_queue = tq;
6975 ql_add_link_b(&tq->lun_queues, &lq->link);
6977 tq->last_lun_queue = lq;
6982 return (lq);
7452 ql_lun_t *lq = sp->lun_queue;
7544 ql_add_link_t(&lq->cmd, &sp->cmd);
7546 ql_add_link_b(&lq->cmd, &sp->cmd);
7552 ql_next(ha, lq);
7564 ql_remove_link(&lq->cmd, &sp->cmd);
7697 * lq: LUN queue pointer.
7707 ql_next(ql_adapter_state_t *vha, ql_lun_t *lq)
7711 ql_tgt_t *tq = lq->target_queue;
7723 while ((link = lq->cmd.first) != NULL) {
7747 if (lq->flags & LQF_UNTAGGED_PENDING ||
7748 lq->lun_outcnt >= ha->execution_throttle) {
7751 tq->d_id.b24, lq->flags, lq->lun_outcnt);
7761 lq->flags |= LQF_UNTAGGED_PENDING;
7765 lq->lun_outcnt++;
7769 ql_remove_link(&lq->cmd, &sp->cmd);
7800 ql_lun_t *lq;
7831 lq = sp->lun_queue;
7832 tq = lq->target_queue;
7848 lq->flags &= ~LQF_UNTAGGED_PENDING;
7851 if (lq->lun_outcnt != 0) {
7852 lq->lun_outcnt--;
7897 ql_add_link_t(&lq->cmd, &sp->cmd);
7899 ql_next(ha, lq);
7907 if (lq->cmd.first != NULL) {
7908 ql_next(ha, lq);
8887 ql_lun_t *lq;
8899 lq = link->base_address;
8901 link2 = lq->cmd.first;
8911 ql_remove_link(&lq->cmd, &sp->cmd);
9882 ql_lun_t *lq;
9921 lq = sp->lun_queue;
9933 lq->lun_outcnt >= ha->execution_throttle) {
10229 ql_lun_t *lq;
10248 lq = link2->base_address;
10250 if (lq->cmd.first != NULL) {
10251 ql_next(vha, lq);
10469 ql_lun_t *lq;
10477 lq = lun_link->base_address;
10479 cmd_link = lq->cmd.first;
10489 ql_remove_link(&lq->cmd, &sp->cmd);
10505 cmd_link = lq->cmd.first;