Lines Matching refs:short_addr
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()
360 llsec_dev_find_short(sec, dev->short_addr, dev->pan_id)) || in mac802154_llsec_dev_add()
372 if (llsec_dev_use_shortaddr(dev->short_addr)) in mac802154_llsec_dev_add()
534 addr->short_addr = sec->params.coord_shortaddr; in llsec_recover_addr()
785 u32 key = llsec_dev_hash_short(devaddr.short_addr, in llsec_lookup_dev()
791 dev->dev.short_addr == devaddr.short_addr) in llsec_lookup_dev()