/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 | 83 if (!lowpan_802154_is_valid_src_short_addr(wpan_dev->short_addr)) in addrconf_ifid_802154_6lowpan() 88 wpan_dev->short_addr == cpu_to_le16(0x0000)) in addrconf_ifid_802154_6lowpan() 103 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()
|
/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 | 89 neigh->short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC); in lowpan_neigh_construct()
|
/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() 167 ret = drv_set_short_addr(local, wpan_dev->short_addr); in ieee802154_setup_hw() 239 wpan_dev->short_addr != nwpan_dev->short_addr || in ieee802154_check_mac_settings() 387 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 | 185 drv_set_short_addr(struct ieee802154_local *local, __le16 short_addr) in drv_set_short_addr() argument 197 filt.short_addr = short_addr; in drv_set_short_addr() 199 trace_802154_drv_set_short_addr(local, short_addr); in drv_set_short_addr()
|
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 | 43 sshort = wpan_dev->short_addr; in ieee802154_subif_frame() 67 else if (mac_cb(skb)->dest.short_addr == sshort) in ieee802154_subif_frame() 69 else if (mac_cb(skb)->dest.short_addr == in ieee802154_subif_frame() 123 le16_to_cpu(addr->short_addr)); in ieee802154_print_addr()
|
D | cfg.c | 213 __le16 short_addr) in ieee802154_set_short_addr() argument 217 wpan_dev->short_addr = short_addr; in ieee802154_set_short_addr()
|
/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() 777 ieee802154_match_sock(__le64 hw_addr, __le16 pan_id, __le16 short_addr, in ieee802154_match_sock() argument 789 short_addr == ro->src_addr.short_addr) in ieee802154_match_sock() 799 __le16 pan_id, short_addr; in ieee802154_dgram_deliver() local 806 short_addr = dev->ieee802154_ptr->short_addr; in ieee802154_dgram_deliver() 811 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() 140 memcpy(&addr->short_addr, buf + pos, 2); in ieee802154_hdr_get_addr()
|
D | nl802154.c | 693 desc->device_addr.short_addr)) in ieee802154_llsec_send_key_id() 801 wpan_dev->short_addr) || in nl802154_send_iface() 1090 __le16 short_addr; in nl802154_set_short_addr() local 1106 short_addr = nla_get_le16(info->attrs[NL802154_ATTR_SHORT_ADDR]); in nl802154_set_short_addr() 1119 if (short_addr == cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC) || in nl802154_set_short_addr() 1120 short_addr == cpu_to_le16(IEEE802154_ADDR_SHORT_BROADCAST)) in nl802154_set_short_addr() 1123 return rdev_set_short_addr(rdev, wpan_dev, short_addr); in nl802154_set_short_addr() 1310 addr->short_addr = nla_get_le16(attrs[NL802154_DEV_ADDR_ATTR_SHORT]); in ieee802154_llsec_parse_dev_addr() 1650 dev_desc->short_addr) || in nl802154_send_device() 1752 dev->short_addr = nla_get_le16(attrs[NL802154_DEV_ATTR_SHORT_ADDR]); in ieee802154_llsec_parse_device()
|