Lines Matching refs:memsz
156 u16 memsz = FIFO_SIZE * (1 << fsz_type); in bdx_fifo_init() local
160 f->va = dma_alloc_coherent(&priv->pdev->dev, memsz + FIFO_EXTRA_SPACE, in bdx_fifo_init()
172 f->memsz = memsz; in bdx_fifo_init()
173 f->size_mask = memsz - 1; in bdx_fifo_init()
190 f->memsz + FIFO_EXTRA_SPACE, f->va, f->da); in bdx_fifo_free()
1000 priv->rxdb = bdx_rxdb_create(priv->rxf_fifo0.m.memsz / in bdx_rx_init()
1110 delta = f->m.wptr - f->m.memsz; in bdx_rx_alloc_skbs()
1114 memcpy(f->m.va, f->m.va + f->m.memsz, delta); in bdx_rx_alloc_skbs()
1165 delta = f->m.wptr - f->m.memsz; in bdx_recycle_skb()
1169 memcpy(f->m.va, f->m.va + f->m.memsz, delta); in bdx_recycle_skb()
1212 size = f->m.memsz + size; /* size is negative :-) */ in bdx_rx_receive()
1233 tmp_len = f->m.rptr - f->m.memsz; in bdx_rx_receive()
1239 memcpy(f->m.va + f->m.memsz, f->m.va, tmp_len); in bdx_rx_receive()
1411 int memsz = FIFO_SIZE * (1 << (sz_type + 1)); in bdx_tx_db_init() local
1413 d->start = vmalloc(memsz); in bdx_tx_db_init()
1422 d->size = memsz / sizeof(struct tx_map) - 1; in bdx_tx_db_init()
1570 fsize = f->m.memsz + fsize; in bdx_tx_space()
1605 BDX_ASSERT(f->m.wptr >= f->m.memsz); /* started with valid wptr */ in bdx_tx_transmit()
1639 len = f->m.wptr - f->m.memsz; in bdx_tx_transmit()
1643 BDX_ASSERT(len > f->m.memsz); in bdx_tx_transmit()
1644 memcpy(f->m.va, f->m.va + f->m.memsz, len); in bdx_tx_transmit()
1647 BDX_ASSERT(f->m.wptr >= f->m.memsz); /* finished with valid wptr */ in bdx_tx_transmit()
1704 BDX_ASSERT(f->m.rptr >= f->m.memsz); /* started with valid rptr */ in bdx_tx_cleanup()
1727 BDX_ASSERT((f->m.wptr & TXF_WPTR_WR_PTR) >= f->m.memsz); in bdx_tx_cleanup()
1799 int i = f->m.memsz - f->m.wptr; in bdx_tx_push_desc()