Home
last modified time | relevance | path

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

/Linux-v4.19/include/net/
Dcfg802154.h27 struct wpan_phy;
41 struct net_device * (*add_virtual_intf_deprecated)(struct wpan_phy *wpan_phy,
45 void (*del_virtual_intf_deprecated)(struct wpan_phy *wpan_phy,
47 int (*suspend)(struct wpan_phy *wpan_phy);
48 int (*resume)(struct wpan_phy *wpan_phy);
49 int (*add_virtual_intf)(struct wpan_phy *wpan_phy,
54 int (*del_virtual_intf)(struct wpan_phy *wpan_phy,
56 int (*set_channel)(struct wpan_phy *wpan_phy, u8 page, u8 channel);
57 int (*set_cca_mode)(struct wpan_phy *wpan_phy,
59 int (*set_cca_ed_level)(struct wpan_phy *wpan_phy, s32 ed_level);
[all …]
Dmac802154.h92 struct wpan_phy *phy;
Dieee802154_netdev.h262 struct wpan_phy;
/Linux-v4.19/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 static int ieee802154_suspend(struct wpan_phy *wpan_phy) in ieee802154_suspend() argument
50 struct ieee802154_local *local = wpan_phy_priv(wpan_phy); in ieee802154_suspend()
66 static int ieee802154_resume(struct wpan_phy *wpan_phy) in ieee802154_resume() argument
68 struct ieee802154_local *local = wpan_phy_priv(wpan_phy); in ieee802154_resume()
91 ieee802154_add_iface(struct wpan_phy *phy, const char *name, in ieee802154_add_iface()
104 ieee802154_del_iface(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev) in ieee802154_del_iface() argument
112 ieee802154_set_channel(struct wpan_phy *wpan_phy, u8 page, u8 channel) in ieee802154_set_channel() argument
[all …]
Dmac_cmd.c76 wpan_dev->wpan_phy->transmit_power = params->transmit_power; in mac802154_set_mac_params()
77 wpan_dev->wpan_phy->cca = params->cca; in mac802154_set_mac_params()
78 wpan_dev->wpan_phy->cca_ed_level = params->cca_ed_level; in mac802154_set_mac_params()
117 params->transmit_power = wpan_dev->wpan_phy->transmit_power; in mac802154_get_mac_params()
118 params->cca = wpan_dev->wpan_phy->cca; in mac802154_get_mac_params()
119 params->cca_ed_level = wpan_dev->wpan_phy->cca_ed_level; in mac802154_get_mac_params()
Dmain.c57 struct wpan_phy *phy; in ieee802154_alloc_hw()
138 static void ieee802154_setup_wpan_phy_pib(struct wpan_phy *wpan_phy) in ieee802154_setup_wpan_phy_pib() argument
144 wpan_phy->lifs_period = IEEE802154_LIFS_PERIOD * in ieee802154_setup_wpan_phy_pib()
145 wpan_phy->symbol_duration; in ieee802154_setup_wpan_phy_pib()
146 wpan_phy->sifs_period = IEEE802154_SIFS_PERIOD * in ieee802154_setup_wpan_phy_pib()
147 wpan_phy->symbol_duration; in ieee802154_setup_wpan_phy_pib()
Dieee802154_i.h38 struct wpan_phy *phy;
Diface.c670 sdata->wpan_dev.wpan_phy = local->hw.phy; in ieee802154_if_add()
727 if (!dev->ieee802154_ptr || !dev->ieee802154_ptr->wpan_phy) in netdev_notify()
730 if (dev->ieee802154_ptr->wpan_phy->privid != mac802154_wpan_phy_privid) in netdev_notify()
/Linux-v4.19/net/ieee802154/
Drdev-ops.h16 return rdev->ops->add_virtual_intf_deprecated(&rdev->wpan_phy, name, in rdev_add_virtual_intf_deprecated()
24 rdev->ops->del_virtual_intf_deprecated(&rdev->wpan_phy, dev); in rdev_del_virtual_intf_deprecated()
31 trace_802154_rdev_suspend(&rdev->wpan_phy); in rdev_suspend()
32 ret = rdev->ops->suspend(&rdev->wpan_phy); in rdev_suspend()
33 trace_802154_rdev_return_int(&rdev->wpan_phy, ret); in rdev_suspend()
41 trace_802154_rdev_resume(&rdev->wpan_phy); in rdev_resume()
42 ret = rdev->ops->resume(&rdev->wpan_phy); in rdev_resume()
43 trace_802154_rdev_return_int(&rdev->wpan_phy, ret); in rdev_resume()
54 trace_802154_rdev_add_virtual_intf(&rdev->wpan_phy, name, type, in rdev_add_virtual_intf()
56 ret = rdev->ops->add_virtual_intf(&rdev->wpan_phy, name, in rdev_add_virtual_intf()
[all …]
Dtrace.h17 wpan_phy_name(wpan_phy), \
45 TP_PROTO(struct wpan_phy *wpan_phy),
46 TP_ARGS(wpan_phy),
57 TP_PROTO(struct wpan_phy *wpan_phy),
58 TP_ARGS(wpan_phy)
62 TP_PROTO(struct wpan_phy *wpan_phy),
63 TP_ARGS(wpan_phy)
67 TP_PROTO(struct wpan_phy *wpan_phy, char *name,
69 TP_ARGS(wpan_phy, name, type, extended_addr),
88 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 *wpan_phy_idx_to_wpan_phy(int wpan_phy_idx) in wpan_phy_idx_to_wpan_phy()
107 return &rdev->wpan_phy; in wpan_phy_idx_to_wpan_phy()
110 struct wpan_phy *
137 device_initialize(&rdev->wpan_phy.dev); in wpan_phy_new()
138 dev_set_name(&rdev->wpan_phy.dev, PHY_NAME "%d", rdev->wpan_phy_idx); in wpan_phy_new()
[all …]
Dcore.h28 struct wpan_phy wpan_phy __aligned(NETDEV_ALIGN);
32 wpan_phy_to_rdev(struct wpan_phy *wpan_phy) in wpan_phy_to_rdev() argument
34 BUG_ON(!wpan_phy); in wpan_phy_to_rdev()
35 return container_of(wpan_phy, struct cfg802154_registered_device, in wpan_phy_to_rdev()
36 wpan_phy); in wpan_phy_to_rdev()
48 struct wpan_phy *wpan_phy_idx_to_wpan_phy(int wpan_phy_idx);
Dsysfs.c29 wpan_phy.dev); in dev_to_rdev()
47 struct wpan_phy *wpan_phy = &dev_to_rdev(dev)->wpan_phy; in name_show() local
49 return sprintf(buf, "%s\n", dev_name(&wpan_phy->dev)); in name_show()
Dnl802154.c68 if (wpan_phy_net(&rdev->wpan_phy) != netns) in __cfg802154_wpan_dev_from_attrs()
145 netdev->ieee802154_ptr->wpan_phy); in __cfg802154_rdev_from_attrs()
164 if (netns != wpan_phy_net(&rdev->wpan_phy)) in __cfg802154_rdev_from_attrs()
262 *rdev = wpan_phy_to_rdev((*wpan_dev)->wpan_phy); in nl802154_prepare_wpan_dev_dump()
268 struct wpan_phy *wpan_phy = wpan_phy_idx_to_wpan_phy(cb->args[0] - 1); in nl802154_prepare_wpan_dev_dump() local
271 if (!wpan_phy) { in nl802154_prepare_wpan_dev_dump()
275 *rdev = wpan_phy_to_rdev(wpan_phy); in nl802154_prepare_wpan_dev_dump()
347 rdev->wpan_phy.supported.channels[page])) in nl802154_send_wpan_phy_channels()
359 const struct wpan_phy_supported *caps = &rdev->wpan_phy.supported; in nl802154_put_capabilities()
380 if (rdev->wpan_phy.flags & WPAN_PHY_FLAG_CCA_ED_LEVEL) { in nl802154_put_capabilities()
[all …]
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()
296 phy = dev->ieee802154_ptr->wpan_phy; in ieee802154_del_iface()
303 struct wpan_phy *phy2; in ieee802154_del_iface()
Dnl-mac.c86 struct wpan_phy *phy; in ieee802154_nl_fill_iface()
98 phy = dev->ieee802154_ptr->wpan_phy; in ieee802154_nl_fill_iface()
477 struct wpan_phy *phy; in ieee802154_set_macparams()
507 phy = dev->ieee802154_ptr->wpan_phy; in ieee802154_set_macparams()
/Linux-v4.19/drivers/net/ieee802154/
Dmcr20a.c997 struct wpan_phy *phy = lp->hw->phy; in mcr20a_hw_setup()