Lines Matching full:dpram
30 /* reset DPRAM */
35 iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) & ~1, in softing_set_reset_dpram()
36 &card->dpram[DPRAM_V2_RESET]); in softing_set_reset_dpram()
45 iowrite8(ioread8(&card->dpram[DPRAM_V2_RESET]) | 1, in softing_clr_reset_dpram()
46 &card->dpram[DPRAM_V2_RESET]); in softing_clr_reset_dpram()
73 fifo_wr = ioread8(&card->dpram[DPRAM_TX_WR]); in softing_netdev_start_xmit()
74 fifo_rd = ioread8(&card->dpram[DPRAM_TX_RD]); in softing_netdev_start_xmit()
100 memcpy_toio(&card->dpram[DPRAM_TX + DPRAM_TX_SIZE * fifo_wr], in softing_netdev_start_xmit()
104 iowrite8(fifo_wr, &card->dpram[DPRAM_TX_WR]); in softing_netdev_start_xmit()
148 * pop 1 entry from the DPRAM queue, and process
164 lost_msg = ioread8(&card->dpram[DPRAM_RX_LOST]); in softing_handle_1()
168 iowrite8(0, &card->dpram[DPRAM_RX_LOST]); in softing_handle_1()
192 fifo_rd = ioread8(&card->dpram[DPRAM_RX_RD]); in softing_handle_1()
193 fifo_wr = ioread8(&card->dpram[DPRAM_RX_WR]); in softing_handle_1()
200 memcpy_fromio(buf, &card->dpram[DPRAM_RX + DPRAM_RX_SIZE*fifo_rd], in softing_handle_1()
204 iowrite8(fifo_rd, &card->dpram[DPRAM_RX_RD]); in softing_handle_1()
238 /* update DPRAM */ in softing_handle_1()
239 iowrite8(state, &card->dpram[priv->index ? in softing_handle_1()
360 ir = ioread8(&card->dpram[DPRAM_V2_IRQ_TOHOST]); in softing_irq_v2()
361 iowrite8(0, &card->dpram[DPRAM_V2_IRQ_TOHOST]); in softing_irq_v2()
370 ir = ioread8(&card->dpram[DPRAM_IRQ_TOHOST]); in softing_irq_v1()
371 iowrite8(0, &card->dpram[DPRAM_IRQ_TOHOST]); in softing_irq_v1()
494 memcpy_toio(&card->dpram[j], stream, sizeof(stream)); in softing_card_boot()
497 memcpy_fromio(back, &card->dpram[j], sizeof(stream)); in softing_card_boot()
502 dev_alert(&card->pdev->dev, "dpram failed at 0x%04x\n", j); in softing_card_boot()
508 ret = softing_load_fw(card->pdat->boot.fw, card, card->dpram, in softing_card_boot()
514 ret = softing_load_fw(card->pdat->load.fw, card, card->dpram, in softing_card_boot()
748 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");