Lines Matching refs:hwcfg
610 union at76_hwcfg *hwcfg = kmalloc(sizeof(*hwcfg), GFP_KERNEL); in at76_get_hw_config() local
612 if (!hwcfg) in at76_get_hw_config()
616 ret = at76_get_hw_cfg_intersil(priv->udev, hwcfg, in at76_get_hw_config()
617 sizeof(hwcfg->i)); in at76_get_hw_config()
620 memcpy(priv->mac_addr, hwcfg->i.mac_addr, ETH_ALEN); in at76_get_hw_config()
621 priv->regulatory_domain = hwcfg->i.regulatory_domain; in at76_get_hw_config()
623 ret = at76_get_hw_cfg(priv->udev, hwcfg, sizeof(hwcfg->r3)); in at76_get_hw_config()
626 memcpy(priv->mac_addr, hwcfg->r3.mac_addr, ETH_ALEN); in at76_get_hw_config()
627 priv->regulatory_domain = hwcfg->r3.regulatory_domain; in at76_get_hw_config()
629 ret = at76_get_hw_cfg(priv->udev, hwcfg, sizeof(hwcfg->r5)); in at76_get_hw_config()
632 memcpy(priv->mac_addr, hwcfg->r5.mac_addr, ETH_ALEN); in at76_get_hw_config()
633 priv->regulatory_domain = hwcfg->r5.regulatory_domain; in at76_get_hw_config()
637 kfree(hwcfg); in at76_get_hw_config()