Home
last modified time | relevance | path

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

/linux-6.1.9/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 …]
Dnl802154.c36 static struct wpan_dev *
40 struct wpan_dev *result = NULL; in __cfg802154_wpan_dev_from_attrs()
60 struct wpan_dev *wpan_dev; in __cfg802154_wpan_dev_from_attrs() local
68 list_for_each_entry(wpan_dev, &rdev->wpan_dev_list, list) { in __cfg802154_wpan_dev_from_attrs()
69 if (have_ifidx && wpan_dev->netdev && in __cfg802154_wpan_dev_from_attrs()
70 wpan_dev->netdev->ifindex == ifidx) { in __cfg802154_wpan_dev_from_attrs()
71 result = wpan_dev; in __cfg802154_wpan_dev_from_attrs()
75 wpan_dev->identifier == (u32)wpan_dev_id) { in __cfg802154_wpan_dev_from_attrs()
76 result = wpan_dev; in __cfg802154_wpan_dev_from_attrs()
110 struct wpan_dev *wpan_dev; in __cfg802154_rdev_from_attrs() local
[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 …]
Dcore.c201 struct wpan_dev *wpan_dev; in cfg802154_switch_netns() local
204 list_for_each_entry(wpan_dev, &rdev->wpan_dev_list, list) { in cfg802154_switch_netns()
205 if (!wpan_dev->netdev) in cfg802154_switch_netns()
207 wpan_dev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
208 err = dev_change_net_namespace(wpan_dev->netdev, net, "wpan%d"); in cfg802154_switch_netns()
211 wpan_dev->netdev->features |= NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
218 list_for_each_entry_continue_reverse(wpan_dev, in cfg802154_switch_netns()
221 if (!wpan_dev->netdev) in cfg802154_switch_netns()
223 wpan_dev->netdev->features &= ~NETIF_F_NETNS_LOCAL; in cfg802154_switch_netns()
224 err = dev_change_net_namespace(wpan_dev->netdev, net, in cfg802154_switch_netns()
[all …]
/linux-6.1.9/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()
183 ieee802154_set_pan_id(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev, in ieee802154_set_pan_id() argument
190 if (wpan_dev->pan_id == pan_id) in ieee802154_set_pan_id()
193 ret = mac802154_wpan_update_llsec(wpan_dev->netdev); in ieee802154_set_pan_id()
195 wpan_dev->pan_id = pan_id; in ieee802154_set_pan_id()
202 struct wpan_dev *wpan_dev, in ieee802154_set_backoff_exponent() argument
207 wpan_dev->min_be = min_be; in ieee802154_set_backoff_exponent()
208 wpan_dev->max_be = max_be; in ieee802154_set_backoff_exponent()
213 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 …]
Dieee802154_i.h80 struct wpan_dev wpan_dev; member
112 IEEE802154_WPAN_DEV_TO_SUB_IF(struct wpan_dev *wpan_dev) in IEEE802154_WPAN_DEV_TO_SUB_IF() argument
114 return container_of(wpan_dev, struct ieee802154_sub_if_data, wpan_dev); in IEEE802154_WPAN_DEV_TO_SUB_IF()
Drx.c36 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in ieee802154_subif_frame() local
42 span = wpan_dev->pan_id; in ieee802154_subif_frame()
43 sshort = wpan_dev->short_addr; in ieee802154_subif_frame()
58 else if (mac_cb(skb)->dest.extended_addr == wpan_dev->extended_addr) in ieee802154_subif_frame()
206 if (sdata->wpan_dev.iftype != NL802154_IFTYPE_NODE) in __ieee802154_rx_handle_packet()
232 if (sdata->wpan_dev.iftype != NL802154_IFTYPE_MONITOR) in ieee802154_monitors_rx()
/linux-6.1.9/include/net/
Dcfg802154.h47 struct wpan_dev *wpan_dev);
54 struct wpan_dev *wpan_dev, __le16 pan_id);
56 struct wpan_dev *wpan_dev, __le16 short_addr);
58 struct wpan_dev *wpan_dev, u8 min_be,
61 struct wpan_dev *wpan_dev,
64 struct wpan_dev *wpan_dev,
67 struct wpan_dev *wpan_dev, bool mode);
69 struct wpan_dev *wpan_dev, bool ackreq);
72 struct wpan_dev *wpan_dev,
75 struct wpan_dev *wpan_dev);
[all …]
/linux-6.1.9/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.1.9/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.1.9/include/linux/
Dnetdevice.h69 struct wpan_dev;
2170 struct wpan_dev *ieee802154_ptr;