Lines Matching refs:leptr

300 	u32 leptr;  in load_csrs()  local
303 leptr = 0; in load_csrs()
305 leptr = LANCE_ADDR(lp->init_block_dvma); in load_csrs()
308 sbus_writew(leptr & 0xffff, lp->lregs + RDP); in load_csrs()
310 sbus_writew(leptr >> 16, lp->lregs + RDP); in load_csrs()
324 __u32 leptr; in lance_init_ring_dvma() local
344 leptr = LANCE_ADDR(aib + libbuff_offset(tx_buf, i)); in lance_init_ring_dvma()
345 ib->btx_ring [i].tmd0 = leptr; in lance_init_ring_dvma()
346 ib->btx_ring [i].tmd1_hadr = leptr >> 16; in lance_init_ring_dvma()
354 leptr = LANCE_ADDR(aib + libbuff_offset(rx_buf, i)); in lance_init_ring_dvma()
356 ib->brx_ring [i].rmd0 = leptr; in lance_init_ring_dvma()
357 ib->brx_ring [i].rmd1_hadr = leptr >> 16; in lance_init_ring_dvma()
366 leptr = LANCE_ADDR(aib + libdesc_offset(brx_ring, 0)); in lance_init_ring_dvma()
367 ib->rx_len = (LANCE_LOG_RX_BUFFERS << 13) | (leptr >> 16); in lance_init_ring_dvma()
368 ib->rx_ptr = leptr; in lance_init_ring_dvma()
371 leptr = LANCE_ADDR(aib + libdesc_offset(btx_ring, 0)); in lance_init_ring_dvma()
372 ib->tx_len = (LANCE_LOG_TX_BUFFERS << 13) | (leptr >> 16); in lance_init_ring_dvma()
373 ib->tx_ptr = leptr; in lance_init_ring_dvma()
380 u32 leptr; in lance_init_ring_pio() local
400 leptr = libbuff_offset(tx_buf, i); in lance_init_ring_pio()
401 sbus_writew(leptr, &ib->btx_ring [i].tmd0); in lance_init_ring_pio()
402 sbus_writeb(leptr >> 16,&ib->btx_ring [i].tmd1_hadr); in lance_init_ring_pio()
412 leptr = libbuff_offset(rx_buf, i); in lance_init_ring_pio()
414 sbus_writew(leptr, &ib->brx_ring [i].rmd0); in lance_init_ring_pio()
415 sbus_writeb(leptr >> 16,&ib->brx_ring [i].rmd1_hadr); in lance_init_ring_pio()
425 leptr = libdesc_offset(brx_ring, 0); in lance_init_ring_pio()
426 sbus_writew((LANCE_LOG_RX_BUFFERS << 13) | (leptr >> 16), in lance_init_ring_pio()
428 sbus_writew(leptr, &ib->rx_ptr); in lance_init_ring_pio()
431 leptr = libdesc_offset(btx_ring, 0); in lance_init_ring_pio()
432 sbus_writew((LANCE_LOG_TX_BUFFERS << 13) | (leptr >> 16), in lance_init_ring_pio()
434 sbus_writew(leptr, &ib->tx_ptr); in lance_init_ring_pio()