Lines Matching defs:hd

1862 static inline void set_resync ( struct WD33C93_hostdata *hd, int mask )
1867 hd->sync_stat[i] = SS_UNSET;
2000 struct WD33C93_hostdata *hd;
2003 hd = (struct WD33C93_hostdata *) instance->hostdata;
2024 hd->args = simple_strtoul(bp+6, &bp, 0) & DB_MASK;
2029 hd->disconnect = x;
2032 hd->default_sx_per =
2033 hd->sx_table[round_period((unsigned int) x,
2034 hd->sx_table)].period_ns;
2036 set_resync(hd, (int)simple_strtoul(bp+7, &bp, 0));
2038 hd->proc = simple_strtoul(bp+5, &bp, 0);
2040 hd->no_dma = simple_strtoul(bp+6, &bp, 0);
2042 hd->level2 = simple_strtoul(bp+7, &bp, 0);
2044 hd->dma_mode =
2048 if (x != hd->fast)
2049 set_resync(hd, 0xff);
2050 hd->fast = x;
2053 set_resync(hd, x ^ hd->no_sync);
2054 hd->no_sync = x;
2069 struct WD33C93_hostdata *hd;
2073 hd = (struct WD33C93_hostdata *) instance->hostdata;
2075 spin_lock_irq(&hd->lock);
2076 if (hd->proc & PR_VERSION)
2080 if (hd->proc & PR_INFO) {
2083 hd->clock_freq, hd->no_sync, hd->no_dma, hd->dma_mode, hd->fast);
2086 seq_printf(m, "\t%02x", hd->sync_xfer[x]);
2089 seq_printf(m, "\t%02x", hd->sync_stat[x]);
2092 if (hd->proc & PR_STATISTICS) {
2095 seq_printf(m, "\t%ld", hd->cmd_cnt[x]);
2098 seq_printf(m, "\t%ld", hd->disc_allowed_cnt[x]);
2101 seq_printf(m, "\t%ld", hd->disc_done_cnt[x]);
2104 hd->int_cnt, hd->dma_cnt, hd->pio_cnt);
2107 if (hd->proc & PR_CONNECTED) {
2109 if (hd->connected) {
2110 cmd = (struct scsi_cmnd *) hd->connected;
2115 if (hd->proc & PR_INPUTQ) {
2117 cmd = (struct scsi_cmnd *) hd->input_Q;
2124 if (hd->proc & PR_DISCQ) {
2126 cmd = (struct scsi_cmnd *) hd->disconnected_Q;
2134 spin_unlock_irq(&hd->lock);