Lines Matching refs:mmio
231 writew(cmd, dev->mmio + DPR_CMD_MBX); in dt3k_send_cmd()
234 status = readw(dev->mmio + DPR_CMD_MBX); in dt3k_send_cmd()
250 writew(subsys, dev->mmio + DPR_SUBSYS); in dt3k_readsingle()
252 writew(chan, dev->mmio + DPR_PARAMS(0)); in dt3k_readsingle()
253 writew(gain, dev->mmio + DPR_PARAMS(1)); in dt3k_readsingle()
257 return readw(dev->mmio + DPR_PARAMS(2)); in dt3k_readsingle()
263 writew(subsys, dev->mmio + DPR_SUBSYS); in dt3k_writesingle()
265 writew(chan, dev->mmio + DPR_PARAMS(0)); in dt3k_writesingle()
266 writew(0, dev->mmio + DPR_PARAMS(1)); in dt3k_writesingle()
267 writew(data, dev->mmio + DPR_PARAMS(2)); in dt3k_writesingle()
282 front = readw(dev->mmio + DPR_AD_BUF_FRONT); in dt3k_ai_empty_fifo()
290 data = readw(dev->mmio + DPR_ADC_BUFFER + rear); in dt3k_ai_empty_fifo()
298 writew(rear, dev->mmio + DPR_AD_BUF_REAR); in dt3k_ai_empty_fifo()
304 writew(DPR_SUBSYS_AI, dev->mmio + DPR_SUBSYS); in dt3k_ai_cancel()
307 writew(0, dev->mmio + DPR_INT_MASK); in dt3k_ai_cancel()
325 status = readw(dev->mmio + DPR_INTR_FLAG); in dt3k_interrupt()
464 writew((range << 6) | chan, dev->mmio + DPR_ADC_BUFFER + i); in dt3k_ai_cmd()
468 writew(cmd->scan_end_arg, dev->mmio + DPR_PARAMS(0)); in dt3k_ai_cmd()
472 writew((divider >> 16), dev->mmio + DPR_PARAMS(1)); in dt3k_ai_cmd()
473 writew((divider & 0xffff), dev->mmio + DPR_PARAMS(2)); in dt3k_ai_cmd()
479 writew((tscandiv >> 16), dev->mmio + DPR_PARAMS(3)); in dt3k_ai_cmd()
480 writew((tscandiv & 0xffff), dev->mmio + DPR_PARAMS(4)); in dt3k_ai_cmd()
483 writew(DPR_PARAM5_AD_TRIG_INT_RETRIG, dev->mmio + DPR_PARAMS(5)); in dt3k_ai_cmd()
485 dev->mmio + DPR_PARAMS(6)); in dt3k_ai_cmd()
487 writew(DPR_AI_FIFO_DEPTH / 2, dev->mmio + DPR_PARAMS(7)); in dt3k_ai_cmd()
489 writew(DPR_SUBSYS_AI, dev->mmio + DPR_SUBSYS); in dt3k_ai_cmd()
493 dev->mmio + DPR_INT_MASK); in dt3k_ai_cmd()
497 writew(DPR_SUBSYS_AI, dev->mmio + DPR_SUBSYS); in dt3k_ai_cmd()
542 writew(DPR_SUBSYS_DOUT, dev->mmio + DPR_SUBSYS); in dt3k_dio_config()
544 writew(bits, dev->mmio + DPR_PARAMS(0)); in dt3k_dio_config()
596 writew(DPR_SUBSYS_MEM, dev->mmio + DPR_SUBSYS); in dt3k_mem_insn_read()
597 writew(addr, dev->mmio + DPR_PARAMS(0)); in dt3k_mem_insn_read()
598 writew(1, dev->mmio + DPR_PARAMS(1)); in dt3k_mem_insn_read()
602 data[i] = readw(dev->mmio + DPR_PARAMS(2)); in dt3k_mem_insn_read()
632 dev->mmio = pci_ioremap_bar(pcidev, 0); in dt3000_auto_attach()
633 if (!dev->mmio) in dt3000_auto_attach()