Lines Matching refs:tp

157 	tcb_p tp = &np->target[target];  in sym_announce_transfer_rate()  local
159 #define __tprev tp->tinfo.prev in sym_announce_transfer_rate()
160 #define __tcurr tp->tinfo.curr in sym_announce_transfer_rate()
226 void sym_update_trans_settings(hcb_p np, tcb_p tp) in sym_update_trans_settings() argument
228 bcopy(&tp->tinfo.user, &tp->tinfo.goal, sizeof(tp->tinfo.goal)); in sym_update_trans_settings()
230 if (tp->inq_version >= 4) { in sym_update_trans_settings()
231 switch(tp->inq_byte56 & INQ56_CLOCKING) { in sym_update_trans_settings()
233 tp->tinfo.goal.options = 0; in sym_update_trans_settings()
242 if (!((tp->inq_byte7 & tp->inq_byte7_valid) & INQ7_WIDE16)) { in sym_update_trans_settings()
243 tp->tinfo.goal.width = 0; in sym_update_trans_settings()
244 tp->tinfo.goal.options = 0; in sym_update_trans_settings()
247 if (!((tp->inq_byte7 & tp->inq_byte7_valid) & INQ7_SYNC)) { in sym_update_trans_settings()
248 tp->tinfo.goal.offset = 0; in sym_update_trans_settings()
249 tp->tinfo.goal.options = 0; in sym_update_trans_settings()
252 if (tp->tinfo.goal.options & PPR_OPT_DT) { in sym_update_trans_settings()
253 if (tp->tinfo.goal.offset > np->maxoffs_dt) in sym_update_trans_settings()
254 tp->tinfo.goal.offset = np->maxoffs_dt; in sym_update_trans_settings()
257 if (tp->tinfo.goal.offset > np->maxoffs) in sym_update_trans_settings()
258 tp->tinfo.goal.offset = np->maxoffs; in sym_update_trans_settings()
272 tcb_p tp = &np->target[tn]; in __sym_sniff_inquiry() local
296 inq_byte7 = tp->inq_byte7; in __sym_sniff_inquiry()
308 sym_set_bit(tp->cmdq_map, ln); in __sym_sniff_inquiry()
310 sym_clr_bit(tp->cmdq_map, ln); in __sym_sniff_inquiry()
316 inq_byte56 = tp->inq_byte56; in __sym_sniff_inquiry()
326 if (tp->inq_version != inq_version || in __sym_sniff_inquiry()
327 tp->inq_byte7 != inq_byte7 || in __sym_sniff_inquiry()
328 tp->inq_byte56 != inq_byte56) { in __sym_sniff_inquiry()
329 tp->inq_version = inq_version; in __sym_sniff_inquiry()
330 tp->inq_byte7 = inq_byte7; in __sym_sniff_inquiry()
331 tp->inq_byte56 = inq_byte56; in __sym_sniff_inquiry()