Home
last modified time | relevance | path

Searched refs:chan (Results 1 – 25 of 55) sorted by relevance

123

/net/bluetooth/
Dl2cap_core.c55 static int l2cap_build_conf_req(struct l2cap_chan *chan, void *data);
56 static void l2cap_send_disconn_req(struct l2cap_chan *chan, int err);
58 static void l2cap_tx(struct l2cap_chan *chan, struct l2cap_ctrl *control,
157 int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm) in l2cap_add_psm() argument
169 chan->psm = psm; in l2cap_add_psm()
170 chan->sport = psm; in l2cap_add_psm()
178 chan->psm = cpu_to_le16(p); in l2cap_add_psm()
179 chan->sport = cpu_to_le16(p); in l2cap_add_psm()
190 int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid) in l2cap_add_scid() argument
194 chan->scid = scid; in l2cap_add_scid()
[all …]
Dl2cap_sock.c55 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_bind() local
95 err = l2cap_add_scid(chan, __le16_to_cpu(la.l2_cid)); in l2cap_sock_bind()
97 err = l2cap_add_psm(chan, &la.l2_bdaddr, la.l2_psm); in l2cap_sock_bind()
104 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
108 chan->state = BT_BOUND; in l2cap_sock_bind()
120 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_connect() local
137 err = l2cap_chan_connect(chan, la.l2_psm, __le16_to_cpu(la.l2_cid), in l2cap_sock_connect()
155 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_listen() local
172 switch (chan->mode) { in l2cap_sock_listen()
188 chan->state = BT_LISTEN; in l2cap_sock_listen()
[all …]
Da2mp.c47 struct l2cap_chan *chan = mgr->a2mp_chan; in a2mp_send() local
65 l2cap_chan_send(chan, &msg, total_len, 0); in a2mp_send()
227 struct l2cap_chan *chan; in a2mp_discover_rsp() local
231 list_for_each_entry(chan, &conn->chan_l, list) { in a2mp_discover_rsp()
233 BT_DBG("chan %p state %s", chan, in a2mp_discover_rsp()
234 state_to_string(chan->state)); in a2mp_discover_rsp()
236 if (chan->chan_type == L2CAP_CHAN_CONN_FIX_A2MP) in a2mp_discover_rsp()
239 l2cap_chan_lock(chan); in a2mp_discover_rsp()
241 if (chan->state == BT_CONNECT) in a2mp_discover_rsp()
242 l2cap_send_conn_req(chan); in a2mp_discover_rsp()
[all …]
Damp.c406 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, chan->conn->dst); in amp_create_logical_link()
417 hdev = hci_dev_hold(chan->hs_hcon->hdev); in amp_create_logical_link()
423 cp.tx_flow_spec.id = chan->local_id; in amp_create_logical_link()
424 cp.tx_flow_spec.stype = chan->local_stype; in amp_create_logical_link()
425 cp.tx_flow_spec.msdu = cpu_to_le16(chan->local_msdu); in amp_create_logical_link()
426 cp.tx_flow_spec.sdu_itime = cpu_to_le32(chan->local_sdu_itime); in amp_create_logical_link()
427 cp.tx_flow_spec.acc_lat = cpu_to_le32(chan->local_acc_lat); in amp_create_logical_link()
428 cp.tx_flow_spec.flush_to = cpu_to_le32(chan->local_flush_to); in amp_create_logical_link()
[all …]
Dhci_core.c2743 static void hci_queue_acl(struct hci_chan *chan, struct sk_buff_head *queue, in hci_queue_acl() argument
2746 struct hci_conn *conn = chan->conn; in hci_queue_acl()
2760 hci_add_acl_hdr(skb, chan->handle, flags); in hci_queue_acl()
2802 void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags) in hci_send_acl() argument
2804 struct hci_dev *hdev = chan->conn->hdev; in hci_send_acl()
2806 BT_DBG("%s chan %p flags 0x%4.4x", hdev->name, chan, flags); in hci_send_acl()
2810 hci_queue_acl(chan, &chan->data_q, skb, flags); in hci_send_acl()
2925 struct hci_chan *chan = NULL; in hci_chan_sent() local
2965 chan = tmp; in hci_chan_sent()
2975 if (!chan) in hci_chan_sent()
[all …]
Dhci_conn.c980 struct hci_chan *chan; in hci_chan_create() local
984 chan = kzalloc(sizeof(struct hci_chan), GFP_KERNEL); in hci_chan_create()
985 if (!chan) in hci_chan_create()
988 chan->conn = conn; in hci_chan_create()
989 skb_queue_head_init(&chan->data_q); in hci_chan_create()
990 chan->state = BT_CONNECTED; in hci_chan_create()
992 list_add_rcu(&chan->list, &conn->chan_list); in hci_chan_create()
994 return chan; in hci_chan_create()
997 void hci_chan_del(struct hci_chan *chan) in hci_chan_del() argument
999 struct hci_conn *conn = chan->conn; in hci_chan_del()
[all …]
/net/9p/
Dtrans_virtio.c122 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/
Dchan.c15 struct ieee80211_channel *chan, in cfg80211_chandef_create() argument
18 if (WARN_ON(!chan)) in cfg80211_chandef_create()
21 chandef->chan = chan; in cfg80211_chandef_create()
27 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
31 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
35 chandef->center_freq1 = chan->center_freq + 10; in cfg80211_chandef_create()
39 chandef->center_freq1 = chan->center_freq - 10; in cfg80211_chandef_create()
51 if (!chandef->chan) in cfg80211_chandef_valid()
54 control_freq = chandef->chan->center_freq; in cfg80211_chandef_valid()
128 tmp = (30 + c->chan->center_freq - c->center_freq1)/20; in chandef_primary_freqs()
[all …]
Dreg.c160 struct ieee80211_channel chan; member
790 static void chan_reg_rule_print_dbg(struct ieee80211_channel *chan, in chan_reg_rule_print_dbg() argument
806 chan->center_freq); in chan_reg_rule_print_dbg()
814 static void chan_reg_rule_print_dbg(struct ieee80211_channel *chan, in chan_reg_rule_print_dbg() argument
828 struct ieee80211_channel *chan) in handle_channel() argument
839 flags = chan->orig_flags; in handle_channel()
841 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq)); in handle_channel()
857 REG_DBG_PRINT("Disabling freq %d MHz\n", chan->center_freq); in handle_channel()
858 chan->flags |= IEEE80211_CHAN_DISABLED; in handle_channel()
862 chan_reg_rule_print_dbg(chan, reg_rule); in handle_channel()
[all …]
Dmesh.c121 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
126 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
132 struct ieee80211_channel *chan; in __cfg80211_join_mesh() local
140 chan = &sband->channels[i]; in __cfg80211_join_mesh()
141 if (chan->flags & (IEEE80211_CHAN_NO_IBSS | in __cfg80211_join_mesh()
146 setup->chandef.chan = chan; in __cfg80211_join_mesh()
150 if (setup->chandef.chan) in __cfg80211_join_mesh()
155 if (!setup->chandef.chan) in __cfg80211_join_mesh()
159 setup->chandef.center_freq1 = setup->chandef.chan->center_freq; in __cfg80211_join_mesh()
165 err = cfg80211_can_use_chan(rdev, wdev, setup->chandef.chan, in __cfg80211_join_mesh()
[all …]
Dibss.c103 rdev->wiphy.bands[params->chandef.chan->band]; in __cfg80211_join_ibss()
105 u32 flag = params->chandef.chan->band == IEEE80211_BAND_5GHZ ? in __cfg80211_join_ibss()
125 err = cfg80211_can_use_chan(rdev, wdev, params->chandef.chan, in __cfg80211_join_ibss()
254 if (!wdev->wext.ibss.chandef.chan) { in cfg80211_ibss_wext_join()
259 struct ieee80211_channel *chan; in cfg80211_ibss_wext_join() local
266 chan = &sband->channels[i]; in cfg80211_ibss_wext_join()
267 if (chan->flags & IEEE80211_CHAN_NO_IBSS) in cfg80211_ibss_wext_join()
269 if (chan->flags & IEEE80211_CHAN_DISABLED) in cfg80211_ibss_wext_join()
271 wdev->wext.ibss.chandef.chan = chan; in cfg80211_ibss_wext_join()
275 if (wdev->wext.ibss.chandef.chan) in cfg80211_ibss_wext_join()
[all …]
Dwext-sme.c71 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()
98 if (wdev->wext.connect.channel == chan) { in cfg80211_mgd_wext_siwfreq()
113 wdev->wext.connect.channel = chan; in cfg80211_mgd_wext_siwfreq()
122 if (chan && !wdev->wext.connect.ssid_len) { in cfg80211_mgd_wext_siwfreq()
128 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); in cfg80211_mgd_wext_siwfreq()
129 if (chandef.chan) in cfg80211_mgd_wext_siwfreq()
150 struct ieee80211_channel *chan = NULL; in cfg80211_mgd_wext_giwfreq() local
[all …]
Ddebugfs.c43 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()
60 (chan->flags & IEEE80211_CHAN_NO_HT40PLUS) ? ' ' : '+'); in ht_print_chan()
Dcore.h330 struct ieee80211_channel *chan,
338 struct net_device *dev, struct ieee80211_channel *chan,
346 struct ieee80211_channel *chan,
352 struct ieee80211_channel *chan,
382 struct ieee80211_channel *chan, bool offchan,
443 struct ieee80211_channel *chan,
482 struct ieee80211_channel *chan, in cfg80211_can_use_chan() argument
486 chan, chanmode, 0); in cfg80211_can_use_chan()
501 struct ieee80211_channel **chan,
Dutil.c36 int ieee80211_channel_to_frequency(int chan, enum ieee80211_band band) in ieee80211_channel_to_frequency() argument
40 if (chan <= 0) in ieee80211_channel_to_frequency()
44 if (chan == 14) in ieee80211_channel_to_frequency()
46 else if (chan < 14) in ieee80211_channel_to_frequency()
47 return 2407 + chan * 5; in ieee80211_channel_to_frequency()
50 if (chan >= 182 && chan <= 196) in ieee80211_channel_to_frequency()
51 return 4000 + chan * 5; in ieee80211_channel_to_frequency()
53 return 5000 + chan * 5; in ieee80211_channel_to_frequency()
56 if (chan < 5) in ieee80211_channel_to_frequency()
57 return 56160 + chan * 2160; in ieee80211_channel_to_frequency()
[all …]
/net/atm/
Dpppoatm.c70 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/
Dtx.c41 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()
126 work->chan = chan; in mac802154_tx()
Dmonitor.c41 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()
114 priv->chan = MAC802154_CHAN_NONE; /* not initialized */ in mac802154_monitor_setup()
Dmib.c180 res = hw->ops->set_channel(&hw->hw, priv->page, priv->chan); in phy_chan_notify()
184 priv->hw->phy->current_channel = priv->chan; in phy_chan_notify()
192 void mac802154_dev_set_page_channel(struct net_device *dev, u8 page, u8 chan) in mac802154_dev_set_page_channel() argument
201 priv->chan = chan; in mac802154_dev_set_page_channel()
205 if (priv->hw->phy->current_channel != priv->chan || in mac802154_dev_set_page_channel()
Dmac802154.h80 u8 chan; member
106 u8 page, u8 chan);
114 void mac802154_dev_set_page_channel(struct net_device *dev, u8 page, u8 chan);
Dwpan.c316 u8 chan, page; in mac802154_wpan_xmit() local
321 chan = priv->chan; in mac802154_wpan_xmit()
325 if (chan == MAC802154_CHAN_NONE || in mac802154_wpan_xmit()
327 chan >= WPAN_NUM_CHANNELS) { in mac802154_wpan_xmit()
336 return mac802154_tx(priv->hw, skb, page, chan); in mac802154_wpan_xmit()
375 priv->chan = MAC802154_CHAN_NONE; in mac802154_wpan_setup()
/net/irda/irnet/
Dirnet_ppp.c489 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/
Dar-connection.c338 int chan, ret; in rxrpc_connect_exclusive() local
391 for (chan = 0; chan < RXRPC_MAXCALLS; chan++) in rxrpc_connect_exclusive()
392 if (!conn->channels[chan]) in rxrpc_connect_exclusive()
398 conn->channels[chan] = call; in rxrpc_connect_exclusive()
400 call->channel = chan; in rxrpc_connect_exclusive()
401 call->cid = conn->cid | htonl(chan); in rxrpc_connect_exclusive()
405 conn->debug_id, chan, ntohl(call->call_id)); in rxrpc_connect_exclusive()
430 int chan, ret; in rxrpc_connect_call() local
577 for (chan = 0; chan < RXRPC_MAXCALLS; chan++) in rxrpc_connect_call()
578 if (!conn->channels[chan]) in rxrpc_connect_call()
[all …]
/net/core/
Duser_dma.c49 int dma_skb_copy_datagram_iovec(struct dma_chan *chan, in dma_skb_copy_datagram_iovec() argument
62 cookie = dma_memcpy_to_iovec(chan, to, pinned_list, in dma_skb_copy_datagram_iovec()
87 cookie = dma_memcpy_pg_to_iovec(chan, to, pinned_list, page, in dma_skb_copy_datagram_iovec()
109 cookie = dma_skb_copy_datagram_iovec(chan, frag_iter, in dma_skb_copy_datagram_iovec()
/net/mac80211/
Dscan.c386 enum ieee80211_band band = local->hw.conf.chandef.chan->band; in ieee80211_scan_state_send_probe()
403 tx_flags, local->hw.conf.chandef.chan, true); in ieee80211_scan_state_send_probe()
469 (req->channels[0] == local->_oper_chandef.chan)) { in __ieee80211_start_scan()
530 ieee80211_scan_get_channel_time(struct ieee80211_channel *chan) in ieee80211_scan_get_channel_time() argument
536 if (chan->flags & IEEE80211_CHAN_PASSIVE_SCAN) in ieee80211_scan_get_channel_time()
608 struct ieee80211_channel *chan; in ieee80211_scan_state_set_channel() local
611 chan = local->scan_req->channels[local->scan_channel_idx]; in ieee80211_scan_state_set_channel()
613 local->scan_channel = chan; in ieee80211_scan_state_set_channel()
637 if (chan->flags & IEEE80211_CHAN_PASSIVE_SCAN || in ieee80211_scan_state_set_channel()
795 struct ieee80211_channel *chan) in ieee80211_request_ibss_scan() argument
[all …]

123