Lines Matching refs:tp

268 		struct sym_tcb *tp = &np->target[cp->target];
282 if ((len & 1) && (tp->head.wval & EWS)) {
303 struct sym_tcb *tp;
311 tp = &np->target[sdev->id];
316 lp = sym_lp(tp, sdev->lun);
715 static void sym_tune_dev_queuing(struct sym_tcb *tp, int lun, u_short reqtags)
717 struct sym_lcb *lp = sym_lp(tp, lun);
731 dev_info(&tp->starget->dev,
740 struct sym_tcb *tp = &np->target[sdev->id];
759 if (tp->usrflags & SYM_SCAN_BOOT_DISABLED) {
760 tp->usrflags &= ~SYM_SCAN_BOOT_DISABLED;
767 if (tp->usrflags & SYM_SCAN_LUNS_DISABLED) {
781 if (tp->nlcb == 1)
782 tp->starget = sdev->sdev_target;
784 spi_min_period(tp->starget) = tp->usr_period;
785 spi_max_width(tp->starget) = tp->usr_width;
800 struct sym_tcb *tp = &np->target[sdev->id];
801 struct sym_lcb *lp = sym_lp(tp, sdev->lun);
816 if (reqtags > tp->usrtags)
817 reqtags = tp->usrtags;
827 sym_tune_dev_queuing(tp, sdev->lun, reqtags);
838 struct sym_tcb *tp = &np->target[sdev->id];
839 struct sym_lcb *lp = sym_lp(tp, sdev->lun);
853 starget_printk(KERN_WARNING, tp->starget,
862 tp->head.sval = 0;
863 tp->head.wval = np->rv_scntl3;
864 tp->head.uval = 0;
865 tp->tgoal.check_nego = 1;
866 tp->starget = NULL;
911 struct sym_tcb *tp;
934 tp = &np->target[t];
935 if (!tp->nlcb)
942 tp->tgoal.iu = tp->tgoal.dt =
943 tp->tgoal.qas = 0;
944 tp->tgoal.offset = 0;
948 tp->tgoal.iu = tp->tgoal.dt =
949 tp->tgoal.qas = 1;
950 tp->tgoal.width = 1;
951 tp->tgoal.period = uc->data;
952 tp->tgoal.offset = np->maxoffs_dt;
956 tp->tgoal.iu = tp->tgoal.dt =
957 tp->tgoal.qas = 0;
958 tp->tgoal.period = uc->data;
959 tp->tgoal.offset = np->maxoffs;
961 tp->tgoal.check_nego = 1;
964 tp->tgoal.width = uc->data ? 1 : 0;
965 tp->tgoal.check_nego = 1;
969 sym_tune_dev_queuing(tp, l, uc->data);
972 tp->to_reset = 1;
978 struct sym_lcb *lp = sym_lp(tp, l);
985 tp->usrflags = uc->data;
1984 struct sym_tcb *tp = &np->target[starget->id];
1986 tp->tgoal.offset = offset;
1987 tp->tgoal.check_nego = 1;
1994 struct sym_tcb *tp = &np->target[starget->id];
1999 tp->tgoal.dt = 1;
2001 tp->tgoal.period = period;
2002 tp->tgoal.check_nego = 1;
2009 struct sym_tcb *tp = &np->target[starget->id];
2014 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0;
2016 tp->tgoal.width = width;
2017 tp->tgoal.check_nego = 1;
2024 struct sym_tcb *tp = &np->target[starget->id];
2028 tp->tgoal.dt = 1;
2030 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0;
2031 tp->tgoal.check_nego = 1;
2039 struct sym_tcb *tp = &np->target[starget->id];
2042 tp->tgoal.iu = tp->tgoal.dt = 1;
2044 tp->tgoal.iu = 0;
2045 tp->tgoal.check_nego = 1;
2052 struct sym_tcb *tp = &np->target[starget->id];
2055 tp->tgoal.dt = tp->tgoal.qas = 1;
2057 tp->tgoal.qas = 0;
2058 tp->tgoal.check_nego = 1;