Lines Matching defs:mac

82 #define DEV_HAS_CORRECT_MACADDR    0x0004000  /* device supports correct mac address order */
466 /* rx/tx mac addr + type + vlan + align + slack*/
3155 u32 mac[2];
3157 mac[0] = (dev->dev_addr[0] << 0) + (dev->dev_addr[1] << 8) +
3159 mac[1] = (dev->dev_addr[4] << 0) + (dev->dev_addr[5] << 8);
3161 writel(mac[0], base + NvRegMacAddrA);
3162 writel(mac[1], base + NvRegMacAddrB);
3188 /* set mac address */
5720 u8 mac[ETH_ALEN];
5885 /* read the mac address */
5890 /* check the workaround bit for correct mac address order */
5893 /* mac address is already in correct order */
5894 mac[0] = (np->orig_mac[0] >> 0) & 0xff;
5895 mac[1] = (np->orig_mac[0] >> 8) & 0xff;
5896 mac[2] = (np->orig_mac[0] >> 16) & 0xff;
5897 mac[3] = (np->orig_mac[0] >> 24) & 0xff;
5898 mac[4] = (np->orig_mac[1] >> 0) & 0xff;
5899 mac[5] = (np->orig_mac[1] >> 8) & 0xff;
5901 /* mac address is already in correct order */
5902 mac[0] = (np->orig_mac[0] >> 0) & 0xff;
5903 mac[1] = (np->orig_mac[0] >> 8) & 0xff;
5904 mac[2] = (np->orig_mac[0] >> 16) & 0xff;
5905 mac[3] = (np->orig_mac[0] >> 24) & 0xff;
5906 mac[4] = (np->orig_mac[1] >> 0) & 0xff;
5907 mac[5] = (np->orig_mac[1] >> 8) & 0xff;
5909 * Set orig mac address back to the reversed version.
5913 np->orig_mac[0] = (mac[5] << 0) + (mac[4] << 8) +
5914 (mac[3] << 16) + (mac[2] << 24);
5915 np->orig_mac[1] = (mac[1] << 0) + (mac[0] << 8);
5917 /* need to reverse mac address to correct order */
5918 mac[0] = (np->orig_mac[1] >> 8) & 0xff;
5919 mac[1] = (np->orig_mac[1] >> 0) & 0xff;
5920 mac[2] = (np->orig_mac[0] >> 24) & 0xff;
5921 mac[3] = (np->orig_mac[0] >> 16) & 0xff;
5922 mac[4] = (np->orig_mac[0] >> 8) & 0xff;
5923 mac[5] = (np->orig_mac[0] >> 0) & 0xff;
5926 "%s: set workaround bit for reversed mac addr\n",
5930 if (is_valid_ether_addr(mac)) {
5931 eth_hw_addr_set(dev, mac);
5934 * Bad mac address. At least one bios sets the mac address
5939 mac);
5945 /* set mac address */
6027 /* management unit running on the mac? */