Home
last modified time | relevance | path

Searched refs:phy (Results 1 – 21 of 21) sorted by relevance

/net/mac802154/
Dmain.c49 struct wpan_phy *phy; in ieee802154_alloc_hw() local
77 phy = wpan_phy_new(&mac802154_config_ops, priv_size); in ieee802154_alloc_hw()
78 if (!phy) { in ieee802154_alloc_hw()
83 phy->privid = mac802154_wpan_phy_privid; in ieee802154_alloc_hw()
85 local = wpan_phy_priv(phy); in ieee802154_alloc_hw()
86 local->phy = phy; in ieee802154_alloc_hw()
87 local->hw.phy = local->phy; in ieee802154_alloc_hw()
103 phy->supported.max_minbe = 8; in ieee802154_alloc_hw()
104 phy->supported.min_maxbe = 3; in ieee802154_alloc_hw()
105 phy->supported.max_maxbe = 8; in ieee802154_alloc_hw()
[all …]
Dmac_cmd.c79 if (local->hw.phy->flags & WPAN_PHY_FLAG_TXPOWER) { in mac802154_set_mac_params()
85 if (local->hw.phy->flags & WPAN_PHY_FLAG_CCA_MODE) { in mac802154_set_mac_params()
91 if (local->hw.phy->flags & WPAN_PHY_FLAG_CCA_ED_LEVEL) { in mac802154_set_mac_params()
Dutil.c77 hw->phy->lifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete()
81 hw->phy->sifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete()
Dmib.c35 local->phy->current_channel = chan; in mac802154_dev_set_page_channel()
36 local->phy->current_page = page; in mac802154_dev_set_page_channel()
Diface.c637 &local->hw.phy->perm_extended_addr); in ieee802154_if_add()
656 SET_NETDEV_DEV(ndev, &local->phy->dev); in ieee802154_if_add()
657 dev_net_set(ndev, wpan_phy_net(local->hw.phy)); in ieee802154_if_add()
662 sdata->wpan_dev.wpan_phy = local->hw.phy; in ieee802154_if_add()
Dcfg.c85 ieee802154_add_iface(struct wpan_phy *phy, const char *name, in ieee802154_add_iface() argument
89 struct ieee802154_local *local = wpan_phy_priv(phy); in ieee802154_add_iface()
Dieee802154_i.h30 struct wpan_phy *phy; member
Dtrace.h18 wpan_phy_name(local->hw.phy), MAXNAME)
/net/ieee802154/
Dnl-phy.c29 u32 seq, int flags, struct wpan_phy *phy) in ieee802154_nl_fill_phy() argument
46 if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || in ieee802154_nl_fill_phy()
47 nla_put_u8(msg, IEEE802154_ATTR_PAGE, phy->current_page) || in ieee802154_nl_fill_phy()
48 nla_put_u8(msg, IEEE802154_ATTR_CHANNEL, phy->current_channel)) in ieee802154_nl_fill_phy()
51 if (phy->supported.channels[i]) in ieee802154_nl_fill_phy()
52 buf[pages++] = phy->supported.channels[i] | (i << 27); in ieee802154_nl_fill_phy()
77 struct wpan_phy *phy; in ieee802154_list_phy() local
90 phy = wpan_phy_find(name); in ieee802154_list_phy()
91 if (!phy) in ieee802154_list_phy()
99 0, phy); in ieee802154_list_phy()
[all …]
Dcore.c42 int (*fn)(struct wpan_phy *phy, void *data);
49 struct wpan_phy *phy = container_of(dev, struct wpan_phy, dev); in wpan_phy_iter() local
51 return wpid->fn(phy, wpid->data); in wpan_phy_iter()
54 int wpan_phy_for_each(int (*fn)(struct wpan_phy *phy, void *data), in wpan_phy_for_each() argument
137 int wpan_phy_register(struct wpan_phy *phy) in wpan_phy_register() argument
139 struct cfg802154_registered_device *rdev = wpan_phy_to_rdev(phy); in wpan_phy_register()
143 ret = device_add(&phy->dev); in wpan_phy_register()
161 void wpan_phy_unregister(struct wpan_phy *phy) in wpan_phy_unregister() argument
163 struct cfg802154_registered_device *rdev = wpan_phy_to_rdev(phy); in wpan_phy_unregister()
186 device_del(&phy->dev); in wpan_phy_unregister()
[all …]
Dnl-mac.c78 struct wpan_phy *phy; in ieee802154_nl_fill_iface() local
90 phy = dev->ieee802154_ptr->wpan_phy; in ieee802154_nl_fill_iface()
91 BUG_ON(!phy); in ieee802154_nl_fill_iface()
92 get_device(&phy->dev); in ieee802154_nl_fill_iface()
100 nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || in ieee802154_nl_fill_iface()
133 wpan_phy_put(phy); in ieee802154_nl_fill_iface()
138 wpan_phy_put(phy); in ieee802154_nl_fill_iface()
469 struct wpan_phy *phy; in ieee802154_set_macparams() local
499 phy = dev->ieee802154_ptr->wpan_phy; in ieee802154_set_macparams()
500 get_device(&phy->dev); in ieee802154_set_macparams()
[all …]
DMakefile6 ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o core.o \
/net/caif/
Dcfcnfg.c136 struct cfcnfg_phyinfo *phy; in cfcnfg_get_phyinfo_rcu() local
138 list_for_each_entry_rcu(phy, &cnfg->phys, node) in cfcnfg_get_phyinfo_rcu()
139 if (phy->id == phyid) in cfcnfg_get_phyinfo_rcu()
140 return phy; in cfcnfg_get_phyinfo_rcu()
152 struct cfcnfg_phyinfo *phy; in cfcnfg_get_phyid() local
154 list_for_each_entry_rcu(phy, &cnfg->phys, node) { in cfcnfg_get_phyid()
155 if (phy->up && phy->pref == phy_pref && in cfcnfg_get_phyid()
156 phy->frm_layer != NULL) in cfcnfg_get_phyid()
158 return &phy->dev_info; in cfcnfg_get_phyid()
162 list_for_each_entry_rcu(phy, &cnfg->phys, node) in cfcnfg_get_phyid()
[all …]
/net/dsa/
Ddsa_priv.h134 int dsa_port_enable_rt(struct dsa_port *dp, struct phy_device *phy);
135 int dsa_port_enable(struct dsa_port *dp, struct phy_device *phy);
Dport.c83 int dsa_port_enable_rt(struct dsa_port *dp, struct phy_device *phy) in dsa_port_enable_rt() argument
90 err = ds->ops->port_enable(ds, port, phy); in dsa_port_enable_rt()
104 int dsa_port_enable(struct dsa_port *dp, struct phy_device *phy) in dsa_port_enable() argument
109 err = dsa_port_enable_rt(dp, phy); in dsa_port_enable()
/net/openvswitch/
Dflow_netlink.c1166 SW_FLOW_KEY_PUT(match, phy.priority, in metadata_from_nlattrs()
1182 SW_FLOW_KEY_PUT(match, phy.in_port, in_port, is_mask); in metadata_from_nlattrs()
1185 SW_FLOW_KEY_PUT(match, phy.in_port, DP_MAX_PORTS, is_mask); in metadata_from_nlattrs()
1191 SW_FLOW_KEY_PUT(match, phy.skb_mark, mark, is_mask); in metadata_from_nlattrs()
1944 key->phy.in_port = DP_MAX_PORTS; in ovs_nla_get_flow_metadata()
2003 if (nla_put_u32(skb, OVS_KEY_ATTR_PRIORITY, output->phy.priority)) in __ovs_nla_put_key()
2017 if (swkey->phy.in_port == DP_MAX_PORTS) { in __ovs_nla_put_key()
2018 if (is_mask && (output->phy.in_port == 0xffff)) in __ovs_nla_put_key()
2026 (upper_u16 << 16) | output->phy.in_port)) in __ovs_nla_put_key()
2030 if (nla_put_u32(skb, OVS_KEY_ATTR_SKB_MARK, output->phy.skb_mark)) in __ovs_nla_put_key()
Dflow.c880 key->phy.priority = skb->priority; in ovs_flow_key_extract()
881 key->phy.in_port = OVS_CB(skb)->input_vport->port_no; in ovs_flow_key_extract()
882 key->phy.skb_mark = skb->mark; in ovs_flow_key_extract()
Dflow.h70 } __packed phy; /* Safe when right after 'tun_key'. */ member
Ddatapath.c616 packet->priority = flow->key.phy.priority; in ovs_packet_cmd_execute()
617 packet->mark = flow->key.phy.skb_mark; in ovs_packet_cmd_execute()
625 input_vport = ovs_vport_rcu(dp, flow->key.phy.in_port); in ovs_packet_cmd_execute()
Dactions.c1107 flow_key->phy.priority = skb->priority; in execute_masked_set_action()
1112 flow_key->phy.skb_mark = skb->mark; in execute_masked_set_action()
Dflow_table.c663 return rounddown(offsetof(struct sw_flow_key, phy), in flow_key_start()