Lines Matching refs:target

367 static int AM53C974_sync_neg(struct Scsi_Host *instance, int target, unsigned char *msg);
368 static __inline__ void AM53C974_set_async(struct Scsi_Host *instance, int target);
369 static __inline__ void AM53C974_set_sync(struct Scsi_Host *instance, int target);
909 cmd->cmnd[0], cmd->target, cmd->lun, cmd->request_bufflen, cmd->use_sg)); in AM53C974_queue_command()
981 if (!(hostdata->busy[tmp->target] & (1 << tmp->lun))) { in AM53C974_main()
1040 static __inline__ void AM53C974_set_async(struct Scsi_Host *instance, int target) in AM53C974_set_async() argument
1046 AM53C974_write_8(STPREG, hostdata->sync_per[target]); in AM53C974_set_async()
1060 static __inline__ void AM53C974_set_sync(struct Scsi_Host *instance, int target) in AM53C974_set_sync() argument
1066 AM53C974_write_8(STPREG, hostdata->sync_per[target]); in AM53C974_set_sync()
1067 AM53C974_write_8(SOFREG, (SOFREG_SO & hostdata->sync_off[target]) | in AM53C974_set_sync()
1201 hostdata->sync_off[hostdata->connected->target] = 0; /* setup asynchronous transfer */ in AM53C974_intr()
1283 AM53C974_set_sync(instance, hostdata->sel_cmd->target); in AM53C974_intr()
1317 hostdata->busy[hostdata->connected->target] |= (1 << hostdata->connected->lun); in AM53C974_intr()
1392 AM53C974_set_async(instance, cmd->target); in AM53C974_intr_disconnect()
1394 instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); in AM53C974_intr_disconnect()
1402 " the disconnected_queue\n", instance->host_no, cmd->target, in AM53C974_intr_disconnect()
1429 AM53C974_set_async(instance, cmd->target); in AM53C974_intr_disconnect()
1431 … instance->host_no, cmd->SCp.phase, cmd->target, cmd->SCp.this_residual, cmd->SCp.buffers_residual, in AM53C974_intr_disconnect()
1440 hostdata->sync_off[cmd->target] = 0; in AM53C974_intr_disconnect()
1456 hostdata->busy[cmd->target] &= ~(1 << cmd->lun); in AM53C974_intr_disconnect()
1463 AM53C974_set_async(instance, cmd->target); in AM53C974_intr_disconnect()
1479 AM53C974_set_async(instance, cmd->target); in AM53C974_intr_disconnect()
1500 static int AM53C974_sync_neg(struct Scsi_Host *instance, int target, unsigned char *msg) in AM53C974_sync_neg() argument
1520 hostdata->sync_per[target] = period; in AM53C974_sync_neg()
1521 hostdata->sync_off[target] = offset; in AM53C974_sync_neg()
1532 target, rate, rate_rem, offset); in AM53C974_sync_neg()
1534 printk("\ntarget %d: rate=%d.%d Mhz, asynchronous\n", target, rate, rate_rem); in AM53C974_sync_neg()
1606 AM53C974_set_async(instance, cmd->target); in AM53C974_information_transfer()
1636 AM53C974_set_sync(instance, cmd->target); in AM53C974_information_transfer()
1642 AM53C974_set_async(instance, cmd->target); in AM53C974_information_transfer()
1668 AM53C974_set_sync(instance, cmd->target); in AM53C974_information_transfer()
1673 AM53C974_set_async(instance, cmd->target); in AM53C974_information_transfer()
1678 AM53C974_set_sync(instance, cmd->target); in AM53C974_information_transfer()
1685 AM53C974_set_async(instance, cmd->target); in AM53C974_information_transfer()
1757 instance->host_no, cmd->target, cmd->lun)); in AM53C974_message()
1762 instance->host_no, cmd->target, cmd->lun); in AM53C974_message()
1780 instance->host_no, cmd->target, cmd->lun)); in AM53C974_message()
1790 instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); in AM53C974_message()
1840 instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); in AM53C974_message()
1846 cmd->target, DEF_CLK / DEF_STP); in AM53C974_message()
1847 hostdata->sync_off[cmd->target] = 0; in AM53C974_message()
1848 hostdata->sync_per[cmd->target] = DEF_STP; in AM53C974_message()
1855 hostdata->busy[cmd->target] |= (1 << cmd->lun); in AM53C974_message()
1867 instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); in AM53C974_message()
1876 instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); in AM53C974_message()
1895 instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); in AM53C974_message()
1940 ret = AM53C974_sync_neg(instance, cmd->target, extended_msg); in AM53C974_message()
2028 !(hostdata->sync_neg[cmd->target]) && hostdata->sync_en[cmd->target]) { in AM53C974_select()
2029 hostdata->sync_neg[cmd->target] = 1; in AM53C974_select()
2033 hostdata->msgout[3] = 250 / (int) hostdata->max_rate[cmd->target]; in AM53C974_select()
2034 hostdata->msgout[4] = hostdata->max_offset[cmd->target]; in AM53C974_select()
2037 AM53C974_write_8(SDIDREG, SDIREG_MASK & cmd->target); /* setup dest. id */ in AM53C974_select()
2074 unsigned char cfifo, msg[3], lun, t, target = 0; in AM53C974_intr_reselect() local
2108 target = 0; in AM53C974_intr_reselect()
2111 target++; in AM53C974_intr_reselect()
2113 DEB_RESEL(printk("scsi %d: reselect; target: %d\n", instance->host_no, target)); in AM53C974_intr_reselect()
2143 if ((target == tmp->target) && (lun == tmp->lun) in AM53C974_intr_reselect()
2163 instance->host_no, target, lun, tag); in AM53C974_intr_reselect()
2166 instance->host_no, target, lun); in AM53C974_intr_reselect()
2182 instance->host_no, target, tmp->lun, tmp->tag)); in AM53C974_intr_reselect()
2183 AM53C974_set_sync(instance, target); in AM53C974_intr_reselect()
2184 AM53C974_write_8(SDIDREG, SDIREG_MASK & target); /* setup dest. id */ in AM53C974_intr_reselect()