• Home
  • Raw
  • Download

Lines Matching refs:info

74 	FAS216_Info		info;  member
92 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqenable() local
93 writeb(ALATCH_ENA_INT, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_irqenable()
104 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqdisable() local
105 writeb(ALATCH_DIS_INT, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_irqdisable()
121 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_terminator_ctl() local
124 info->terms = 1; in cumanascsi_2_terminator_ctl()
125 writeb(ALATCH_ENA_TERM, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_terminator_ctl()
127 info->terms = 0; in cumanascsi_2_terminator_ctl()
128 writeb(ALATCH_DIS_TERM, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_terminator_ctl()
140 struct cumanascsi2_info *info = dev_id; in cumanascsi_2_intr() local
142 return fas216_intr(&info->info); in cumanascsi_2_intr()
157 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_setup() local
159 int dmach = info->info.scsi.dma; in cumanascsi_2_dma_setup()
161 writeb(ALATCH_DIS_DMA, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_dma_setup()
167 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); in cumanascsi_2_dma_setup()
179 dma_map_sg(dev, info->sg, bufs, map_dir); in cumanascsi_2_dma_setup()
182 set_dma_sg(dmach, info->sg, bufs); in cumanascsi_2_dma_setup()
183 writeb(alatch_dir, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_dma_setup()
186 writeb(ALATCH_ENA_DMA, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_dma_setup()
187 writeb(ALATCH_DIS_BIT32, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_dma_setup()
210 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_pseudo() local
221 unsigned int status = readb(info->base + CUMANASCSI2_STATUS); in cumanascsi_2_dma_pseudo()
230 writew(word, info->base + CUMANASCSI2_PSEUDODMA); in cumanascsi_2_dma_pseudo()
240 unsigned int status = readb(info->base + CUMANASCSI2_STATUS); in cumanascsi_2_dma_pseudo()
248 readsw(info->base + CUMANASCSI2_PSEUDODMA, in cumanascsi_2_dma_pseudo()
257 unsigned int status = readb(info->base + CUMANASCSI2_STATUS); in cumanascsi_2_dma_pseudo()
265 word = readw(info->base + CUMANASCSI2_PSEUDODMA); in cumanascsi_2_dma_pseudo()
283 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_stop() local
284 if (info->info.scsi.dma != NO_DMA) { in cumanascsi_2_dma_stop()
285 writeb(ALATCH_DIS_DMA, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_dma_stop()
286 disable_dma(info->info.scsi.dma); in cumanascsi_2_dma_stop()
297 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_info() local
301 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in cumanascsi_2_info()
302 VERSION, info->terms ? "n" : "ff"); in cumanascsi_2_info()
342 struct cumanascsi2_info *info; in cumanascsi_2_show_info() local
343 info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_show_info()
346 fas216_print_host(&info->info, m); in cumanascsi_2_show_info()
348 info->terms ? "n" : "ff"); in cumanascsi_2_show_info()
350 fas216_print_stats(&info->info, m); in cumanascsi_2_show_info()
351 fas216_print_devices(&info->info, m); in cumanascsi_2_show_info()
360 .info = cumanascsi_2_info,
377 struct cumanascsi2_info *info; in cumanascsi2_probe() local
400 info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi2_probe()
401 info->ec = ec; in cumanascsi2_probe()
402 info->base = base; in cumanascsi2_probe()
406 info->info.scsi.io_base = base + CUMANASCSI2_FAS216_OFFSET; in cumanascsi2_probe()
407 info->info.scsi.io_shift = CUMANASCSI2_FAS216_SHIFT; in cumanascsi2_probe()
408 info->info.scsi.irq = ec->irq; in cumanascsi2_probe()
409 info->info.scsi.dma = ec->dma; in cumanascsi2_probe()
410 info->info.ifcfg.clockrate = 40; /* MHz */ in cumanascsi2_probe()
411 info->info.ifcfg.select_timeout = 255; in cumanascsi2_probe()
412 info->info.ifcfg.asyncperiod = 200; /* ns */ in cumanascsi2_probe()
413 info->info.ifcfg.sync_max_depth = 7; in cumanascsi2_probe()
414 info->info.ifcfg.cntl3 = CNTL3_BS8 | CNTL3_FASTSCSI | CNTL3_FASTCLK; in cumanascsi2_probe()
415 info->info.ifcfg.disconnect_ok = 1; in cumanascsi2_probe()
416 info->info.ifcfg.wide_max_size = 0; in cumanascsi2_probe()
417 info->info.ifcfg.capabilities = FASCAP_PSEUDODMA; in cumanascsi2_probe()
418 info->info.dma.setup = cumanascsi_2_dma_setup; in cumanascsi2_probe()
419 info->info.dma.pseudo = cumanascsi_2_dma_pseudo; in cumanascsi2_probe()
420 info->info.dma.stop = cumanascsi_2_dma_stop; in cumanascsi2_probe()
422 ec->irqaddr = info->base + CUMANASCSI2_STATUS; in cumanascsi2_probe()
425 ecard_setirq(ec, &cumanascsi_2_ops, info); in cumanascsi2_probe()
432 0, "cumanascsi2", info); in cumanascsi2_probe()
439 if (info->info.scsi.dma != NO_DMA) { in cumanascsi2_probe()
440 if (request_dma(info->info.scsi.dma, "cumanascsi2")) { in cumanascsi2_probe()
442 host->host_no, info->info.scsi.dma); in cumanascsi2_probe()
443 info->info.scsi.dma = NO_DMA; in cumanascsi2_probe()
445 set_dma_speed(info->info.scsi.dma, 180); in cumanascsi2_probe()
446 info->info.ifcfg.capabilities |= FASCAP_DMA; in cumanascsi2_probe()
454 if (info->info.scsi.dma != NO_DMA) in cumanascsi2_probe()
455 free_dma(info->info.scsi.dma); in cumanascsi2_probe()
456 free_irq(ec->irq, info); in cumanascsi2_probe()
474 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi2_remove() local
479 if (info->info.scsi.dma != NO_DMA) in cumanascsi2_remove()
480 free_dma(info->info.scsi.dma); in cumanascsi2_remove()
481 free_irq(ec->irq, info); in cumanascsi2_remove()