/net/mac802154/ |
D | main.c | 49 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() 107 phy->supported.max_minbe = 8; in ieee802154_alloc_hw() 108 phy->supported.min_maxbe = 3; in ieee802154_alloc_hw() 109 phy->supported.max_maxbe = 8; in ieee802154_alloc_hw() [all …]
|
D | util.c | 32 clear_bit(WPAN_PHY_FLAG_STATE_QUEUE_STOPPED, &local->phy->flags); in ieee802154_wake_queue() 71 spin_lock_irqsave(&local->phy->queue_lock, flags); in ieee802154_hold_queue() 72 if (!atomic_fetch_inc(&local->phy->hold_txs)) in ieee802154_hold_queue() 74 spin_unlock_irqrestore(&local->phy->queue_lock, flags); in ieee802154_hold_queue() 81 spin_lock_irqsave(&local->phy->queue_lock, flags); in ieee802154_release_queue() 82 if (atomic_dec_and_test(&local->phy->hold_txs)) in ieee802154_release_queue() 84 spin_unlock_irqrestore(&local->phy->queue_lock, flags); in ieee802154_release_queue() 133 hw->phy->lifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete() 137 hw->phy->sifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete() 144 if (atomic_dec_and_test(&hw->phy->ongoing_txs)) in ieee802154_xmit_complete() [all …]
|
D | tx.c | 47 if (atomic_dec_and_test(&local->phy->ongoing_txs)) in ieee802154_xmit_sync_worker() 48 wake_up(&local->phy->sync_txq); in ieee802154_xmit_sync_worker() 80 atomic_inc(&local->phy->ongoing_txs); in ieee802154_tx() 104 if (atomic_dec_and_test(&local->phy->ongoing_txs)) in ieee802154_tx() 105 wake_up(&local->phy->sync_txq); in ieee802154_tx() 117 wait_event(local->phy->sync_txq, !atomic_read(&local->phy->ongoing_txs)); in ieee802154_sync_queue() 130 set_bit(WPAN_PHY_FLAG_STATE_QUEUE_STOPPED, &local->phy->flags); in ieee802154_sync_and_hold_queue() 209 return test_bit(WPAN_PHY_FLAG_STATE_QUEUE_STOPPED, &local->phy->flags); in ieee802154_queue_is_stopped()
|
D | mac_cmd.c | 79 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()
|
D | rx.c | 110 struct wpan_phy *wpan_phy = sdata->local->hw.phy; in ieee802154_subif_frame() 331 if (local->hw.phy->filtering < IEEE802154_FILTERING_4_FRAME_FIELDS && in __ieee802154_rx_handle_packet() 395 if (local->hw.phy->filtering == IEEE802154_FILTERING_NONE) { in ieee802154_rx()
|
D | mib.c | 35 local->phy->current_channel = chan; in mac802154_dev_set_page_channel() 36 local->phy->current_page = page; in mac802154_dev_set_page_channel()
|
D | cfg.c | 70 ret = drv_start(local, local->phy->filtering, &local->addr_filt); in ieee802154_resume() 85 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()
|
D | iface.c | 631 &local->hw.phy->perm_extended_addr); in ieee802154_if_add() 652 SET_NETDEV_DEV(ndev, &local->phy->dev); in ieee802154_if_add() 653 dev_net_set(ndev, wpan_phy_net(local->hw.phy)); in ieee802154_if_add() 658 sdata->wpan_dev.wpan_phy = local->hw.phy; in ieee802154_if_add()
|
D | driver-ops.h | 187 local->phy->filtering = IEEE802154_FILTERING_NONE; in drv_start() 200 local->phy->filtering = IEEE802154_FILTERING_4_FRAME_FIELDS; in drv_start()
|
D | ieee802154_i.h | 37 struct wpan_phy *phy; member
|
D | trace.h | 18 wpan_phy_name(local->hw.phy), MAXNAME)
|
D | scan.c | 49 struct wpan_phy *wpan_phy = local->phy; in mac802154_scan_cleanup_locked()
|
/net/ieee802154/ |
D | nl-phy.c | 29 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 …]
|
D | core.c | 42 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 140 int wpan_phy_register(struct wpan_phy *phy) in wpan_phy_register() argument 142 struct cfg802154_registered_device *rdev = wpan_phy_to_rdev(phy); in wpan_phy_register() 146 ret = device_add(&phy->dev); in wpan_phy_register() 164 void wpan_phy_unregister(struct wpan_phy *phy) in wpan_phy_unregister() argument 166 struct cfg802154_registered_device *rdev = wpan_phy_to_rdev(phy); in wpan_phy_unregister() 189 device_del(&phy->dev); in wpan_phy_unregister() [all …]
|
D | nl-mac.c | 78 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 …]
|
D | Makefile | 6 ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o core.o \
|
/net/caif/ |
D | cfcnfg.c | 136 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/bluetooth/ |
D | hci_conn.c | 1813 cp.bis.phy = qos->bcast.out.phy; in hci_le_create_big() 1864 cis->c_phy = qos->ucast.out.phy ? qos->ucast.out.phy : in set_cig_params_sync() 1865 qos->ucast.in.phy; in set_cig_params_sync() 1866 cis->p_phy = qos->ucast.in.phy ? qos->ucast.in.phy : in set_cig_params_sync() 1867 qos->ucast.out.phy; in set_cig_params_sync() 1966 cis->le_tx_phy = qos->ucast.out.phy; in hci_bind_cis() 1967 cis->le_rx_phy = qos->ucast.in.phy; in hci_bind_cis() 2082 struct bt_iso_io_qos *qos, __u8 phy) in hci_iso_qos_setup() argument 2085 if (!qos->sdu && qos->phy) in hci_iso_qos_setup() 2089 if (qos->phy == BT_ISO_PHY_ANY) in hci_iso_qos_setup() [all …]
|
D | hci_sync.c | 2708 struct hci_cp_le_scan_phy_params *phy; in hci_le_set_ext_scan_param_sync() local 2709 u8 data[sizeof(*cp) + sizeof(*phy) * 2]; in hci_le_set_ext_scan_param_sync() 2713 phy = (void *)cp->data; in hci_le_set_ext_scan_param_sync() 2735 if (qos->bcast.in.phy & BT_ISO_PHY_1M || in hci_le_set_ext_scan_param_sync() 2736 qos->bcast.in.phy & BT_ISO_PHY_2M) { in hci_le_set_ext_scan_param_sync() 2738 hci_le_scan_phy_params(phy, type, in hci_le_set_ext_scan_param_sync() 2742 phy++; in hci_le_set_ext_scan_param_sync() 2745 if (qos->bcast.in.phy & BT_ISO_PHY_CODED) { in hci_le_set_ext_scan_param_sync() 2747 hci_le_scan_phy_params(phy, type, in hci_le_set_ext_scan_param_sync() 2751 phy++; in hci_le_set_ext_scan_param_sync() [all …]
|
D | iso.c | 330 if (!iso_pi(sk)->qos.bcast.out.phy) { in iso_connect_bis() 421 if (!iso_pi(sk)->qos.ucast.in.phy && !iso_pi(sk)->qos.ucast.out.phy) { in iso_connect_cis() 750 .phy = BT_ISO_PHY_2M, \ 1260 if (!qos->phy && qos->sdu) in check_io_qos() 1269 if (qos->phy > BT_ISO_PHY_ANY) in check_io_qos()
|
/net/dsa/ |
D | port.h | 25 int dsa_port_enable_rt(struct dsa_port *dp, struct phy_device *phy); 26 int dsa_port_enable(struct dsa_port *dp, struct phy_device *phy);
|
D | port.c | 217 int dsa_port_enable_rt(struct dsa_port *dp, struct phy_device *phy) in dsa_port_enable_rt() argument 224 err = ds->ops->port_enable(ds, port, phy); in dsa_port_enable_rt() 238 int dsa_port_enable(struct dsa_port *dp, struct phy_device *phy) in dsa_port_enable() argument 243 err = dsa_port_enable_rt(dp, phy); in dsa_port_enable()
|
/net/openvswitch/ |
D | flow_netlink.c | 1178 SW_FLOW_KEY_PUT(match, phy.priority, in metadata_from_nlattrs() 1194 SW_FLOW_KEY_PUT(match, phy.in_port, in_port, is_mask); in metadata_from_nlattrs() 1197 SW_FLOW_KEY_PUT(match, phy.in_port, DP_MAX_PORTS, is_mask); in metadata_from_nlattrs() 1203 SW_FLOW_KEY_PUT(match, phy.skb_mark, mark, is_mask); in metadata_from_nlattrs() 1967 key->phy.in_port = DP_MAX_PORTS; in ovs_nla_get_flow_metadata() 2026 if (nla_put_u32(skb, OVS_KEY_ATTR_PRIORITY, output->phy.priority)) in __ovs_nla_put_key() 2040 if (swkey->phy.in_port == DP_MAX_PORTS) { in __ovs_nla_put_key() 2041 if (is_mask && (output->phy.in_port == 0xffff)) in __ovs_nla_put_key() 2049 (upper_u16 << 16) | output->phy.in_port)) in __ovs_nla_put_key() 2053 if (nla_put_u32(skb, OVS_KEY_ATTR_SKB_MARK, output->phy.skb_mark)) in __ovs_nla_put_key()
|
D | flow.h | 83 } __packed phy; /* Safe when right after 'tun_key'. */ member
|
D | flow.c | 1033 key->phy.priority = skb->priority; in ovs_flow_key_extract() 1034 key->phy.in_port = OVS_CB(skb)->input_vport->port_no; in ovs_flow_key_extract() 1035 key->phy.skb_mark = skb->mark; in ovs_flow_key_extract()
|