Lines Matching refs:info
57 FAS216_Info info; member
72 struct powertec_info *info = ec->irq_data; in powertecscsi_irqenable() local
73 writeb(POWERTEC_INTR_ENABLE, info->base + POWERTEC_INTR_CONTROL); in powertecscsi_irqenable()
84 struct powertec_info *info = ec->irq_data; in powertecscsi_irqdisable() local
85 writeb(POWERTEC_INTR_DISABLE, info->base + POWERTEC_INTR_CONTROL); in powertecscsi_irqdisable()
101 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_terminator_ctl() local
103 info->term_ctl = on_off ? POWERTEC_TERM_ENABLE : 0; in powertecscsi_terminator_ctl()
104 writeb(info->term_ctl, info->base + POWERTEC_TERM_CONTROL); in powertecscsi_terminator_ctl()
114 struct powertec_info *info = dev_id; in powertecscsi_intr() local
116 return fas216_intr(&info->info); in powertecscsi_intr()
131 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_setup() local
133 int dmach = info->info.scsi.dma; in powertecscsi_dma_setup()
135 if (info->info.ifcfg.capabilities & FASCAP_DMA && in powertecscsi_dma_setup()
139 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); in powertecscsi_dma_setup()
149 dma_map_sg(dev, info->sg, bufs, map_dir); in powertecscsi_dma_setup()
152 set_dma_sg(dmach, info->sg, bufs); in powertecscsi_dma_setup()
173 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_stop() local
174 if (info->info.scsi.dma != NO_DMA) in powertecscsi_dma_stop()
175 disable_dma(info->info.scsi.dma); in powertecscsi_dma_stop()
185 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_info() local
189 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in powertecscsi_info()
190 VERSION, info->term_ctl ? "n" : "ff"); in powertecscsi_info()
240 struct powertec_info *info; in powertecscsi_show_info() local
242 info = (struct powertec_info *)host->hostdata; in powertecscsi_show_info()
245 fas216_print_host(&info->info, m); in powertecscsi_show_info()
247 info->term_ctl ? "n" : "ff"); in powertecscsi_show_info()
249 fas216_print_stats(&info->info, m); in powertecscsi_show_info()
250 fas216_print_devices(&info->info, m); in powertecscsi_show_info()
258 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_show_term() local
260 return sprintf(buf, "%d\n", info->term_ctl ? 1 : 0); in powertecscsi_show_term()
283 .info = powertecscsi_info,
302 struct powertec_info *info; in powertecscsi_probe() local
325 info = (struct powertec_info *)host->hostdata; in powertecscsi_probe()
326 info->base = base; in powertecscsi_probe()
329 info->ec = ec; in powertecscsi_probe()
330 info->info.scsi.io_base = base + POWERTEC_FAS216_OFFSET; in powertecscsi_probe()
331 info->info.scsi.io_shift = POWERTEC_FAS216_SHIFT; in powertecscsi_probe()
332 info->info.scsi.irq = ec->irq; in powertecscsi_probe()
333 info->info.scsi.dma = ec->dma; in powertecscsi_probe()
334 info->info.ifcfg.clockrate = 40; /* MHz */ in powertecscsi_probe()
335 info->info.ifcfg.select_timeout = 255; in powertecscsi_probe()
336 info->info.ifcfg.asyncperiod = 200; /* ns */ in powertecscsi_probe()
337 info->info.ifcfg.sync_max_depth = 7; in powertecscsi_probe()
338 info->info.ifcfg.cntl3 = CNTL3_BS8 | CNTL3_FASTSCSI | CNTL3_FASTCLK; in powertecscsi_probe()
339 info->info.ifcfg.disconnect_ok = 1; in powertecscsi_probe()
340 info->info.ifcfg.wide_max_size = 0; in powertecscsi_probe()
341 info->info.ifcfg.capabilities = 0; in powertecscsi_probe()
342 info->info.dma.setup = powertecscsi_dma_setup; in powertecscsi_probe()
343 info->info.dma.pseudo = NULL; in powertecscsi_probe()
344 info->info.dma.stop = powertecscsi_dma_stop; in powertecscsi_probe()
349 ecard_setirq(ec, &powertecscsi_ops, info); in powertecscsi_probe()
358 0, "powertec", info); in powertecscsi_probe()
365 if (info->info.scsi.dma != NO_DMA) { in powertecscsi_probe()
366 if (request_dma(info->info.scsi.dma, "powertec")) { in powertecscsi_probe()
368 host->host_no, info->info.scsi.dma); in powertecscsi_probe()
369 info->info.scsi.dma = NO_DMA; in powertecscsi_probe()
371 set_dma_speed(info->info.scsi.dma, 180); in powertecscsi_probe()
372 info->info.ifcfg.capabilities |= FASCAP_DMA; in powertecscsi_probe()
380 if (info->info.scsi.dma != NO_DMA) in powertecscsi_probe()
381 free_dma(info->info.scsi.dma); in powertecscsi_probe()
382 free_irq(ec->irq, info); in powertecscsi_probe()
401 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_remove() local
408 if (info->info.scsi.dma != NO_DMA) in powertecscsi_remove()
409 free_dma(info->info.scsi.dma); in powertecscsi_remove()
410 free_irq(ec->irq, info); in powertecscsi_remove()