• Home
  • Raw
  • Download

Lines Matching refs:dpram

37 	iowrite16(cmd, &card->dpram[DPRAM_FCT_PARAM]);  in _softing_fct_cmd()
38 iowrite8(vector >> 8, &card->dpram[DPRAM_FCT_HOST + 1]); in _softing_fct_cmd()
39 iowrite8(vector, &card->dpram[DPRAM_FCT_HOST]); in _softing_fct_cmd()
46 ret = ioread8(&card->dpram[DPRAM_FCT_HOST]) + in _softing_fct_cmd()
47 (ioread8(&card->dpram[DPRAM_FCT_HOST + 1]) << 8); in _softing_fct_cmd()
52 return ioread16(&card->dpram[DPRAM_FCT_RESULT]); in _softing_fct_cmd()
83 iowrite16(RES_NONE, &card->dpram[DPRAM_RECEIPT]); in softing_bootloader_command()
84 iowrite16(cmd, &card->dpram[DPRAM_COMMAND]); in softing_bootloader_command()
90 ret = ioread16(&card->dpram[DPRAM_RECEIPT]); in softing_bootloader_command()
146 __iomem uint8_t *dpram, unsigned int size, int offset) in softing_load_fw() argument
196 memcpy_toio(&dpram[addr + offset], dat, len); in softing_load_fw()
210 memcpy_fromio(buf, &dpram[addr + offset], len); in softing_load_fw()
294 memcpy_toio(&card->dpram[card->pdat->app.offs], dat, len); in softing_load_app_fw()
296 &card->dpram[DPRAM_COMMAND + 2]); in softing_load_app_fw()
297 iowrite32(addr, &card->dpram[DPRAM_COMMAND + 6]); in softing_load_app_fw()
298 iowrite16(len, &card->dpram[DPRAM_COMMAND + 10]); in softing_load_app_fw()
299 iowrite8(1, &card->dpram[DPRAM_COMMAND + 12]); in softing_load_app_fw()
304 rx_sum = ioread16(&card->dpram[DPRAM_RECEIPT + 2]); in softing_load_app_fw()
315 iowrite32(start_addr, &card->dpram[DPRAM_COMMAND + 2]); in softing_load_app_fw()
316 iowrite8(1, &card->dpram[DPRAM_COMMAND + 6]); in softing_load_app_fw()
334 iowrite8(0, &card->dpram[DPRAM_RESET_RX_FIFO]); in softing_reset_chip()
335 iowrite8(0, &card->dpram[DPRAM_RESET_RX_FIFO+1]); in softing_reset_chip()
336 iowrite8(1, &card->dpram[DPRAM_RESET]); in softing_reset_chip()
337 iowrite8(0, &card->dpram[DPRAM_RESET+1]); in softing_reset_chip()
369 card->id.serial = ioread32(&card->dpram[DPRAM_FCT_PARAM]); in softing_chip_poweron()
374 card->id.fw_version = ioread16(&card->dpram[DPRAM_FCT_PARAM + 2]); in softing_chip_poweron()
375 card->id.hw_version = ioread16(&card->dpram[DPRAM_FCT_PARAM + 4]); in softing_chip_poweron()
376 card->id.license = ioread16(&card->dpram[DPRAM_FCT_PARAM + 6]); in softing_chip_poweron()
377 card->id.chip[0] = ioread16(&card->dpram[DPRAM_FCT_PARAM + 8]); in softing_chip_poweron()
378 card->id.chip[1] = ioread16(&card->dpram[DPRAM_FCT_PARAM + 10]); in softing_chip_poweron()
506 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
507 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
509 &card->dpram[DPRAM_FCT_PARAM + 6]); in softing_startstop()
510 iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop()
512 &card->dpram[DPRAM_FCT_PARAM + 10]); in softing_startstop()
517 iowrite16(0, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
518 iowrite16(0, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
524 iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
525 iowrite16(0x07ff, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
527 iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 6]); in softing_startstop()
528 iowrite16(0xffff, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop()
529 iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 10]); in softing_startstop()
530 iowrite16(0x1fff, &card->dpram[DPRAM_FCT_PARAM + 12]); in softing_startstop()
535 iowrite16(priv->output, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
546 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
547 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
549 &card->dpram[DPRAM_FCT_PARAM + 6]); in softing_startstop()
550 iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop()
552 &card->dpram[DPRAM_FCT_PARAM + 10]); in softing_startstop()
557 iowrite16(0, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
558 iowrite16(0, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
564 iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
565 iowrite16(0x07ff, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
567 iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 6]); in softing_startstop()
568 iowrite16(0xffff, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop()
569 iowrite16(0x0000, &card->dpram[DPRAM_FCT_PARAM + 10]); in softing_startstop()
570 iowrite16(0x1fff, &card->dpram[DPRAM_FCT_PARAM + 12]); in softing_startstop()
575 iowrite16(priv->output, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
593 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
594 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
595 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 6]); in softing_startstop()
596 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop()
597 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 10]); in softing_startstop()
598 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 12]); in softing_startstop()
599 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 14]); in softing_startstop()
600 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 16]); in softing_startstop()
601 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 18]); in softing_startstop()
602 iowrite16(1, &card->dpram[DPRAM_FCT_PARAM + 20]); in softing_startstop()
622 iowrite8(0, &card->dpram[DPRAM_INFO_BUSSTATE]); in softing_startstop()
623 iowrite8(0, &card->dpram[DPRAM_INFO_BUSSTATE2]); in softing_startstop()
625 iowrite8(0, &card->dpram[DPRAM_V2_IRQ_TOHOST]); in softing_startstop()