Home
last modified time | relevance | path

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

/linux-4.1.27/include/net/
Dcfg802154.h27 struct wpan_phy;
31 struct net_device * (*add_virtual_intf_deprecated)(struct wpan_phy *wpan_phy,
35 void (*del_virtual_intf_deprecated)(struct wpan_phy *wpan_phy,
37 int (*add_virtual_intf)(struct wpan_phy *wpan_phy,
42 int (*del_virtual_intf)(struct wpan_phy *wpan_phy,
44 int (*set_channel)(struct wpan_phy *wpan_phy, u8 page, u8 channel);
45 int (*set_cca_mode)(struct wpan_phy *wpan_phy,
47 int (*set_pan_id)(struct wpan_phy *wpan_phy,
49 int (*set_short_addr)(struct wpan_phy *wpan_phy,
51 int (*set_backoff_exponent)(struct wpan_phy *wpan_phy,
[all …]
Dmac802154.h75 struct wpan_phy *phy;
Dieee802154_netdev.h346 struct wpan_phy;
/linux-4.1.27/net/mac802154/
Dcfg.c24 ieee802154_add_iface_deprecated(struct wpan_phy *wpan_phy, in ieee802154_add_iface_deprecated() argument
28 struct ieee802154_local *local = wpan_phy_priv(wpan_phy); in ieee802154_add_iface_deprecated()
39 static void ieee802154_del_iface_deprecated(struct wpan_phy *wpan_phy, in ieee802154_del_iface_deprecated() argument
48 ieee802154_add_iface(struct wpan_phy *phy, const char *name, in ieee802154_add_iface()
61 ieee802154_del_iface(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev) in ieee802154_del_iface() argument
69 ieee802154_set_channel(struct wpan_phy *wpan_phy, u8 page, u8 channel) in ieee802154_set_channel() argument
71 struct ieee802154_local *local = wpan_phy_priv(wpan_phy); in ieee802154_set_channel()
77 if (!(wpan_phy->channels_supported[page] & BIT(channel))) in ieee802154_set_channel()
82 wpan_phy->current_page = page; in ieee802154_set_channel()
83 wpan_phy->current_channel = channel; in ieee802154_set_channel()
[all …]
Dmain.c57 struct wpan_phy *phy; in ieee802154_alloc_hw()
126 static void ieee802154_setup_wpan_phy_pib(struct wpan_phy *wpan_phy) in ieee802154_setup_wpan_phy_pib() argument
132 wpan_phy->lifs_period = IEEE802154_LIFS_PERIOD * in ieee802154_setup_wpan_phy_pib()
133 wpan_phy->symbol_duration; in ieee802154_setup_wpan_phy_pib()
134 wpan_phy->sifs_period = IEEE802154_SIFS_PERIOD * in ieee802154_setup_wpan_phy_pib()
135 wpan_phy->symbol_duration; in ieee802154_setup_wpan_phy_pib()
Dmac_cmd.c83 wpan_dev->wpan_phy->transmit_power = params->transmit_power; in mac802154_set_mac_params()
84 wpan_dev->wpan_phy->cca = params->cca; in mac802154_set_mac_params()
85 wpan_dev->wpan_phy->cca_ed_level = params->cca_ed_level; in mac802154_set_mac_params()
124 params->transmit_power = wpan_dev->wpan_phy->transmit_power; in mac802154_get_mac_params()
125 params->cca = wpan_dev->wpan_phy->cca; in mac802154_get_mac_params()
126 params->cca_ed_level = wpan_dev->wpan_phy->cca_ed_level; in mac802154_get_mac_params()
Diface.c244 struct wpan_phy *phy = sdata->local->phy; in mac802154_wpan_open()
570 sdata->wpan_dev.wpan_phy = local->hw.phy; in ieee802154_if_add()
627 if (!dev->ieee802154_ptr || !dev->ieee802154_ptr->wpan_phy) in netdev_notify()
630 if (dev->ieee802154_ptr->wpan_phy->privid != mac802154_wpan_phy_privid) in netdev_notify()
Dieee802154_i.h37 struct wpan_phy *phy;
/linux-4.1.27/net/ieee802154/
Drdev-ops.h15 return rdev->ops->add_virtual_intf_deprecated(&rdev->wpan_phy, name, in rdev_add_virtual_intf_deprecated()
23 rdev->ops->del_virtual_intf_deprecated(&rdev->wpan_phy, dev); in rdev_del_virtual_intf_deprecated()
33 trace_802154_rdev_add_virtual_intf(&rdev->wpan_phy, name, type, in rdev_add_virtual_intf()
35 ret = rdev->ops->add_virtual_intf(&rdev->wpan_phy, name, in rdev_add_virtual_intf()
38 trace_802154_rdev_return_int(&rdev->wpan_phy, ret); in rdev_add_virtual_intf()
48 trace_802154_rdev_del_virtual_intf(&rdev->wpan_phy, wpan_dev); in rdev_del_virtual_intf()
49 ret = rdev->ops->del_virtual_intf(&rdev->wpan_phy, wpan_dev); in rdev_del_virtual_intf()
50 trace_802154_rdev_return_int(&rdev->wpan_phy, ret); in rdev_del_virtual_intf()
59 trace_802154_rdev_set_channel(&rdev->wpan_phy, page, channel); in rdev_set_channel()
60 ret = rdev->ops->set_channel(&rdev->wpan_phy, page, channel); in rdev_set_channel()
[all …]
Dtrace.h16 wpan_phy_name(wpan_phy), \
44 TP_PROTO(struct wpan_phy *wpan_phy, char *name,
46 TP_ARGS(wpan_phy, name, type, extended_addr),
65 TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev),
66 TP_ARGS(wpan_phy, wpan_dev),
80 TP_PROTO(struct wpan_phy *wpan_phy, u8 page, u8 channel),
81 TP_ARGS(wpan_phy, page, channel),
97 TP_PROTO(struct wpan_phy *wpan_phy, const struct wpan_phy_cca *cca),
98 TP_ARGS(wpan_phy, cca),
112 TP_PROTO(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev,
[all …]
Dcore.c40 struct wpan_phy *wpan_phy_find(const char *str) in wpan_phy_find()
51 return container_of(dev, struct wpan_phy, dev); in wpan_phy_find()
56 int (*fn)(struct wpan_phy *phy, void *data);
63 struct wpan_phy *phy = container_of(dev, struct wpan_phy, dev); in wpan_phy_iter()
68 int wpan_phy_for_each(int (*fn)(struct wpan_phy *phy, void *data), in wpan_phy_for_each()
98 struct wpan_phy *
124 mutex_init(&rdev->wpan_phy.pib_lock); in wpan_phy_new()
127 device_initialize(&rdev->wpan_phy.dev); in wpan_phy_new()
128 dev_set_name(&rdev->wpan_phy.dev, PHY_NAME "%d", rdev->wpan_phy_idx); in wpan_phy_new()
130 rdev->wpan_phy.dev.class = &wpan_phy_class; in wpan_phy_new()
[all …]
Dcore.h27 struct wpan_phy wpan_phy __aligned(NETDEV_ALIGN);
31 wpan_phy_to_rdev(struct wpan_phy *wpan_phy) in wpan_phy_to_rdev() argument
33 BUG_ON(!wpan_phy); in wpan_phy_to_rdev()
34 return container_of(wpan_phy, struct cfg802154_registered_device, in wpan_phy_to_rdev()
35 wpan_phy); in wpan_phy_to_rdev()
Dsysfs.c27 wpan_phy.dev); in dev_to_rdev()
45 struct wpan_phy *wpan_phy = &dev_to_rdev(dev)->wpan_phy; in name_show() local
47 return sprintf(buf, "%s\n", dev_name(&wpan_phy->dev)); in name_show()
Dnl-phy.c37 u32 seq, int flags, struct wpan_phy *phy) in ieee802154_nl_fill_phy()
85 struct wpan_phy *phy; in ieee802154_list_phy()
127 static int ieee802154_dump_phy_iter(struct wpan_phy *phy, void *_data) in ieee802154_dump_phy_iter()
172 struct wpan_phy *phy; in ieee802154_add_iface()
275 struct wpan_phy *phy; in ieee802154_del_iface()
293 phy = dev->ieee802154_ptr->wpan_phy; in ieee802154_del_iface()
300 struct wpan_phy *phy2; in ieee802154_del_iface()
Dnl802154.c159 netdev->ieee802154_ptr->wpan_phy); in __cfg802154_rdev_from_attrs()
251 rdev->wpan_phy.channels_supported[page])) in nl802154_send_wpan_phy_channels()
272 wpan_phy_name(&rdev->wpan_phy)) || in nl802154_send_wpan_phy()
284 rdev->wpan_phy.current_page) || in nl802154_send_wpan_phy()
286 rdev->wpan_phy.current_channel)) in nl802154_send_wpan_phy()
295 rdev->wpan_phy.cca.mode)) in nl802154_send_wpan_phy()
298 if (rdev->wpan_phy.cca.mode == NL802154_CCA_ENERGY_CARRIER) { in nl802154_send_wpan_phy()
300 rdev->wpan_phy.cca.opt)) in nl802154_send_wpan_phy()
305 rdev->wpan_phy.transmit_power)) in nl802154_send_wpan_phy()
352 netdev->ieee802154_ptr->wpan_phy); in nl802154_dump_wpan_phy_parse()
[all …]
Dnl-mac.c84 struct wpan_phy *phy; in ieee802154_nl_fill_iface()
96 phy = dev->ieee802154_ptr->wpan_phy; in ieee802154_nl_fill_iface()
476 struct wpan_phy *phy; in ieee802154_set_macparams()
506 phy = dev->ieee802154_ptr->wpan_phy; in ieee802154_set_macparams()