Lines Matching refs:info

61 	FAS216_Info		info;  member
76 struct powertec_info *info = ec->irq_data; in powertecscsi_irqenable() local
77 writeb(POWERTEC_INTR_ENABLE, info->base + POWERTEC_INTR_CONTROL); in powertecscsi_irqenable()
88 struct powertec_info *info = ec->irq_data; in powertecscsi_irqdisable() local
89 writeb(POWERTEC_INTR_DISABLE, info->base + POWERTEC_INTR_CONTROL); in powertecscsi_irqdisable()
105 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_terminator_ctl() local
107 info->term_ctl = on_off ? POWERTEC_TERM_ENABLE : 0; in powertecscsi_terminator_ctl()
108 writeb(info->term_ctl, info->base + POWERTEC_TERM_CONTROL); in powertecscsi_terminator_ctl()
118 struct powertec_info *info = dev_id; in powertecscsi_intr() local
120 return fas216_intr(&info->info); in powertecscsi_intr()
135 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_setup() local
137 int dmach = info->info.scsi.dma; in powertecscsi_dma_setup()
139 if (info->info.ifcfg.capabilities & FASCAP_DMA && in powertecscsi_dma_setup()
143 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); in powertecscsi_dma_setup()
153 dma_map_sg(dev, info->sg, bufs, map_dir); in powertecscsi_dma_setup()
156 set_dma_sg(dmach, info->sg, bufs); in powertecscsi_dma_setup()
177 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_dma_stop() local
178 if (info->info.scsi.dma != NO_DMA) in powertecscsi_dma_stop()
179 disable_dma(info->info.scsi.dma); in powertecscsi_dma_stop()
189 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_info() local
193 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in powertecscsi_info()
194 VERSION, info->term_ctl ? "n" : "ff"); in powertecscsi_info()
244 struct powertec_info *info; in powertecscsi_show_info() local
246 info = (struct powertec_info *)host->hostdata; in powertecscsi_show_info()
249 fas216_print_host(&info->info, m); in powertecscsi_show_info()
251 info->term_ctl ? "n" : "ff"); in powertecscsi_show_info()
253 fas216_print_stats(&info->info, m); in powertecscsi_show_info()
254 fas216_print_devices(&info->info, m); in powertecscsi_show_info()
262 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_show_term() local
264 return sprintf(buf, "%d\n", info->term_ctl ? 1 : 0); in powertecscsi_show_term()
287 .info = powertecscsi_info,
306 struct powertec_info *info; in powertecscsi_probe() local
329 info = (struct powertec_info *)host->hostdata; in powertecscsi_probe()
330 info->base = base; in powertecscsi_probe()
333 info->ec = ec; in powertecscsi_probe()
334 info->info.scsi.io_base = base + POWERTEC_FAS216_OFFSET; in powertecscsi_probe()
335 info->info.scsi.io_shift = POWERTEC_FAS216_SHIFT; in powertecscsi_probe()
336 info->info.scsi.irq = ec->irq; in powertecscsi_probe()
337 info->info.scsi.dma = ec->dma; in powertecscsi_probe()
338 info->info.ifcfg.clockrate = 40; /* MHz */ in powertecscsi_probe()
339 info->info.ifcfg.select_timeout = 255; in powertecscsi_probe()
340 info->info.ifcfg.asyncperiod = 200; /* ns */ in powertecscsi_probe()
341 info->info.ifcfg.sync_max_depth = 7; in powertecscsi_probe()
342 info->info.ifcfg.cntl3 = CNTL3_BS8 | CNTL3_FASTSCSI | CNTL3_FASTCLK; in powertecscsi_probe()
343 info->info.ifcfg.disconnect_ok = 1; in powertecscsi_probe()
344 info->info.ifcfg.wide_max_size = 0; in powertecscsi_probe()
345 info->info.ifcfg.capabilities = 0; in powertecscsi_probe()
346 info->info.dma.setup = powertecscsi_dma_setup; in powertecscsi_probe()
347 info->info.dma.pseudo = NULL; in powertecscsi_probe()
348 info->info.dma.stop = powertecscsi_dma_stop; in powertecscsi_probe()
353 ecard_setirq(ec, &powertecscsi_ops, info); in powertecscsi_probe()
362 0, "powertec", info); in powertecscsi_probe()
369 if (info->info.scsi.dma != NO_DMA) { in powertecscsi_probe()
370 if (request_dma(info->info.scsi.dma, "powertec")) { in powertecscsi_probe()
372 host->host_no, info->info.scsi.dma); in powertecscsi_probe()
373 info->info.scsi.dma = NO_DMA; in powertecscsi_probe()
375 set_dma_speed(info->info.scsi.dma, 180); in powertecscsi_probe()
376 info->info.ifcfg.capabilities |= FASCAP_DMA; in powertecscsi_probe()
384 if (info->info.scsi.dma != NO_DMA) in powertecscsi_probe()
385 free_dma(info->info.scsi.dma); in powertecscsi_probe()
386 free_irq(ec->irq, info); in powertecscsi_probe()
405 struct powertec_info *info = (struct powertec_info *)host->hostdata; in powertecscsi_remove() local
412 if (info->info.scsi.dma != NO_DMA) in powertecscsi_remove()
413 free_dma(info->info.scsi.dma); in powertecscsi_remove()
414 free_irq(ec->irq, info); in powertecscsi_remove()