Home
last modified time | relevance | path

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

123

/net/bluetooth/
Dl2cap_core.c58 static int l2cap_build_conf_req(struct l2cap_chan *chan, void *data, size_t data_size);
59 static void l2cap_send_disconn_req(struct l2cap_chan *chan, int err);
61 static void l2cap_tx(struct l2cap_chan *chan, struct l2cap_ctrl *control,
205 int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm) in l2cap_add_psm() argument
211 if (psm && __l2cap_global_chan_by_addr(psm, src, chan->src_type)) { in l2cap_add_psm()
217 chan->psm = psm; in l2cap_add_psm()
218 chan->sport = psm; in l2cap_add_psm()
223 if (chan->src_type == BDADDR_BREDR) { in l2cap_add_psm()
236 chan->src_type)) { in l2cap_add_psm()
237 chan->psm = cpu_to_le16(p); in l2cap_add_psm()
[all …]
Dl2cap_sock.c85 struct l2cap_chan *chan = l2cap_pi(sk)->chan; in l2cap_sock_bind() local
131 bacpy(&chan->src, &la.l2_bdaddr); in l2cap_sock_bind()
132 chan->src_type = la.l2_bdaddr_type; in l2cap_sock_bind()
135 err = l2cap_add_scid(chan, __le16_to_cpu(la.l2_cid)); in l2cap_sock_bind()
137 err = l2cap_add_psm(chan, &la.l2_bdaddr, la.l2_psm); in l2cap_sock_bind()
142 switch (chan->chan_type) { in l2cap_sock_bind()
145 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
150 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
153 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
161 set_bit(FLAG_HOLD_HCI_CONN, &chan->flags); in l2cap_sock_bind()
[all …]
D6lowpan.c34 struct l2cap_chan *chan; member
58 struct l2cap_chan *chan; member
118 &peer->chan->dst, peer->chan->dst_type); in peer_lookup_ba()
120 if (bacmp(&peer->chan->dst, ba)) in peer_lookup_ba()
123 if (type == peer->chan->dst_type) { in peer_lookup_ba()
135 __peer_lookup_chan(struct lowpan_btle_dev *dev, struct l2cap_chan *chan) in __peer_lookup_chan() argument
140 if (peer->chan == chan) in __peer_lookup_chan()
153 if (peer->chan->conn == conn) in __peer_lookup_conn()
199 &peer->chan->dst, peer->chan->dst_type, in peer_lookup_dst()
373 static int chan_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb) in chan_recv_cb() argument
[all …]
Da2mp.c44 struct l2cap_chan *chan = mgr->a2mp_chan; in a2mp_send() local
61 l2cap_chan_send(chan, &msg, total_len); in a2mp_send()
244 struct l2cap_chan *chan; in a2mp_discover_rsp() local
248 list_for_each_entry(chan, &conn->chan_l, list) { in a2mp_discover_rsp()
250 BT_DBG("chan %p state %s", chan, in a2mp_discover_rsp()
251 state_to_string(chan->state)); in a2mp_discover_rsp()
253 if (chan->scid == L2CAP_CID_A2MP) in a2mp_discover_rsp()
256 l2cap_chan_lock(chan); in a2mp_discover_rsp()
258 if (chan->state == BT_CONNECT) in a2mp_discover_rsp()
259 l2cap_send_conn_req(chan); in a2mp_discover_rsp()
[all …]
Dsmp.c504 struct l2cap_chan *chan = hdev->smp_data; in smp_irk_matches() local
509 if (!chan || !chan->data) in smp_irk_matches()
512 smp = chan->data; in smp_irk_matches()
525 struct l2cap_chan *chan = hdev->smp_data; in smp_generate_rpa() local
529 if (!chan || !chan->data) in smp_generate_rpa()
532 smp = chan->data; in smp_generate_rpa()
550 struct l2cap_chan *chan = hdev->smp_data; in smp_generate_oob() local
554 if (!chan || !chan->data) in smp_generate_oob()
557 smp = chan->data; in smp_generate_oob()
601 struct l2cap_chan *chan = conn->smp; in smp_send_cmd() local
[all …]
Damp.c530 void amp_create_logical_link(struct l2cap_chan *chan) in amp_create_logical_link() argument
532 struct hci_conn *hs_hcon = chan->hs_hcon; in amp_create_logical_link()
536 BT_DBG("chan %p hs_hcon %p dst %pMR", chan, hs_hcon, in amp_create_logical_link()
537 &chan->conn->hcon->dst); in amp_create_logical_link()
542 hdev = hci_dev_hold(chan->hs_hcon->hdev); in amp_create_logical_link()
548 cp.tx_flow_spec.id = chan->local_id; in amp_create_logical_link()
549 cp.tx_flow_spec.stype = chan->local_stype; in amp_create_logical_link()
550 cp.tx_flow_spec.msdu = cpu_to_le16(chan->local_msdu); in amp_create_logical_link()
551 cp.tx_flow_spec.sdu_itime = cpu_to_le32(chan->local_sdu_itime); in amp_create_logical_link()
552 cp.tx_flow_spec.acc_lat = cpu_to_le32(chan->local_acc_lat); in amp_create_logical_link()
[all …]
Dhci_core.c3736 static void hci_queue_acl(struct hci_chan *chan, struct sk_buff_head *queue, in hci_queue_acl() argument
3739 struct hci_conn *conn = chan->conn; in hci_queue_acl()
3753 hci_add_acl_hdr(skb, chan->handle, flags); in hci_queue_acl()
3798 void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags) in hci_send_acl() argument
3800 struct hci_dev *hdev = chan->conn->hdev; in hci_send_acl()
3802 BT_DBG("%s chan %p flags 0x%4.4x", hdev->name, chan, flags); in hci_send_acl()
3804 hci_queue_acl(chan, &chan->data_q, skb, flags); in hci_send_acl()
3918 struct hci_chan *chan = NULL; in hci_chan_sent() local
3958 chan = tmp; in hci_chan_sent()
3968 if (!chan) in hci_chan_sent()
[all …]
/net/9p/
Dtrans_virtio.c104 struct virtio_chan *chan = client->trans; in p9_virtio_close() local
107 if (chan) in p9_virtio_close()
108 chan->inuse = false; in p9_virtio_close()
127 struct virtio_chan *chan = vq->vdev->priv; in req_done() local
135 spin_lock_irqsave(&chan->lock, flags); in req_done()
136 while ((req = virtqueue_get_buf(chan->vq, &len)) != NULL) { in req_done()
137 if (!chan->ring_bufs_avail) { in req_done()
138 chan->ring_bufs_avail = 1; in req_done()
144 p9_client_cb(chan->client, req, REQ_STATUS_RCVD); in req_done()
147 spin_unlock_irqrestore(&chan->lock, flags); in req_done()
[all …]
/net/vmw_vsock/
Dhyperv_transport.c95 struct vmbus_channel *chan; member
170 static void hvs_set_channel_pending_send_size(struct vmbus_channel *chan) in hvs_set_channel_pending_send_size() argument
172 set_channel_pending_send_size(chan, in hvs_set_channel_pending_send_size()
178 static bool hvs_channel_readable(struct vmbus_channel *chan) in hvs_channel_readable() argument
180 u32 readable = hv_get_bytes_to_read(&chan->inbound); in hvs_channel_readable()
186 static int hvs_channel_readable_payload(struct vmbus_channel *chan) in hvs_channel_readable_payload() argument
188 u32 readable = hv_get_bytes_to_read(&chan->inbound); in hvs_channel_readable_payload()
207 static size_t hvs_channel_writable_bytes(struct vmbus_channel *chan) in hvs_channel_writable_bytes() argument
209 u32 writeable = hv_get_bytes_to_write(&chan->outbound); in hvs_channel_writable_bytes()
224 static int hvs_send_data(struct vmbus_channel *chan, in hvs_send_data() argument
[all …]
/net/wireless/
Dchan.c23 struct ieee80211_channel *chan, in cfg80211_chandef_create() argument
26 if (WARN_ON(!chan)) in cfg80211_chandef_create()
29 chandef->chan = chan; in cfg80211_chandef_create()
30 chandef->freq1_offset = chan->freq_offset; in cfg80211_chandef_create()
38 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
42 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
46 chandef->center_freq1 = chan->center_freq + 10; in cfg80211_chandef_create()
50 chandef->center_freq1 = chan->center_freq - 10; in cfg80211_chandef_create()
68 if (!cfg80211_valid_60g_freq(chandef->chan->center_freq)) in cfg80211_edmg_chandef_valid()
147 if (!chandef->chan) in cfg80211_chandef_valid()
[all …]
Dmesh.c125 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
130 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
136 struct ieee80211_channel *chan; in __cfg80211_join_mesh() local
144 chan = &sband->channels[i]; in __cfg80211_join_mesh()
145 if (chan->flags & (IEEE80211_CHAN_NO_IR | in __cfg80211_join_mesh()
149 setup->chandef.chan = chan; in __cfg80211_join_mesh()
153 if (setup->chandef.chan) in __cfg80211_join_mesh()
158 if (!setup->chandef.chan) in __cfg80211_join_mesh()
162 setup->chandef.center_freq1 = setup->chandef.chan->center_freq; in __cfg80211_join_mesh()
172 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh()
[all …]
Dibss.c112 band = params->chandef.chan->band; in __cfg80211_join_ibss()
250 if (!wdev->wext.ibss.chandef.chan) { in cfg80211_ibss_wext_join()
255 struct ieee80211_channel *chan; in cfg80211_ibss_wext_join() local
262 chan = &sband->channels[i]; in cfg80211_ibss_wext_join()
263 if (chan->flags & IEEE80211_CHAN_NO_IR) in cfg80211_ibss_wext_join()
265 if (chan->flags & IEEE80211_CHAN_DISABLED) in cfg80211_ibss_wext_join()
267 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()
331 if (!chan) in cfg80211_ibss_wext_siwfreq()
[all …]
Dreg.c212 struct ieee80211_channel chan; member
1662 const struct ieee80211_channel *chan) in reg_rule_to_chan_bw_flags() argument
1670 center_freq_khz = ieee80211_channel_to_khz(chan); in reg_rule_to_chan_bw_flags()
1705 struct ieee80211_channel *chan) in handle_channel() argument
1716 flags = chan->orig_flags; in handle_channel()
1718 reg_rule = freq_reg_info(wiphy, ieee80211_channel_to_khz(chan)); in handle_channel()
1738 chan->center_freq, chan->freq_offset); in handle_channel()
1739 chan->orig_flags |= IEEE80211_CHAN_DISABLED; in handle_channel()
1740 chan->flags = chan->orig_flags; in handle_channel()
1743 chan->center_freq, chan->freq_offset); in handle_channel()
[all …]
Dof.c24 struct ieee80211_channel *chan) in wiphy_freq_limits_valid_chan() argument
33 MHZ_TO_KHZ(chan->center_freq), in wiphy_freq_limits_valid_chan()
58 struct ieee80211_channel *chan = &sband->channels[i]; in wiphy_freq_limits_apply() local
60 if (chan->flags & IEEE80211_CHAN_DISABLED) in wiphy_freq_limits_apply()
65 chan)) { in wiphy_freq_limits_apply()
67 chan->center_freq); in wiphy_freq_limits_apply()
68 chan->flags |= IEEE80211_CHAN_DISABLED; in wiphy_freq_limits_apply()
Ddebugfs.c40 static int ht_print_chan(struct ieee80211_channel *chan, in ht_print_chan() argument
46 if (chan->flags & IEEE80211_CHAN_DISABLED) in ht_print_chan()
50 chan->center_freq); in ht_print_chan()
55 chan->center_freq, in ht_print_chan()
56 (chan->flags & IEEE80211_CHAN_NO_HT40MINUS) ? in ht_print_chan()
58 (chan->flags & IEEE80211_CHAN_NO_HT40PLUS) ? in ht_print_chan()
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()
109 wdev->wext.connect.channel = chan; in cfg80211_mgd_wext_siwfreq()
121 struct ieee80211_channel *chan = NULL; in cfg80211_mgd_wext_giwfreq() local
129 chan = wdev->current_bss->pub.channel; in cfg80211_mgd_wext_giwfreq()
131 chan = wdev->wext.connect.channel; in cfg80211_mgd_wext_giwfreq()
134 if (chan) { in cfg80211_mgd_wext_giwfreq()
[all …]
Dutil.c75 u32 ieee80211_channel_to_freq_khz(int chan, enum nl80211_band band) in ieee80211_channel_to_freq_khz() argument
79 if (chan <= 0) in ieee80211_channel_to_freq_khz()
83 if (chan == 14) in ieee80211_channel_to_freq_khz()
85 else if (chan < 14) in ieee80211_channel_to_freq_khz()
86 return MHZ_TO_KHZ(2407 + chan * 5); in ieee80211_channel_to_freq_khz()
89 if (chan >= 182 && chan <= 196) in ieee80211_channel_to_freq_khz()
90 return MHZ_TO_KHZ(4000 + chan * 5); in ieee80211_channel_to_freq_khz()
92 return MHZ_TO_KHZ(5000 + chan * 5); in ieee80211_channel_to_freq_khz()
96 if (chan == 2) in ieee80211_channel_to_freq_khz()
98 if (chan <= 233) in ieee80211_channel_to_freq_khz()
[all …]
/net/atm/
Dpppoatm.c67 struct ppp_channel chan; /* interface to generic ppp layer */ member
94 static inline struct pppoatm_vcc *chan_to_pvcc(const struct ppp_channel *chan) in chan_to_pvcc() argument
96 return (struct pppoatm_vcc *) (chan->private); in chan_to_pvcc()
173 ppp_unregister_channel(&pvcc->chan); in pppoatm_unassign_vcc()
202 if (pvcc->chan.ppp == NULL) { /* Not bound yet! */ in pppoatm_push()
216 pvcc->chan.mtu += LLC_LEN; in pppoatm_push()
224 ppp_input(&pvcc->chan, skb); in pppoatm_push()
229 ppp_input_error(&pvcc->chan, 0); in pppoatm_push()
287 static int pppoatm_send(struct ppp_channel *chan, struct sk_buff *skb) in pppoatm_send() argument
289 struct pppoatm_vcc *pvcc = chan_to_pvcc(chan); in pppoatm_send()
[all …]
/net/mac80211/
Doffchannel.c201 roc->cookie, roc->chan, in ieee80211_roc_notify_destroy()
206 roc->chan, GFP_KERNEL); in ieee80211_roc_notify_destroy()
267 roc->chan->band, 0); in ieee80211_handle_roc_started()
272 roc->chan, roc->req_duration, in ieee80211_handle_roc_started()
334 if (tmp->sdata != roc->sdata || tmp->chan != roc->chan) in _ieee80211_start_next_roc()
342 int ret = drv_remain_on_channel(local, roc->sdata, roc->chan, in _ieee80211_start_next_roc()
354 tmp->chan != roc->chan) in _ieee80211_start_next_roc()
365 if (tmp->sdata != roc->sdata || tmp->chan != roc->chan) in _ieee80211_start_next_roc()
375 roc->on_channel = roc->chan == local->_oper_chandef.chan && in _ieee80211_start_next_roc()
385 local->tmp_channel = roc->chan; in _ieee80211_start_next_roc()
[all …]
Dibss.c93 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp()
133 chandef->chan->center_freq); in ieee80211_ibss_build_presp()
147 csa_settings->chandef.chan->center_freq); in ieee80211_ibss_build_presp()
231 struct ieee80211_channel *chan; in __ieee80211_sta_join_ibss() local
266 chan = chandef.chan; in __ieee80211_sta_join_ibss()
278 chandef.center_freq1 = chan->center_freq; in __ieee80211_sta_join_ibss()
351 sdata->vif.bss_conf.use_short_slot = chan->band == NL80211_BAND_5GHZ; in __ieee80211_sta_join_ibss()
355 if (chan->band == NL80211_BAND_2GHZ && have_higher_than_11mbit) in __ieee80211_sta_join_ibss()
387 bss_meta.chan = chan; in __ieee80211_sta_join_ibss()
394 cfg80211_ibss_joined(sdata->dev, ifibss->bssid, chan, GFP_KERNEL); in __ieee80211_sta_join_ibss()
[all …]
Dscan.c168 bss_meta.chan = channel; in ieee80211_bss_info_update()
444 local->scan_chandef.chan = NULL; in __ieee80211_scan_completed()
630 enum nl80211_band band = local->hw.conf.chandef.chan->band; in ieee80211_scan_state_send_probe()
653 tx_flags, local->hw.conf.chandef.chan); in ieee80211_scan_state_send_probe()
748 (req->channels[0] == local->_oper_chandef.chan)) { in __ieee80211_start_scan()
824 ieee80211_scan_get_channel_time(struct ieee80211_channel *chan) in ieee80211_scan_get_channel_time() argument
830 if (chan->flags & (IEEE80211_CHAN_NO_IR | IEEE80211_CHAN_RADAR)) in ieee80211_scan_get_channel_time()
906 struct ieee80211_channel *chan; in ieee80211_scan_state_set_channel() local
914 chan = scan_req->channels[local->scan_channel_idx]; in ieee80211_scan_state_set_channel()
916 local->scan_chandef.chan = chan; in ieee80211_scan_state_set_channel()
[all …]
/net/rxrpc/
Dconn_event.c27 struct rxrpc_channel *chan; in rxrpc_conn_retransmit_call() local
52 chan = &conn->channels[channel]; in rxrpc_conn_retransmit_call()
57 call_id = READ_ONCE(chan->last_call); in rxrpc_conn_retransmit_call()
80 pkt.whdr.type = chan->last_type; in rxrpc_conn_retransmit_call()
88 switch (chan->last_type) { in rxrpc_conn_retransmit_call()
90 pkt.abort_code = htonl(chan->last_abort); in rxrpc_conn_retransmit_call()
101 pkt.ack.firstPacket = htonl(chan->last_seq + 1); in rxrpc_conn_retransmit_call()
102 pkt.ack.previousPacket = htonl(chan->last_seq); in rxrpc_conn_retransmit_call()
125 if (READ_ONCE(chan->last_call) != call_id) in rxrpc_conn_retransmit_call()
131 switch (chan->last_type) { in rxrpc_conn_retransmit_call()
[all …]
Dconn_object.c169 struct rxrpc_channel *chan = in __rxrpc_disconnect_call() local
174 if (rcu_access_pointer(chan->call) == call) { in __rxrpc_disconnect_call()
181 chan->last_seq = call->rx_hard_ack; in __rxrpc_disconnect_call()
182 chan->last_type = RXRPC_PACKET_TYPE_ACK; in __rxrpc_disconnect_call()
185 chan->last_abort = call->abort_code; in __rxrpc_disconnect_call()
186 chan->last_type = RXRPC_PACKET_TYPE_ABORT; in __rxrpc_disconnect_call()
189 chan->last_abort = RX_USER_ABORT; in __rxrpc_disconnect_call()
190 chan->last_type = RXRPC_PACKET_TYPE_ABORT; in __rxrpc_disconnect_call()
196 chan->last_call = chan->call_id; in __rxrpc_disconnect_call()
197 chan->call_id = chan->call_counter; in __rxrpc_disconnect_call()
[all …]
Dconn_client.c537 struct rxrpc_channel *chan = &conn->channels[channel]; in rxrpc_deactivate_one_channel() local
539 rcu_assign_pointer(chan->call, NULL); in rxrpc_deactivate_one_channel()
551 struct rxrpc_channel *chan = &conn->channels[channel]; in rxrpc_activate_one_channel() local
554 u32 call_id = chan->call_counter + 1; in rxrpc_activate_one_channel()
589 chan->call_id = call_id; in rxrpc_activate_one_channel()
590 chan->call_debug_id = call->debug_id; in rxrpc_activate_one_channel()
591 rcu_assign_pointer(chan->call, call); in rxrpc_activate_one_channel()
756 struct rxrpc_channel *chan = &conn->channels[channel]; in rxrpc_expose_client_call() local
764 chan->call_counter++; in rxrpc_expose_client_call()
765 if (chan->call_counter >= INT_MAX) in rxrpc_expose_client_call()
[all …]
/net/bluetooth/hidp/
Dcore.c786 &l2cap_pi(session->ctrl_sock->sk)->chan->src); in hidp_setup_hid()
792 &l2cap_pi(session->ctrl_sock->sk)->chan->dst); in hidp_setup_hid()
944 session->ctrl_mtu = min_t(uint, l2cap_pi(ctrl)->chan->omtu, in hidp_session_new()
945 l2cap_pi(ctrl)->chan->imtu); in hidp_session_new()
946 session->intr_mtu = min_t(uint, l2cap_pi(intr)->chan->omtu, in hidp_session_new()
947 l2cap_pi(intr)->chan->imtu); in hidp_session_new()
1322 ctrl_chan = l2cap_pi(ctrl_sock->sk)->chan; in hidp_verify_sockets()
1323 intr_chan = l2cap_pi(intr_sock->sk)->chan; in hidp_verify_sockets()
1354 struct l2cap_chan *chan; in hidp_connection_add() local
1364 chan = l2cap_pi(ctrl_sock->sk)->chan; in hidp_connection_add()
[all …]

123