Home
last modified time | relevance | path

Searched refs:conf (Results 1 – 25 of 34) sorted by relevance

12

/net/sched/
Dem_text.c52 struct tcf_em_text *conf = data; in em_text_change() local
56 if (len < sizeof(*conf) || len < (sizeof(*conf) + conf->pattern_len)) in em_text_change()
59 if (conf->from_layer > conf->to_layer) in em_text_change()
62 if (conf->from_layer == conf->to_layer && in em_text_change()
63 conf->from_offset > conf->to_offset) in em_text_change()
67 ts_conf = textsearch_prepare(conf->algo, (u8 *) conf + sizeof(*conf), in em_text_change()
68 conf->pattern_len, GFP_KERNEL, flags); in em_text_change()
91 tm->from_offset = conf->from_offset; in em_text_change()
92 tm->to_offset = conf->to_offset; in em_text_change()
93 tm->from_layer = conf->from_layer; in em_text_change()
[all …]
Dem_canid.c126 struct can_filter *conf = data; /* Array with rules */ in em_canid_change() local
157 if (conf[i].can_id & CAN_EFF_FLAG) { in em_canid_change()
159 &conf[i], in em_canid_change()
168 if (!(conf[i].can_id & CAN_EFF_FLAG)) { in em_canid_change()
172 &conf[i], sizeof(struct can_filter)); in em_canid_change()
177 conf[i].can_id, conf[i].can_mask); in em_canid_change()
Dsch_generic.c962 const struct tc_ratespec *conf, in psched_ratecfg_precompute() argument
966 r->overhead = conf->overhead; in psched_ratecfg_precompute()
967 r->rate_bytes_ps = max_t(u64, conf->rate, rate64); in psched_ratecfg_precompute()
968 r->linklayer = (conf->linklayer & TC_LINKLAYER_MASK); in psched_ratecfg_precompute()
/net/netfilter/
Dxt_string.c28 const struct xt_string_info *conf = par->matchinfo; in string_mt() local
32 invert = conf->u.v1.flags & XT_STRING_FLAG_INVERT; in string_mt()
34 return (skb_find_text((struct sk_buff *)skb, conf->from_offset, in string_mt()
35 conf->to_offset, conf->config, &state) in string_mt()
43 struct xt_string_info *conf = par->matchinfo; in string_mt_check() local
48 if (conf->from_offset > conf->to_offset) in string_mt_check()
50 if (conf->algo[XT_STRING_MAX_ALGO_NAME_SIZE - 1] != '\0') in string_mt_check()
52 if (conf->patlen > XT_STRING_MAX_PATTERN_SIZE) in string_mt_check()
54 if (conf->u.v1.flags & in string_mt_check()
57 if (conf->u.v1.flags & XT_STRING_FLAG_IGNORECASE) in string_mt_check()
[all …]
/net/mac80211/
Dkey.c113 if (sta && !(key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE) && in ieee80211_key_enable_hw_accel()
126 if (!(key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE)) in ieee80211_key_enable_hw_accel()
131 sta ? &sta->sta : NULL, &key->conf); in ieee80211_key_enable_hw_accel()
136 if (!((key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC) || in ieee80211_key_enable_hw_accel()
137 (key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV) || in ieee80211_key_enable_hw_accel()
138 (key->conf.flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE))) in ieee80211_key_enable_hw_accel()
141 WARN_ON((key->conf.flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE) && in ieee80211_key_enable_hw_accel()
142 (key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)); in ieee80211_key_enable_hw_accel()
150 key->conf.keyidx, in ieee80211_key_enable_hw_accel()
154 switch (key->conf.cipher) { in ieee80211_key_enable_hw_accel()
[all …]
Dchan.c70 struct ieee80211_chanctx_conf *conf; in ieee80211_vif_get_chanctx() local
72 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in ieee80211_vif_get_chanctx()
74 if (!conf) in ieee80211_vif_get_chanctx()
77 return container_of(conf, struct ieee80211_chanctx, conf); in ieee80211_vif_get_chanctx()
246 struct ieee80211_chanctx_conf *conf) in ieee80211_get_chanctx_max_required_bw() argument
259 if (rcu_access_pointer(sdata->vif.chanctx_conf) != conf) in ieee80211_get_chanctx_max_required_bw()
287 if (sdata && rcu_access_pointer(sdata->vif.chanctx_conf) == conf) in ieee80211_get_chanctx_max_required_bw()
288 max_bw = max(max_bw, conf->def.width); in ieee80211_get_chanctx_max_required_bw()
309 if (ctx->conf.def.width == NL80211_CHAN_WIDTH_5 || in ieee80211_recalc_chanctx_min_def()
310 ctx->conf.def.width == NL80211_CHAN_WIDTH_10 || in ieee80211_recalc_chanctx_min_def()
[all …]
Dwep.c250 if (!key || keyidx != key->conf.keyidx) in ieee80211_wep_decrypt()
253 klen = 3 + key->conf.keylen; in ieee80211_wep_decrypt()
259 memcpy(rc4key + 3, key->conf.key, key->conf.keylen); in ieee80211_wep_decrypt()
311 if (ieee80211_wep_encrypt(tx->local, skb, tx->key->conf.key, in wep_encrypt_skb()
312 tx->key->conf.keylen, in wep_encrypt_skb()
313 tx->key->conf.keyidx)) in wep_encrypt_skb()
318 tx->key->conf.keylen, in wep_encrypt_skb()
319 tx->key->conf.keyidx)) in wep_encrypt_skb()
Dtkip.c150 *pos++ = (key->conf.keyidx << 6) | (1 << 5) /* Ext IV */; in ieee80211_tkip_add_iv()
159 const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; in ieee80211_compute_tkip_p1k()
178 container_of(keyconf, struct ieee80211_key, conf); in ieee80211_get_tkip_p1k_iv()
203 container_of(keyconf, struct ieee80211_key, conf); in ieee80211_get_tkip_p2k()
204 const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; in ieee80211_get_tkip_p2k()
232 ieee80211_get_tkip_p2k(&key->conf, skb, rc4key); in ieee80211_tkip_encrypt_data()
252 const u8 *tk = &key->conf.key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; in ieee80211_tkip_decrypt_data()
265 if ((keyid >> 6) != key->conf.keyidx) in ieee80211_tkip_decrypt_data()
293 drv_update_tkip_key(key->local, sdata, &key->conf, key->sta, in ieee80211_tkip_decrypt_data()
Ddebugfs_key.c42 KEY_READ(conf_##name, conf.name, format_string)
70 u32 c = key->conf.cipher; in key_algorithm_read()
86 switch (key->conf.cipher) { in key_tx_spec_read()
123 switch (key->conf.cipher) { in key_rx_spec_read()
168 switch (key->conf.cipher) { in key_replays_read()
190 switch (key->conf.cipher) { in key_icverrors_read()
209 if (key->conf.cipher != WLAN_CIPHER_SUITE_TKIP) in key_mic_failures_read()
222 int i, bufsize = 2 * key->conf.keylen + 2; in key_key_read()
230 for (i = 0; i < key->conf.keylen; i++) in key_key_read()
231 p += scnprintf(p, bufsize + buf - p, "%02x", key->conf.key[i]); in key_key_read()
Dcfg.c179 key->conf.flags |= IEEE80211_KEY_FLAG_PAIRWISE; in ieee80211_add_key()
208 key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT; in ieee80211_add_key()
214 key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT; in ieee80211_add_key()
222 key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT; in ieee80211_add_key()
327 params.cipher = key->conf.cipher; in ieee80211_get_key()
329 switch (key->conf.cipher) { in ieee80211_get_key()
336 key->conf.hw_key_idx, in ieee80211_get_key()
372 params.key = key->conf.key; in ieee80211_get_key()
373 params.key_len = key->conf.keylen; in ieee80211_get_key()
1521 struct mesh_config *conf) in ieee80211_get_mesh_config() argument
[all …]
Dmain.c104 offchannel_flag = local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
121 local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
123 local->hw.conf.flags &= ~IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
125 offchannel_flag ^= local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
128 !cfg80211_chandef_identical(&local->hw.conf.chandef, in ieee80211_hw_conf_chan()
130 local->hw.conf.chandef = chandef; in ieee80211_hw_conf_chan()
134 if (!conf_is_ht(&local->hw.conf)) { in ieee80211_hw_conf_chan()
140 local->hw.conf.smps_mode = IEEE80211_SMPS_STATIC; in ieee80211_hw_conf_chan()
141 } else if (local->hw.conf.smps_mode != local->smps_mode) { in ieee80211_hw_conf_chan()
142 local->hw.conf.smps_mode = local->smps_mode; in ieee80211_hw_conf_chan()
[all …]
Dwpa.c40 if (!tx->key || tx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || in ieee80211_tx_h_michael_mic_add()
59 !(tx->key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) { in ieee80211_tx_h_michael_mic_add()
75 key = &tx->key->conf.key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY]; in ieee80211_tx_h_michael_mic_add()
114 rx->key->conf.cipher == WLAN_CIPHER_SUITE_TKIP) in ieee80211_rx_h_michael_mic_verify()
125 if (!rx->key || rx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || in ieee80211_rx_h_michael_mic_verify()
129 if (rx->sdata->vif.type == NL80211_IFTYPE_AP && rx->key->conf.keyidx) { in ieee80211_rx_h_michael_mic_verify()
152 key = &rx->key->conf.key[NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY]; in ieee80211_rx_h_michael_mic_verify()
177 rx->key ? rx->key->conf.keyidx : -1, in ieee80211_rx_h_michael_mic_verify()
458 ccmp_pn2hdr(pos, pn, key->conf.keyidx); in ccmp_encrypt_skb()
720 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_encrypt()
Doffchannel.c42 if (local->hw.conf.flags & IEEE80211_CONF_PS) { in ieee80211_offchannel_ps_enable()
44 local->hw.conf.flags &= ~IEEE80211_CONF_PS; in ieee80211_offchannel_ps_enable()
87 local->hw.conf.flags |= IEEE80211_CONF_PS; in ieee80211_offchannel_ps_disable()
89 } else if (local->hw.conf.dynamic_ps_timeout > 0) { in ieee80211_offchannel_ps_disable()
98 msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout)); in ieee80211_offchannel_ps_disable()
Ddriver-ops.h295 struct ieee80211_key_conf *conf, in drv_update_tkip_key() argument
308 trace_drv_update_tkip_key(local, sdata, conf, ista, iv32); in drv_update_tkip_key()
310 local->ops->update_tkip_key(&local->hw, &sdata->vif, conf, in drv_update_tkip_key()
996 ret = local->ops->add_chanctx(&local->hw, &ctx->conf); in drv_add_chanctx()
1012 local->ops->remove_chanctx(&local->hw, &ctx->conf); in drv_remove_chanctx()
1024 local->ops->change_chanctx(&local->hw, &ctx->conf, changed); in drv_change_chanctx()
1043 &ctx->conf); in drv_assign_vif_chanctx()
1062 &ctx->conf); in drv_unassign_vif_chanctx()
1083 conf); in drv_switch_vif_chanctx()
1087 conf); in drv_switch_vif_chanctx()
[all …]
Dtrace.h63 #define CHANCTX_ASSIGN CHANDEF_ASSIGN(&ctx->conf.def) \
64 MIN_CHANDEF_ASSIGN(&ctx->conf.min_def) \
65 __entry->rx_chains_static = ctx->conf.rx_chains_static; \
66 __entry->rx_chains_dynamic = ctx->conf.rx_chains_dynamic
327 __entry->flags = local->hw.conf.flags;
328 __entry->power_level = local->hw.conf.power_level;
329 __entry->dynamic_ps_timeout = local->hw.conf.dynamic_ps_timeout;
330 __entry->max_sleep_period = local->hw.conf.max_sleep_period;
331 __entry->listen_interval = local->hw.conf.listen_interval;
333 local->hw.conf.long_frame_max_tx_count;
[all …]
Dmlme.c692 cpu_to_le16(local->hw.conf.listen_interval); in ieee80211_send_assoc()
701 cpu_to_le16(local->hw.conf.listen_interval); in ieee80211_send_assoc()
1056 struct ieee80211_chanctx_conf *conf; in ieee80211_sta_process_chanswitch() local
1100 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in ieee80211_sta_process_chanswitch()
1102 if (!conf) { in ieee80211_sta_process_chanswitch()
1112 chanctx = container_of(conf, struct ieee80211_chanctx, conf); in ieee80211_sta_process_chanswitch()
1310 struct ieee80211_conf *conf = &local->hw.conf; in ieee80211_enable_ps() local
1319 if (conf->dynamic_ps_timeout > 0 && in ieee80211_enable_ps()
1322 msecs_to_jiffies(conf->dynamic_ps_timeout)); in ieee80211_enable_ps()
1331 conf->flags |= IEEE80211_CONF_PS; in ieee80211_enable_ps()
[all …]
Dkey.h118 struct ieee80211_key_conf conf; member
Dutil.c1623 struct ieee80211_chanctx_conf *conf; in ieee80211_assign_chanctx() local
1630 conf = rcu_dereference_protected(sdata->vif.chanctx_conf, in ieee80211_assign_chanctx()
1632 if (conf) { in ieee80211_assign_chanctx()
1633 ctx = container_of(conf, struct ieee80211_chanctx, conf); in ieee80211_assign_chanctx()
1860 if (!(local->hw.conf.flags & IEEE80211_CONF_PS)) { in ieee80211_reconfig()
2019 chanctx = container_of(chanctx_conf, struct ieee80211_chanctx, conf); in ieee80211_recalc_smps()
2039 chanctx = container_of(chanctx_conf, struct ieee80211_chanctx, conf); in ieee80211_recalc_min_chandef()
2528 struct cfg80211_chan_def chandef = local->hw.conf.chandef; in ieee80211_dfs_radar_detected_work()
3042 &ctx->conf.def)) in ieee80211_check_combinations()
Diface.c84 if (!(local->hw.conf.flags & IEEE80211_CONF_IDLE)) in __ieee80211_idle_off()
87 local->hw.conf.flags &= ~IEEE80211_CONF_IDLE; in __ieee80211_idle_off()
93 if (local->hw.conf.flags & IEEE80211_CONF_IDLE) in __ieee80211_idle_on()
98 local->hw.conf.flags |= IEEE80211_CONF_IDLE; in __ieee80211_idle_on()
592 local->hw.conf.flags |= IEEE80211_CONF_MONITOR; in ieee80211_do_open()
916 local->hw.conf.flags &= ~IEEE80211_CONF_MONITOR; in ieee80211_do_stop()
Daes_cmac.c136 container_of(keyconf, struct ieee80211_key, conf); in ieee80211_aes_cmac_calculate_k1_k2()
/net/wireless/
Dmesh.c99 const struct mesh_config *conf) in __cfg80211_join_mesh() argument
181 err = rdev_join_mesh(rdev, dev, conf, setup); in __cfg80211_join_mesh()
194 const struct mesh_config *conf) in cfg80211_join_mesh() argument
200 err = __cfg80211_join_mesh(rdev, dev, setup, conf); in cfg80211_join_mesh()
Dtrace.h72 __entry->dot11MeshRetryTimeout = conf->dot11MeshRetryTimeout; \
74 conf->dot11MeshConfirmTimeout; \
76 conf->dot11MeshHoldingTimeout; \
77 __entry->dot11MeshMaxPeerLinks = conf->dot11MeshMaxPeerLinks; \
78 __entry->dot11MeshMaxRetries = conf->dot11MeshMaxRetries; \
79 __entry->dot11MeshTTL = conf->dot11MeshTTL; \
80 __entry->element_ttl = conf->element_ttl; \
81 __entry->auto_open_plinks = conf->auto_open_plinks; \
83 conf->dot11MeshNbrOffsetMaxNeighbor; \
85 conf->dot11MeshHWMPmaxPREQretries; \
[all …]
Drdev-ops.h281 struct net_device *dev, struct mesh_config *conf) in rdev_get_mesh_config() argument
285 ret = rdev->ops->get_mesh_config(&rdev->wiphy, dev, conf); in rdev_get_mesh_config()
286 trace_rdev_return_int_mesh_config(&rdev->wiphy, ret, conf); in rdev_get_mesh_config()
304 const struct mesh_config *conf, in rdev_join_mesh() argument
308 trace_rdev_join_mesh(&rdev->wiphy, dev, conf, setup); in rdev_join_mesh()
309 ret = rdev->ops->join_mesh(&rdev->wiphy, dev, conf, setup); in rdev_join_mesh()
Dcore.h282 const struct mesh_config *conf);
286 const struct mesh_config *conf);
/net/dns_resolver/
DKconfig19 helper "/sbin/dns.resolver" via /etc/request-key.conf.

12