Home
last modified time | relevance | path

Searched refs:wpan_dev (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/net/ieee802154/
Drdev-ops.h65 struct wpan_dev *wpan_dev) in rdev_del_virtual_intf() argument
69 trace_802154_rdev_del_virtual_intf(&rdev->wpan_phy, wpan_dev); in rdev_del_virtual_intf()
70 ret = rdev->ops->del_virtual_intf(&rdev->wpan_phy, wpan_dev); in rdev_del_virtual_intf()
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()
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()
147 struct wpan_dev *wpan_dev, u8 min_be, u8 max_be) in rdev_set_backoff_exponent() argument
[all …]
Dtrace.h23 #define WPAN_DEV_ASSIGN (__entry->identifier) = (!IS_ERR_OR_NULL(wpan_dev) \
24 ? wpan_dev->identifier : 0)
88 TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev),
89 TP_ARGS(wpan_phy, wpan_dev),
165 TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
167 TP_ARGS(wpan_phy, wpan_dev, le16arg),
184 TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
186 TP_ARGS(wpan_phy, wpan_dev, le16arg)
190 TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
192 TP_ARGS(wpan_phy, wpan_dev, le16arg),
[all …]
Dnl802154.c38 static struct wpan_dev *
42 struct wpan_dev *result = NULL; in __cfg802154_wpan_dev_from_attrs()
62 struct wpan_dev *wpan_dev; in __cfg802154_wpan_dev_from_attrs() local
70 list_for_each_entry(wpan_dev, &rdev->wpan_dev_list, list) { in __cfg802154_wpan_dev_from_attrs()
71 if (have_ifidx && wpan_dev->netdev && in __cfg802154_wpan_dev_from_attrs()
72 wpan_dev->netdev->ifindex == ifidx) { in __cfg802154_wpan_dev_from_attrs()
73 result = wpan_dev; in __cfg802154_wpan_dev_from_attrs()
77 wpan_dev->identifier == (u32)wpan_dev_id) { in __cfg802154_wpan_dev_from_attrs()
78 result = wpan_dev; in __cfg802154_wpan_dev_from_attrs()
112 struct wpan_dev *wpan_dev; in __cfg802154_rdev_from_attrs() local
[all …]
Dcore.c204 struct wpan_dev *wpan_dev; in cfg802154_switch_netns() local
207 list_for_each_entry(wpan_dev, &rdev->wpan_dev_list, list) { in cfg802154_switch_netns()
208 if (!wpan_dev->netdev) in cfg802154_switch_netns()
210 wpan_dev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
211 err = dev_change_net_namespace(wpan_dev->netdev, net, "wpan%d"); in cfg802154_switch_netns()
214 wpan_dev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
221 list_for_each_entry_continue_reverse(wpan_dev, in cfg802154_switch_netns()
224 if (!wpan_dev->netdev) in cfg802154_switch_netns()
226 wpan_dev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
227 err = dev_change_net_namespace(wpan_dev->netdev, net, in cfg802154_switch_netns()
[all …]
Dnl802154.h7 int nl802154_scan_event(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
9 int nl802154_scan_started(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev);
10 int nl802154_scan_done(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
12 void nl802154_beaconing_done(struct wpan_dev *wpan_dev);
/linux-6.6.21/net/mac802154/
Dcfg.c98 ieee802154_del_iface(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev) in ieee802154_del_iface() argument
100 ieee802154_if_remove(IEEE802154_WPAN_DEV_TO_SUB_IF(wpan_dev)); in ieee802154_del_iface()
187 ieee802154_set_pan_id(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev, in ieee802154_set_pan_id() argument
194 if (wpan_dev->pan_id == pan_id) in ieee802154_set_pan_id()
197 ret = mac802154_wpan_update_llsec(wpan_dev->netdev); in ieee802154_set_pan_id()
199 wpan_dev->pan_id = pan_id; in ieee802154_set_pan_id()
206 struct wpan_dev *wpan_dev, in ieee802154_set_backoff_exponent() argument
211 wpan_dev->min_be = min_be; in ieee802154_set_backoff_exponent()
212 wpan_dev->max_be = max_be; in ieee802154_set_backoff_exponent()
217 ieee802154_set_short_addr(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev, in ieee802154_set_short_addr() argument
[all …]
Diface.c29 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_wpan_update_llsec() local
36 params.pan_id = wpan_dev->pan_id; in mac802154_wpan_update_llsec()
39 params.hwaddr = wpan_dev->extended_addr; in mac802154_wpan_update_llsec()
52 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_wpan_ioctl() local
67 pan_id = le16_to_cpu(wpan_dev->pan_id); in mac802154_wpan_ioctl()
68 short_addr = le16_to_cpu(wpan_dev->short_addr); in mac802154_wpan_ioctl()
100 wpan_dev->pan_id = cpu_to_le16(sa->addr.pan_id); in mac802154_wpan_ioctl()
101 wpan_dev->short_addr = cpu_to_le16(sa->addr.short_addr); in mac802154_wpan_ioctl()
123 if (sdata->wpan_dev.lowpan_dev) { in mac802154_wpan_mac_addr()
124 if (netif_running(sdata->wpan_dev.lowpan_dev)) in mac802154_wpan_mac_addr()
[all …]
Dmac_cmd.c62 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_set_mac_params() local
68 wpan_dev->wpan_phy->transmit_power = params->transmit_power; in mac802154_set_mac_params()
69 wpan_dev->wpan_phy->cca = params->cca; in mac802154_set_mac_params()
70 wpan_dev->wpan_phy->cca_ed_level = params->cca_ed_level; in mac802154_set_mac_params()
73 wpan_dev->min_be = params->min_be; in mac802154_set_mac_params()
74 wpan_dev->max_be = params->max_be; in mac802154_set_mac_params()
75 wpan_dev->csma_retries = params->csma_retries; in mac802154_set_mac_params()
76 wpan_dev->frame_retries = params->frame_retries; in mac802154_set_mac_params()
77 wpan_dev->lbt = params->lbt; in mac802154_set_mac_params()
104 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_get_mac_params() local
[all …]
Dscan.c48 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_scan_cleanup_locked() local
66 nl802154_scan_done(wpan_phy, wpan_dev, arg); in mac802154_scan_cleanup_locked()
201 sdata = IEEE802154_WPAN_DEV_TO_SUB_IF(scan_req->wpan_dev); in mac802154_scan_worker()
300 nl802154_scan_started(request->wpan_phy, request->wpan_dev); in mac802154_trigger_scan_locked()
338 nl802154_scan_event(scan_req->wpan_phy, scan_req->wpan_dev, &desc); in mac802154_process_beacon()
345 struct wpan_dev *wpan_dev) in mac802154_transmit_beacon() argument
353 local->beacon.mhr.seq = atomic_inc_return(&wpan_dev->bsn) & 0xFF; in mac802154_transmit_beacon()
367 sdata = IEEE802154_WPAN_DEV_TO_SUB_IF(beacon_req->wpan_dev); in mac802154_transmit_beacon()
405 struct wpan_dev *wpan_dev; in mac802154_beacon_worker() local
416 sdata = IEEE802154_WPAN_DEV_TO_SUB_IF(beacon_req->wpan_dev); in mac802154_beacon_worker()
[all …]
Dieee802154_i.h107 struct wpan_dev wpan_dev; member
149 IEEE802154_WPAN_DEV_TO_SUB_IF(struct wpan_dev *wpan_dev) in IEEE802154_WPAN_DEV_TO_SUB_IF() argument
151 return container_of(wpan_dev, struct ieee802154_sub_if_data, wpan_dev); in IEEE802154_WPAN_DEV_TO_SUB_IF()
Drx.c111 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in ieee802154_subif_frame() local
118 span = wpan_dev->pan_id; in ieee802154_subif_frame()
119 sshort = wpan_dev->short_addr; in ieee802154_subif_frame()
145 else if (mac_cb(skb)->dest.extended_addr == wpan_dev->extended_addr) in ieee802154_subif_frame()
322 if (sdata->wpan_dev.iftype == NL802154_IFTYPE_MONITOR) in __ieee802154_rx_handle_packet()
355 if (sdata->wpan_dev.iftype != NL802154_IFTYPE_MONITOR) in ieee802154_monitors_rx()
/linux-6.6.21/include/net/
Dcfg802154.h49 struct wpan_dev *wpan_dev);
56 struct wpan_dev *wpan_dev, __le16 pan_id);
58 struct wpan_dev *wpan_dev, __le16 short_addr);
60 struct wpan_dev *wpan_dev, u8 min_be,
63 struct wpan_dev *wpan_dev,
66 struct wpan_dev *wpan_dev,
69 struct wpan_dev *wpan_dev, bool mode);
71 struct wpan_dev *wpan_dev, bool ackreq);
75 struct wpan_dev *wpan_dev);
79 struct wpan_dev *wpan_dev);
[all …]
/linux-6.6.21/net/6lowpan/
Dcore.c81 struct wpan_dev *wpan_dev = lowpan_802154_dev(dev)->wdev->ieee802154_ptr; in addrconf_ifid_802154_6lowpan() local
84 if (!lowpan_802154_is_valid_src_short_addr(wpan_dev->short_addr)) in addrconf_ifid_802154_6lowpan()
88 if (wpan_dev->pan_id == cpu_to_le16(0x0000) && in addrconf_ifid_802154_6lowpan()
89 wpan_dev->short_addr == 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()
104 ieee802154_le16_to_be16(&eui[6], &wpan_dev->short_addr); in addrconf_ifid_802154_6lowpan()
Dndisc.c119 struct wpan_dev *wpan_dev; in lowpan_ndisc_opt_addr_space() local
143 wpan_dev = lowpan_802154_dev(dev)->wdev->ieee802154_ptr; 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()
159 struct wpan_dev *wpan_dev; in lowpan_ndisc_fill_addr_option() local
186 wpan_dev = lowpan_802154_dev(dev)->wdev->ieee802154_ptr; 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()
190 &wpan_dev->short_addr); in lowpan_ndisc_fill_addr_option()
Ddebugfs.c218 struct wpan_dev *wdev = data; in lowpan_short_addr_get()
/linux-6.6.21/net/ieee802154/6lowpan/
Dcore.c218 struct wpan_dev *wpan_dev; in lowpan_device_event() local
222 wpan_dev = ndev->ieee802154_ptr; in lowpan_device_event()
223 if (!wpan_dev) in lowpan_device_event()
232 if (wpan_dev->lowpan_dev) in lowpan_device_event()
233 lowpan_dellink(wpan_dev->lowpan_dev, NULL); in lowpan_device_event()
Dtx.c37 struct wpan_dev *wpan_dev = lowpan_802154_dev(ldev)->wdev->ieee802154_ptr; in lowpan_header_create() local
53 info->saddr.pan_id = wpan_dev->pan_id; 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()
90 info->saddr.extended_addr = wpan_dev->extended_addr; in lowpan_header_create()
227 struct wpan_dev *wpan_dev = lowpan_802154_dev(ldev)->wdev->ieee802154_ptr; in lowpan_header() local
244 cb->ackreq = wpan_dev->ackreq; in lowpan_header()
/linux-6.6.21/include/linux/
Dnetdevice.h71 struct wpan_dev;
2226 struct wpan_dev *ieee802154_ptr;