/linux-6.3-rc2/net/mac802154/ |
A D | iface.c | 36 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() 100 wpan_dev->pan_id = cpu_to_le16(sa->addr.pan_id); in mac802154_wpan_ioctl() 153 local->addr_filt.pan_id = wpan_dev->pan_id; in ieee802154_setup_hw() 226 if (wpan_dev->pan_id != nwpan_dev->pan_id || in ieee802154_check_mac_settings() 389 hdr.source.pan_id = wpan_dev->pan_id; in ieee802154_header_create() 446 hdr.dest.pan_id = wpan_dev->pan_id; in mac802154_header_create() [all …]
|
A D | trace.h | 172 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)) 271 __field(__le16, pan_id) 279 __entry->pan_id = desc->addr.pan_id; 283 __le16_to_cpu(__entry->pan_id), __le64_to_cpu(__entry->addr),
|
A D | mac_cmd.c | 38 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()
|
A D | rx.c | 62 span = wpan_dev->pan_id; in ieee802154_subif_frame() 86 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame() 87 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame() 95 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame() 96 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) in ieee802154_subif_frame() 168 pr_debug("%s PAN ID: %04x\n", name, le16_to_cpu(addr->pan_id)); in ieee802154_print_addr()
|
A D | llsec.c | 100 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() 789 devaddr.pan_id); in llsec_lookup_dev() [all …]
|
A D | driver-ops.h | 27 static inline int drv_set_pan_id(struct ieee802154_local *local, __le16 pan_id) in drv_set_pan_id() argument 39 filt.pan_id = pan_id; in drv_set_pan_id() 41 trace_802154_drv_set_pan_id(local, pan_id); in drv_set_pan_id() 142 ret = drv_set_pan_id(local, addr_filt->pan_id); in drv_start()
|
A D | cfg.c | 188 __le16 pan_id) in ieee802154_set_pan_id() argument 194 if (wpan_dev->pan_id == pan_id) in ieee802154_set_pan_id() 199 wpan_dev->pan_id = pan_id; in ieee802154_set_pan_id()
|
A D | scan.c | 439 local->beacon.mhr.source.pan_id = request->wpan_dev->pan_id; in mac802154_send_beacons_locked()
|
/linux-6.3-rc2/net/ieee802154/ |
A D | header_ops.c | 24 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() 159 memcpy(&addr->pan_id, buf + pos, 2); in ieee802154_hdr_get_addr() 252 hdr->source.pan_id = hdr->dest.pan_id; in ieee802154_hdr_get_addrs()
|
A D | socket.c | 36 __le16 pan_id, short_addr; in ieee802154_get_dev() local 48 if (addr->pan_id == cpu_to_le16(IEEE802154_PANID_BROADCAST) || in ieee802154_get_dev() 59 pan_id = tmp->ieee802154_ptr->pan_id; in ieee802154_get_dev() 61 if (pan_id == addr->pan_id && in ieee802154_get_dev() 777 ieee802154_match_sock(__le64 hw_addr, __le16 pan_id, __le16 short_addr, in ieee802154_match_sock() argument 788 pan_id == ro->src_addr.pan_id && in ieee802154_match_sock() 799 __le16 pan_id, short_addr; in ieee802154_dgram_deliver() local 805 pan_id = dev->ieee802154_ptr->pan_id; in ieee802154_dgram_deliver() 811 if (ieee802154_match_sock(hw_addr, pan_id, short_addr, in ieee802154_dgram_deliver()
|
A D | nl-mac.c | 80 __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 …]
|
A D | rdev-ops.h | 123 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()
|
A D | nl802154.c | 704 desc->device_addr.pan_id) || in ieee802154_llsec_send_key_id() 821 nla_put_le16(msg, NL802154_ATTR_PAN_ID, wpan_dev->pan_id)) in nl802154_send_iface() 1072 __le16 pan_id; in nl802154_set_pan_id() local 1088 pan_id = nla_get_le16(info->attrs[NL802154_ATTR_PAN_ID]); in nl802154_set_pan_id() 1097 if (pan_id == cpu_to_le16(IEEE802154_PAN_ID_BROADCAST)) in nl802154_set_pan_id() 1100 return rdev_set_pan_id(rdev, wpan_dev, pan_id); in nl802154_set_pan_id() 1331 &desc->addr.pan_id)) in nl802154_prep_scan_event_msg() 1581 if (wpan_dev->pan_id == cpu_to_le16(IEEE802154_PANID_BROADCAST)) { in nl802154_send_beacons() 1650 addr->pan_id = nla_get_le16(attrs[NL802154_DEV_ADDR_ATTR_PAN_ID]); in ieee802154_llsec_parse_dev_addr() 1994 nla_put_le16(msg, NL802154_DEV_ATTR_PAN_ID, dev_desc->pan_id) || in nl802154_send_device() [all …]
|
/linux-6.3-rc2/include/net/ |
A D | ieee802154_netdev.h | 217 if (a1->pan_id != a2->pan_id || a1->mode != a2->mode) in ieee802154_addr_equal() 275 a->pan_id = cpu_to_le16(sa->pan_id); in ieee802154_addr_from_sa() 291 sa->pan_id = le16_to_cpu(a->pan_id); in ieee802154_addr_to_sa()
|
A D | cfg802154.h | 56 struct wpan_dev *wpan_dev, __le16 pan_id); 277 __le16 pan_id; member 391 __le16 pan_id; member 415 __le16 pan_id; member 459 __le16 pan_id; member
|
A D | af_ieee802154.h | 29 u16 pan_id; member
|
A D | mac802154.h | 54 __le16 pan_id; member
|
/linux-6.3-rc2/net/6lowpan/ |
A D | core.c | 88 if (wpan_dev->pan_id == cpu_to_le16(0x0000) && in addrconf_ifid_802154_6lowpan() 93 if (wpan_dev->pan_id == cpu_to_le16(IEEE802154_PAN_ID_BROADCAST)) in addrconf_ifid_802154_6lowpan() 96 ieee802154_le16_to_be16(eui, &wpan_dev->pan_id); in addrconf_ifid_802154_6lowpan()
|
/linux-6.3-rc2/drivers/net/ieee802154/ |
A D | mac802154_hwsim.c | 110 pib->filt.pan_id = filt->pan_id; in hwsim_update_pib() 198 mac_cb(skb)->dest.pan_id != pib->filt.pan_id && in hwsim_hw_receive() 199 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) { in hwsim_hw_receive() 202 le16_to_cpu(mac_cb(skb)->dest.pan_id)); in hwsim_hw_receive() 236 pib->filt.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST) && in hwsim_hw_receive() 237 mac_cb(skb)->dest.pan_id != pib->filt.pan_id) { in hwsim_hw_receive() 240 le16_to_cpu(mac_cb(skb)->dest.pan_id)); in hwsim_hw_receive() 955 pib->filt.pan_id = cpu_to_le16(IEEE802154_PANID_BROADCAST); in hwsim_add_one()
|
A D | ca8210.c | 376 u8 pan_id[2]; member 1449 command.pdata.data_req.dst.pan_id[0] = LS_BYTE(dst_pan_id); in mcps_data_request() 1450 command.pdata.data_req.dst.pan_id[1] = MS_BYTE(dst_pan_id); in mcps_data_request() 1798 hdr.source.pan_id = *(u16 *)&data_ind[1]; in ca8210_skb_rx() 1799 dev_dbg(&priv->spi->dev, "srcPanId: %#06x\n", hdr.source.pan_id); in ca8210_skb_rx() 1803 hdr.dest.pan_id = *(u16 *)&data_ind[12]; in ca8210_skb_rx() 1804 dev_dbg(&priv->spi->dev, "dstPanId: %#06x\n", hdr.dest.pan_id); in ca8210_skb_rx() 1931 header.dest.pan_id, in ca8210_skb_tx() 2103 &filt->pan_id, priv->spi in ca8210_set_hw_addr_filt()
|
A D | adf7242.c | 774 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()
|
A D | mrf24j40.c | 706 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()
|
A D | atusb.c | 384 u16 pan = le16_to_cpu(filt->pan_id); in atusb_set_hw_addr_filt()
|
A D | cc2520.c | 656 u16 panid = le16_to_cpu(filt->pan_id); in cc2520_filter()
|
/linux-6.3-rc2/net/ieee802154/6lowpan/ |
A D | tx.c | 53 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()
|