Lines Matching refs:np

312 	 * Locking: spin_lock(&np->lock); */
323 * Locking: Within irq hander or disable_irq+spin_lock(&np->lock);
341 static struct forcedeth_private *np;
461 writel(np->linkspeed, base + NvRegLinkSpeed);
525 unsigned int refill_rx = np->refill_rx;
527 //while (np->cur_rx != refill_rx) {
539 np->refill_rx = refill_rx;
540 if (np->cur_rx - refill_rx == RX_RING)
549 adv = mii_rw(nic, np->phyaddr, MII_ADVERTISE, MII_READ);
550 lpa = mii_rw(nic, np->phyaddr, MII_LPA, MII_READ);
573 if (np->duplex != newdup || np->linkspeed != newls) {
574 np->duplex = newdup;
575 np->linkspeed = newls;
587 np->next_tx = np->nic_tx = 0;
592 np->cur_rx = 0;
593 np->refill_rx = 0;
657 np->in_shutdown = 0;
675 np->linkspeed = NVREG_LINKSPEED_FORCE | NVREG_LINKSPEED_10;
676 np->duplex = 0;
701 np->phyaddr = i;
714 np->linkspeed & NVREG_LINKSPEED_10 ? 10 : 100,
715 np->duplex ? "Full" : "Half");
717 writel(NVREG_MISC1_FORCE | (np->duplex ? 0 : NVREG_MISC1_HD),
735 writel((np->
771 writel(np->irqmask, base + NvRegIrqMask);
785 (mii_rw(nic, np->phyaddr, MII_BMSR, MII_READ) &
810 i = np->cur_rx % RX_RING;
827 np->cur_rx++;
846 int nr = np->next_tx % TX_RING;
850 //np->tx_skbuff[nr] = ptxb;
867 tx_ring[nr].Flags = np->tx_flags;
871 tx_ring[nr].Flags = np->tx_flags;
872 np->next_tx++;
891 np->in_shutdown = 1;
903 writel(np->orig_mac[0], base + NvRegMacAddrA);
904 writel(np->orig_mac[1], base + NvRegMacAddrB);
945 np = &npx;
961 np->orig_mac[0] = readl(base + NvRegMacAddrA);
962 np->orig_mac[1] = readl(base + NvRegMacAddrB);
964 nic->node_addr[0] = (np->orig_mac[1] >> 8) & 0xff;
965 nic->node_addr[1] = (np->orig_mac[1] >> 0) & 0xff;
966 nic->node_addr[2] = (np->orig_mac[0] >> 24) & 0xff;
967 nic->node_addr[3] = (np->orig_mac[0] >> 16) & 0xff;
968 nic->node_addr[4] = (np->orig_mac[0] >> 8) & 0xff;
969 nic->node_addr[5] = (np->orig_mac[0] >> 0) & 0xff;
992 np->tx_flags =
997 np->irqmask = NVREG_IRQMASK_WANTED_2;
998 np->irqmask |= NVREG_IRQ_TIMER;
1001 np->tx_flags |= cpu_to_le16(NV_TX_LASTPACKET1);
1002 np->irqmask = NVREG_IRQMASK_WANTED_2;
1003 np->irqmask |= NVREG_IRQ_TIMER;
1006 np->tx_flags |= cpu_to_le16(NV_TX_LASTPACKET1);
1007 np->irqmask = NVREG_IRQMASK_WANTED_2;
1008 np->irqmask |= NVREG_IRQ_TIMER;