• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:hd

1908 static inline void set_resync ( struct WD33C93_hostdata *hd, int mask )
1913 hd->sync_stat[i] = SS_UNSET;
2051 struct WD33C93_hostdata *hd;
2056 hd = (struct WD33C93_hostdata *) instance->hostdata;
2078 hd->args = simple_strtoul(bp+6, &bp, 0) & DB_MASK;
2083 hd->disconnect = x;
2086 hd->default_sx_per =
2087 hd->sx_table[round_period((unsigned int) x,
2088 hd->sx_table)].period_ns;
2090 set_resync(hd, (int)simple_strtoul(bp+7, &bp, 0));
2092 hd->proc = simple_strtoul(bp+5, &bp, 0);
2094 hd->no_dma = simple_strtoul(bp+6, &bp, 0);
2096 hd->level2 = simple_strtoul(bp+7, &bp, 0);
2098 hd->dma_mode =
2102 if (x != hd->fast)
2103 set_resync(hd, 0xff);
2104 hd->fast = x;
2107 set_resync(hd, x ^ hd->no_sync);
2108 hd->no_sync = x;
2116 spin_lock_irq(&hd->lock);
2119 if (hd->proc & PR_VERSION) {
2124 if (hd->proc & PR_INFO) {
2127 hd->clock_freq, hd->no_sync, hd->no_dma, hd->dma_mode, hd->fast);
2131 sprintf(tbuf, "\t%02x", hd->sync_xfer[x]);
2136 sprintf(tbuf, "\t%02x", hd->sync_stat[x]);
2141 if (hd->proc & PR_STATISTICS) {
2144 sprintf(tbuf, "\t%ld", hd->cmd_cnt[x]);
2149 sprintf(tbuf, "\t%ld", hd->disc_allowed_cnt[x]);
2154 sprintf(tbuf, "\t%ld", hd->disc_done_cnt[x]);
2159 hd->int_cnt, hd->dma_cnt, hd->pio_cnt);
2163 if (hd->proc & PR_CONNECTED) {
2165 if (hd->connected) {
2166 cmd = (struct scsi_cmnd *) hd->connected;
2172 if (hd->proc & PR_INPUTQ) {
2174 cmd = (struct scsi_cmnd *) hd->input_Q;
2182 if (hd->proc & PR_DISCQ) {
2184 cmd = (struct scsi_cmnd *) hd->disconnected_Q;
2193 spin_unlock_irq(&hd->lock);
2201 if (hd->proc & PR_STOP) /* stop every other time */