Lines Matching defs:tq

2975 	ql_tgt_t	*tq;
2980 tq = &tmp_tq;
2986 tq = link->base_address;
2988 ql_remove_link(&ha->dev[index], &tq->device);
2989 ql_dev_free(ha, tq);
3014 tq->d_id.b.al_pa = 0;
3015 tq->d_id.b.area = 0;
3016 tq->d_id.b.domain = 0;
3017 tq->loop_id = 0x7fe;
3019 rval = ql_get_port_database(ha, tq, PDF_NONE);
3031 if ((ql_wwn_cmp(ha, (la_wwn_t *)&tq->port_name[0],
3040 bcopy((void *)&tq->port_name[0],
3042 bcopy((void *)&tq->node_name[0],
3064 /* resuse tq */
3065 tq->loop_id = (uint16_t)index;
3066 rval = ql_get_port_database(ha, tq,
3069 if (tq->master_state ==
3073 tq->loop_id;
3078 tq->loop_id;
3246 ql_tgt_t *tq;
3281 tq = link->base_address;
3282 DEVICE_QUEUE_LOCK(tq);
3283 if (!(tq->flags & TQF_PLOGI_PROGRS) &&
3285 tq->loop_id = (uint16_t)
3286 (tq->loop_id | PORT_LOST_ID);
3288 DEVICE_QUEUE_UNLOCK(tq);
3297 tq = ql_dev_init(ha, d_id, loop_id);
3298 if (tq != NULL) {
3299 tq->loop_id = loop_id;
3305 tq->flags |= TQF_FABRIC_DEVICE;
3309 if (ql_get_port_database(ha, tq,
3312 tq->loop_id = (uint16_t)
3313 (tq->loop_id &
3326 tq = ql_dev_init(ha, d_id, FL_PORT_24XX_HDL);
3327 if (tq != NULL) {
3328 tq->flags |= TQF_FABRIC_DEVICE;
3330 (void) ql_get_port_database(ha, tq, PDF_NONE);
3334 tq = ql_dev_init(ha, d_id, SNS_24XX_HDL);
3335 if (tq != NULL) {
3336 tq->flags |= TQF_FABRIC_DEVICE;
3339 (void) ql_login_fport(ha, tq,
3342 (void) ql_get_port_database(ha, tq, PDF_NONE);
3351 tq = ql_dev_init(ha, d_id, (uint16_t)
3354 if (tq != NULL) {
3355 tq->flags |= TQF_FABRIC_DEVICE;
3357 (void) ql_get_port_database(ha, tq, PDF_NONE);
3373 tq = link->base_address;
3375 if ((tq->loop_id & PORT_LOST_ID) &&
3376 !(tq->flags & (TQF_INITIATOR_DEVICE |
3468 ql_tgt_t *tq;
3477 tq = ql_d_id_to_queue(ha, d_id);
3478 if (tq != NULL) {
3480 (void) ql_get_port_database(ha, tq, PDF_NONE);
3483 tq = ql_d_id_to_queue(ha, d_id);
3484 if (tq != NULL) {
3485 (void) ql_get_port_database(ha, tq, PDF_NONE);
3845 ql_tgt_t *tq;
3958 tq = lq->target_queue;
3959 DEVICE_QUEUE_LOCK(tq);
3972 DEVICE_QUEUE_UNLOCK(tq);
3983 tq = link->base_address;
3985 DEVICE_QUEUE_LOCK(tq);
3986 tq->outcnt = 0;
3987 tq->flags &= ~TQF_QUEUE_SUSPENDED;
3988 for (link2 = tq->lun_queues.first;
3994 DEVICE_QUEUE_UNLOCK(tq);