Lines Matching refs:memsz
157 u16 memsz = FIFO_SIZE * (1 << fsz_type); in bdx_fifo_init() local
162 memsz + FIFO_EXTRA_SPACE, &f->da); in bdx_fifo_init()
173 f->memsz = memsz; in bdx_fifo_init()
174 f->size_mask = memsz - 1; in bdx_fifo_init()
191 f->memsz + FIFO_EXTRA_SPACE, f->va, f->da); in bdx_fifo_free()
1013 priv->rxdb = bdx_rxdb_create(priv->rxf_fifo0.m.memsz / in bdx_rx_init()
1125 delta = f->m.wptr - f->m.memsz; in bdx_rx_alloc_skbs()
1129 memcpy(f->m.va, f->m.va + f->m.memsz, delta); in bdx_rx_alloc_skbs()
1182 delta = f->m.wptr - f->m.memsz; in bdx_recycle_skb()
1186 memcpy(f->m.va, f->m.va + f->m.memsz, delta); in bdx_recycle_skb()
1229 size = f->m.memsz + size; /* size is negative :-) */ in bdx_rx_receive()
1250 tmp_len = f->m.rptr - f->m.memsz; in bdx_rx_receive()
1256 memcpy(f->m.va + f->m.memsz, f->m.va, tmp_len); in bdx_rx_receive()
1441 int memsz = FIFO_SIZE * (1 << (sz_type + 1)); in bdx_tx_db_init() local
1443 d->start = vmalloc(memsz); in bdx_tx_db_init()
1452 d->size = memsz / sizeof(struct tx_map) - 1; in bdx_tx_db_init()
1600 fsize = f->m.memsz + fsize; in bdx_tx_space()
1635 BDX_ASSERT(f->m.wptr >= f->m.memsz); /* started with valid wptr */ in bdx_tx_transmit()
1669 len = f->m.wptr - f->m.memsz; in bdx_tx_transmit()
1673 BDX_ASSERT(len > f->m.memsz); in bdx_tx_transmit()
1674 memcpy(f->m.va, f->m.va + f->m.memsz, len); in bdx_tx_transmit()
1677 BDX_ASSERT(f->m.wptr >= f->m.memsz); /* finished with valid wptr */ in bdx_tx_transmit()
1734 BDX_ASSERT(f->m.rptr >= f->m.memsz); /* started with valid rptr */ in bdx_tx_cleanup()
1757 BDX_ASSERT((f->m.wptr & TXF_WPTR_WR_PTR) >= f->m.memsz); in bdx_tx_cleanup()
1827 int i = f->m.memsz - f->m.wptr; in bdx_tx_push_desc()