/net/bluetooth/ |
D | l2cap_core.c | 61 static int l2cap_build_conf_req(struct l2cap_chan *chan, void *data, size_t data_size); 62 static void l2cap_send_disconn_req(struct l2cap_chan *chan, int err); 64 static void l2cap_tx(struct l2cap_chan *chan, struct l2cap_ctrl *control, 175 int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm) in l2cap_add_psm() argument 187 chan->psm = psm; in l2cap_add_psm() 188 chan->sport = psm; in l2cap_add_psm() 196 chan->psm = cpu_to_le16(p); in l2cap_add_psm() 197 chan->sport = cpu_to_le16(p); in l2cap_add_psm() 209 int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid) in l2cap_add_scid() argument 214 chan->omtu = L2CAP_DEFAULT_MTU; in l2cap_add_scid() [all …]
|
D | l2cap_sock.c | 83 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_bind() local 129 err = l2cap_add_scid(chan, __le16_to_cpu(la.l2_cid)); in l2cap_sock_bind() 131 err = l2cap_add_psm(chan, &la.l2_bdaddr, la.l2_psm); in l2cap_sock_bind() 136 switch (chan->chan_type) { in l2cap_sock_bind() 139 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 144 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 147 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 155 set_bit(FLAG_HOLD_HCI_CONN, &chan->flags); in l2cap_sock_bind() 159 bacpy(&chan->src, &la.l2_bdaddr); in l2cap_sock_bind() 160 chan->src_type = la.l2_bdaddr_type; in l2cap_sock_bind() [all …]
|
D | 6lowpan.c | 43 struct l2cap_chan *chan; member 70 struct l2cap_chan *chan; member 124 &peer->chan->dst, peer->chan->dst_type); in peer_lookup_ba() 126 if (bacmp(&peer->chan->dst, ba)) in peer_lookup_ba() 129 if (type == peer->chan->dst_type) in peer_lookup_ba() 137 struct l2cap_chan *chan) in peer_lookup_chan() argument 142 if (peer->chan == chan) in peer_lookup_chan() 155 if (peer->chan->conn == conn) in peer_lookup_conn() 200 &peer->chan->dst, peer->chan->dst_type, in peer_lookup_dst() 268 struct l2cap_chan *chan) in process_data() argument [all …]
|
D | smp.c | 151 struct l2cap_chan *chan = hdev->smp_data; in smp_irk_matches() local 156 if (!chan || !chan->data) in smp_irk_matches() 159 tfm = chan->data; in smp_irk_matches() 172 struct l2cap_chan *chan = hdev->smp_data; in smp_generate_rpa() local 176 if (!chan || !chan->data) in smp_generate_rpa() 179 tfm = chan->data; in smp_generate_rpa() 260 struct l2cap_chan *chan = conn->smp; in smp_send_cmd() local 265 if (!chan) in smp_send_cmd() 281 l2cap_chan_send(chan, &msg, 1 + len); in smp_send_cmd() 283 if (!chan->data) in smp_send_cmd() [all …]
|
D | a2mp.c | 48 struct l2cap_chan *chan = mgr->a2mp_chan; in a2mp_send() local 66 l2cap_chan_send(chan, &msg, total_len); in a2mp_send() 229 struct l2cap_chan *chan; in a2mp_discover_rsp() local 233 list_for_each_entry(chan, &conn->chan_l, list) { in a2mp_discover_rsp() 235 BT_DBG("chan %p state %s", chan, in a2mp_discover_rsp() 236 state_to_string(chan->state)); in a2mp_discover_rsp() 238 if (chan->scid == L2CAP_CID_A2MP) in a2mp_discover_rsp() 241 l2cap_chan_lock(chan); in a2mp_discover_rsp() 243 if (chan->state == BT_CONNECT) in a2mp_discover_rsp() 244 l2cap_send_conn_req(chan); in a2mp_discover_rsp() [all …]
|
D | amp.c | 406 void amp_create_logical_link(struct l2cap_chan *chan) in amp_create_logical_link() argument 408 struct hci_conn *hs_hcon = chan->hs_hcon; in amp_create_logical_link() 412 BT_DBG("chan %p hs_hcon %p dst %pMR", chan, hs_hcon, in amp_create_logical_link() 413 &chan->conn->hcon->dst); in amp_create_logical_link() 418 hdev = hci_dev_hold(chan->hs_hcon->hdev); in amp_create_logical_link() 424 cp.tx_flow_spec.id = chan->local_id; in amp_create_logical_link() 425 cp.tx_flow_spec.stype = chan->local_stype; in amp_create_logical_link() 426 cp.tx_flow_spec.msdu = cpu_to_le16(chan->local_msdu); in amp_create_logical_link() 427 cp.tx_flow_spec.sdu_itime = cpu_to_le32(chan->local_sdu_itime); in amp_create_logical_link() 428 cp.tx_flow_spec.acc_lat = cpu_to_le32(chan->local_acc_lat); in amp_create_logical_link() [all …]
|
D | hci_conn.c | 1295 struct hci_chan *chan; in hci_chan_create() local 1304 chan = kzalloc(sizeof(*chan), GFP_KERNEL); in hci_chan_create() 1305 if (!chan) in hci_chan_create() 1308 chan->conn = hci_conn_get(conn); in hci_chan_create() 1309 skb_queue_head_init(&chan->data_q); in hci_chan_create() 1310 chan->state = BT_CONNECTED; in hci_chan_create() 1312 list_add_rcu(&chan->list, &conn->chan_list); in hci_chan_create() 1314 return chan; in hci_chan_create() 1317 void hci_chan_del(struct hci_chan *chan) in hci_chan_del() argument 1319 struct hci_conn *conn = chan->conn; in hci_chan_del() [all …]
|
/net/9p/ |
D | trans_virtio.c | 122 struct virtio_chan *chan = client->trans; in p9_virtio_close() local 125 if (chan) in p9_virtio_close() 126 chan->inuse = false; in p9_virtio_close() 145 struct virtio_chan *chan = vq->vdev->priv; in req_done() local 154 spin_lock_irqsave(&chan->lock, flags); in req_done() 155 rc = virtqueue_get_buf(chan->vq, &len); in req_done() 157 spin_unlock_irqrestore(&chan->lock, flags); in req_done() 160 chan->ring_bufs_avail = 1; in req_done() 161 spin_unlock_irqrestore(&chan->lock, flags); in req_done() 163 wake_up(chan->vc_wq); in req_done() [all …]
|
/net/wireless/ |
D | chan.c | 16 struct ieee80211_channel *chan, in cfg80211_chandef_create() argument 19 if (WARN_ON(!chan)) in cfg80211_chandef_create() 22 chandef->chan = chan; in cfg80211_chandef_create() 28 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create() 32 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create() 36 chandef->center_freq1 = chan->center_freq + 10; in cfg80211_chandef_create() 40 chandef->center_freq1 = chan->center_freq - 10; in cfg80211_chandef_create() 52 if (!chandef->chan) in cfg80211_chandef_valid() 55 control_freq = chandef->chan->center_freq; in cfg80211_chandef_valid() 131 tmp = (30 + c->chan->center_freq - c->center_freq1)/20; in chandef_primary_freqs() [all …]
|
D | reg.c | 210 struct ieee80211_channel chan; member 1021 struct ieee80211_channel *chan, in chan_reg_rule_print_dbg() argument 1046 chan->center_freq); in chan_reg_rule_print_dbg() 1055 struct ieee80211_channel *chan, in chan_reg_rule_print_dbg() argument 1069 struct ieee80211_channel *chan) in handle_channel() argument 1082 flags = chan->orig_flags; in handle_channel() 1084 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq)); in handle_channel() 1104 chan->center_freq); in handle_channel() 1105 chan->orig_flags |= IEEE80211_CHAN_DISABLED; in handle_channel() 1106 chan->flags = chan->orig_flags; in handle_channel() [all …]
|
D | ibss.c | 105 rdev->wiphy.bands[params->chandef.chan->band]; in __cfg80211_join_ibss() 107 u32 flag = params->chandef.chan->band == IEEE80211_BAND_5GHZ ? in __cfg80211_join_ibss() 248 if (!wdev->wext.ibss.chandef.chan) { in cfg80211_ibss_wext_join() 253 struct ieee80211_channel *chan; in cfg80211_ibss_wext_join() local 260 chan = &sband->channels[i]; in cfg80211_ibss_wext_join() 261 if (chan->flags & IEEE80211_CHAN_NO_IR) in cfg80211_ibss_wext_join() 263 if (chan->flags & IEEE80211_CHAN_DISABLED) in cfg80211_ibss_wext_join() 265 new_chan = chan; in cfg80211_ibss_wext_join() 315 struct ieee80211_channel *chan = NULL; in cfg80211_ibss_wext_siwfreq() local 330 chan = ieee80211_get_channel(wdev->wiphy, freq); in cfg80211_ibss_wext_siwfreq() [all …]
|
D | mesh.c | 124 if (!setup->chandef.chan) { in __cfg80211_join_mesh() 129 if (!setup->chandef.chan) { in __cfg80211_join_mesh() 135 struct ieee80211_channel *chan; in __cfg80211_join_mesh() local 143 chan = &sband->channels[i]; in __cfg80211_join_mesh() 144 if (chan->flags & (IEEE80211_CHAN_NO_IR | in __cfg80211_join_mesh() 148 setup->chandef.chan = chan; in __cfg80211_join_mesh() 152 if (setup->chandef.chan) in __cfg80211_join_mesh() 157 if (!setup->chandef.chan) in __cfg80211_join_mesh() 161 setup->chandef.center_freq1 = setup->chandef.chan->center_freq; in __cfg80211_join_mesh() 171 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh() [all …]
|
D | wext-sme.c | 71 struct ieee80211_channel *chan = NULL; in cfg80211_mgd_wext_siwfreq() local 83 chan = ieee80211_get_channel(wdev->wiphy, freq); in cfg80211_mgd_wext_siwfreq() 84 if (!chan) in cfg80211_mgd_wext_siwfreq() 86 if (chan->flags & IEEE80211_CHAN_DISABLED) in cfg80211_mgd_wext_siwfreq() 95 if (wdev->wext.connect.channel == chan) { in cfg80211_mgd_wext_siwfreq() 110 wdev->wext.connect.channel = chan; in cfg80211_mgd_wext_siwfreq() 119 if (chan && !wdev->wext.connect.ssid_len) { in cfg80211_mgd_wext_siwfreq() 125 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); in cfg80211_mgd_wext_siwfreq() 126 if (chandef.chan) in cfg80211_mgd_wext_siwfreq() 144 struct ieee80211_channel *chan = NULL; in cfg80211_mgd_wext_giwfreq() local [all …]
|
D | debugfs.c | 43 static int ht_print_chan(struct ieee80211_channel *chan, in ht_print_chan() argument 49 if (chan->flags & IEEE80211_CHAN_DISABLED) in ht_print_chan() 53 chan->center_freq); in ht_print_chan() 58 chan->center_freq, in ht_print_chan() 59 (chan->flags & IEEE80211_CHAN_NO_HT40MINUS) ? in ht_print_chan() 61 (chan->flags & IEEE80211_CHAN_NO_HT40PLUS) ? in ht_print_chan()
|
/net/atm/ |
D | pppoatm.c | 70 struct ppp_channel chan; /* interface to generic ppp layer */ member 97 static inline struct pppoatm_vcc *chan_to_pvcc(const struct ppp_channel *chan) in chan_to_pvcc() argument 99 return (struct pppoatm_vcc *) (chan->private); in chan_to_pvcc() 176 ppp_unregister_channel(&pvcc->chan); in pppoatm_unassign_vcc() 205 if (pvcc->chan.ppp == NULL) { /* Not bound yet! */ in pppoatm_push() 219 pvcc->chan.mtu += LLC_LEN; in pppoatm_push() 229 ppp_input(&pvcc->chan, skb); in pppoatm_push() 234 ppp_input_error(&pvcc->chan, 0); in pppoatm_push() 292 static int pppoatm_send(struct ppp_channel *chan, struct sk_buff *skb) in pppoatm_send() argument 294 struct pppoatm_vcc *pvcc = chan_to_pvcc(chan); in pppoatm_send() [all …]
|
/net/mac802154/ |
D | tx.c | 41 u8 chan; member 52 if (xw->priv->phy->current_channel != xw->chan || in mac802154_xmit_worker() 56 xw->chan); in mac802154_xmit_worker() 62 xw->priv->phy->current_channel = xw->chan; in mac802154_xmit_worker() 85 u8 page, u8 chan) in mac802154_tx() argument 90 if (!(priv->phy->channels_supported[page] & (1 << chan))) { in mac802154_tx() 124 work->chan = chan; in mac802154_tx()
|
D | monitor.c | 41 u8 chan, page; in mac802154_monitor_xmit() local 46 chan = priv->hw->phy->current_channel; in mac802154_monitor_xmit() 49 if (chan == MAC802154_CHAN_NONE) /* not initialized */ in mac802154_monitor_xmit() 53 WARN_ON(chan >= WPAN_NUM_CHANNELS)) in mac802154_monitor_xmit() 60 return mac802154_tx(priv->hw, skb, page, chan); in mac802154_monitor_xmit() 115 priv->chan = MAC802154_CHAN_NONE; /* not initialized */ in mac802154_monitor_setup()
|
D | mib.c | 177 res = hw->ops->set_channel(&hw->hw, priv->page, priv->chan); in phy_chan_notify() 181 priv->hw->phy->current_channel = priv->chan; in phy_chan_notify() 189 void mac802154_dev_set_page_channel(struct net_device *dev, u8 page, u8 chan) in mac802154_dev_set_page_channel() argument 198 priv->chan = chan; in mac802154_dev_set_page_channel() 202 if (priv->hw->phy->current_channel != priv->chan || in mac802154_dev_set_page_channel()
|
D | mac802154.h | 88 u8 chan; member 123 u8 page, u8 chan); 131 void mac802154_dev_set_page_channel(struct net_device *dev, u8 page, u8 chan);
|
/net/irda/irnet/ |
D | irnet_ppp.c | 489 ap->chan.private = ap; in dev_irnet_open() 490 ap->chan.ops = &irnet_ppp_ops; in dev_irnet_open() 491 ap->chan.mtu = (2048 - TTP_MAX_HEADER - 2 - PPP_HDRLEN); in dev_irnet_open() 492 ap->chan.hdrlen = 2 + TTP_MAX_HEADER; /* for A/C + Max IrDA hdr */ in dev_irnet_open() 549 ppp_unregister_channel(&ap->chan); in dev_irnet_close() 672 err = ppp_register_channel(&ap->chan); in dev_irnet_ioctl() 698 ppp_unregister_channel(&ap->chan); in dev_irnet_ioctl() 713 if(ap->ppp_open && !put_user(ppp_channel_index(&ap->chan), in dev_irnet_ioctl() 723 if(ap->ppp_open && !put_user(ppp_unit_number(&ap->chan), in dev_irnet_ioctl() 750 err = ppp_irnet_ioctl(&ap->chan, cmd, arg); in dev_irnet_ioctl() [all …]
|
/net/rxrpc/ |
D | ar-connection.c | 342 int chan, ret; in rxrpc_connect_exclusive() local 397 for (chan = 0; chan < RXRPC_MAXCALLS; chan++) in rxrpc_connect_exclusive() 398 if (!conn->channels[chan]) in rxrpc_connect_exclusive() 404 conn->channels[chan] = call; in rxrpc_connect_exclusive() 406 call->channel = chan; in rxrpc_connect_exclusive() 407 call->cid = conn->cid | htonl(chan); in rxrpc_connect_exclusive() 411 conn->debug_id, chan, ntohl(call->call_id)); in rxrpc_connect_exclusive() 436 int chan, ret; in rxrpc_connect_call() local 583 for (chan = 0; chan < RXRPC_MAXCALLS; chan++) in rxrpc_connect_call() 584 if (!conn->channels[chan]) in rxrpc_connect_call() [all …]
|
/net/mac80211/ |
D | scan.c | 332 local->scan_chandef.chan = NULL; in __ieee80211_scan_completed() 453 enum ieee80211_band band = local->hw.conf.chandef.chan->band; in ieee80211_scan_state_send_probe() 470 tx_flags, local->hw.conf.chandef.chan, true); in ieee80211_scan_state_send_probe() 549 (req->channels[0] == local->_oper_chandef.chan)) { in __ieee80211_start_scan() 610 ieee80211_scan_get_channel_time(struct ieee80211_channel *chan) in ieee80211_scan_get_channel_time() argument 616 if (chan->flags & IEEE80211_CHAN_NO_IR) in ieee80211_scan_get_channel_time() 688 struct ieee80211_channel *chan; in ieee80211_scan_state_set_channel() local 692 chan = local->scan_req->channels[local->scan_channel_idx]; in ieee80211_scan_state_set_channel() 694 local->scan_chandef.chan = chan; in ieee80211_scan_state_set_channel() 695 local->scan_chandef.center_freq1 = chan->center_freq; in ieee80211_scan_state_set_channel() [all …]
|
D | ibss.c | 92 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp() 132 chandef->chan->center_freq); in ieee80211_ibss_build_presp() 146 csa_settings->chandef.chan->center_freq); in ieee80211_ibss_build_presp() 219 struct ieee80211_channel *chan; in __ieee80211_sta_join_ibss() local 256 chan = chandef.chan; in __ieee80211_sta_join_ibss() 268 chandef.center_freq1 = chan->center_freq; in __ieee80211_sta_join_ibss() 341 sdata->vif.bss_conf.use_short_slot = chan->band == IEEE80211_BAND_5GHZ; in __ieee80211_sta_join_ibss() 345 if (chan->band == IEEE80211_BAND_2GHZ && have_higher_than_11mbit) in __ieee80211_sta_join_ibss() 378 bss = cfg80211_inform_bss_width_frame(local->hw.wiphy, chan, in __ieee80211_sta_join_ibss() 383 cfg80211_ibss_joined(sdata->dev, ifibss->bssid, chan, GFP_KERNEL); in __ieee80211_sta_join_ibss() [all …]
|
D | offchannel.c | 198 roc->chan->band); in ieee80211_handle_roc_started() 203 roc->chan, roc->req_duration, in ieee80211_handle_roc_started() 281 ret = drv_remain_on_channel(local, roc->sdata, roc->chan, in ieee80211_start_next_roc() 320 roc->cookie, roc->chan, in ieee80211_roc_notify_destroy() 366 roc->on_channel = roc->chan == local->_oper_chandef.chan && in ieee80211_sw_roc_work() 376 local->tmp_channel = roc->chan; in ieee80211_sw_roc_work()
|
/net/bluetooth/hidp/ |
D | core.c | 769 &l2cap_pi(session->ctrl_sock->sk)->chan->src); in hidp_setup_hid() 775 &l2cap_pi(session->ctrl_sock->sk)->chan->dst); in hidp_setup_hid() 926 session->ctrl_mtu = min_t(uint, l2cap_pi(ctrl)->chan->omtu, in hidp_session_new() 927 l2cap_pi(ctrl)->chan->imtu); in hidp_session_new() 928 session->intr_mtu = min_t(uint, l2cap_pi(intr)->chan->omtu, in hidp_session_new() 929 l2cap_pi(intr)->chan->imtu); in hidp_session_new() 1302 ctrl_chan = l2cap_pi(ctrl_sock->sk)->chan; in hidp_verify_sockets() 1303 intr_chan = l2cap_pi(intr_sock->sk)->chan; in hidp_verify_sockets() 1332 struct l2cap_chan *chan = l2cap_pi(ctrl_sock->sk)->chan; in hidp_connection_add() local 1340 l2cap_chan_lock(chan); in hidp_connection_add() [all …]
|