Lines Matching refs:mbase
148 while (c4inmeml(card->mbase+DOORBELL) != 0xffffffff) {
162 c4outmeml(card->mbase+MBOX_PEEK_POKE, off);
163 c4outmeml(card->mbase+DOORBELL, DBELL_ADDR);
168 c4outmeml(card->mbase+MBOX_PEEK_POKE, value);
169 c4outmeml(card->mbase+DOORBELL, DBELL_DATA | DBELL_ADDR);
179 c4outmeml(card->mbase+MBOX_PEEK_POKE, off);
180 c4outmeml(card->mbase+DOORBELL, DBELL_RNWR | DBELL_ADDR);
185 *valuep = c4inmeml(card->mbase+MBOX_PEEK_POKE);
297 c4outmeml(card->mbase+DOORBELL, DBELL_RESET_ARM);
300 while (c4inmeml(card->mbase+DOORBELL) != 0xffffffff) {
303 c4outmeml(card->mbase+DOORBELL, DBELL_ADDR);
317 c4outmeml(card->mbase+PCI_OUT_INT_MASK, 0x0c);
318 if (c4inmeml(card->mbase+PCI_OUT_INT_MASK) != 0x0c)
321 c4outmeml(card->mbase+DOORBELL, DBELL_RESET_ARM);
324 while (c4inmeml(card->mbase+DOORBELL) != 0xffffffff) {
327 c4outmeml(card->mbase+DOORBELL, DBELL_ADDR);
334 c4outmeml(card->mbase+MAILBOX_0, 0x55aa55aa);
335 if (c4inmeml(card->mbase+MAILBOX_0) != 0x55aa55aa) return 3;
337 c4outmeml(card->mbase+MAILBOX_0, 0xaa55aa55);
338 if (c4inmeml(card->mbase+MAILBOX_0) != 0xaa55aa55) return 4;
465 c4outmeml(card->mbase+MBOX_DOWN_ADDR, dma->sendbuf.dmaaddr);
466 c4outmeml(card->mbase+MBOX_DOWN_LEN, txlen);
470 c4outmeml(card->mbase+DOORBELL, DBELL_DOWN_ARM);
669 status = c4inmeml(card->mbase+DOORBELL);
673 c4outmeml(card->mbase+PCI_OUT_INT_MASK, 0x0c);
693 c4outmeml(card->mbase+DOORBELL, status);
696 card->dma->recvlen = c4inmeml(card->mbase+MBOX_UP_LEN);
697 c4outmeml(card->mbase+MBOX_UP_LEN, 0);
700 c4outmeml(card->mbase+MBOX_UP_LEN, card->dma->recvbuf.size);
701 c4outmeml(card->mbase+DOORBELL, DBELL_UP_ARM);
708 if (c4inmeml(card->mbase+MBOX_DOWN_LEN) == 0) {
858 c4outmeml(card->mbase+MBOX_UP_LEN, 0);
859 c4outmeml(card->mbase+MBOX_DOWN_LEN, 0);
860 c4outmeml(card->mbase+DOORBELL, DBELL_INIT);
862 c4outmeml(card->mbase+DOORBELL,
865 c4outmeml(card->mbase+PCI_OUT_INT_MASK, 0x08);
868 c4outmeml(card->mbase+MBOX_UP_ADDR, card->dma->recvbuf.dmaaddr);
869 c4outmeml(card->mbase+MBOX_UP_LEN, card->dma->recvbuf.size);
870 c4outmeml(card->mbase+DOORBELL, DBELL_UP_ARM);
926 iounmap(card->mbase);
1159 card->mbase = ioremap(card->membase, 128);
1160 if (card->mbase == 0) {
1219 iounmap(card->mbase);