Lines Matching refs:mbase
152 while (c4inmeml(card->mbase+DOORBELL) != 0xffffffff) { in wait_for_doorbell()
166 c4outmeml(card->mbase+MBOX_PEEK_POKE, off); in c4_poke()
167 c4outmeml(card->mbase+DOORBELL, DBELL_ADDR); in c4_poke()
172 c4outmeml(card->mbase+MBOX_PEEK_POKE, value); in c4_poke()
173 c4outmeml(card->mbase+DOORBELL, DBELL_DATA | DBELL_ADDR); in c4_poke()
183 c4outmeml(card->mbase+MBOX_PEEK_POKE, off); in c4_peek()
184 c4outmeml(card->mbase+DOORBELL, DBELL_RNWR | DBELL_ADDR); in c4_peek()
189 *valuep = c4inmeml(card->mbase+MBOX_PEEK_POKE); in c4_peek()
303 c4outmeml(card->mbase+DOORBELL, DBELL_RESET_ARM); in c4_reset()
306 while (c4inmeml(card->mbase+DOORBELL) != 0xffffffff) { in c4_reset()
309 c4outmeml(card->mbase+DOORBELL, DBELL_ADDR); in c4_reset()
323 c4outmeml(card->mbase+PCI_OUT_INT_MASK, 0x0c); in c4_detect()
324 if (c4inmeml(card->mbase+PCI_OUT_INT_MASK) != 0x0c) in c4_detect()
327 c4outmeml(card->mbase+DOORBELL, DBELL_RESET_ARM); in c4_detect()
330 while (c4inmeml(card->mbase+DOORBELL) != 0xffffffff) { in c4_detect()
333 c4outmeml(card->mbase+DOORBELL, DBELL_ADDR); in c4_detect()
340 c4outmeml(card->mbase+MAILBOX_0, 0x55aa55aa); in c4_detect()
341 if (c4inmeml(card->mbase+MAILBOX_0) != 0x55aa55aa) return 3; in c4_detect()
343 c4outmeml(card->mbase+MAILBOX_0, 0xaa55aa55); in c4_detect()
344 if (c4inmeml(card->mbase+MAILBOX_0) != 0xaa55aa55) return 4; in c4_detect()
475 c4outmeml(card->mbase+MBOX_DOWN_ADDR, virt_to_phys(dma->sendbuf)); in c4_dispatch_tx()
476 c4outmeml(card->mbase+MBOX_DOWN_LEN, txlen); in c4_dispatch_tx()
480 c4outmeml(card->mbase+DOORBELL, DBELL_DOWN_ARM); in c4_dispatch_tx()
681 __u32 status = c4inmeml(card->mbase+DOORBELL); in c4_handle_interrupt()
685 c4outmeml(card->mbase+PCI_OUT_INT_MASK, 0x0c); in c4_handle_interrupt()
702 c4outmeml(card->mbase+DOORBELL, status); in c4_handle_interrupt()
705 card->dma->recvlen = c4inmeml(card->mbase+MBOX_UP_LEN); in c4_handle_interrupt()
706 c4outmeml(card->mbase+MBOX_UP_LEN, 0); in c4_handle_interrupt()
709 c4outmeml(card->mbase+MBOX_UP_LEN, sizeof(card->dma->recvbuf)); in c4_handle_interrupt()
710 c4outmeml(card->mbase+DOORBELL, DBELL_UP_ARM); in c4_handle_interrupt()
717 if (c4inmeml(card->mbase+MBOX_DOWN_LEN) == 0) { in c4_handle_interrupt()
882 c4outmeml(card->mbase+MBOX_UP_LEN, 0); in c4_load_firmware()
883 c4outmeml(card->mbase+MBOX_DOWN_LEN, 0); in c4_load_firmware()
884 c4outmeml(card->mbase+DOORBELL, DBELL_INIT); in c4_load_firmware()
886 c4outmeml(card->mbase+DOORBELL, in c4_load_firmware()
889 c4outmeml(card->mbase+PCI_OUT_INT_MASK, 0x08); in c4_load_firmware()
892 c4outmeml(card->mbase+MBOX_UP_ADDR, virt_to_phys(card->dma->recvbuf)); in c4_load_firmware()
893 c4outmeml(card->mbase+MBOX_UP_LEN, sizeof(card->dma->recvbuf)); in c4_load_firmware()
894 c4outmeml(card->mbase+DOORBELL, DBELL_UP_ARM); in c4_load_firmware()
947 iounmap(card->mbase); in c4_remove_ctr()
1186 card->mbase = ioremap_nocache(card->membase, 128); in c4_add_card()
1187 if (card->mbase == 0) { in c4_add_card()
1200 iounmap(card->mbase); in c4_add_card()
1215 iounmap(card->mbase); in c4_add_card()
1235 iounmap(card->mbase); in c4_add_card()