Lines Matching refs:uc
80 struct pcnet_uncached_priv *uc; member
295 struct pcnet_uncached_priv *uc; in pcnet_init() local
340 sizeof(*lp->uc)); in pcnet_init()
341 flush_dcache_range(addr, addr + sizeof(*lp->uc)); in pcnet_init()
343 lp->uc = (struct pcnet_uncached_priv *)addr; in pcnet_init()
351 uc = lp->uc; in pcnet_init()
353 uc->init_block.mode = cpu_to_le16(0x0000); in pcnet_init()
354 uc->init_block.filter[0] = 0x00000000; in pcnet_init()
355 uc->init_block.filter[1] = 0x00000000; in pcnet_init()
363 uc->rx_ring[i].base = cpu_to_le32(addr); in pcnet_init()
364 uc->rx_ring[i].buf_length = cpu_to_le16(-PKT_BUF_SZ); in pcnet_init()
365 uc->rx_ring[i].status = cpu_to_le16(0x8000); in pcnet_init()
368 uc->rx_ring[i].base, uc->rx_ring[i].buf_length, in pcnet_init()
369 uc->rx_ring[i].status); in pcnet_init()
378 uc->tx_ring[i].base = 0; in pcnet_init()
379 uc->tx_ring[i].status = 0; in pcnet_init()
385 PCNET_DEBUG1("Init block at 0x%p: MAC", &lp->uc->init_block); in pcnet_init()
388 lp->uc->init_block.phys_addr[i] = dev->enetaddr[i]; in pcnet_init()
389 PCNET_DEBUG1(" %02x", lp->uc->init_block.phys_addr[i]); in pcnet_init()
392 uc->init_block.tlen_rlen = cpu_to_le16(TX_RING_LEN_BITS | in pcnet_init()
394 addr = pcnet_virt_to_mem(dev, uc->rx_ring); in pcnet_init()
395 uc->init_block.rx_ring = cpu_to_le32(addr); in pcnet_init()
396 addr = pcnet_virt_to_mem(dev, uc->tx_ring); in pcnet_init()
397 uc->init_block.tx_ring = cpu_to_le32(addr); in pcnet_init()
400 uc->init_block.tlen_rlen, in pcnet_init()
401 uc->init_block.rx_ring, uc->init_block.tx_ring); in pcnet_init()
407 addr = pcnet_virt_to_mem(dev, &lp->uc->init_block); in pcnet_init()
438 struct pcnet_tx_head *entry = &lp->uc->tx_ring[lp->cur_tx]; in pcnet_send()
490 entry = &lp->uc->rx_ring[lp->cur_rx]; in pcnet_recv()