/Linux-v6.6/net/6lowpan/ |
D | ndisc.c | 95 ieee802154_be16_to_le16(&neigh->short_addr, lladdr_short); in lowpan_ndisc_802154_update() 96 if (!lowpan_802154_is_valid_src_short_addr(neigh->short_addr)) in lowpan_ndisc_802154_update() 97 neigh->short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC); in lowpan_ndisc_802154_update() 130 if (lowpan_802154_is_valid_src_short_addr(n->short_addr)) { in lowpan_ndisc_opt_addr_space() 131 memcpy(ha_buf, &n->short_addr, in lowpan_ndisc_opt_addr_space() 145 if (lowpan_802154_is_valid_src_short_addr(wpan_dev->short_addr)) in lowpan_ndisc_opt_addr_space() 160 __be16 short_addr; in lowpan_ndisc_fill_addr_option() local 169 ieee802154_le16_to_be16(&short_addr, ha); in lowpan_ndisc_fill_addr_option() 171 &short_addr, in lowpan_ndisc_fill_addr_option() 188 if (lowpan_802154_is_valid_src_short_addr(wpan_dev->short_addr)) { in lowpan_ndisc_fill_addr_option() [all …]
|
D | core.c | 84 if (!lowpan_802154_is_valid_src_short_addr(wpan_dev->short_addr)) in addrconf_ifid_802154_6lowpan() 89 wpan_dev->short_addr == cpu_to_le16(0x0000)) in addrconf_ifid_802154_6lowpan() 104 ieee802154_le16_to_be16(&eui[6], &wpan_dev->short_addr); in addrconf_ifid_802154_6lowpan()
|
D | iphc.c | 180 &addr->short_addr); in lowpan_iphc_uncompress_802154_lladdr() 816 &addr->short_addr); in lowpan_iphc_compress_ctx_802154_lladdr() 931 &addr->short_addr); in lowpan_iphc_compress_802154_lladdr()
|
D | debugfs.c | 221 *val = le16_to_cpu(wdev->short_addr); in lowpan_short_addr_get()
|
/Linux-v6.6/net/ieee802154/6lowpan/ |
D | tx.c | 57 info->daddr.short_addr = cpu_to_le16(IEEE802154_ADDR_BROADCAST); in lowpan_header_create() 60 __le16 short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC); in lowpan_header_create() local 66 short_addr = llneigh->short_addr; in lowpan_header_create() 71 lowpan_802154_is_valid_src_short_addr(short_addr)) { in lowpan_header_create() 72 info->daddr.short_addr = short_addr; in lowpan_header_create() 85 if (lowpan_802154_is_valid_src_short_addr(wpan_dev->short_addr)) { in lowpan_header_create() 87 info->saddr.short_addr = wpan_dev->short_addr; in lowpan_header_create() 241 ieee802154_is_broadcast_short_addr(info.daddr.short_addr)) in lowpan_header()
|
D | core.c | 90 neigh->short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC); in lowpan_neigh_construct()
|
/Linux-v6.6/net/mac802154/ |
D | iface.c | 65 u16 pan_id, short_addr; in mac802154_wpan_ioctl() local 68 short_addr = le16_to_cpu(wpan_dev->short_addr); in mac802154_wpan_ioctl() 70 short_addr == IEEE802154_ADDR_BROADCAST) { in mac802154_wpan_ioctl() 78 sa->addr.short_addr = short_addr; in mac802154_wpan_ioctl() 94 sa->addr.short_addr == IEEE802154_ADDR_BROADCAST || in mac802154_wpan_ioctl() 95 sa->addr.short_addr == IEEE802154_ADDR_UNDEF) { in mac802154_wpan_ioctl() 101 wpan_dev->short_addr = cpu_to_le16(sa->addr.short_addr); in mac802154_wpan_ioctl() 155 local->addr_filt.short_addr = wpan_dev->short_addr; in ieee802154_setup_hw() 227 wpan_dev->short_addr != nwpan_dev->short_addr || in ieee802154_check_mac_settings() 379 if (wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST) || in ieee802154_header_create() [all …]
|
D | llsec.c | 288 static bool llsec_dev_use_shortaddr(__le16 short_addr) in llsec_dev_use_shortaddr() argument 290 return short_addr != cpu_to_le16(IEEE802154_ADDR_UNDEF) && in llsec_dev_use_shortaddr() 291 short_addr != cpu_to_le16(0xffff); in llsec_dev_use_shortaddr() 294 static u32 llsec_dev_hash_short(__le16 short_addr, __le16 pan_id) in llsec_dev_hash_short() argument 296 return ((__force u16)short_addr) << 16 | (__force u16)pan_id; in llsec_dev_hash_short() 305 llsec_dev_find_short(struct mac802154_llsec *sec, __le16 short_addr, in llsec_dev_find_short() argument 309 u32 key = llsec_dev_hash_short(short_addr, pan_id); in llsec_dev_find_short() 312 if (dev->dev.short_addr == short_addr && in llsec_dev_find_short() 354 u32 skey = llsec_dev_hash_short(dev->short_addr, dev->pan_id); in mac802154_llsec_dev_add() 359 if ((llsec_dev_use_shortaddr(dev->short_addr) && in mac802154_llsec_dev_add() [all …]
|
D | trace.h | 157 TP_PROTO(struct ieee802154_local *local, __le16 short_addr), 158 TP_ARGS(local, short_addr), 161 __field(__le16, short_addr) 165 __entry->short_addr = short_addr; 168 le16_to_cpu(__entry->short_addr))
|
D | driver-ops.h | 71 drv_set_short_addr(struct ieee802154_local *local, __le16 short_addr) in drv_set_short_addr() argument 83 filt.short_addr = short_addr; in drv_set_short_addr() 85 trace_802154_drv_set_short_addr(local, short_addr); in drv_set_short_addr() 146 ret = drv_set_short_addr(local, addr_filt->short_addr); in drv_start()
|
D | mac_cmd.c | 39 dev->ieee802154_ptr->short_addr = addr->short_addr; in mac802154_mlme_start_req() 51 params.coord_shortaddr = addr->short_addr; in mac802154_mlme_start_req()
|
D | rx.c | 119 sshort = wpan_dev->short_addr; in ieee802154_subif_frame() 154 else if (mac_cb(skb)->dest.short_addr == sshort) in ieee802154_subif_frame() 156 else if (mac_cb(skb)->dest.short_addr == in ieee802154_subif_frame() 239 le16_to_cpu(addr->short_addr)); in ieee802154_print_addr()
|
D | cfg.c | 218 __le16 short_addr) in ieee802154_set_short_addr() argument 222 wpan_dev->short_addr = short_addr; in ieee802154_set_short_addr()
|
/Linux-v6.6/include/net/ |
D | ieee802154_netdev.h | 29 IEEE802154_REQUIRED_SIZE(struct ieee802154_addr_sa, short_addr)) 241 a1->short_addr != a2->short_addr)) in ieee802154_addr_equal() 297 a->short_addr = cpu_to_le16(sa->short_addr); in ieee802154_addr_from_sa() 313 sa->short_addr = le16_to_cpu(a->short_addr); in ieee802154_addr_to_sa() 437 __le16 short_addr, u8 status);
|
D | cfg802154.h | 58 struct wpan_dev *wpan_dev, __le16 short_addr); 283 __le16 short_addr; member 420 __le16 short_addr; member 464 __le16 short_addr; member
|
D | af_ieee802154.h | 32 u16 short_addr; member
|
D | 6lowpan.h | 145 __le16 short_addr; member
|
D | mac802154.h | 55 __le16 short_addr; member
|
/Linux-v6.6/net/ieee802154/ |
D | socket.c | 36 __le16 pan_id, short_addr; in ieee802154_get_dev() local 49 addr->short_addr == cpu_to_le16(IEEE802154_ADDR_UNDEF) || in ieee802154_get_dev() 50 addr->short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST)) in ieee802154_get_dev() 60 short_addr = tmp->ieee802154_ptr->short_addr; in ieee802154_get_dev() 62 short_addr == addr->short_addr) { in ieee802154_get_dev() 775 ieee802154_match_sock(__le64 hw_addr, __le16 pan_id, __le16 short_addr, in ieee802154_match_sock() argument 787 short_addr == ro->src_addr.short_addr) in ieee802154_match_sock() 797 __le16 pan_id, short_addr; in ieee802154_dgram_deliver() local 804 short_addr = dev->ieee802154_ptr->short_addr; in ieee802154_dgram_deliver() 809 if (ieee802154_match_sock(hw_addr, pan_id, short_addr, in ieee802154_dgram_deliver()
|
D | nl-mac.c | 80 __le16 short_addr, pan_id; in ieee802154_nl_fill_iface() local 95 short_addr = dev->ieee802154_ptr->short_addr; in ieee802154_nl_fill_iface() 104 nla_put_shortaddr(msg, IEEE802154_ATTR_SHORT_ADDR, short_addr) || in ieee802154_nl_fill_iface() 199 addr.short_addr = nla_get_shortaddr( in ieee802154_associate_req() 276 addr.short_addr = nla_get_shortaddr( in ieee802154_disassociate_req() 329 addr.short_addr = nla_get_shortaddr( in ieee802154_start_req() 346 if (addr.short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST)) { in ieee802154_start_req() 561 desc->device_addr.short_addr = nla_get_shortaddr(info->attrs[IEEE802154_ATTR_SHORT_ADDR]); in ieee802154_llsec_parse_key_id() 616 desc->device_addr.short_addr)) in ieee802154_llsec_fill_key_id() 993 dev->short_addr = nla_get_shortaddr(info->attrs[IEEE802154_ATTR_SHORT_ADDR]); in llsec_parse_dev() [all …]
|
D | rdev-ops.h | 135 struct wpan_dev *wpan_dev, __le16 short_addr) in rdev_set_short_addr() argument 139 trace_802154_rdev_set_short_addr(&rdev->wpan_phy, wpan_dev, short_addr); in rdev_set_short_addr() 140 ret = rdev->ops->set_short_addr(&rdev->wpan_phy, wpan_dev, short_addr); in rdev_set_short_addr()
|
D | header_ops.c | 30 memcpy(buf + pos, &addr->short_addr, 2); in ieee802154_hdr_push_addr() 187 memcpy(&addr->short_addr, buf + pos, 2); in ieee802154_hdr_get_addr()
|
D | nl802154.c | 712 desc->device_addr.short_addr)) in ieee802154_llsec_send_key_id() 820 wpan_dev->short_addr) || in nl802154_send_iface() 1108 __le16 short_addr; in nl802154_set_short_addr() local 1124 short_addr = nla_get_le16(info->attrs[NL802154_ATTR_SHORT_ADDR]); in nl802154_set_short_addr() 1137 if (short_addr == cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC) || in nl802154_set_short_addr() 1138 short_addr == cpu_to_le16(IEEE802154_ADDR_SHORT_BROADCAST)) in nl802154_set_short_addr() 1141 return rdev_set_short_addr(rdev, wpan_dev, short_addr); in nl802154_set_short_addr() 1337 &desc->addr.short_addr)) in nl802154_prep_scan_event_msg() 1667 addr->short_addr = nla_get_le16(attrs[NL802154_DEV_ADDR_ATTR_SHORT]); in ieee802154_llsec_parse_dev_addr() 2007 dev_desc->short_addr) || in nl802154_send_device() [all …]
|
/Linux-v6.6/drivers/net/ieee802154/ |
D | mac802154_hwsim.c | 109 pib->filt.short_addr = filt->short_addr; in hwsim_update_pib() 208 mac_cb(skb)->dest.short_addr != pib->filt.short_addr && in hwsim_hw_receive() 209 mac_cb(skb)->dest.short_addr != cpu_to_le16(IEEE802154_ADDR_BROADCAST)) { in hwsim_hw_receive() 212 le16_to_cpu(mac_cb(skb)->dest.short_addr)); in hwsim_hw_receive() 956 pib->filt.short_addr = cpu_to_le16(IEEE802154_ADDR_BROADCAST); in hwsim_add_one()
|
D | mrf24j40.c | 676 addrh = le16_to_cpu(filt->short_addr) >> 8 & 0xff; in mrf24j40_filter() 677 addrl = le16_to_cpu(filt->short_addr) & 0xff; in mrf24j40_filter() 682 "Set short addr to %04hx\n", filt->short_addr); in mrf24j40_filter()
|