Home
last modified time | relevance | path

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

123

/net/bluetooth/
Dl2cap_core.c59 static int l2cap_build_conf_req(struct l2cap_chan *chan, void *data, size_t data_size);
60 static void l2cap_send_disconn_req(struct l2cap_chan *chan, int err);
62 static void l2cap_tx(struct l2cap_chan *chan, struct l2cap_ctrl *control,
206 int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm) in l2cap_add_psm() argument
212 if (psm && __l2cap_global_chan_by_addr(psm, src, chan->src_type)) { in l2cap_add_psm()
218 chan->psm = psm; in l2cap_add_psm()
219 chan->sport = psm; in l2cap_add_psm()
224 if (chan->src_type == BDADDR_BREDR) { in l2cap_add_psm()
237 chan->src_type)) { in l2cap_add_psm()
238 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.c500 struct l2cap_chan *chan = hdev->smp_data; in smp_irk_matches() local
504 if (!chan || !chan->data) in smp_irk_matches()
518 struct l2cap_chan *chan = hdev->smp_data; in smp_generate_rpa() local
521 if (!chan || !chan->data) in smp_generate_rpa()
540 struct l2cap_chan *chan = hdev->smp_data; in smp_generate_oob() local
544 if (!chan || !chan->data) in smp_generate_oob()
547 smp = chan->data; in smp_generate_oob()
591 struct l2cap_chan *chan = conn->smp; in smp_send_cmd() local
596 if (!chan) in smp_send_cmd()
611 l2cap_chan_send(chan, &msg, 1 + len); in smp_send_cmd()
[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 …]
Damp.h42 void amp_create_logical_link(struct l2cap_chan *chan);
45 static inline void amp_create_logical_link(struct l2cap_chan *chan) in amp_create_logical_link() argument
57 void amp_create_logical_link(struct l2cap_chan *chan);
/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.c97 struct vmbus_channel *chan; member
174 static void hvs_set_channel_pending_send_size(struct vmbus_channel *chan) in hvs_set_channel_pending_send_size() argument
176 set_channel_pending_send_size(chan, in hvs_set_channel_pending_send_size()
182 static bool hvs_channel_readable(struct vmbus_channel *chan) in hvs_channel_readable() argument
184 u32 readable = hv_get_bytes_to_read(&chan->inbound); in hvs_channel_readable()
190 static int hvs_channel_readable_payload(struct vmbus_channel *chan) in hvs_channel_readable_payload() argument
192 u32 readable = hv_get_bytes_to_read(&chan->inbound); in hvs_channel_readable_payload()
211 static size_t hvs_channel_writable_bytes(struct vmbus_channel *chan) in hvs_channel_writable_bytes() argument
213 u32 writeable = hv_get_bytes_to_write(&chan->outbound); in hvs_channel_writable_bytes()
228 static int hvs_send_data(struct vmbus_channel *chan, in hvs_send_data() argument
[all …]
/net/wireless/
Dchan.c24 struct ieee80211_channel *chan, in cfg80211_chandef_create() argument
27 if (WARN_ON(!chan)) in cfg80211_chandef_create()
30 chandef->chan = chan; in cfg80211_chandef_create()
31 chandef->freq1_offset = chan->freq_offset; in cfg80211_chandef_create()
39 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
43 chandef->center_freq1 = chan->center_freq; in cfg80211_chandef_create()
47 chandef->center_freq1 = chan->center_freq + 10; in cfg80211_chandef_create()
51 chandef->center_freq1 = chan->center_freq - 10; in cfg80211_chandef_create()
69 if (!cfg80211_valid_60g_freq(chandef->chan->center_freq)) in cfg80211_edmg_chandef_valid()
201 if (!chandef->chan) in cfg80211_chandef_valid()
[all …]
Dreg.c212 struct ieee80211_channel chan; member
1672 const struct ieee80211_channel *chan) in reg_rule_to_chan_bw_flags() argument
1676 bool is_s1g = chan->band == NL80211_BAND_S1GHZ; in reg_rule_to_chan_bw_flags()
1681 center_freq_khz = ieee80211_channel_to_khz(chan); in reg_rule_to_chan_bw_flags()
1752 struct ieee80211_channel *chan, in handle_channel_single_rule() argument
1765 bw_flags = reg_rule_to_chan_bw_flags(regd, reg_rule, chan); in handle_channel_single_rule()
1775 chan->flags = chan->orig_flags = in handle_channel_single_rule()
1777 chan->max_antenna_gain = chan->orig_mag = in handle_channel_single_rule()
1779 chan->max_reg_power = chan->max_power = chan->orig_mpwr = in handle_channel_single_rule()
1782 if (chan->flags & IEEE80211_CHAN_RADAR) { in handle_channel_single_rule()
[all …]
Dmesh.c126 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
131 if (!setup->chandef.chan) { in __cfg80211_join_mesh()
137 struct ieee80211_channel *chan; in __cfg80211_join_mesh() local
145 chan = &sband->channels[i]; in __cfg80211_join_mesh()
146 if (chan->flags & (IEEE80211_CHAN_NO_IR | in __cfg80211_join_mesh()
150 setup->chandef.chan = chan; in __cfg80211_join_mesh()
154 if (setup->chandef.chan) in __cfg80211_join_mesh()
159 if (!setup->chandef.chan) in __cfg80211_join_mesh()
163 setup->chandef.center_freq1 = setup->chandef.chan->center_freq; in __cfg80211_join_mesh()
173 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 …]
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.c181 roc->cookie, roc->chan, in ieee80211_roc_notify_destroy()
186 roc->chan, GFP_KERNEL); in ieee80211_roc_notify_destroy()
247 roc->chan->band); in ieee80211_handle_roc_started()
252 roc->chan, roc->req_duration, in ieee80211_handle_roc_started()
314 if (tmp->sdata != roc->sdata || tmp->chan != roc->chan) in _ieee80211_start_next_roc()
322 int ret = drv_remain_on_channel(local, roc->sdata, roc->chan, in _ieee80211_start_next_roc()
334 tmp->chan != roc->chan) in _ieee80211_start_next_roc()
345 if (tmp->sdata != roc->sdata || tmp->chan != roc->chan) in _ieee80211_start_next_roc()
355 roc->on_channel = roc->chan == local->_oper_chandef.chan && in _ieee80211_start_next_roc()
365 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.c175 bss_meta.chan = channel; in ieee80211_bss_info_update()
470 local->scan_chandef.chan = NULL; in __ieee80211_scan_completed()
655 enum nl80211_band band = local->hw.conf.chandef.chan->band; in ieee80211_scan_state_send_probe()
678 tx_flags, local->hw.conf.chandef.chan); in ieee80211_scan_state_send_probe()
777 (req->channels[0] == local->_oper_chandef.chan)) { in __ieee80211_start_scan()
853 ieee80211_scan_get_channel_time(struct ieee80211_channel *chan) in ieee80211_scan_get_channel_time() argument
859 if (chan->flags & (IEEE80211_CHAN_NO_IR | IEEE80211_CHAN_RADAR)) in ieee80211_scan_get_channel_time()
935 struct ieee80211_channel *chan; in ieee80211_scan_state_set_channel() local
943 chan = scan_req->channels[local->scan_channel_idx]; in ieee80211_scan_state_set_channel()
945 local->scan_chandef.chan = chan; in ieee80211_scan_state_set_channel()
[all …]
/net/rxrpc/
Dconn_object.c167 struct rxrpc_channel *chan = in __rxrpc_disconnect_call() local
172 if (rcu_access_pointer(chan->call) == call) { in __rxrpc_disconnect_call()
179 chan->last_seq = call->rx_hard_ack; in __rxrpc_disconnect_call()
180 chan->last_type = RXRPC_PACKET_TYPE_ACK; in __rxrpc_disconnect_call()
183 chan->last_abort = call->abort_code; in __rxrpc_disconnect_call()
184 chan->last_type = RXRPC_PACKET_TYPE_ABORT; in __rxrpc_disconnect_call()
187 chan->last_abort = RX_CALL_DEAD; in __rxrpc_disconnect_call()
188 chan->last_type = RXRPC_PACKET_TYPE_ABORT; in __rxrpc_disconnect_call()
194 chan->last_call = chan->call_id; in __rxrpc_disconnect_call()
195 chan->call_id = chan->call_counter; in __rxrpc_disconnect_call()
[all …]
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_client.c522 struct rxrpc_channel *chan = &conn->channels[channel]; in rxrpc_activate_one_channel() local
526 u32 call_id = chan->call_counter + 1; in rxrpc_activate_one_channel()
568 chan->call_id = call_id; in rxrpc_activate_one_channel()
569 chan->call_debug_id = call->debug_id; in rxrpc_activate_one_channel()
570 rcu_assign_pointer(chan->call, call); in rxrpc_activate_one_channel()
769 struct rxrpc_channel *chan = &conn->channels[channel]; in rxrpc_expose_client_call() local
777 chan->call_counter++; in rxrpc_expose_client_call()
778 if (chan->call_counter >= INT_MAX) in rxrpc_expose_client_call()
804 struct rxrpc_channel *chan = NULL; in rxrpc_disconnect_client_call() local
829 chan = &conn->channels[channel]; in rxrpc_disconnect_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