Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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 …]
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))
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()
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()
/kernel/linux/linux-5.10/include/net/
Dieee802154_netdev.h141 if (a1->pan_id != a2->pan_id || a1->mode != a2->mode) in ieee802154_addr_equal()
172 a->pan_id = cpu_to_le16(sa->pan_id); in ieee802154_addr_from_sa()
188 sa->pan_id = le16_to_cpu(a->pan_id); in ieee802154_addr_to_sa()
Dcfg802154.h54 struct wpan_dev *wpan_dev, __le16 pan_id);
232 __le16 pan_id; member
274 __le16 pan_id; member
298 __le16 pan_id; member
342 __le16 pan_id; member
Daf_ieee802154.h29 u16 pan_id; member
Dmac802154.h54 __le16 pan_id; member
/kernel/linux/linux-5.10/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()
768 ieee802154_match_sock(__le64 hw_addr, __le16 pan_id, __le16 short_addr, in ieee802154_match_sock() argument
779 pan_id == ro->src_addr.pan_id && in ieee802154_match_sock()
790 __le16 pan_id, short_addr; in ieee802154_dgram_deliver() local
796 pan_id = dev->ieee802154_ptr->pan_id; in ieee802154_dgram_deliver()
802 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.c685 desc->device_addr.pan_id) || in ieee802154_llsec_send_key_id()
802 nla_put_le16(msg, NL802154_ATTR_PAN_ID, wpan_dev->pan_id)) in nl802154_send_iface()
1054 __le16 pan_id; in nl802154_set_pan_id() local
1070 pan_id = nla_get_le16(info->attrs[NL802154_ATTR_PAN_ID]); in nl802154_set_pan_id()
1079 if (pan_id == cpu_to_le16(IEEE802154_PAN_ID_BROADCAST)) in nl802154_set_pan_id()
1082 return rdev_set_pan_id(rdev, wpan_dev, pan_id); in nl802154_set_pan_id()
1304 addr->pan_id = nla_get_le16(attrs[NL802154_DEV_ADDR_ATTR_PAN_ID]); in ieee802154_llsec_parse_dev_addr()
1648 nla_put_le16(msg, NL802154_DEV_ATTR_PAN_ID, dev_desc->pan_id) || in nl802154_send_device()
1751 dev->pan_id = nla_get_le16(attrs[NL802154_DEV_ATTR_PAN_ID]); in ieee802154_llsec_parse_device()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ieee802154/
Dca8210.c417 u8 pan_id[2]; member
1491 command.pdata.data_req.dst.pan_id[0] = LS_BYTE(dst_pan_id); in mcps_data_request()
1492 command.pdata.data_req.dst.pan_id[1] = MS_BYTE(dst_pan_id); in mcps_data_request()
1840 hdr.source.pan_id = *(u16 *)&data_ind[1]; in ca8210_skb_rx()
1841 dev_dbg(&priv->spi->dev, "srcPanId: %#06x\n", hdr.source.pan_id); in ca8210_skb_rx()
1845 hdr.dest.pan_id = *(u16 *)&data_ind[12]; in ca8210_skb_rx()
1846 dev_dbg(&priv->spi->dev, "dstPanId: %#06x\n", hdr.dest.pan_id); in ca8210_skb_rx()
1971 header.dest.pan_id, in ca8210_skb_tx()
2143 &filt->pan_id, priv->spi in ca8210_set_hw_addr_filt()
Dadf7242.c774 u16 pan_id = le16_to_cpu(filt->pan_id); in adf7242_set_hw_addr_filt() local
776 adf7242_write_reg(lp, REG_PAN_ID0, pan_id); in adf7242_set_hw_addr_filt()
777 adf7242_write_reg(lp, REG_PAN_ID1, pan_id >> 8); in adf7242_set_hw_addr_filt()
Dmrf24j40.c706 panidh = le16_to_cpu(filt->pan_id) >> 8 & 0xff; in mrf24j40_filter()
707 panidl = le16_to_cpu(filt->pan_id) & 0xff; in mrf24j40_filter()
711 dev_dbg(printdev(devrec), "Set PANID to %04hx\n", filt->pan_id); in mrf24j40_filter()
Datusb.c427 u16 pan = le16_to_cpu(filt->pan_id); in atusb_set_hw_addr_filt()
Dmcr20a.c581 u16 pan = le16_to_cpu(filt->pan_id); in mcr20a_set_hw_addr_filt()
Dcc2520.c656 u16 panid = le16_to_cpu(filt->pan_id); in cc2520_filter()
Dat86rf230.c1122 u16 pan = le16_to_cpu(filt->pan_id); in at86rf230_set_hw_addr_filt()