Home
last modified time | relevance | path

Searched refs:u (Results 1 – 25 of 165) sorted by relevance

1234567

/net/unix/
Dgarbage.c129 struct unix_sock *u = unix_sk(s); in unix_inflight() local
131 if (atomic_long_inc_return(&u->inflight) == 1) { in unix_inflight()
132 BUG_ON(!list_empty(&u->link)); in unix_inflight()
133 list_add_tail(&u->link, &gc_inflight_list); in unix_inflight()
135 BUG_ON(list_empty(&u->link)); in unix_inflight()
146 struct unix_sock *u = unix_sk(s); in unix_notinflight() local
148 BUG_ON(list_empty(&u->link)); in unix_notinflight()
149 if (atomic_long_dec_and_test(&u->inflight)) in unix_notinflight()
150 list_del_init(&u->link); in unix_notinflight()
181 struct unix_sock *u = unix_sk(sk); in scan_inflight() local
[all …]
Daf_unix.c269 struct unix_sock *u = unix_sk(s); in __unix_find_socket_byname() local
274 if (u->addr->len == len && in __unix_find_socket_byname()
275 !memcmp(u->addr->name, sunname, len)) in __unix_find_socket_byname()
346 struct unix_sock *u; in unix_dgram_peer_wake_relay() local
349 u = container_of(q, struct unix_sock, peer_wake); in unix_dgram_peer_wake_relay()
351 __remove_wait_queue(&unix_sk(u->peer_wake.private)->peer_wait, in unix_dgram_peer_wake_relay()
353 u->peer_wake.private = NULL; in unix_dgram_peer_wake_relay()
356 u_sleep = sk_sleep(&u->sk); in unix_dgram_peer_wake_relay()
365 struct unix_sock *u, *u_other; in unix_dgram_peer_wake_connect() local
368 u = unix_sk(sk); in unix_dgram_peer_wake_connect()
[all …]
/net/mac80211/
Dspectmgmt.c47 skb_put(skb, 1 + sizeof(msr_report->u.action.u.measurement)); in ieee80211_send_refuse_measurement_request()
48 msr_report->u.action.category = WLAN_CATEGORY_SPECTRUM_MGMT; in ieee80211_send_refuse_measurement_request()
49 msr_report->u.action.u.measurement.action_code = in ieee80211_send_refuse_measurement_request()
51 msr_report->u.action.u.measurement.dialog_token = dialog_token; in ieee80211_send_refuse_measurement_request()
53 msr_report->u.action.u.measurement.element_id = WLAN_EID_MEASURE_REPORT; in ieee80211_send_refuse_measurement_request()
54 msr_report->u.action.u.measurement.length = in ieee80211_send_refuse_measurement_request()
57 memset(&msr_report->u.action.u.measurement.msr_elem, 0, in ieee80211_send_refuse_measurement_request()
59 msr_report->u.action.u.measurement.msr_elem.token = request_ie->token; in ieee80211_send_refuse_measurement_request()
60 msr_report->u.action.u.measurement.msr_elem.mode |= in ieee80211_send_refuse_measurement_request()
62 msr_report->u.action.u.measurement.msr_elem.type = request_ie->type; in ieee80211_send_refuse_measurement_request()
[all …]
Dht.c27 if (sdata->u.mgd.ht_capa_mask.cap_info & le_flag) { in __check_htcap_disable()
28 if (!(sdata->u.mgd.ht_capa.cap_info & le_flag)) in __check_htcap_disable()
36 u8 *scaps = (u8 *)(&sdata->u.mgd.ht_capa.mcs.rx_mask); in ieee80211_apply_htcap_overrides()
37 u8 *smask = (u8 *)(&sdata->u.mgd.ht_capa_mask.mcs.rx_mask); in ieee80211_apply_htcap_overrides()
68 if (sdata->u.mgd.ht_capa_mask.ampdu_params_info & in ieee80211_apply_htcap_overrides()
70 u8 n = sdata->u.mgd.ht_capa.ampdu_params_info in ieee80211_apply_htcap_overrides()
77 if (sdata->u.mgd.ht_capa_mask.ampdu_params_info & in ieee80211_apply_htcap_overrides()
79 u8 n = (sdata->u.mgd.ht_capa.ampdu_params_info & in ieee80211_apply_htcap_overrides()
336 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_delba()
338 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_delba()
[all …]
Ddebugfs_netdev.c205 IEEE80211_IF_FILE(bssid, u.mgd.bssid, MAC);
206 IEEE80211_IF_FILE(aid, u.mgd.aid, DEC);
207 IEEE80211_IF_FILE(last_beacon, u.mgd.last_beacon_signal, DEC);
208 IEEE80211_IF_FILE(ave_beacon, u.mgd.ave_beacon_signal, DEC_DIV_16);
209 IEEE80211_IF_FILE(beacon_timeout, u.mgd.beacon_timeout, JIFFIES_TO_MS);
231 mutex_lock(&sdata->u.mgd.mtx); in ieee80211_set_smps()
233 mutex_unlock(&sdata->u.mgd.mtx); in ieee80211_set_smps()
252 smps_modes[sdata->u.mgd.req_smps], in ieee80211_if_fmt_smps()
316 mutex_lock(&sdata->u.mgd.mtx); in ieee80211_if_parse_tkip_mic_test()
317 if (!sdata->u.mgd.associated) { in ieee80211_if_parse_tkip_mic_test()
[all …]
Dibss.c44 struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; in __ieee80211_sta_join_ibss()
126 mgmt->u.beacon.beacon_int = cpu_to_le16(beacon_int); in __ieee80211_sta_join_ibss()
127 mgmt->u.beacon.timestamp = cpu_to_le64(tsf); in __ieee80211_sta_join_ibss()
128 mgmt->u.beacon.capab_info = cpu_to_le16(capability); in __ieee80211_sta_join_ibss()
130 pos = (u8 *)mgmt + offsetof(struct ieee80211_mgmt, u.beacon.variable); in __ieee80211_sta_join_ibss()
266 lockdep_assert_held(&sdata->u.ibss.mtx); in ieee80211_sta_join_ibss()
316 if (!sta->sdata->u.ibss.control_port) in ieee80211_ibss_finish_sta()
324 if (auth && !sdata->u.ibss.auth_frame_registrations) { in ieee80211_ibss_finish_sta()
327 sdata->vif.addr, addr, sdata->u.ibss.bssid); in ieee80211_ibss_finish_sta()
329 addr, sdata->u.ibss.bssid, NULL, 0, 0, 0); in ieee80211_ibss_finish_sta()
[all …]
Dtkip.c147 lockdep_assert_held(&key->u.tkip.txlock); in ieee80211_tkip_add_iv()
149 pos = write_tkip_iv(pos, key->u.tkip.tx.iv16); in ieee80211_tkip_add_iv()
151 put_unaligned_le32(key->u.tkip.tx.iv32, pos); in ieee80211_tkip_add_iv()
158 struct tkip_ctx *ctx = &key->u.tkip.tx; in ieee80211_compute_tkip_p1k()
161 lockdep_assert_held(&key->u.tkip.txlock); in ieee80211_compute_tkip_p1k()
179 struct tkip_ctx *ctx = &key->u.tkip.tx; in ieee80211_get_tkip_p1k_iv()
181 spin_lock_bh(&key->u.tkip.txlock); in ieee80211_get_tkip_p1k_iv()
184 spin_unlock_bh(&key->u.tkip.txlock); in ieee80211_get_tkip_p1k_iv()
205 struct tkip_ctx *ctx = &key->u.tkip.tx; in ieee80211_get_tkip_p2k()
211 spin_lock(&key->u.tkip.txlock); in ieee80211_get_tkip_p2k()
[all …]
Dagg-rx.c204 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_addba_resp()
206 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_addba_resp()
211 skb_put(skb, 1 + sizeof(mgmt->u.action.u.addba_resp)); in ieee80211_send_addba_resp()
212 mgmt->u.action.category = WLAN_CATEGORY_BACK; in ieee80211_send_addba_resp()
213 mgmt->u.action.u.addba_resp.action_code = WLAN_ACTION_ADDBA_RESP; in ieee80211_send_addba_resp()
214 mgmt->u.action.u.addba_resp.dialog_token = dialog_token; in ieee80211_send_addba_resp()
220 mgmt->u.action.u.addba_resp.capab = cpu_to_le16(capab); in ieee80211_send_addba_resp()
221 mgmt->u.action.u.addba_resp.timeout = cpu_to_le16(timeout); in ieee80211_send_addba_resp()
222 mgmt->u.action.u.addba_resp.status = cpu_to_le16(status); in ieee80211_send_addba_resp()
238 dialog_token = mgmt->u.action.u.addba_req.dialog_token; in ieee80211_process_addba_request()
[all …]
Dmesh.c21 return (mgmt->u.action.u.mesh_action.action_code == in mesh_action_is_path_sel()
45 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping_timer()
64 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_matches_local()
135 if (free_plinks != sdata->u.mesh.accepting_plinks) { in mesh_accept_plinks_update()
136 sdata->u.mesh.accepting_plinks = free_plinks; in mesh_accept_plinks_update()
159 if (!sdata->u.mesh.user_mpm) { in mesh_sta_cleanup()
172 sdata->u.mesh.rmc = kmalloc(sizeof(struct mesh_rmc), GFP_KERNEL); in mesh_rmc_init()
173 if (!sdata->u.mesh.rmc) in mesh_rmc_init()
175 sdata->u.mesh.rmc->idx_mask = RMC_BUCKETS - 1; in mesh_rmc_init()
177 INIT_LIST_HEAD(&sdata->u.mesh.rmc->bucket[i]); in mesh_rmc_init()
[all …]
Dmlme.c155 mod_timer(&sdata->u.mgd.bcn_mon_timer, in ieee80211_sta_reset_beacon_monitor()
156 round_jiffies_up(jiffies + sdata->u.mgd.beacon_timeout)); in ieee80211_sta_reset_beacon_monitor()
161 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_sta_reset_conn_monitor()
163 if (unlikely(!sdata->u.mgd.associated)) in ieee80211_sta_reset_conn_monitor()
169 mod_timer(&sdata->u.mgd.conn_mon_timer, in ieee80211_sta_reset_conn_monitor()
390 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_config_bw()
569 if (sdata->u.mgd.flags & IEEE80211_STA_DISABLE_40MHZ) { in ieee80211_add_ht_ie()
616 if (sdata->u.mgd.flags & IEEE80211_STA_DISABLE_80P80MHZ) { in ieee80211_add_vht_ie()
621 if (sdata->u.mgd.flags & IEEE80211_STA_DISABLE_160MHZ) { in ieee80211_add_vht_ie()
642 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_send_assoc()
[all …]
Dmesh_hwmp.c84 msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPnetDiameterTraversalTime)
86 MSEC_TO_TU(s->u.mesh.mshcfg.dot11MeshHWMPactivePathTimeout)
88 (msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPpreqMinInterval))
89 #define max_preq_retries(s) (s->u.mesh.mshcfg.dot11MeshHWMPmaxPREQretries)
91 msecs_to_jiffies(sdata->u.mesh.mshcfg.min_discovery_timeout)
93 msecs_to_jiffies(sdata->u.mesh.mshcfg.dot11MeshHWMPconfirmationInterval)
117 int hdr_len = offsetof(struct ieee80211_mgmt, u.action.u.mesh_action) + in mesh_path_sel_frame_tx()
118 sizeof(mgmt->u.action.u.mesh_action); in mesh_path_sel_frame_tx()
135 mgmt->u.action.category = WLAN_CATEGORY_MESH_ACTION; in mesh_path_sel_frame_tx()
136 mgmt->u.action.u.mesh_action.action_code = in mesh_path_sel_frame_tx()
[all …]
Dcfg.c40 sdata->u.mntr_flags = *flags; in ieee80211_add_iface()
67 RCU_INIT_POINTER(sdata->u.vlan.sta, NULL); in ieee80211_change_iface()
70 sdata->u.mgd.use_4addr = params->use_4addr; in ieee80211_change_iface()
85 (sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES)) in ieee80211_change_iface()
89 sdata->u.mntr_flags = *flags; in ieee80211_change_iface()
99 sdata->u.mntr_flags = *flags; in ieee80211_change_iface()
186 if (sdata->u.mgd.mfp != IEEE80211_MFP_DISABLED) in ieee80211_add_key()
200 if (sdata->u.mesh.security != IEEE80211_MESH_SEC_NONE) in ieee80211_add_key()
306 iv32 = key->u.tkip.tx.iv32; in ieee80211_get_key()
307 iv16 = key->u.tkip.tx.iv16; in ieee80211_get_key()
[all …]
Dkey.c346 key->u.tkip.rx[i].iv32 = in ieee80211_key_alloc()
348 key->u.tkip.rx[i].iv16 = in ieee80211_key_alloc()
352 spin_lock_init(&key->u.tkip.txlock); in ieee80211_key_alloc()
360 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc()
367 key->u.ccmp.tfm = ieee80211_aes_key_setup_encrypt(key_data); in ieee80211_key_alloc()
368 if (IS_ERR(key->u.ccmp.tfm)) { in ieee80211_key_alloc()
369 err = PTR_ERR(key->u.ccmp.tfm); in ieee80211_key_alloc()
379 key->u.aes_cmac.rx_pn[j] = in ieee80211_key_alloc()
385 key->u.aes_cmac.tfm = in ieee80211_key_alloc()
387 if (IS_ERR(key->u.aes_cmac.tfm)) { in ieee80211_key_alloc()
[all …]
Dmesh_plink.c24 (sdata->u.mesh.mshcfg.rssi_threshold == 0 ||\
26 sdata->u.mesh.mshcfg.rssi_threshold))
193 sdata->u.mesh.mshcfg.ht_opmode = ht_opmode; in mesh_set_ht_prot_mode()
258 int hdr_len = offsetof(struct ieee80211_mgmt, u.action.u.self_prot) + in mesh_plink_frame_tx()
259 sizeof(mgmt->u.action.u.self_prot); in mesh_plink_frame_tx()
268 2 + sdata->u.mesh.mesh_id_len + in mesh_plink_frame_tx()
273 sdata->u.mesh.ie_len); in mesh_plink_frame_tx()
285 mgmt->u.action.category = WLAN_CATEGORY_SELF_PROTECTED; in mesh_plink_frame_tx()
286 mgmt->u.action.u.self_prot.action_code = action; in mesh_plink_frame_tx()
440 if (sdata->u.mesh.user_mpm || in mesh_sta_info_alloc()
[all …]
/net/caif/
Dcfctrl.c90 return p1->u.datagram.connid == p2->u.datagram.connid; in param_eq()
93 p1->u.rfm.connid == p2->u.rfm.connid && in param_eq()
94 strcmp(p1->u.rfm.volume, p2->u.rfm.volume) == 0; in param_eq()
97 p1->u.utility.fifosize_kb == p2->u.utility.fifosize_kb in param_eq()
98 && p1->u.utility.fifosize_bufs == in param_eq()
99 p2->u.utility.fifosize_bufs in param_eq()
100 && strcmp(p1->u.utility.name, p2->u.utility.name) == 0 in param_eq()
101 && p1->u.utility.paramlen == p2->u.utility.paramlen in param_eq()
102 && memcmp(p1->u.utility.params, p2->u.utility.params, in param_eq()
103 p1->u.utility.paramlen) == 0; in param_eq()
[all …]
Dcfcnfg.c254 l->endpoint = (s->sockaddr.u.at.type >> 2) & 0x3; in caif_connect_req_to_link_param()
255 l->chtype = s->sockaddr.u.at.type & 0x3; in caif_connect_req_to_link_param()
260 l->u.datagram.connid = s->sockaddr.u.dgm.connection_id; in caif_connect_req_to_link_param()
266 l->u.datagram.connid = s->sockaddr.u.dgm.connection_id; in caif_connect_req_to_link_param()
270 l->u.datagram.connid = s->sockaddr.u.rfm.connection_id; in caif_connect_req_to_link_param()
271 strncpy(l->u.rfm.volume, s->sockaddr.u.rfm.volume, in caif_connect_req_to_link_param()
272 sizeof(l->u.rfm.volume)-1); in caif_connect_req_to_link_param()
273 l->u.rfm.volume[sizeof(l->u.rfm.volume)-1] = 0; in caif_connect_req_to_link_param()
279 strncpy(l->u.utility.name, s->sockaddr.u.util.service, in caif_connect_req_to_link_param()
280 sizeof(l->u.utility.name)-1); in caif_connect_req_to_link_param()
[all …]
/net/ipv4/netfilter/
Dnf_conntrack_proto_icmp.c42 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple()
43 tuple->src.u.icmp.id = hp->un.echo.id; in icmp_pkt_to_tuple()
44 tuple->dst.u.icmp.code = hp->code; in icmp_pkt_to_tuple()
64 if (orig->dst.u.icmp.type >= sizeof(invmap) || in icmp_invert_tuple()
65 !invmap[orig->dst.u.icmp.type]) in icmp_invert_tuple()
68 tuple->src.u.icmp.id = orig->src.u.icmp.id; in icmp_invert_tuple()
69 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in icmp_invert_tuple()
70 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in icmp_invert_tuple()
79 tuple->dst.u.icmp.type, in icmp_print_tuple()
80 tuple->dst.u.icmp.code, in icmp_print_tuple()
[all …]
Dnf_nat_h323.c159 port == ct->tuplehash[dir].tuple.src.u.udp.port) { in set_ras_addr()
163 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); in set_ras_addr()
167 dst.u.udp.port); in set_ras_addr()
189 rtp_exp->saved_proto.udp.port = rtp_exp->tuple.dst.u.udp.port; in nat_rtp_rtcp()
192 rtcp_exp->saved_proto.udp.port = rtcp_exp->tuple.dst.u.udp.port; in nat_rtp_rtcp()
203 rtp_exp->tuple.dst.u.udp.port = info->rtp_port[i][dir]; in nat_rtp_rtcp()
204 rtcp_exp->tuple.dst.u.udp.port = in nat_rtp_rtcp()
220 for (nated_port = ntohs(rtp_exp->tuple.dst.u.udp.port); in nat_rtp_rtcp()
224 rtp_exp->tuple.dst.u.udp.port = htons(nated_port); in nat_rtp_rtcp()
227 rtcp_exp->tuple.dst.u.udp.port = in nat_rtp_rtcp()
[all …]
/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c47 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple()
48 tuple->src.u.icmp.id = hp->icmp6_identifier; in icmpv6_pkt_to_tuple()
49 tuple->dst.u.icmp.code = hp->icmp6_code; in icmpv6_pkt_to_tuple()
76 int type = orig->dst.u.icmp.type - 128; in icmpv6_invert_tuple()
80 tuple->src.u.icmp.id = orig->src.u.icmp.id; in icmpv6_invert_tuple()
81 tuple->dst.u.icmp.type = invmap[type] - 1; in icmpv6_invert_tuple()
82 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in icmpv6_invert_tuple()
91 tuple->dst.u.icmp.type, in icmpv6_print_tuple()
92 tuple->dst.u.icmp.code, in icmpv6_print_tuple()
93 ntohs(tuple->src.u.icmp.id)); in icmpv6_print_tuple()
[all …]
/net/ipv6/
Dxfrm6_policy.c95 path->u.rt6.rt6i_nfheader_len = nfheader_len; in xfrm6_init_path()
105 xdst->u.dst.dev = dev; in xfrm6_fill_dst()
108 xdst->u.rt6.rt6i_idev = in6_dev_get(dev); in xfrm6_fill_dst()
109 if (!xdst->u.rt6.rt6i_idev) { in xfrm6_fill_dst()
114 rt6_transfer_peer(&xdst->u.rt6, rt); in xfrm6_fill_dst()
118 xdst->u.rt6.rt6i_flags = rt->rt6i_flags & (RTF_ANYCAST | in xfrm6_fill_dst()
120 xdst->u.rt6.rt6i_metric = rt->rt6i_metric; in xfrm6_fill_dst()
121 xdst->u.rt6.rt6i_node = rt->rt6i_node; in xfrm6_fill_dst()
124 xdst->u.rt6.rt6i_gateway = rt->rt6i_gateway; in xfrm6_fill_dst()
125 xdst->u.rt6.rt6i_dst = rt->rt6i_dst; in xfrm6_fill_dst()
[all …]
/net/sunrpc/
Dsched.c71 list_del(&task->u.tk_wait.timer_list); in __rpc_disable_timer()
95 task->u.tk_wait.expires = jiffies + task->tk_timeout; in __rpc_add_timer()
96 …if (list_empty(&queue->timer_list.list) || time_before(task->u.tk_wait.expires, queue->timer_list.… in __rpc_add_timer()
97 rpc_set_queue_timer(queue, task->u.tk_wait.expires); in __rpc_add_timer()
98 list_add(&task->u.tk_wait.timer_list, &queue->timer_list.list); in __rpc_add_timer()
107 task = list_first_entry(q, struct rpc_task, u.tk_wait.list); in rpc_rotate_queue_owner()
109 list_move_tail(&task->u.tk_wait.list, q); in rpc_rotate_queue_owner()
144 INIT_LIST_HEAD(&task->u.tk_wait.links); in __rpc_add_wait_queue_priority()
150 list_for_each_entry(t, q, u.tk_wait.list) { in __rpc_add_wait_queue_priority()
152 list_add_tail(&task->u.tk_wait.list, &t->u.tk_wait.links); in __rpc_add_wait_queue_priority()
[all …]
/net/ipv4/
Dinetpeer.c224 struct inet_peer *u; \
229 for (u = rcu_deref_locked(_base->root, _base); \
230 u != peer_avl_empty; ) { \
231 int cmp = addr_compare(_daddr, &u->daddr); \
235 v = &u->avl_left; \
237 v = &u->avl_right; \
239 u = rcu_deref_locked(*v, _base); \
241 u; \
254 struct inet_peer *u = rcu_dereference(base->root); in lookup_rcu() local
257 while (u != peer_avl_empty) { in lookup_rcu()
[all …]
/net/bridge/
Dbr_mdb.c87 e.addr.u.ip4 = p->addr.u.ip4; in br_mdb_fill_info()
90 e.addr.u.ip6 = p->addr.u.ip6; in br_mdb_fill_info()
237 entry.addr.u.ip4 = group->u.ip4; in br_mdb_notify()
239 entry.addr.u.ip6 = group->u.ip6; in br_mdb_notify()
250 if (!ipv4_is_multicast(entry->addr.u.ip4)) in is_valid_mdb_entry()
252 if (ipv4_is_local_multicast(entry->addr.u.ip4)) in is_valid_mdb_entry()
256 if (!ipv6_is_transient_multicast(&entry->addr.u.ip6)) in is_valid_mdb_entry()
373 ip.u.ip4 = entry->addr.u.ip4; in __br_mdb_add()
376 ip.u.ip6 = entry->addr.u.ip6; in __br_mdb_add()
422 ip.u.ip4 = entry->addr.u.ip4; in __br_mdb_del()
[all …]
/net/wireless/
Dscan.c935 u.probe_resp.variable); in cfg80211_inform_bss_frame()
937 BUILD_BUG_ON(offsetof(struct ieee80211_mgmt, u.probe_resp.variable) != in cfg80211_inform_bss_frame()
938 offsetof(struct ieee80211_mgmt, u.beacon.variable)); in cfg80211_inform_bss_frame()
952 if (WARN_ON(len < offsetof(struct ieee80211_mgmt, u.probe_resp.variable))) in cfg80211_inform_bss_frame()
955 channel = cfg80211_get_bss_channel(wiphy, mgmt->u.beacon.variable, in cfg80211_inform_bss_frame()
964 ies->tsf = le64_to_cpu(mgmt->u.probe_resp.timestamp); in cfg80211_inform_bss_frame()
966 memcpy(ies->data, mgmt->u.probe_resp.variable, ielen); in cfg80211_inform_bss_frame()
977 tmp.pub.beacon_interval = le16_to_cpu(mgmt->u.probe_resp.beacon_int); in cfg80211_inform_bss_frame()
978 tmp.pub.capability = le16_to_cpu(mgmt->u.probe_resp.capab_info); in cfg80211_inform_bss_frame()
1205 iwe.u.data.length = next - pos; in ieee80211_scan_add_ies()
[all …]
/net/netfilter/
Dxt_set.c55 ADT_OPT(opt, par->family, info->match_set.u.compat.dim, in set_match_v0()
56 info->match_set.u.compat.flags, 0, UINT_MAX); in set_match_v0()
59 info->match_set.u.compat.flags & IPSET_INV_MATCH); in set_match_v0()
68 info->u.compat.dim = IPSET_DIM_ZERO; in compat_flags()
69 if (info->u.flags[0] & IPSET_MATCH_INV) in compat_flags()
70 info->u.compat.flags |= IPSET_INV_MATCH; in compat_flags()
71 for (i = 0; i < IPSET_DIM_MAX-1 && info->u.flags[i]; i++) { in compat_flags()
72 info->u.compat.dim++; in compat_flags()
73 if (info->u.flags[i] & IPSET_SRC) in compat_flags()
74 info->u.compat.flags |= (1<<info->u.compat.dim); in compat_flags()
[all …]

1234567