Lines Matching refs:tp

268 		struct sym_tcb *tp = &np->target[cp->target];  in sym_scatter()  local
282 if ((len & 1) && (tp->head.wval & EWS)) { in sym_scatter()
303 struct sym_tcb *tp; in sym_queue_command() local
311 tp = &np->target[sdev->id]; in sym_queue_command()
316 lp = sym_lp(tp, sdev->lun); in sym_queue_command()
715 static void sym_tune_dev_queuing(struct sym_tcb *tp, int lun, u_short reqtags) in sym_tune_dev_queuing() argument
717 struct sym_lcb *lp = sym_lp(tp, lun); in sym_tune_dev_queuing()
731 dev_info(&tp->starget->dev, in sym_tune_dev_queuing()
740 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_alloc() local
759 if (tp->usrflags & SYM_SCAN_BOOT_DISABLED) { in sym53c8xx_slave_alloc()
760 tp->usrflags &= ~SYM_SCAN_BOOT_DISABLED; in sym53c8xx_slave_alloc()
767 if (tp->usrflags & SYM_SCAN_LUNS_DISABLED) { in sym53c8xx_slave_alloc()
781 if (tp->nlcb == 1) in sym53c8xx_slave_alloc()
782 tp->starget = sdev->sdev_target; in sym53c8xx_slave_alloc()
784 spi_min_period(tp->starget) = tp->usr_period; in sym53c8xx_slave_alloc()
785 spi_max_width(tp->starget) = tp->usr_width; in sym53c8xx_slave_alloc()
800 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_configure() local
801 struct sym_lcb *lp = sym_lp(tp, sdev->lun); in sym53c8xx_slave_configure()
816 if (reqtags > tp->usrtags) in sym53c8xx_slave_configure()
817 reqtags = tp->usrtags; in sym53c8xx_slave_configure()
825 sym_tune_dev_queuing(tp, sdev->lun, reqtags); in sym53c8xx_slave_configure()
836 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_destroy() local
837 struct sym_lcb *lp = sym_lp(tp, sdev->lun); in sym53c8xx_slave_destroy()
851 starget_printk(KERN_WARNING, tp->starget, in sym53c8xx_slave_destroy()
860 tp->head.sval = 0; in sym53c8xx_slave_destroy()
861 tp->head.wval = np->rv_scntl3; in sym53c8xx_slave_destroy()
862 tp->head.uval = 0; in sym53c8xx_slave_destroy()
863 tp->tgoal.check_nego = 1; in sym53c8xx_slave_destroy()
864 tp->starget = NULL; in sym53c8xx_slave_destroy()
909 struct sym_tcb *tp; in sym_exec_user_command() local
932 tp = &np->target[t]; in sym_exec_user_command()
933 if (!tp->nlcb) in sym_exec_user_command()
940 tp->tgoal.iu = tp->tgoal.dt = in sym_exec_user_command()
941 tp->tgoal.qas = 0; in sym_exec_user_command()
942 tp->tgoal.offset = 0; in sym_exec_user_command()
946 tp->tgoal.iu = tp->tgoal.dt = in sym_exec_user_command()
947 tp->tgoal.qas = 1; in sym_exec_user_command()
948 tp->tgoal.width = 1; in sym_exec_user_command()
949 tp->tgoal.period = uc->data; in sym_exec_user_command()
950 tp->tgoal.offset = np->maxoffs_dt; in sym_exec_user_command()
954 tp->tgoal.iu = tp->tgoal.dt = in sym_exec_user_command()
955 tp->tgoal.qas = 0; in sym_exec_user_command()
956 tp->tgoal.period = uc->data; in sym_exec_user_command()
957 tp->tgoal.offset = np->maxoffs; in sym_exec_user_command()
959 tp->tgoal.check_nego = 1; in sym_exec_user_command()
962 tp->tgoal.width = uc->data ? 1 : 0; in sym_exec_user_command()
963 tp->tgoal.check_nego = 1; in sym_exec_user_command()
967 sym_tune_dev_queuing(tp, l, uc->data); in sym_exec_user_command()
970 tp->to_reset = 1; in sym_exec_user_command()
976 struct sym_lcb *lp = sym_lp(tp, l); in sym_exec_user_command()
983 tp->usrflags = uc->data; in sym_exec_user_command()
1907 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_offset() local
1909 tp->tgoal.offset = offset; in sym2_set_offset()
1910 tp->tgoal.check_nego = 1; in sym2_set_offset()
1917 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_period() local
1922 tp->tgoal.dt = 1; in sym2_set_period()
1924 tp->tgoal.period = period; in sym2_set_period()
1925 tp->tgoal.check_nego = 1; in sym2_set_period()
1932 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_width() local
1937 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0; in sym2_set_width()
1939 tp->tgoal.width = width; in sym2_set_width()
1940 tp->tgoal.check_nego = 1; in sym2_set_width()
1947 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_dt() local
1951 tp->tgoal.dt = 1; in sym2_set_dt()
1953 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0; in sym2_set_dt()
1954 tp->tgoal.check_nego = 1; in sym2_set_dt()
1962 struct sym_tcb *tp = &np->target[starget->id];
1965 tp->tgoal.iu = tp->tgoal.dt = 1;
1967 tp->tgoal.iu = 0;
1968 tp->tgoal.check_nego = 1;
1975 struct sym_tcb *tp = &np->target[starget->id];
1978 tp->tgoal.dt = tp->tgoal.qas = 1;
1980 tp->tgoal.qas = 0;
1981 tp->tgoal.check_nego = 1;