• Home
  • Raw
  • Download

Lines Matching refs:target_id

122 	unsigned char i, j, c, target_id, lun,cmdp;  in atp870u_intr_handle()  local
166 target_id = atp_readb_io(dev, c, 0x15); in atp870u_intr_handle()
172 if ((target_id & 0x40) != 0) { in atp870u_intr_handle()
173 target_id = (target_id & 0x07) | 0x08; in atp870u_intr_handle()
175 target_id &= 0x07; in atp870u_intr_handle()
180 dev->last_cmd[c] = target_id; in atp870u_intr_handle()
185 dev->r1f[c][target_id] |= j; in atp870u_intr_handle()
198 if (dev->id[c][target_id].last_len != adrcnt) { in atp870u_intr_handle()
199 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
201 dev->id[c][target_id].tran_len = k; in atp870u_intr_handle()
202 dev->id[c][target_id].last_len = adrcnt; in atp870u_intr_handle()
205 … = %d dev->id[c][target_id].tran_len = %d\n",dev->id[c][target_id].last_len,dev->id[c][target_id].… in atp870u_intr_handle()
253 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
255 dev->id[c][target_id].tran_len = k; in atp870u_intr_handle()
256 dev->id[c][target_id].last_len = adrcnt; in atp870u_intr_handle()
291 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
293 dev->id[c][target_id].tran_len = k; in atp870u_intr_handle()
294 dev->id[c][target_id].last_len = adrcnt; in atp870u_intr_handle()
303 dev->id[c][target_id].dirct = 0x00; in atp870u_intr_handle()
321 target_id = atp_readb_io(dev, c, 0x16); in atp870u_intr_handle()
325 if ((target_id & 0x10) != 0) { in atp870u_intr_handle()
326 target_id = (target_id & 0x07) | 0x08; in atp870u_intr_handle()
328 target_id &= 0x07; in atp870u_intr_handle()
332 workreq = dev->id[c][target_id].curr_req; in atp870u_intr_handle()
341 atp_writeb_io(dev, c, 0x11, dev->id[c][target_id].devsp); in atp870u_intr_handle()
342 adrcnt = dev->id[c][target_id].tran_len; in atp870u_intr_handle()
343 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
352 j = target_id; in atp870u_intr_handle()
353 if (target_id > 7) { in atp870u_intr_handle()
357 j |= dev->id[c][target_id].dirct; in atp870u_intr_handle()
382 id = id << target_id; in atp870u_intr_handle()
392 if (dev->id[c][target_id].last_len == 0) { in atp870u_intr_handle()
401 printk("target_id = %d adrcnt = %d\n",target_id,adrcnt); in atp870u_intr_handle()
403 prd = dev->id[c][target_id].prd_pos; in atp870u_intr_handle()
416 dev->id[c][target_id].prd_pos = prd; in atp870u_intr_handle()
419 dev->id[c][target_id].prdaddr += 0x08; in atp870u_intr_handle()
422 dev->id[c][target_id].prd_pos = prd; in atp870u_intr_handle()
426 atp_writel_pci(dev, c, 0x04, dev->id[c][target_id].prdaddr); in atp870u_intr_handle()
428 printk("dev->id[%d][%d].prdaddr 0x%8x\n", c, target_id, dev->id[c][target_id].prdaddr); in atp870u_intr_handle()
437 if (dev->id[c][target_id].dirct != 0) { in atp870u_intr_handle()
459 workreq = dev->id[c][target_id].curr_req; in atp870u_intr_handle()
467 if (((dev->r1f[c][target_id] & 0x10) != 0) && is885(dev)) { in atp870u_intr_handle()
491 dev->id[c][target_id].curr_req = NULL; in atp870u_intr_handle()
525 atp_writel_pci(dev, c, 4, dev->id[c][target_id].prdaddr); in atp870u_intr_handle()
530 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
534 dev->id[c][target_id].dirct = 0x00; in atp870u_intr_handle()
536 dev->id[c][target_id].dirct = 0x00; in atp870u_intr_handle()
544 atp_writel_pci(dev, c, 4, dev->id[c][target_id].prdaddr); in atp870u_intr_handle()
549 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
555 dev->id[c][target_id].dirct = 0x20; in atp870u_intr_handle()
565 dev->id[c][target_id].dirct = 0x00; in atp870u_intr_handle()
685 unsigned char j, target_id; in DEF_SCSI_QCMD() local
765 target_id = scmd_id(workreq); in DEF_SCSI_QCMD()
771 w = w << target_id; in DEF_SCSI_QCMD()
798 atp_writeb_io(dev, c, 0x11, dev->id[c][target_id].devsp); in DEF_SCSI_QCMD()
800 printk("dev->id[%d][%d].devsp = %2x\n",c,target_id,dev->id[c][target_id].devsp); in DEF_SCSI_QCMD()
810 j = target_id; in DEF_SCSI_QCMD()
831 dev->id[c][target_id].dirct = 0; in DEF_SCSI_QCMD()
843 prd = dev->id[c][target_id].prd_table; in DEF_SCSI_QCMD()
844 dev->id[c][target_id].prd_pos = prd; in DEF_SCSI_QCMD()
880 printk("send_s870: prdaddr_2 0x%8x target_id %d\n", dev->id[c][target_id].prdaddr,target_id); in DEF_SCSI_QCMD()
882 dev->id[c][target_id].prdaddr = dev->id[c][target_id].prd_bus; in DEF_SCSI_QCMD()
883 atp_writel_pci(dev, c, 4, dev->id[c][target_id].prdaddr); in DEF_SCSI_QCMD()
906 dev->id[c][target_id].dirct = 0x20; in DEF_SCSI_QCMD()