Home
last modified time | relevance | path

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

123

/net/bluetooth/
Dl2cap_core.c60 static int l2cap_build_conf_req(struct l2cap_chan *chan, void *data, size_t data_size);
61 static void l2cap_send_disconn_req(struct l2cap_chan *chan, int err);
63 static void l2cap_tx(struct l2cap_chan *chan, struct l2cap_ctrl *control,
184 int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm) in l2cap_add_psm() argument
196 chan->psm = psm; in l2cap_add_psm()
197 chan->sport = psm; in l2cap_add_psm()
205 chan->psm = cpu_to_le16(p); in l2cap_add_psm()
206 chan->sport = cpu_to_le16(p); in l2cap_add_psm()
218 int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid) in l2cap_add_scid() argument
223 chan->omtu = L2CAP_DEFAULT_MTU; in l2cap_add_scid()
[all …]
Dl2cap_sock.c83 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 …]
D6lowpan.c40 struct l2cap_chan *chan; member
65 struct l2cap_chan *chan; member
122 &peer->chan->dst, peer->chan->dst_type); in peer_lookup_ba()
124 if (bacmp(&peer->chan->dst, ba)) in peer_lookup_ba()
127 if (type == peer->chan->dst_type) { in peer_lookup_ba()
139 struct l2cap_chan *chan) in __peer_lookup_chan() argument
144 if (peer->chan == chan) in __peer_lookup_chan()
157 if (peer->chan->conn == conn) in __peer_lookup_conn()
214 &peer->chan->dst, peer->chan->dst_type, in peer_lookup_dst()
277 struct l2cap_chan *chan) in iphc_decompress() argument
[all …]
Da2mp.c51 struct l2cap_chan *chan = mgr->a2mp_chan; in a2mp_send() local
68 l2cap_chan_send(chan, &msg, total_len); in a2mp_send()
251 struct l2cap_chan *chan; in a2mp_discover_rsp() local
255 list_for_each_entry(chan, &conn->chan_l, list) { in a2mp_discover_rsp()
257 BT_DBG("chan %p state %s", chan, in a2mp_discover_rsp()
258 state_to_string(chan->state)); in a2mp_discover_rsp()
260 if (chan->scid == L2CAP_CID_A2MP) in a2mp_discover_rsp()
263 l2cap_chan_lock(chan); in a2mp_discover_rsp()
265 if (chan->state == BT_CONNECT) in a2mp_discover_rsp()
266 l2cap_send_conn_req(chan); in a2mp_discover_rsp()
[all …]
Dsmp.c512 struct l2cap_chan *chan = hdev->smp_data; in smp_irk_matches() local
517 if (!chan || !chan->data) in smp_irk_matches()
520 smp = chan->data; in smp_irk_matches()
533 struct l2cap_chan *chan = hdev->smp_data; in smp_generate_rpa() local
537 if (!chan || !chan->data) in smp_generate_rpa()
540 smp = chan->data; in smp_generate_rpa()
558 struct l2cap_chan *chan = hdev->smp_data; in smp_generate_oob() local
562 if (!chan || !chan->data) in smp_generate_oob()
565 smp = chan->data; in smp_generate_oob()
605 struct l2cap_chan *chan = conn->smp; in smp_send_cmd() local
[all …]
Damp.c538 void amp_create_logical_link(struct l2cap_chan *chan) in amp_create_logical_link() argument
540 struct hci_conn *hs_hcon = chan->hs_hcon; in amp_create_logical_link()
544 BT_DBG("chan %p hs_hcon %p dst %pMR", chan, hs_hcon, in amp_create_logical_link()
545 &chan->conn->hcon->dst); in amp_create_logical_link()
550 hdev = hci_dev_hold(chan->hs_hcon->hdev); in amp_create_logical_link()
556 cp.tx_flow_spec.id = chan->local_id; in amp_create_logical_link()
557 cp.tx_flow_spec.stype = chan->local_stype; in amp_create_logical_link()
558 cp.tx_flow_spec.msdu = cpu_to_le16(chan->local_msdu); in amp_create_logical_link()
559 cp.tx_flow_spec.sdu_itime = cpu_to_le32(chan->local_sdu_itime); in amp_create_logical_link()
560 cp.tx_flow_spec.acc_lat = cpu_to_le32(chan->local_acc_lat); in amp_create_logical_link()
[all …]
Damp.h49 void amp_create_logical_link(struct l2cap_chan *chan);
52 static inline void amp_create_logical_link(struct l2cap_chan *chan) in amp_create_logical_link() argument
64 void amp_create_logical_link(struct l2cap_chan *chan);
Dhci_conn.c1550 struct hci_chan *chan; in hci_chan_create() local
1559 chan = kzalloc(sizeof(*chan), GFP_KERNEL); in hci_chan_create()
1560 if (!chan) in hci_chan_create()
1563 chan->conn = hci_conn_get(conn); in hci_chan_create()
1564 skb_queue_head_init(&chan->data_q); in hci_chan_create()
1565 chan->state = BT_CONNECTED; in hci_chan_create()
1567 list_add_rcu(&chan->list, &conn->chan_list); in hci_chan_create()
1569 return chan; in hci_chan_create()
1572 void hci_chan_del(struct hci_chan *chan) in hci_chan_del() argument
1574 struct hci_conn *conn = chan->conn; in hci_chan_del()
[all …]
Dhci_core.c3749 static void hci_queue_acl(struct hci_chan *chan, struct sk_buff_head *queue, in hci_queue_acl() argument
3752 struct hci_conn *conn = chan->conn; in hci_queue_acl()
3766 hci_add_acl_hdr(skb, chan->handle, flags); in hci_queue_acl()
3811 void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags) in hci_send_acl() argument
3813 struct hci_dev *hdev = chan->conn->hdev; in hci_send_acl()
3815 BT_DBG("%s chan %p flags 0x%4.4x", hdev->name, chan, flags); in hci_send_acl()
3817 hci_queue_acl(chan, &chan->data_q, skb, flags); in hci_send_acl()
3931 struct hci_chan *chan = NULL; in hci_chan_sent() local
3971 chan = tmp; in hci_chan_sent()
3981 if (!chan) in hci_chan_sent()
[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.c16 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 …]
Dreg.c217 struct ieee80211_channel chan; member
1134 struct ieee80211_channel *chan, in chan_reg_rule_print_dbg() argument
1160 chan->center_freq); in chan_reg_rule_print_dbg()
1176 struct ieee80211_channel *chan) in handle_channel() argument
1189 flags = chan->orig_flags; in handle_channel()
1191 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(chan->center_freq)); in handle_channel()
1211 chan->center_freq); in handle_channel()
1212 chan->orig_flags |= IEEE80211_CHAN_DISABLED; in handle_channel()
1213 chan->flags = chan->orig_flags; in handle_channel()
1216 chan->center_freq); in handle_channel()
[all …]
Dibss.c105 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 …]
Dmesh.c124 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 …]
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()
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 …]
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()
61 (chan->flags & IEEE80211_CHAN_NO_HT40PLUS) ? in ht_print_chan()
Dutil.c68 int ieee80211_channel_to_frequency(int chan, enum ieee80211_band band) in ieee80211_channel_to_frequency() argument
72 if (chan <= 0) in ieee80211_channel_to_frequency()
76 if (chan == 14) in ieee80211_channel_to_frequency()
78 else if (chan < 14) in ieee80211_channel_to_frequency()
79 return 2407 + chan * 5; in ieee80211_channel_to_frequency()
82 if (chan >= 182 && chan <= 196) in ieee80211_channel_to_frequency()
83 return 4000 + chan * 5; in ieee80211_channel_to_frequency()
85 return 5000 + chan * 5; in ieee80211_channel_to_frequency()
88 if (chan < 5) in ieee80211_channel_to_frequency()
89 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/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.c342 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/
Dibss.c95 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp()
135 chandef->chan->center_freq); in ieee80211_ibss_build_presp()
149 csa_settings->chandef.chan->center_freq); in ieee80211_ibss_build_presp()
233 struct ieee80211_channel *chan; in __ieee80211_sta_join_ibss() local
268 chan = chandef.chan; in __ieee80211_sta_join_ibss()
280 chandef.center_freq1 = chan->center_freq; in __ieee80211_sta_join_ibss()
353 sdata->vif.bss_conf.use_short_slot = chan->band == IEEE80211_BAND_5GHZ; in __ieee80211_sta_join_ibss()
357 if (chan->band == IEEE80211_BAND_2GHZ && have_higher_than_11mbit) in __ieee80211_sta_join_ibss()
389 bss_meta.chan = chan; in __ieee80211_sta_join_ibss()
396 cfg80211_ibss_joined(sdata->dev, ifibss->bssid, chan, GFP_KERNEL); in __ieee80211_sta_join_ibss()
[all …]
Dscan.c83 bss_meta.chan = channel; in ieee80211_bss_info_update()
362 local->scan_chandef.chan = NULL; in __ieee80211_scan_completed()
485 enum ieee80211_band band = local->hw.conf.chandef.chan->band; in ieee80211_scan_state_send_probe()
504 tx_flags, local->hw.conf.chandef.chan, true); in ieee80211_scan_state_send_probe()
590 (req->channels[0] == local->_oper_chandef.chan)) { in __ieee80211_start_scan()
652 ieee80211_scan_get_channel_time(struct ieee80211_channel *chan) in ieee80211_scan_get_channel_time() argument
658 if (chan->flags & (IEEE80211_CHAN_NO_IR | IEEE80211_CHAN_RADAR)) in ieee80211_scan_get_channel_time()
734 struct ieee80211_channel *chan; in ieee80211_scan_state_set_channel() local
742 chan = scan_req->channels[local->scan_channel_idx]; in ieee80211_scan_state_set_channel()
744 local->scan_chandef.chan = chan; in ieee80211_scan_state_set_channel()
[all …]
Doffchannel.c198 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()
319 roc->cookie, roc->chan, in ieee80211_roc_notify_destroy()
365 roc->on_channel = roc->chan == local->_oper_chandef.chan && in ieee80211_sw_roc_work()
375 local->tmp_channel = roc->chan; in ieee80211_sw_roc_work()
/net/bluetooth/hidp/
Dcore.c781 &l2cap_pi(session->ctrl_sock->sk)->chan->src); in hidp_setup_hid()
787 &l2cap_pi(session->ctrl_sock->sk)->chan->dst); in hidp_setup_hid()
939 session->ctrl_mtu = min_t(uint, l2cap_pi(ctrl)->chan->omtu, in hidp_session_new()
940 l2cap_pi(ctrl)->chan->imtu); in hidp_session_new()
941 session->intr_mtu = min_t(uint, l2cap_pi(intr)->chan->omtu, in hidp_session_new()
942 l2cap_pi(intr)->chan->imtu); in hidp_session_new()
1315 ctrl_chan = l2cap_pi(ctrl_sock->sk)->chan; in hidp_verify_sockets()
1316 intr_chan = l2cap_pi(intr_sock->sk)->chan; in hidp_verify_sockets()
1347 struct l2cap_chan *chan; in hidp_connection_add() local
1357 chan = l2cap_pi(ctrl_sock->sk)->chan; in hidp_connection_add()
[all …]
/net/bluetooth/rfcomm/
Dcore.c215 struct l2cap_conn *conn = l2cap_pi(sk)->chan->conn; in rfcomm_check_security()
697 struct l2cap_chan *chan; in rfcomm_session_get() local
700 chan = l2cap_pi(s->sock->sk)->chan; in rfcomm_session_get()
702 if ((!bacmp(src, BDADDR_ANY) || !bacmp(&chan->src, src)) && in rfcomm_session_get()
703 !bacmp(&chan->dst, dst)) in rfcomm_session_get()
758 l2cap_pi(sk)->chan->imtu = l2cap_mtu; in rfcomm_session_create()
759 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_session_create()
761 l2cap_pi(sk)->chan->mode = L2CAP_MODE_ERTM; in rfcomm_session_create()
790 struct l2cap_chan *chan = l2cap_pi(s->sock->sk)->chan; in rfcomm_session_getaddr() local
792 bacpy(src, &chan->src); in rfcomm_session_getaddr()
[all …]

123