• Home
  • Raw
  • Download

Lines Matching full:dpram

29 /* reset DPRAM */
34 iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) & ~1, in softing_set_reset_dpram()
35 &card->dpram[DPRAM_V2_RESET]); in softing_set_reset_dpram()
44 iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) | 1, in softing_clr_reset_dpram()
45 &card->dpram[DPRAM_V2_RESET]); in softing_clr_reset_dpram()
72 fifo_wr = ioread8(&card->dpram[DPRAM_TX_WR]); in softing_netdev_start_xmit()
73 fifo_rd = ioread8(&card->dpram[DPRAM_TX_RD]); in softing_netdev_start_xmit()
99 memcpy_toio(&card->dpram[DPRAM_TX + DPRAM_TX_SIZE * fifo_wr], in softing_netdev_start_xmit()
103 iowrite8(fifo_wr, &card->dpram[DPRAM_TX_WR]); in softing_netdev_start_xmit()
147 * pop 1 entry from the DPRAM queue, and process
163 lost_msg = ioread8(&card->dpram[DPRAM_RX_LOST]); in softing_handle_1()
167 iowrite8(0, &card->dpram[DPRAM_RX_LOST]); in softing_handle_1()
191 fifo_rd = ioread8(&card->dpram[DPRAM_RX_RD]); in softing_handle_1()
192 fifo_wr = ioread8(&card->dpram[DPRAM_RX_WR]); in softing_handle_1()
199 memcpy_fromio(buf, &card->dpram[DPRAM_RX + DPRAM_RX_SIZE*fifo_rd], in softing_handle_1()
203 iowrite8(fifo_rd, &card->dpram[DPRAM_RX_RD]); in softing_handle_1()
237 /* update DPRAM */ in softing_handle_1()
238 iowrite8(state, &card->dpram[priv->index ? in softing_handle_1()
361 ir = ioread8(&card->dpram[DPRAM_V2_IRQ_TOHOST]); in softing_irq_v2()
362 iowrite8(0, &card->dpram[DPRAM_V2_IRQ_TOHOST]); in softing_irq_v2()
371 ir = ioread8(&card->dpram[DPRAM_IRQ_TOHOST]); in softing_irq_v1()
372 iowrite8(0, &card->dpram[DPRAM_IRQ_TOHOST]); in softing_irq_v1()
498 memcpy_toio(&card->dpram[j], stream, sizeof(stream)); in softing_card_boot()
501 memcpy_fromio(back, &card->dpram[j], sizeof(stream)); in softing_card_boot()
506 dev_alert(&card->pdev->dev, "dpram failed at 0x%04x\n", j); in softing_card_boot()
512 ret = softing_load_fw(card->pdat->boot.fw, card, card->dpram, in softing_card_boot()
518 ret = softing_load_fw(card->pdat->load.fw, card, card->dpram, in softing_card_boot()
747 iounmap(card->dpram); in softing_pdev_remove()
786 card->dpram = ioremap(card->dpram_phys, card->dpram_size); in softing_pdev_probe()
787 if (!card->dpram) { in softing_pdev_probe()
788 dev_alert(&card->pdev->dev, "dpram ioremap failed\n"); in softing_pdev_probe()
845 iounmap(card->dpram); in softing_pdev_probe()
863 MODULE_DESCRIPTION("Softing DPRAM CAN driver");