Lines Matching refs:info
60 FAS216_Info info; member
75 struct powertec_info *info = ec->irq_data; in powertecscsi_irqenable() local
76 writeb(POWERTEC_INTR_ENABLE, info->base + POWERTEC_INTR_CONTROL); in powertecscsi_irqenable()
87 struct powertec_info *info = ec->irq_data; in powertecscsi_irqdisable() local
88 writeb(POWERTEC_INTR_DISABLE, info->base + POWERTEC_INTR_CONTROL); in powertecscsi_irqdisable()
104 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_terminator_ctl() local
106 info->term_ctl = on_off ? POWERTEC_TERM_ENABLE : 0; in powertecscsi_terminator_ctl()
107 writeb(info->term_ctl, info->base + POWERTEC_TERM_CONTROL); in powertecscsi_terminator_ctl()
117 struct powertec_info *info = dev_id; in powertecscsi_intr() local
119 return fas216_intr(&info->info); in powertecscsi_intr()
134 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_setup() local
136 int dmach = info->info.scsi.dma; in powertecscsi_dma_setup()
138 if (info->info.ifcfg.capabilities & FASCAP_DMA && in powertecscsi_dma_setup()
142 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); in powertecscsi_dma_setup()
151 dma_map_sg(dev, info->sg, bufs, map_dir); in powertecscsi_dma_setup()
154 set_dma_sg(dmach, info->sg, bufs); in powertecscsi_dma_setup()
175 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_stop() local
176 if (info->info.scsi.dma != NO_DMA) in powertecscsi_dma_stop()
177 disable_dma(info->info.scsi.dma); in powertecscsi_dma_stop()
187 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_info() local
191 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in powertecscsi_info()
192 VERSION, info->term_ctl ? "n" : "ff"); in powertecscsi_info()
242 struct powertec_info *info; in powertecscsi_show_info() local
244 info = (struct powertec_info *)host->hostdata; in powertecscsi_show_info()
247 fas216_print_host(&info->info, m); in powertecscsi_show_info()
249 info->term_ctl ? "n" : "ff"); in powertecscsi_show_info()
251 fas216_print_stats(&info->info, m); in powertecscsi_show_info()
252 fas216_print_devices(&info->info, m); in powertecscsi_show_info()
260 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_show_term() local
262 return sprintf(buf, "%d\n", info->term_ctl ? 1 : 0); in powertecscsi_show_term()
285 .info = powertecscsi_info,
305 struct powertec_info *info; in powertecscsi_probe() local
328 info = (struct powertec_info *)host->hostdata; in powertecscsi_probe()
329 info->base = base; in powertecscsi_probe()
332 info->ec = ec; in powertecscsi_probe()
333 info->info.scsi.io_base = base + POWERTEC_FAS216_OFFSET; in powertecscsi_probe()
334 info->info.scsi.io_shift = POWERTEC_FAS216_SHIFT; in powertecscsi_probe()
335 info->info.scsi.irq = ec->irq; in powertecscsi_probe()
336 info->info.scsi.dma = ec->dma; in powertecscsi_probe()
337 info->info.ifcfg.clockrate = 40; /* MHz */ in powertecscsi_probe()
338 info->info.ifcfg.select_timeout = 255; in powertecscsi_probe()
339 info->info.ifcfg.asyncperiod = 200; /* ns */ in powertecscsi_probe()
340 info->info.ifcfg.sync_max_depth = 7; in powertecscsi_probe()
341 info->info.ifcfg.cntl3 = CNTL3_BS8 | CNTL3_FASTSCSI | CNTL3_FASTCLK; in powertecscsi_probe()
342 info->info.ifcfg.disconnect_ok = 1; in powertecscsi_probe()
343 info->info.ifcfg.wide_max_size = 0; in powertecscsi_probe()
344 info->info.ifcfg.capabilities = 0; in powertecscsi_probe()
345 info->info.dma.setup = powertecscsi_dma_setup; in powertecscsi_probe()
346 info->info.dma.pseudo = NULL; in powertecscsi_probe()
347 info->info.dma.stop = powertecscsi_dma_stop; in powertecscsi_probe()
352 ecard_setirq(ec, &powertecscsi_ops, info); in powertecscsi_probe()
361 0, "powertec", info); in powertecscsi_probe()
368 if (info->info.scsi.dma != NO_DMA) { in powertecscsi_probe()
369 if (request_dma(info->info.scsi.dma, "powertec")) { in powertecscsi_probe()
371 host->host_no, info->info.scsi.dma); in powertecscsi_probe()
372 info->info.scsi.dma = NO_DMA; in powertecscsi_probe()
374 set_dma_speed(info->info.scsi.dma, 180); in powertecscsi_probe()
375 info->info.ifcfg.capabilities |= FASCAP_DMA; in powertecscsi_probe()
383 if (info->info.scsi.dma != NO_DMA) in powertecscsi_probe()
384 free_dma(info->info.scsi.dma); in powertecscsi_probe()
404 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_remove() local
411 if (info->info.scsi.dma != NO_DMA) in powertecscsi_remove()
412 free_dma(info->info.scsi.dma); in powertecscsi_remove()
413 free_irq(ec->irq, info); in powertecscsi_remove()