Lines Matching refs:leptr

303 	u32 leptr;  in load_csrs()  local
306 leptr = 0; in load_csrs()
308 leptr = LANCE_ADDR(lp->init_block_dvma); in load_csrs()
311 sbus_writew(leptr & 0xffff, lp->lregs + RDP); in load_csrs()
313 sbus_writew(leptr >> 16, lp->lregs + RDP); in load_csrs()
327 __u32 leptr; in lance_init_ring_dvma() local
347 leptr = LANCE_ADDR(aib + libbuff_offset(tx_buf, i)); in lance_init_ring_dvma()
348 ib->btx_ring [i].tmd0 = leptr; in lance_init_ring_dvma()
349 ib->btx_ring [i].tmd1_hadr = leptr >> 16; in lance_init_ring_dvma()
357 leptr = LANCE_ADDR(aib + libbuff_offset(rx_buf, i)); in lance_init_ring_dvma()
359 ib->brx_ring [i].rmd0 = leptr; in lance_init_ring_dvma()
360 ib->brx_ring [i].rmd1_hadr = leptr >> 16; in lance_init_ring_dvma()
369 leptr = LANCE_ADDR(aib + libdesc_offset(brx_ring, 0)); in lance_init_ring_dvma()
370 ib->rx_len = (LANCE_LOG_RX_BUFFERS << 13) | (leptr >> 16); in lance_init_ring_dvma()
371 ib->rx_ptr = leptr; in lance_init_ring_dvma()
374 leptr = LANCE_ADDR(aib + libdesc_offset(btx_ring, 0)); in lance_init_ring_dvma()
375 ib->tx_len = (LANCE_LOG_TX_BUFFERS << 13) | (leptr >> 16); in lance_init_ring_dvma()
376 ib->tx_ptr = leptr; in lance_init_ring_dvma()
383 u32 leptr; in lance_init_ring_pio() local
403 leptr = libbuff_offset(tx_buf, i); in lance_init_ring_pio()
404 sbus_writew(leptr, &ib->btx_ring [i].tmd0); in lance_init_ring_pio()
405 sbus_writeb(leptr >> 16,&ib->btx_ring [i].tmd1_hadr); in lance_init_ring_pio()
415 leptr = libbuff_offset(rx_buf, i); in lance_init_ring_pio()
417 sbus_writew(leptr, &ib->brx_ring [i].rmd0); in lance_init_ring_pio()
418 sbus_writeb(leptr >> 16,&ib->brx_ring [i].rmd1_hadr); in lance_init_ring_pio()
428 leptr = libdesc_offset(brx_ring, 0); in lance_init_ring_pio()
429 sbus_writew((LANCE_LOG_RX_BUFFERS << 13) | (leptr >> 16), in lance_init_ring_pio()
431 sbus_writew(leptr, &ib->rx_ptr); in lance_init_ring_pio()
434 leptr = libdesc_offset(btx_ring, 0); in lance_init_ring_pio()
435 sbus_writew((LANCE_LOG_TX_BUFFERS << 13) | (leptr >> 16), in lance_init_ring_pio()
437 sbus_writew(leptr, &ib->tx_ptr); in lance_init_ring_pio()