Home
last modified time | relevance | path

Searched refs:pan_id (Results 1 – 14 of 14) sorted by relevance

/net/mac802154/
Diface.c36 params.pan_id = wpan_dev->pan_id; in mac802154_wpan_update_llsec()
65 u16 pan_id, short_addr; in mac802154_wpan_ioctl() local
67 pan_id = le16_to_cpu(wpan_dev->pan_id); in mac802154_wpan_ioctl()
69 if (pan_id == IEEE802154_PANID_BROADCAST || in mac802154_wpan_ioctl()
77 sa->addr.pan_id = pan_id; in mac802154_wpan_ioctl()
93 sa->addr.pan_id == IEEE802154_PANID_BROADCAST || in mac802154_wpan_ioctl()
100 wpan_dev->pan_id = cpu_to_le16(sa->addr.pan_id); in mac802154_wpan_ioctl()
159 ret = drv_set_pan_id(local, wpan_dev->pan_id); in ieee802154_setup_hw()
238 if (wpan_dev->pan_id != nwpan_dev->pan_id || in ieee802154_check_mac_settings()
389 wpan_dev->pan_id == cpu_to_le16(IEEE802154_PANID_BROADCAST)) { in ieee802154_header_create()
[all …]
Drx.c42 span = wpan_dev->pan_id; in ieee802154_subif_frame()
55 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame()
56 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame()
64 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame()
65 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame()
120 pr_debug("%s PAN ID: %04x\n", name, le16_to_cpu(addr->pan_id)); in ieee802154_print_addr()
Dtrace.h172 TP_PROTO(struct ieee802154_local *local, __le16 pan_id),
173 TP_ARGS(local, pan_id),
176 __field(__le16, pan_id)
180 __entry->pan_id = pan_id;
183 le16_to_cpu(__entry->pan_id))
Dmac_cmd.c38 dev->ieee802154_ptr->pan_id = addr->pan_id; in mac802154_mlme_start_req()
42 params.pan_id = addr->pan_id; in mac802154_mlme_start_req()
Dllsec.c100 sec->params.pan_id = params->pan_id; in mac802154_llsec_set_params()
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()
306 __le16 pan_id) in llsec_dev_find_short() argument
309 u32 key = llsec_dev_hash_short(short_addr, pan_id); in llsec_dev_find_short()
313 dev->dev.pan_id == pan_id) in llsec_dev_find_short()
354 u32 skey = llsec_dev_hash_short(dev->short_addr, dev->pan_id); in mac802154_llsec_dev_add()
360 llsec_dev_find_short(sec, dev->short_addr, dev->pan_id)) || in mac802154_llsec_dev_add()
526 addr->pan_id = sec->params.pan_id; in llsec_recover_addr()
786 devaddr.pan_id); in llsec_lookup_dev()
[all …]
Ddriver-ops.h141 static inline int drv_set_pan_id(struct ieee802154_local *local, __le16 pan_id) in drv_set_pan_id() argument
153 filt.pan_id = pan_id; in drv_set_pan_id()
155 trace_802154_drv_set_pan_id(local, pan_id); in drv_set_pan_id()
Dcfg.c183 __le16 pan_id) in ieee802154_set_pan_id() argument
189 if (wpan_dev->pan_id == pan_id) in ieee802154_set_pan_id()
194 wpan_dev->pan_id = pan_id; in ieee802154_set_pan_id()
/net/ieee802154/
Dheader_ops.c24 memcpy(buf + pos, &addr->pan_id, 2); in ieee802154_hdr_push_addr()
96 if (hdr->source.pan_id == hdr->dest.pan_id && in ieee802154_hdr_push()
135 memcpy(&addr->pan_id, buf + pos, 2); in ieee802154_hdr_get_addr()
228 hdr->source.pan_id = hdr->dest.pan_id; in ieee802154_hdr_get_addrs()
Dsocket.c36 __le16 pan_id, short_addr; in ieee802154_get_dev() local
49 if (addr->pan_id == cpu_to_le16(IEEE802154_PANID_BROADCAST) || in ieee802154_get_dev()
60 pan_id = tmp->ieee802154_ptr->pan_id; in ieee802154_get_dev()
62 if (pan_id == addr->pan_id && in ieee802154_get_dev()
782 ieee802154_match_sock(__le64 hw_addr, __le16 pan_id, __le16 short_addr, in ieee802154_match_sock() argument
793 pan_id == ro->src_addr.pan_id && in ieee802154_match_sock()
804 __le16 pan_id, short_addr; in ieee802154_dgram_deliver() local
810 pan_id = dev->ieee802154_ptr->pan_id; in ieee802154_dgram_deliver()
816 if (ieee802154_match_sock(hw_addr, pan_id, short_addr, in ieee802154_dgram_deliver()
Dnl-mac.c80 __le16 short_addr, pan_id; in ieee802154_nl_fill_iface() local
96 pan_id = dev->ieee802154_ptr->pan_id; in ieee802154_nl_fill_iface()
105 nla_put_shortaddr(msg, IEEE802154_ATTR_PAN_ID, pan_id)) in ieee802154_nl_fill_iface()
202 addr.pan_id = nla_get_shortaddr( in ieee802154_associate_req()
241 addr.pan_id = dev->ieee802154_ptr->pan_id; in ieee802154_associate_resp()
280 addr.pan_id = dev->ieee802154_ptr->pan_id; in ieee802154_disassociate_req()
331 addr.pan_id = nla_get_shortaddr( in ieee802154_start_req()
557 desc->device_addr.pan_id = nla_get_shortaddr(info->attrs[IEEE802154_ATTR_PAN_ID]); in ieee802154_llsec_parse_key_id()
611 desc->device_addr.pan_id)) in ieee802154_llsec_fill_key_id()
992 dev->pan_id = nla_get_shortaddr(info->attrs[IEEE802154_ATTR_PAN_ID]); in llsec_parse_dev()
[all …]
Drdev-ops.h123 struct wpan_dev *wpan_dev, __le16 pan_id) in rdev_set_pan_id() argument
127 trace_802154_rdev_set_pan_id(&rdev->wpan_phy, wpan_dev, pan_id); in rdev_set_pan_id()
128 ret = rdev->ops->set_pan_id(&rdev->wpan_phy, wpan_dev, pan_id); in rdev_set_pan_id()
Dnl802154.c701 desc->device_addr.pan_id) || in ieee802154_llsec_send_key_id()
818 nla_put_le16(msg, NL802154_ATTR_PAN_ID, wpan_dev->pan_id)) in nl802154_send_iface()
1070 __le16 pan_id; in nl802154_set_pan_id() local
1086 pan_id = nla_get_le16(info->attrs[NL802154_ATTR_PAN_ID]); in nl802154_set_pan_id()
1095 if (pan_id == cpu_to_le16(IEEE802154_PAN_ID_BROADCAST)) in nl802154_set_pan_id()
1098 return rdev_set_pan_id(rdev, wpan_dev, pan_id); in nl802154_set_pan_id()
1320 addr->pan_id = nla_get_le16(attrs[NL802154_DEV_ADDR_ATTR_PAN_ID]); in ieee802154_llsec_parse_dev_addr()
1664 nla_put_le16(msg, NL802154_DEV_ATTR_PAN_ID, dev_desc->pan_id) || in nl802154_send_device()
1767 dev->pan_id = nla_get_le16(attrs[NL802154_DEV_ATTR_PAN_ID]); in ieee802154_llsec_parse_device()
/net/6lowpan/
Dcore.c87 if (wpan_dev->pan_id == cpu_to_le16(0x0000) && in addrconf_ifid_802154_6lowpan()
92 if (wpan_dev->pan_id == cpu_to_le16(IEEE802154_PAN_ID_BROADCAST)) in addrconf_ifid_802154_6lowpan()
95 ieee802154_le16_to_be16(eui, &wpan_dev->pan_id); in addrconf_ifid_802154_6lowpan()
/net/ieee802154/6lowpan/
Dtx.c53 info->saddr.pan_id = wpan_dev->pan_id; in lowpan_header_create()
54 info->daddr.pan_id = info->saddr.pan_id; in lowpan_header_create()