Lines Matching refs:st

74 	SymTarg *st = (SymTarg *) stats;
76 if(st->flags & tf_ignore){
82 if(st->offset){
88 st->wide ? "Wide" : "Narrow",
89 st->period,
90 st->offset
96 st->wide ? "Wide" : "Narrow");
250 /*#define PPHADDR(ptr) (st->priv_phys + (((uint32) ptr) - ((uint32) st->priv)))*/
278 * you MUST hold st->sem_targ before calling this
281 static void exec_io(SymTarg *st, void *cmd, int cmdlen, void *msg, int msglen,
285 Symbios *s = st->adapter;
287 memcpy((void *) &(st->priv->device.count), st->device, 4);
289 st->priv->sendmsg.count = LE(msglen);
290 memcpy(st->priv->_sendmsg, msg, msglen);
291 st->priv->command.count = LE(cmdlen);
292 memcpy(st->priv->_command, cmd, cmdlen);
294 st->table_phys = st->priv_phys + ADJUST_PRIV_TO_TABLE;
299 SymInd *t = st->priv->table;
300 physical_entry *pe = (physical_entry *) &(st->priv->table[1]);
302 if(st->inbound){
304 st->datain_phys = st->table_phys;
305 st->dataout_phys = s->sram_phys + Ent_phase_dataerr;
308 st->dataout_phys = st->table_phys;
309 st->datain_phys = s->sram_phys + Ent_phase_dataerr;
340 st->datain_phys = s->sram_phys + Ent_phase_dataerr;
341 st->dataout_phys = s->sram_phys + Ent_phase_dataerr;
344 // dprintf("sym: pp = %08x di = %08x do = %08x\n",st->priv_phys,st->datain_phys,st->dataout_phys);
346 st->status = status_queued;
350 st->device[2],datalen,st->inbound?"IN":"OUT");
357 s->startqueuetail->next = st;
359 s->startqueue = st;
361 st->next = NULL;
362 s->startqueuetail = st;
371 acquire_sem(st->sem_done);
374 if(acquire_sem_etc(st->sem_done, 1, B_TIMEOUT, 10*1000000) != B_OK){
375 kprintf("sym: targ %d never finished, argh...\n",st->device[2]);
376 init_symbios(st->adapter,1);
377 st->state = sTIMEOUT;