Home
last modified time | relevance | path

Searched refs:mac_lo (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/drivers/net/dsa/microchip/
Dksz9477.c675 u32 mac_hi, mac_lo; in ksz9477_mdb_add() local
682 mac_lo = ((mdb->addr[2] << 24) | (mdb->addr[3] << 16)); in ksz9477_mdb_add()
683 mac_lo |= ((mdb->addr[4] << 8) | mdb->addr[5]); in ksz9477_mdb_add()
707 static_table[3] == mac_lo) { in ksz9477_mdb_add()
730 static_table[3] = mac_lo; in ksz9477_mdb_add()
755 u32 mac_hi, mac_lo; in ksz9477_mdb_del() local
761 mac_lo = ((mdb->addr[2] << 24) | (mdb->addr[3] << 16)); in ksz9477_mdb_del()
762 mac_lo |= ((mdb->addr[4] << 8) | mdb->addr[5]); in ksz9477_mdb_del()
787 static_table[3] == mac_lo) { in ksz9477_mdb_del()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/
Dnfp_net_sriov.c266 u16 mac_lo; in nfp_app_get_vf_config() local
277 mac_lo = readw(app->pf->vfcfg_tbl2 + vf_offset + NFP_NET_VF_CFG_MAC_LO); in nfp_app_get_vf_config()
286 put_unaligned_be16(mac_lo, &ivi->mac[4]); in nfp_app_get_vf_config()
/linux-6.6.21/drivers/net/ethernet/ti/
Dcpsw.h15 #define mac_lo(mac) (((mac)[4] << 0) | ((mac)[5] << 8)) macro
Dam65-cpsw-nuss.c144 u32 mac_lo = (dev_addr[4] << 0) | (dev_addr[5] << 8); in am65_cpsw_port_set_sl_mac() local
147 writel(mac_lo, slave->port_base + AM65_CPSW_PORTN_REG_SA_L); in am65_cpsw_port_set_sl_mac()
1938 u32 mac_lo, mac_hi, offset; in am65_cpsw_am654_get_efuse_macid() local
1954 regmap_read(syscon, offset, &mac_lo); in am65_cpsw_am654_get_efuse_macid()
1959 mac_addr[2] = (mac_lo >> 24) & 0xff; in am65_cpsw_am654_get_efuse_macid()
1960 mac_addr[3] = (mac_lo >> 16) & 0xff; in am65_cpsw_am654_get_efuse_macid()
1961 mac_addr[4] = (mac_lo >> 8) & 0xff; in am65_cpsw_am654_get_efuse_macid()
1962 mac_addr[5] = mac_lo & 0xff; in am65_cpsw_am654_get_efuse_macid()
Dcpsw_priv.c275 slave_write(slave, mac_lo(priv->mac_addr), SA_LO); in cpsw_set_slave_mac()
Dnetcp_ethss.c2062 writel(mac_lo(ndev->dev_addr), GBE_REG_ADDR(slave, port_regs, sa_lo)); in gbe_set_slave_mac()
/linux-6.6.21/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_hw.c409 u32 mac_hi, mac_lo; in netxen_p2_nic_set_mac_addr() local
417 mac_lo = ((u32)addr[0] << 16) | ((u32)addr[1] << 24); in netxen_p2_nic_set_mac_addr()
425 if (NXWR32(adapter, reg_lo, mac_lo) || NXWR32(adapter, reg_hi, mac_hi)) in netxen_p2_nic_set_mac_addr()
427 if (NXWR32(adapter, reg_lo, mac_lo) || NXWR32(adapter, reg_hi, mac_hi)) in netxen_p2_nic_set_mac_addr()
1025 uint32_t crbaddr, mac_hi, mac_lo; in netxen_p3_get_mac_addr() local
1031 mac_lo = NXRD32(adapter, crbaddr); in netxen_p3_get_mac_addr()
1035 *mac = le64_to_cpu((mac_lo >> 16) | ((u64)mac_hi << 16)); in netxen_p3_get_mac_addr()
1037 *mac = le64_to_cpu((u64)mac_lo | ((u64)mac_hi << 32)); in netxen_p3_get_mac_addr()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c11485 static void bnx2x_set_mac_buf(u8 *mac_buf, u32 mac_lo, u16 mac_hi) in bnx2x_set_mac_buf() argument
11488 __be32 mac_lo_be = cpu_to_be32(mac_lo); in bnx2x_set_mac_buf()