/net/core/ |
D | dev_addr_lists_test.c | 68 u8 addr[ETH_ALEN]; in dev_addr_test_basic() local 72 memset(addr, 2, sizeof(addr)); in dev_addr_test_basic() 73 eth_hw_addr_set(netdev, addr); in dev_addr_test_basic() 74 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic() 76 memset(addr, 3, sizeof(addr)); in dev_addr_test_basic() 77 dev_addr_set(netdev, addr); in dev_addr_test_basic() 78 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic() 85 u8 addr[ETH_ALEN]; in dev_addr_test_sync_one() local 89 memset(addr, 1, sizeof(addr)); in dev_addr_test_sync_one() 90 eth_hw_addr_set(netdev, addr); in dev_addr_test_sync_one() [all …]
|
D | dev_addr_lists.c | 31 diff = memcmp(new->addr, ha->addr, addr_len); in __hw_addr_insert() 51 __hw_addr_create(const unsigned char *addr, int addr_len, in __hw_addr_create() argument 63 memcpy(ha->addr, addr, addr_len); in __hw_addr_create() 74 const unsigned char *addr, int addr_len, in __hw_addr_add_ex() argument 88 diff = memcmp(addr, ha->addr, addr_len); in __hw_addr_add_ex() 118 ha = __hw_addr_create(addr, addr_len, addr_type, global, sync); in __hw_addr_add_ex() 132 const unsigned char *addr, int addr_len, in __hw_addr_add() argument 135 return __hw_addr_add_ex(list, addr, addr_len, addr_type, false, false, in __hw_addr_add() 167 const unsigned char *addr, int addr_len, in __hw_addr_lookup() argument 176 int diff = memcmp(addr, ha->addr, addr_len); in __hw_addr_lookup() [all …]
|
D | of_net.c | 50 static int of_get_mac_addr(struct device_node *np, const char *name, u8 *addr) in of_get_mac_addr() argument 55 memcpy(addr, pp->value, ETH_ALEN); in of_get_mac_addr() 61 int of_get_mac_address_nvmem(struct device_node *np, u8 *addr) in of_get_mac_address_nvmem() argument 73 ret = nvmem_get_mac_address(&pdev->dev, addr); in of_get_mac_address_nvmem() 93 memcpy(addr, mac, ETH_ALEN); in of_get_mac_address_nvmem() 126 int of_get_mac_address(struct device_node *np, u8 *addr) in of_get_mac_address() argument 133 ret = of_get_mac_addr(np, "mac-address", addr); in of_get_mac_address() 137 ret = of_get_mac_addr(np, "local-mac-address", addr); in of_get_mac_address() 141 ret = of_get_mac_addr(np, "address", addr); in of_get_mac_address() 145 return of_get_mac_address_nvmem(np, addr); in of_get_mac_address() [all …]
|
/net/sctp/ |
D | bind_addr.c | 34 union sctp_addr *addr, enum sctp_scope scope, 48 struct sctp_sockaddr_entry *addr; in sctp_bind_addr_copy() local 55 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_copy() 56 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy() 67 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_copy() 68 error = sctp_copy_one_addr(net, dest, &addr->a, in sctp_bind_addr_copy() 98 struct sctp_sockaddr_entry *addr; in sctp_bind_addr_dup() local 104 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_dup() 105 error = sctp_add_bind_addr(dest, &addr->a, sizeof(addr->a), in sctp_bind_addr_dup() 126 struct sctp_sockaddr_entry *addr, *temp; in sctp_bind_addr_clean() local [all …]
|
D | ipv6.c | 64 static void sctp_v6_to_addr(union sctp_addr *addr, struct in6_addr *saddr, 79 struct sctp_sockaddr_entry *addr = NULL; in sctp_inet6addr_event() local 86 addr = kzalloc(sizeof(*addr), GFP_ATOMIC); in sctp_inet6addr_event() 87 if (addr) { in sctp_inet6addr_event() 88 addr->a.v6.sin6_family = AF_INET6; in sctp_inet6addr_event() 89 addr->a.v6.sin6_addr = ifa->addr; in sctp_inet6addr_event() 90 addr->a.v6.sin6_scope_id = ifa->idev->dev->ifindex; in sctp_inet6addr_event() 91 addr->valid = 1; in sctp_inet6addr_event() 93 list_add_tail_rcu(&addr->list, &net->sctp.local_addr_list); in sctp_inet6addr_event() 94 sctp_addr_wq_mgmt(net, addr, SCTP_ADDR_NEW); in sctp_inet6addr_event() [all …]
|
D | protocol.c | 76 struct sctp_sockaddr_entry *addr; in sctp_v4_copy_addrlist() local 86 addr = kzalloc(sizeof(*addr), GFP_ATOMIC); in sctp_v4_copy_addrlist() 87 if (addr) { in sctp_v4_copy_addrlist() 88 addr->a.v4.sin_family = AF_INET; in sctp_v4_copy_addrlist() 89 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_v4_copy_addrlist() 90 addr->valid = 1; in sctp_v4_copy_addrlist() 91 INIT_LIST_HEAD(&addr->list); in sctp_v4_copy_addrlist() 92 list_add_tail(&addr->list, addrlist); in sctp_v4_copy_addrlist() 121 struct sctp_sockaddr_entry *addr; in sctp_free_local_addr_list() local 125 addr = list_entry(pos, struct sctp_sockaddr_entry, list); in sctp_free_local_addr_list() [all …]
|
/net/can/j1939/ |
D | address-claim.c | 42 if (skb->len < 3 || skcb->addr.pgn != J1939_PGN_REQUEST) in j1939_ac_msg_is_request() 61 if (skcb->addr.src_name != j1939_skb_to_name(skb)) { in j1939_ac_verify_outgoing() 66 if (skcb->addr.sa == J1939_NO_ADDR) { in j1939_ac_verify_outgoing() 72 if (skcb->addr.dst_name || skcb->addr.da != J1939_NO_ADDR) { in j1939_ac_verify_outgoing() 83 u8 addr; in j1939_ac_fixup() local 86 if (skcb->addr.pgn == J1939_PGN_ADDRESS_CLAIMED) { in j1939_ac_fixup() 93 ecu = j1939_ecu_get_by_name(priv, skcb->addr.src_name); in j1939_ac_fixup() 97 if (ecu->addr != skcb->addr.sa) in j1939_ac_fixup() 101 } else if (skcb->addr.src_name) { in j1939_ac_fixup() 103 addr = j1939_name_to_addr(priv, skcb->addr.src_name); in j1939_ac_fixup() [all …]
|
D | socket.c | 219 if (jsk->addr.src_name && skcb->addr.dst_name) { in j1939_sk_match_dst() 220 if (jsk->addr.src_name != skcb->addr.dst_name) in j1939_sk_match_dst() 228 if (j1939_address_is_unicast(skcb->addr.da)) { in j1939_sk_match_dst() 229 if (jsk->addr.sa != skcb->addr.da) in j1939_sk_match_dst() 244 if (jsk->addr.dst_name && skcb->addr.src_name) { in j1939_sk_match_dst() 245 if (jsk->addr.dst_name != skcb->addr.src_name) in j1939_sk_match_dst() 248 if (jsk->addr.da != skcb->addr.sa) in j1939_sk_match_dst() 255 jsk->pgn_rx_filter != skcb->addr.pgn) in j1939_sk_match_dst() 278 if ((skcb->addr.pgn & f->pgn_mask) != f->pgn) in j1939_sk_match_filter() 280 if ((skcb->addr.sa & f->addr_mask) != f->addr) in j1939_sk_match_filter() [all …]
|
D | bus.c | 43 return j1939_ecu_find_by_addr_locked(priv, ecu->addr) == ecu; in j1939_ecu_is_mapped_locked() 55 if (!j1939_address_is_unicast(ecu->addr)) in j1939_ecu_map_locked() 58 ent = &priv->ents[ecu->addr]; in j1939_ecu_map_locked() 62 ecu->addr, ecu->name); in j1939_ecu_map_locked() 79 if (!j1939_address_is_unicast(ecu->addr)) in j1939_ecu_unmap_locked() 85 ent = &priv->ents[ecu->addr]; in j1939_ecu_unmap_locked() 158 ecu->addr = J1939_IDLE_ADDR; in j1939_ecu_create_locked() 173 u8 addr) in j1939_ecu_find_by_addr_locked() argument 177 return priv->ents[addr].ecu; in j1939_ecu_find_by_addr_locked() 180 struct j1939_ecu *j1939_ecu_get_by_addr_locked(struct j1939_priv *priv, u8 addr) in j1939_ecu_get_by_addr_locked() argument [all …]
|
/net/ceph/ |
D | decode.c | 11 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_versioned() argument 26 ceph_decode_copy_safe(p, end, &addr->type, sizeof(addr->type), bad); in ceph_decode_entity_addr_versioned() 28 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_versioned() 31 if (addr_len > sizeof(addr->in_addr)) in ceph_decode_entity_addr_versioned() 34 memset(&addr->in_addr, 0, sizeof(addr->in_addr)); in ceph_decode_entity_addr_versioned() 36 ceph_decode_copy_safe(p, end, &addr->in_addr, addr_len, bad); in ceph_decode_entity_addr_versioned() 38 addr->in_addr.ss_family = in ceph_decode_entity_addr_versioned() 39 le16_to_cpu((__force __le16)addr->in_addr.ss_family); in ceph_decode_entity_addr_versioned() 51 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_legacy() argument 62 addr->type = CEPH_ENTITY_ADDR_TYPE_LEGACY; in ceph_decode_entity_addr_legacy() [all …]
|
/net/dsa/ |
D | trace.h | 26 TP_PROTO(const struct dsa_port *dp, const unsigned char *addr, u16 vid, 29 TP_ARGS(dp, addr, vid, db, err), 35 __array(unsigned char, addr, ETH_ALEN) 45 ether_addr_copy(__entry->addr, addr); 52 __get_str(dev), __get_str(kind), __entry->port, __entry->addr, 61 TP_PROTO(const struct dsa_port *dp, const unsigned char *addr, 63 TP_ARGS(dp, addr, vid, db, err)); 66 TP_PROTO(const struct dsa_port *dp, const unsigned char *addr, 68 TP_ARGS(dp, addr, vid, db, err)); 74 TP_PROTO(const struct dsa_port *dp, const unsigned char *addr, [all …]
|
/net/vmw_vsock/ |
D | vsock_addr.c | 14 void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port) in vsock_addr_init() argument 16 memset(addr, 0, sizeof(*addr)); in vsock_addr_init() 17 addr->svm_family = AF_VSOCK; in vsock_addr_init() 18 addr->svm_cid = cid; in vsock_addr_init() 19 addr->svm_port = port; in vsock_addr_init() 23 int vsock_addr_validate(const struct sockaddr_vm *addr) in vsock_addr_validate() argument 27 if (!addr) in vsock_addr_validate() 30 if (addr->svm_family != AF_VSOCK) in vsock_addr_validate() 33 if (addr->svm_flags & ~svm_valid_flags) in vsock_addr_validate() 40 bool vsock_addr_bound(const struct sockaddr_vm *addr) in vsock_addr_bound() argument [all …]
|
/net/mptcp/ |
D | pm_netlink.c | 28 struct mptcp_addr_info addr; member 69 addr_equals = a->addr.s_addr == b->addr.s_addr; in mptcp_addresses_equal() 75 addr_equals = a->addr.s_addr == b->addr6.s6_addr32[3]; in mptcp_addresses_equal() 78 addr_equals = a->addr6.s6_addr32[3] == b->addr.s_addr; in mptcp_addresses_equal() 90 void mptcp_local_address(const struct sock_common *skc, struct mptcp_addr_info *addr) in mptcp_local_address() argument 92 addr->family = skc->skc_family; in mptcp_local_address() 93 addr->port = htons(skc->skc_num); in mptcp_local_address() 94 if (addr->family == AF_INET) in mptcp_local_address() 95 addr->addr.s_addr = skc->skc_rcv_saddr; in mptcp_local_address() 97 else if (addr->family == AF_INET6) in mptcp_local_address() [all …]
|
D | pm_userspace.c | 44 addr_match = mptcp_addresses_equal(&e->addr, &entry->addr, true); in mptcp_userspace_pm_append_new_local_addr() 45 if (addr_match && entry->addr.id == 0 && needs_id) in mptcp_userspace_pm_append_new_local_addr() 46 entry->addr.id = e->addr.id; in mptcp_userspace_pm_append_new_local_addr() 47 id_match = (e->addr.id == entry->addr.id); in mptcp_userspace_pm_append_new_local_addr() 54 __set_bit(e->addr.id, id_bitmap); in mptcp_userspace_pm_append_new_local_addr() 68 if (!e->addr.id && needs_id) in mptcp_userspace_pm_append_new_local_addr() 69 e->addr.id = find_next_zero_bit(id_bitmap, in mptcp_userspace_pm_append_new_local_addr() 74 ret = e->addr.id; in mptcp_userspace_pm_append_new_local_addr() 76 ret = entry->addr.id; in mptcp_userspace_pm_append_new_local_addr() 90 struct mptcp_pm_addr_entry *addr) in mptcp_userspace_pm_delete_local_addr() argument [all …]
|
/net/netlabel/ |
D | netlabel_addrlist.c | 46 struct netlbl_af4list *netlbl_af4list_search(__be32 addr, in netlbl_af4list_search() argument 52 if (iter->valid && (addr & iter->mask) == iter->addr) in netlbl_af4list_search() 70 struct netlbl_af4list *netlbl_af4list_search_exact(__be32 addr, in netlbl_af4list_search_exact() argument 77 if (iter->valid && iter->addr == addr && iter->mask == mask) in netlbl_af4list_search_exact() 96 struct netlbl_af6list *netlbl_af6list_search(const struct in6_addr *addr, in netlbl_af6list_search() argument 103 ipv6_masked_addr_cmp(&iter->addr, &iter->mask, addr) == 0) in netlbl_af6list_search() 121 struct netlbl_af6list *netlbl_af6list_search_exact(const struct in6_addr *addr, in netlbl_af6list_search_exact() argument 129 ipv6_addr_equal(&iter->addr, addr) && in netlbl_af6list_search_exact() 152 iter = netlbl_af4list_search(entry->addr, head); in netlbl_af4list_add() 154 iter->addr == entry->addr && iter->mask == entry->mask) in netlbl_af4list_add() [all …]
|
/net/llc/ |
D | af_llc.c | 83 static inline u8 llc_ui_addr_null(struct sockaddr_llc *addr) in llc_ui_addr_null() argument 85 return !memcmp(addr, &llc_ui_addrnull, sizeof(*addr)); in llc_ui_addr_null() 97 static inline u8 llc_ui_header_len(struct sock *sk, struct sockaddr_llc *addr) in llc_ui_header_len() argument 101 if (addr->sllc_test) in llc_ui_header_len() 103 else if (addr->sllc_xid) in llc_ui_header_len() 276 static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr) in llc_ui_autobind() argument 286 if (!addr->sllc_arphrd) in llc_ui_autobind() 287 addr->sllc_arphrd = ARPHRD_ETHER; in llc_ui_autobind() 288 if (addr->sllc_arphrd != ARPHRD_ETHER) in llc_ui_autobind() 293 if (dev && addr->sllc_arphrd != dev->type) { in llc_ui_autobind() [all …]
|
/net/bridge/ |
D | br_stp_bpdu.c | 94 buf[7] = bpdu->root.addr[0]; in br_send_config_bpdu() 95 buf[8] = bpdu->root.addr[1]; in br_send_config_bpdu() 96 buf[9] = bpdu->root.addr[2]; in br_send_config_bpdu() 97 buf[10] = bpdu->root.addr[3]; in br_send_config_bpdu() 98 buf[11] = bpdu->root.addr[4]; in br_send_config_bpdu() 99 buf[12] = bpdu->root.addr[5]; in br_send_config_bpdu() 106 buf[19] = bpdu->bridge_id.addr[0]; in br_send_config_bpdu() 107 buf[20] = bpdu->bridge_id.addr[1]; in br_send_config_bpdu() 108 buf[21] = bpdu->bridge_id.addr[2]; in br_send_config_bpdu() 109 buf[22] = bpdu->bridge_id.addr[3]; in br_send_config_bpdu() [all …]
|
D | br_fdb.c | 132 if (nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->key.addr)) in fdb_fill_info() 216 const unsigned char *addr, in fdb_find_rcu() argument 224 memcpy(key.addr.addr, addr, sizeof(key.addr.addr)); in fdb_find_rcu() 231 const unsigned char *addr, in br_fdb_find() argument 239 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find() 246 const unsigned char *addr, in br_fdb_find_port() argument 260 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_find_port() 270 const unsigned char *addr, in br_fdb_find_rcu() argument 273 return fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find_rcu() 281 static void fdb_add_hw_addr(struct net_bridge *br, const unsigned char *addr) in fdb_add_hw_addr() argument [all …]
|
D | br_stp_if.c | 222 void br_stp_change_bridge_id(struct net_bridge *br, const unsigned char *addr) in br_stp_change_bridge_id() argument 232 br_fdb_change_mac_address(br, addr); in br_stp_change_bridge_id() 234 memcpy(oldaddr, br->bridge_id.addr, ETH_ALEN); in br_stp_change_bridge_id() 235 memcpy(br->bridge_id.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 236 eth_hw_addr_set(br->dev, addr); in br_stp_change_bridge_id() 239 if (ether_addr_equal(p->designated_bridge.addr, oldaddr)) in br_stp_change_bridge_id() 240 memcpy(p->designated_bridge.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 242 if (ether_addr_equal(p->designated_root.addr, oldaddr)) in br_stp_change_bridge_id() 243 memcpy(p->designated_root.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 260 const unsigned char *addr = br_mac_zero; in br_stp_recalculate_bridge_id() local [all …]
|
/net/tipc/ |
D | eth_media.c | 41 static int tipc_eth_addr2str(struct tipc_media_addr *addr, in tipc_eth_addr2str() argument 47 sprintf(strbuf, "%pM", addr->value); in tipc_eth_addr2str() 52 static int tipc_eth_addr2msg(char *msg, struct tipc_media_addr *addr) in tipc_eth_addr2msg() argument 56 memcpy(msg + TIPC_MEDIA_ADDR_OFFSET, addr->value, ETH_ALEN); in tipc_eth_addr2msg() 62 struct tipc_media_addr *addr, in tipc_eth_raw2addr() argument 65 memset(addr, 0, sizeof(*addr)); in tipc_eth_raw2addr() 66 ether_addr_copy(addr->value, msg); in tipc_eth_raw2addr() 67 addr->media_id = TIPC_MEDIA_TYPE_ETH; in tipc_eth_raw2addr() 68 addr->broadcast = is_broadcast_ether_addr(addr->value); in tipc_eth_raw2addr() 74 struct tipc_media_addr *addr, in tipc_eth_msg2addr() argument [all …]
|
D | udp_media.c | 84 struct udp_media_addr addr; member 106 static int tipc_udp_is_mcast_addr(struct udp_media_addr *addr) in tipc_udp_is_mcast_addr() argument 108 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_is_mcast_addr() 109 return ipv4_is_multicast(addr->ipv4.s_addr); in tipc_udp_is_mcast_addr() 112 return ipv6_addr_is_multicast(&addr->ipv6); in tipc_udp_is_mcast_addr() 118 static void tipc_udp_media_addr_set(struct tipc_media_addr *addr, in tipc_udp_media_addr_set() argument 121 memset(addr, 0, sizeof(struct tipc_media_addr)); in tipc_udp_media_addr_set() 122 addr->media_id = TIPC_MEDIA_TYPE_UDP; in tipc_udp_media_addr_set() 123 memcpy(addr->value, ua, sizeof(struct udp_media_addr)); in tipc_udp_media_addr_set() 126 addr->broadcast = TIPC_BROADCAST_SUPPORT; in tipc_udp_media_addr_set() [all …]
|
/net/mac80211/ |
D | fils_aead.c | 26 size_t num_elem, const u8 *addr[], size_t len[], u8 *v) in aes_s2v() argument 40 crypto_shash_digest(desc, addr[i], len[i], tmp); in aes_s2v() 49 crypto_shash_update(desc, addr[i], len[i] - AES_BLOCK_SIZE); in aes_s2v() 50 crypto_xor(d, addr[i] + len[i] - AES_BLOCK_SIZE, in aes_s2v() 56 crypto_xor(d, addr[i], len[i]); in aes_s2v() 68 size_t num_elem, const u8 *addr[], in aes_siv_encrypt() argument 81 addr[num_elem] = plain; in aes_siv_encrypt() 93 res = aes_s2v(tfm, num_elem, addr, len, v); in aes_siv_encrypt() 146 size_t num_elem, const u8 *addr[], size_t len[], in aes_siv_decrypt() argument 160 addr[num_elem] = out; in aes_siv_decrypt() [all …]
|
/net/atm/ |
D | pvc.c | 31 struct sockaddr_atmpvc *addr; in pvc_bind() local 37 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_bind() 38 if (addr->sap_family != AF_ATMPVC) in pvc_bind() 48 addr->sap_addr.vpi = vcc->vpi; in pvc_bind() 50 addr->sap_addr.vci = vcc->vci; in pvc_bind() 52 error = vcc_connect(sock, addr->sap_addr.itf, addr->sap_addr.vpi, in pvc_bind() 53 addr->sap_addr.vci); in pvc_bind() 92 struct sockaddr_atmpvc *addr; in pvc_getname() local 97 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_getname() 98 memset(addr, 0, sizeof(*addr)); in pvc_getname() [all …]
|
/net/mctp/ |
D | af_mctp.c | 40 static bool mctp_sockaddr_is_ok(const struct sockaddr_mctp *addr) in mctp_sockaddr_is_ok() argument 42 return !addr->__smctp_pad0 && !addr->__smctp_pad1; in mctp_sockaddr_is_ok() 45 static bool mctp_sockaddr_ext_is_ok(const struct sockaddr_mctp_ext *addr) in mctp_sockaddr_ext_is_ok() argument 47 return !addr->__smctp_pad0[0] && in mctp_sockaddr_ext_is_ok() 48 !addr->__smctp_pad0[1] && in mctp_sockaddr_ext_is_ok() 49 !addr->__smctp_pad0[2]; in mctp_sockaddr_ext_is_ok() 52 static int mctp_bind(struct socket *sock, struct sockaddr *addr, int addrlen) in mctp_bind() argument 62 if (addr->sa_family != AF_MCTP) in mctp_bind() 69 smctp = (struct sockaddr_mctp *)addr; in mctp_bind() 95 DECLARE_SOCKADDR(struct sockaddr_mctp *, addr, msg->msg_name); in mctp_sendmsg() [all …]
|
/net/ethernet/ |
D | eth.c | 279 struct sockaddr *addr = p; in eth_prepare_mac_addr_change() local 283 if (!is_valid_ether_addr(addr->sa_data)) in eth_prepare_mac_addr_change() 296 struct sockaddr *addr = p; in eth_commit_mac_addr_change() local 298 eth_hw_addr_set(dev, addr->sa_data); in eth_commit_mac_addr_change() 389 ssize_t sysfs_format_mac(char *buf, const unsigned char *addr, int len) in sysfs_format_mac() argument 391 return sysfs_emit(buf, "%*phC\n", len, addr); in sysfs_format_mac() 491 unsigned char *addr; in eth_platform_get_mac_address() local 498 addr = arch_get_platform_mac_address(); in eth_platform_get_mac_address() 499 if (!addr) in eth_platform_get_mac_address() 502 ether_addr_copy(mac_addr, addr); in eth_platform_get_mac_address() [all …]
|