Lines Matching refs:mbx
359 static void poll_rx(struct atm_dev *dev,int mbx) in poll_rx() argument
368 pos = (zatm_dev->mbx_start[mbx] & ~0xffffUL) | zin(MTA(mbx)); in poll_rx()
369 while (x = zin(MWA(mbx)), (pos & 0xffff) != x) { in poll_rx()
377 if (((pos += 16) & 0xffff) == zatm_dev->mbx_end[mbx]) in poll_rx()
378 pos = zatm_dev->mbx_start[mbx]; in poll_rx()
474 zout(pos & 0xffff,MTA(mbx)); in poll_rx()
742 static void poll_tx(struct atm_dev *dev,int mbx) in poll_tx() argument
750 pos = (zatm_dev->mbx_start[mbx] & ~0xffffUL) | zin(MTA(mbx)); in poll_tx()
751 while (x = zin(MWA(mbx)), (pos & 0xffff) != x) { in poll_tx()
766 chan = (zatm_dev->mbx_start[mbx][pos >> 2] & uPD98401_TXI_CONN) in poll_tx()
776 if (((pos += 4) & 0xffff) == zatm_dev->mbx_end[mbx]) in poll_tx()
777 pos = zatm_dev->mbx_start[mbx]; in poll_tx()
779 zout(pos & 0xffff,MTA(mbx)); in poll_tx()
1306 void *mbx; in zatm_start() local
1311 mbx = dma_alloc_coherent(&pdev->dev, in zatm_start()
1313 if (!mbx) { in zatm_start()
1321 if (((unsigned long)mbx ^ mbx_dma) & 0xffff) { in zatm_start()
1324 dma_free_coherent(&pdev->dev, 2*MBX_SIZE(i), mbx, mbx_dma); in zatm_start()
1328 DPRINTK("mbx@0x%08lx-0x%08lx\n", mbx, mbx + MBX_SIZE(i)); in zatm_start()
1329 zatm_dev->mbx_start[i] = (unsigned long)mbx; in zatm_start()
1336 zout((unsigned long)mbx & 0xffff, MTA(i)); in zatm_start()
1337 zout((unsigned long)mbx & 0xffff, MWA(i)); in zatm_start()