Lines Matching refs:mbx
361 static void poll_rx(struct atm_dev *dev,int mbx) in poll_rx() argument
370 pos = (zatm_dev->mbx_start[mbx] & ~0xffffUL) | zin(MTA(mbx)); in poll_rx()
371 while (x = zin(MWA(mbx)), (pos & 0xffff) != x) { in poll_rx()
379 if (((pos += 16) & 0xffff) == zatm_dev->mbx_end[mbx]) in poll_rx()
380 pos = zatm_dev->mbx_start[mbx]; in poll_rx()
476 zout(pos & 0xffff,MTA(mbx)); in poll_rx()
744 static void poll_tx(struct atm_dev *dev,int mbx) in poll_tx() argument
752 pos = (zatm_dev->mbx_start[mbx] & ~0xffffUL) | zin(MTA(mbx)); in poll_tx()
753 while (x = zin(MWA(mbx)), (pos & 0xffff) != x) { in poll_tx()
768 chan = (zatm_dev->mbx_start[mbx][pos >> 2] & uPD98401_TXI_CONN) in poll_tx()
778 if (((pos += 4) & 0xffff) == zatm_dev->mbx_end[mbx]) in poll_tx()
779 pos = zatm_dev->mbx_start[mbx]; in poll_tx()
781 zout(pos & 0xffff,MTA(mbx)); in poll_tx()
1308 void *mbx; in zatm_start() local
1313 mbx = dma_alloc_coherent(&pdev->dev, in zatm_start()
1315 if (!mbx) { in zatm_start()
1323 if (((unsigned long)mbx ^ mbx_dma) & 0xffff) { in zatm_start()
1326 dma_free_coherent(&pdev->dev, 2*MBX_SIZE(i), mbx, mbx_dma); in zatm_start()
1330 DPRINTK("mbx@0x%08lx-0x%08lx\n", mbx, mbx + MBX_SIZE(i)); in zatm_start()
1331 zatm_dev->mbx_start[i] = (unsigned long)mbx; in zatm_start()
1338 zout((unsigned long)mbx & 0xffff, MTA(i)); in zatm_start()
1339 zout((unsigned long)mbx & 0xffff, MWA(i)); in zatm_start()