| /net/mac802154/ |
| A D | main.c | 49 struct wpan_phy *phy; in ieee802154_alloc_hw() local 78 if (!phy) { 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() 109 phy->supported.max_minbe = 8; in ieee802154_alloc_hw() 110 phy->supported.min_maxbe = 3; in ieee802154_alloc_hw() 164 phy->lifs_period = in ieee802154_configure_durations() 166 phy->sifs_period = in ieee802154_configure_durations() 179 wpan_phy_free(local->phy); in ieee802154_free_hw() [all …]
|
| A D | util.c | 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() 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() 145 wake_up(&hw->phy->sync_txq); in ieee802154_xmit_complete() 157 if (atomic_dec_and_test(&hw->phy->ongoing_txs)) in ieee802154_xmit_error() [all …]
|
| A 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() 196 return test_bit(WPAN_PHY_FLAG_STATE_QUEUE_STOPPED, &local->phy->flags); in ieee802154_queue_is_stopped()
|
| A 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()
|
| A 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()
|
| A D | rx.c | 135 struct wpan_phy *wpan_phy = sdata->local->hw.phy; in ieee802154_subif_frame() 359 if (local->hw.phy->filtering < IEEE802154_FILTERING_4_FRAME_FIELDS && in __ieee802154_rx_handle_packet() 423 if (local->hw.phy->filtering == IEEE802154_FILTERING_NONE) { in ieee802154_rx()
|
| A 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()
|
| A 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()
|
| A 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()
|
| /net/ieee802154/ |
| A D | nl-phy.c | 91 if (!phy) in ieee802154_list_phy() 99 0, phy); in ieee802154_list_phy() 103 wpan_phy_put(phy); in ieee802154_list_phy() 109 wpan_phy_put(phy); in ieee802154_list_phy() 133 phy); in ieee802154_dump_phy_iter() 196 if (!phy) in ieee802154_add_iface() 250 wpan_phy_put(phy); in ieee802154_add_iface() 262 wpan_phy_put(phy); in ieee802154_add_iface() 291 BUG_ON(!phy); in ieee802154_del_iface() 334 wpan_phy_put(phy); in ieee802154_del_iface() [all …]
|
| A 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 189 device_del(&phy->dev); in wpan_phy_unregister() 195 void wpan_phy_free(struct wpan_phy *phy) in wpan_phy_free() argument [all …]
|
| A 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() 460 struct wpan_phy *phy; in ieee802154_set_macparams() local 490 phy = dev->ieee802154_ptr->wpan_phy; in ieee802154_set_macparams() 491 get_device(&phy->dev); in ieee802154_set_macparams() [all …]
|
| A D | Makefile | 6 ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o core.o \
|
| /net/caif/ |
| A D | cfcnfg.c | 139 if (phy->id == phyid) in cfcnfg_get_phyinfo_rcu() 140 return phy; in cfcnfg_get_phyinfo_rcu() 155 if (phy->up && phy->pref == phy_pref && in cfcnfg_get_phyid() 158 return &phy->dev_info; in cfcnfg_get_phyid() 163 if (phy->up) in cfcnfg_get_phyid() 164 return &phy->dev_info; in cfcnfg_get_phyid() 174 if (phy->ifindex == ifi && phy->up) in cfcnfg_get_id_from_ifi() 175 return phy->id; in cfcnfg_get_id_from_ifi() 316 if (!phy) { in caif_connect_client() 336 frml = phy->frm_layer; in caif_connect_client() [all …]
|
| /net/ethtool/ |
| A D | tsconfig.c | 262 struct phy_device *phy = NULL; in tsconfig_set_hwprov_from_desc() local 271 phy = ethtool_phy_get_ts_info_by_phc(dev, &ts_info, hwprov_desc); in tsconfig_set_hwprov_from_desc() 272 if (IS_ERR(phy)) { in tsconfig_set_hwprov_from_desc() 273 if (PTR_ERR(phy) == -ENODEV) in tsconfig_set_hwprov_from_desc() 277 return ERR_CAST(phy); in tsconfig_set_hwprov_from_desc() 290 hwprov->phydev = phy; in tsconfig_set_hwprov_from_desc()
|
| A D | common.c | 941 if (!phy_has_tsinfo(pdn->phy)) in ethtool_phy_get_ts_info_by_phc() 945 err = phy_ts_info(pdn->phy, info); in ethtool_phy_get_ts_info_by_phc() 950 return pdn->phy; in ethtool_phy_get_ts_info_by_phc() 977 struct phy_device *phy; in ethtool_get_ts_info_by_phc() local 979 phy = ethtool_phy_get_ts_info_by_phc(dev, info, hwprov_desc); in ethtool_get_ts_info_by_phc() 980 if (IS_ERR(phy)) in ethtool_get_ts_info_by_phc() 981 return PTR_ERR(phy); in ethtool_get_ts_info_by_phc() 988 info->phc_phyindex = phy->phyindex; in ethtool_get_ts_info_by_phc()
|
| A D | Makefile | 12 phy.o tsconfig.o
|
| A D | tsinfo.c | 456 if (phy_has_tsinfo(pdn->phy)) { in ethnl_tsinfo_dump_one_net_topo() 458 pdn->phy, cb); in ethnl_tsinfo_dump_one_net_topo()
|
| /net/bluetooth/ |
| A D | hci_conn.c | 1377 conn->le_adv_phy = phy; in hci_connect_le() 1763 cp.bis.phy = qos->bcast.out.phy; in hci_le_create_big() 1813 cis->c_phy = qos->ucast.out.phy ? qos->ucast.out.phy : in set_cig_params_sync() 1814 qos->ucast.in.phy; in set_cig_params_sync() 1815 cis->p_phy = qos->ucast.in.phy ? qos->ucast.in.phy : in set_cig_params_sync() 1816 qos->ucast.out.phy; in set_cig_params_sync() 1917 cis->le_rx_phy = qos->ucast.in.phy; in hci_bind_cis() 2035 if (!qos->sdu && qos->phy) in hci_iso_qos_setup() 2039 if (qos->phy == BT_ISO_PHY_ANY) in hci_iso_qos_setup() 2040 qos->phy = phy; in hci_iso_qos_setup() [all …]
|
| A D | hci_sync.c | 2910 struct hci_cp_le_scan_phy_params *phy; in hci_le_set_ext_scan_param_sync() local 2911 u8 data[sizeof(*cp) + sizeof(*phy) * 2]; in hci_le_set_ext_scan_param_sync() 2915 phy = (void *)cp->data; in hci_le_set_ext_scan_param_sync() 2937 if (qos->bcast.in.phy & BT_ISO_PHY_1M || in hci_le_set_ext_scan_param_sync() 2938 qos->bcast.in.phy & BT_ISO_PHY_2M) { in hci_le_set_ext_scan_param_sync() 2940 hci_le_scan_phy_params(phy, type, in hci_le_set_ext_scan_param_sync() 2944 phy++; in hci_le_set_ext_scan_param_sync() 2949 hci_le_scan_phy_params(phy, type, in hci_le_set_ext_scan_param_sync() 2953 phy++; in hci_le_set_ext_scan_param_sync() 2966 phy++; in hci_le_set_ext_scan_param_sync() [all …]
|
| A D | iso.c | 361 if (!iso_pi(sk)->qos.bcast.out.phy) { in iso_connect_bis() 456 if (!iso_pi(sk)->qos.ucast.in.phy && !iso_pi(sk)->qos.ucast.out.phy) { in iso_connect_cis() 859 .phy = BT_ISO_PHY_2M, \ 1562 if (!qos->phy && qos->sdu) in check_io_qos() 1571 if (qos->phy > BT_ISO_PHY_ANY) in check_io_qos()
|
| /net/dsa/ |
| A 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);
|
| /net/openvswitch/ |
| A D | flow_netlink.c | 1191 SW_FLOW_KEY_PUT(match, phy.priority, in metadata_from_nlattrs() 1207 SW_FLOW_KEY_PUT(match, phy.in_port, in_port, is_mask); in metadata_from_nlattrs() 1210 SW_FLOW_KEY_PUT(match, phy.in_port, DP_MAX_PORTS, is_mask); in metadata_from_nlattrs() 1216 SW_FLOW_KEY_PUT(match, phy.skb_mark, mark, is_mask); in metadata_from_nlattrs() 1980 key->phy.in_port = DP_MAX_PORTS; in ovs_nla_get_flow_metadata() 2039 if (nla_put_u32(skb, OVS_KEY_ATTR_PRIORITY, output->phy.priority)) in __ovs_nla_put_key() 2053 if (swkey->phy.in_port == DP_MAX_PORTS) { in __ovs_nla_put_key() 2054 if (is_mask && (output->phy.in_port == 0xffff)) in __ovs_nla_put_key() 2062 (upper_u16 << 16) | output->phy.in_port)) in __ovs_nla_put_key() 2066 if (nla_put_u32(skb, OVS_KEY_ATTR_SKB_MARK, output->phy.skb_mark)) in __ovs_nla_put_key()
|
| A D | flow.h | 83 } __packed phy; /* Safe when right after 'tun_key'. */ member
|
| A 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()
|