Lines Matching refs:nic
1642 addr_high = ((tp->nic->node_addr[0] << 8) | in __tg3_set_mac_addr()
1643 tp->nic->node_addr[1]); in __tg3_set_mac_addr()
1644 addr_low = ((tp->nic->node_addr[2] << 24) | in __tg3_set_mac_addr()
1645 (tp->nic->node_addr[3] << 16) | in __tg3_set_mac_addr()
1646 (tp->nic->node_addr[4] << 8) | in __tg3_set_mac_addr()
1647 (tp->nic->node_addr[5] << 0)); in __tg3_set_mac_addr()
1661 addr_high = (tp->nic->node_addr[0] + in __tg3_set_mac_addr()
1662 tp->nic->node_addr[1] + in __tg3_set_mac_addr()
1663 tp->nic->node_addr[2] + in __tg3_set_mac_addr()
1664 tp->nic->node_addr[3] + in __tg3_set_mac_addr()
1665 tp->nic->node_addr[4] + in __tg3_set_mac_addr()
1666 tp->nic->node_addr[5]) & in __tg3_set_mac_addr()
2813 struct nic *nic = tp->nic; in tg3_get_device_address() local
2824 nic->node_addr[0] = (hi >> 8) & 0xff; in tg3_get_device_address()
2825 nic->node_addr[1] = (hi >> 0) & 0xff; in tg3_get_device_address()
2828 nic->node_addr[2] = (lo >> 24) & 0xff; in tg3_get_device_address()
2829 nic->node_addr[3] = (lo >> 16) & 0xff; in tg3_get_device_address()
2830 nic->node_addr[4] = (lo >> 8) & 0xff; in tg3_get_device_address()
2831 nic->node_addr[5] = (lo >> 0) & 0xff; in tg3_get_device_address()
2836 nic->node_addr[0] = ((hi >> 16) & 0xff); in tg3_get_device_address()
2837 nic->node_addr[1] = ((hi >> 24) & 0xff); in tg3_get_device_address()
2838 nic->node_addr[2] = ((lo >> 0) & 0xff); in tg3_get_device_address()
2839 nic->node_addr[3] = ((lo >> 8) & 0xff); in tg3_get_device_address()
2840 nic->node_addr[4] = ((lo >> 16) & 0xff); in tg3_get_device_address()
2841 nic->node_addr[5] = ((lo >> 24) & 0xff); in tg3_get_device_address()
2848 nic->node_addr[5] = lo & 0xff; in tg3_get_device_address()
2849 nic->node_addr[4] = (lo >> 8) & 0xff; in tg3_get_device_address()
2850 nic->node_addr[3] = (lo >> 16) & 0xff; in tg3_get_device_address()
2851 nic->node_addr[2] = (lo >> 24) & 0xff; in tg3_get_device_address()
2852 nic->node_addr[1] = hi & 0xff; in tg3_get_device_address()
2853 nic->node_addr[0] = (hi >> 8) & 0xff; in tg3_get_device_address()
2992 static int tg3_poll(struct nic *nic, int retrieve) in tg3_poll() argument
3015 nic->packetlen = len; in tg3_poll()
3016 memcpy(nic->packet, bus_to_virt(desc->addr_lo), len); in tg3_poll()
3055 static void tg3_transmit(struct nic *nic, const char *dst_addr, in tg3_transmit() argument
3093 memcpy(&frame[frame_idx].src_addr, nic->node_addr, ETH_ALEN); in tg3_transmit()
3140 static void tg3_irq(struct nic *nic __unused, irq_action_t action __unused) in tg3_irq()
3158 struct nic *nic = (struct nic *)dev; in tg3_probe() local
3170 nic->irqno = 0; in tg3_probe()
3171 nic->ioaddr = pdev->ioaddr & ~3; in tg3_probe()
3187 tp->nic = nic; in tg3_probe()
3234 printf("Ethernet addr: %!\n", nic->node_addr); in tg3_probe()
3273 nic->poll = tg3_poll; in tg3_probe()
3274 nic->transmit = tg3_transmit; in tg3_probe()
3275 nic->irq = tg3_irq; in tg3_probe()