• Home
  • Raw
  • Download

Lines Matching refs:tp

248 		struct sym_tcb *tp = &np->target[cp->target];  in sym_scatter()  local
262 if ((len & 1) && (tp->head.wval & EWS)) { in sym_scatter()
283 struct sym_tcb *tp; in sym_queue_command() local
291 tp = &np->target[sdev->id]; in sym_queue_command()
296 lp = sym_lp(tp, sdev->lun); in sym_queue_command()
693 static void sym_tune_dev_queuing(struct sym_tcb *tp, int lun, u_short reqtags) in sym_tune_dev_queuing() argument
695 struct sym_lcb *lp = sym_lp(tp, lun); in sym_tune_dev_queuing()
709 dev_info(&tp->starget->dev, in sym_tune_dev_queuing()
718 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_alloc() local
737 if (tp->usrflags & SYM_SCAN_BOOT_DISABLED) { in sym53c8xx_slave_alloc()
738 tp->usrflags &= ~SYM_SCAN_BOOT_DISABLED; in sym53c8xx_slave_alloc()
745 if (tp->usrflags & SYM_SCAN_LUNS_DISABLED) { in sym53c8xx_slave_alloc()
759 if (tp->nlcb == 1) in sym53c8xx_slave_alloc()
760 tp->starget = sdev->sdev_target; in sym53c8xx_slave_alloc()
762 spi_min_period(tp->starget) = tp->usr_period; in sym53c8xx_slave_alloc()
763 spi_max_width(tp->starget) = tp->usr_width; in sym53c8xx_slave_alloc()
778 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_configure() local
779 struct sym_lcb *lp = sym_lp(tp, sdev->lun); in sym53c8xx_slave_configure()
794 if (reqtags > tp->usrtags) in sym53c8xx_slave_configure()
795 reqtags = tp->usrtags; in sym53c8xx_slave_configure()
803 sym_tune_dev_queuing(tp, sdev->lun, reqtags); in sym53c8xx_slave_configure()
814 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_destroy() local
815 struct sym_lcb *lp = sym_lp(tp, sdev->lun); in sym53c8xx_slave_destroy()
829 starget_printk(KERN_WARNING, tp->starget, in sym53c8xx_slave_destroy()
838 tp->head.sval = 0; in sym53c8xx_slave_destroy()
839 tp->head.wval = np->rv_scntl3; in sym53c8xx_slave_destroy()
840 tp->head.uval = 0; in sym53c8xx_slave_destroy()
841 tp->tgoal.check_nego = 1; in sym53c8xx_slave_destroy()
842 tp->starget = NULL; in sym53c8xx_slave_destroy()
887 struct sym_tcb *tp; in sym_exec_user_command() local
910 tp = &np->target[t]; in sym_exec_user_command()
911 if (!tp->nlcb) in sym_exec_user_command()
918 tp->tgoal.iu = tp->tgoal.dt = in sym_exec_user_command()
919 tp->tgoal.qas = 0; in sym_exec_user_command()
920 tp->tgoal.offset = 0; in sym_exec_user_command()
924 tp->tgoal.iu = tp->tgoal.dt = in sym_exec_user_command()
925 tp->tgoal.qas = 1; in sym_exec_user_command()
926 tp->tgoal.width = 1; in sym_exec_user_command()
927 tp->tgoal.period = uc->data; in sym_exec_user_command()
928 tp->tgoal.offset = np->maxoffs_dt; in sym_exec_user_command()
932 tp->tgoal.iu = tp->tgoal.dt = in sym_exec_user_command()
933 tp->tgoal.qas = 0; in sym_exec_user_command()
934 tp->tgoal.period = uc->data; in sym_exec_user_command()
935 tp->tgoal.offset = np->maxoffs; in sym_exec_user_command()
937 tp->tgoal.check_nego = 1; in sym_exec_user_command()
940 tp->tgoal.width = uc->data ? 1 : 0; in sym_exec_user_command()
941 tp->tgoal.check_nego = 1; in sym_exec_user_command()
945 sym_tune_dev_queuing(tp, l, uc->data); in sym_exec_user_command()
948 tp->to_reset = 1; in sym_exec_user_command()
954 struct sym_lcb *lp = sym_lp(tp, l); in sym_exec_user_command()
961 tp->usrflags = uc->data; in sym_exec_user_command()
1884 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_offset() local
1886 tp->tgoal.offset = offset; in sym2_set_offset()
1887 tp->tgoal.check_nego = 1; in sym2_set_offset()
1894 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_period() local
1899 tp->tgoal.dt = 1; in sym2_set_period()
1901 tp->tgoal.period = period; in sym2_set_period()
1902 tp->tgoal.check_nego = 1; in sym2_set_period()
1909 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_width() local
1914 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0; in sym2_set_width()
1916 tp->tgoal.width = width; in sym2_set_width()
1917 tp->tgoal.check_nego = 1; in sym2_set_width()
1924 struct sym_tcb *tp = &np->target[starget->id]; in sym2_set_dt() local
1928 tp->tgoal.dt = 1; in sym2_set_dt()
1930 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0; in sym2_set_dt()
1931 tp->tgoal.check_nego = 1; in sym2_set_dt()
1939 struct sym_tcb *tp = &np->target[starget->id];
1942 tp->tgoal.iu = tp->tgoal.dt = 1;
1944 tp->tgoal.iu = 0;
1945 tp->tgoal.check_nego = 1;
1952 struct sym_tcb *tp = &np->target[starget->id];
1955 tp->tgoal.dt = tp->tgoal.qas = 1;
1957 tp->tgoal.qas = 0;
1958 tp->tgoal.check_nego = 1;