Home
last modified time | relevance | path

Searched refs:fc (Results 1 – 23 of 23) sorted by relevance

/net/core/
Dflow.c77 struct flow_cache *fc = (void *) arg; in flow_cache_new_hashrnd() local
81 per_cpu_ptr(fc->percpu, i)->hash_rnd_recalc = 1; in flow_cache_new_hashrnd()
83 fc->rnd_timer.expires = jiffies + FLOW_HASH_RND_PERIOD; in flow_cache_new_hashrnd()
84 add_timer(&fc->rnd_timer); in flow_cache_new_hashrnd()
130 static void __flow_cache_shrink(struct flow_cache *fc, in __flow_cache_shrink() argument
139 for (i = 0; i < flow_cache_hash_size(fc); i++) { in __flow_cache_shrink()
158 static void flow_cache_shrink(struct flow_cache *fc, in flow_cache_shrink() argument
161 int shrink_to = fc->low_watermark / flow_cache_hash_size(fc); in flow_cache_shrink()
163 __flow_cache_shrink(fc, fcp, shrink_to); in flow_cache_shrink()
166 static void flow_new_hash_rnd(struct flow_cache *fc, in flow_new_hash_rnd() argument
[all …]
/net/mac802154/
Dwpan.c141 u16 fc; in mac802154_header_create() local
147 fc = mac_cb_type(skb); in mac802154_header_create()
149 fc |= IEEE802154_FC_ACK_REQ; in mac802154_header_create()
172 fc |= (daddr->addr_type << IEEE802154_FC_DAMODE_SHIFT); in mac802154_header_create()
187 fc |= (saddr->addr_type << IEEE802154_FC_SAMODE_SHIFT); in mac802154_header_create()
192 fc |= IEEE802154_FC_INTRA_PAN; in mac802154_header_create()
207 head[0] = fc; in mac802154_header_create()
208 head[1] = fc >> 8; in mac802154_header_create()
221 u16 fc; in mac802154_header_parse() local
227 fc = hdr[0] | (hdr[1] << 8); in mac802154_header_parse()
[all …]
/net/mac80211/
Dled.h58 ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, __le16 fc, int bytes) in ieee80211_tpt_led_trig_tx() argument
61 if (local->tpt_led_trigger && ieee80211_is_data(fc)) in ieee80211_tpt_led_trig_tx()
67 ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, __le16 fc, int bytes) in ieee80211_tpt_led_trig_rx() argument
70 if (local->tpt_led_trigger && ieee80211_is_data(fc)) in ieee80211_tpt_led_trig_rx()
Drx.c1015 __le16 fc; in ieee80211_rx_h_decrypt() local
1057 fc = hdr->frame_control; in ieee80211_rx_h_decrypt()
1059 if (!ieee80211_has_protected(fc)) in ieee80211_rx_h_decrypt()
1068 if (!ieee80211_has_protected(fc)) in ieee80211_rx_h_decrypt()
1083 } else if (!ieee80211_has_protected(fc)) { in ieee80211_rx_h_decrypt()
1094 if (ieee80211_is_mgmt(fc) && in ieee80211_rx_h_decrypt()
1132 hdrlen = ieee80211_hdrlen(fc); in ieee80211_rx_h_decrypt()
1566 __le16 fc; in ieee80211_rx_h_defragment() local
1573 fc = hdr->frame_control; in ieee80211_rx_h_defragment()
1575 if (ieee80211_is_ctl(fc)) in ieee80211_rx_h_defragment()
[all …]
Dstatus.c416 __le16 fc; in ieee80211_tx_status() local
454 fc = hdr->frame_control; in ieee80211_tx_status()
477 ieee80211_is_data_qos(fc)) in ieee80211_tx_status()
487 (ieee80211_is_data_qos(fc))) { in ieee80211_tx_status()
499 if (!acked && ieee80211_is_back_req(fc)) { in ieee80211_tx_status()
582 ieee80211_is_data(fc) || in ieee80211_tx_status()
583 ieee80211_is_mgmt(fc)) in ieee80211_tx_status()
590 if (ieee80211_is_nullfunc(fc) && ieee80211_has_pm(fc) && in ieee80211_tx_status()
609 !(ieee80211_is_data(fc)); in ieee80211_tx_status()
Dwep.c295 __le16 fc = hdr->frame_control; in ieee80211_crypto_wep_decrypt() local
297 if (!ieee80211_is_data(fc) && !ieee80211_is_auth(fc)) in ieee80211_crypto_wep_decrypt()
308 if (!pskb_may_pull(rx->skb, ieee80211_hdrlen(fc) + WEP_IV_LEN)) in ieee80211_crypto_wep_decrypt()
Dmesh_ps.c26 __le16 fc; in mps_qos_null_get() local
34 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); in mps_qos_null_get()
35 ieee80211_fill_mesh_addresses(nullfunc, &fc, sta->sta.addr, in mps_qos_null_get()
37 nullfunc->frame_control = fc; in mps_qos_null_get()
Dtx.c429 static int ieee80211_use_mfp(__le16 fc, struct sta_info *sta, in ieee80211_use_mfp() argument
432 if (!ieee80211_is_mgmt(fc)) in ieee80211_use_mfp()
1240 __le16 fc; in __ieee80211_tx() local
1246 fc = ((struct ieee80211_hdr *)skb->data)->frame_control; in __ieee80211_tx()
1282 ieee80211_tpt_led_trig_tx(local, fc, led_len); in __ieee80211_tx()
1713 __le16 fc; in ieee80211_subif_start_xmit() local
1736 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); in ieee80211_subif_start_xmit()
1744 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); in ieee80211_subif_start_xmit()
1768 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ieee80211_subif_start_xmit()
1777 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); in ieee80211_subif_start_xmit()
[all …]
Ddebugfs_netdev.c288 __le16 fc; in ieee80211_if_parse_tkip_mic_test() local
303 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); in ieee80211_if_parse_tkip_mic_test()
307 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ieee80211_if_parse_tkip_mic_test()
314 fc |= cpu_to_le16(IEEE80211_FCTL_TODS); in ieee80211_if_parse_tkip_mic_test()
331 hdr->frame_control = fc; in ieee80211_if_parse_tkip_mic_test()
Dutil.c52 __le16 fc = hdr->frame_control; in ieee80211_get_bssid() local
58 if (ieee80211_is_data(fc)) { in ieee80211_get_bssid()
62 if (ieee80211_has_a4(fc)) in ieee80211_get_bssid()
64 if (ieee80211_has_tods(fc)) in ieee80211_get_bssid()
66 if (ieee80211_has_fromds(fc)) in ieee80211_get_bssid()
72 if (ieee80211_is_mgmt(fc)) { in ieee80211_get_bssid()
78 if (ieee80211_is_ctl(fc)) { in ieee80211_get_bssid()
79 if(ieee80211_is_pspoll(fc)) in ieee80211_get_bssid()
82 if (ieee80211_is_back_req(fc)) { in ieee80211_get_bssid()
Drate.c204 __le16 fc; in rc_no_data_or_no_ack_use_min() local
206 fc = hdr->frame_control; in rc_no_data_or_no_ack_use_min()
210 !ieee80211_is_data(fc); in rc_no_data_or_no_ack_use_min()
Dmlme.c929 __le16 fc; in ieee80211_send_4addr_nullfunc() local
942 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_NULLFUNC | in ieee80211_send_4addr_nullfunc()
944 nullfunc->frame_control = fc; in ieee80211_send_4addr_nullfunc()
3253 u16 fc; in ieee80211_sta_rx_queued_mgmt() local
3259 fc = le16_to_cpu(mgmt->frame_control); in ieee80211_sta_rx_queued_mgmt()
3263 switch (fc & IEEE80211_FCTL_STYPE) { in ieee80211_sta_rx_queued_mgmt()
3511 __le16 fc, bool acked) in ieee80211_mgd_conn_tx_status() argument
3515 sdata->u.mgd.status_fc = fc; in ieee80211_mgd_conn_tx_status()
3530 __le16 fc = ifmgd->status_fc; in ieee80211_sta_work() local
3535 (ieee80211_is_probe_req(fc) || ieee80211_is_auth(fc))) { in ieee80211_sta_work()
[all …]
Dsta_info.c1085 __le16 fc; in ieee80211_send_null_response() local
1091 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | in ieee80211_send_null_response()
1096 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | in ieee80211_send_null_response()
1108 nullfunc->frame_control = fc; in ieee80211_send_null_response()
Dmesh.c509 int ieee80211_fill_mesh_addresses(struct ieee80211_hdr *hdr, __le16 *fc, in ieee80211_fill_mesh_addresses() argument
513 *fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ieee80211_fill_mesh_addresses()
520 *fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); in ieee80211_fill_mesh_addresses()
Dmesh.h207 int ieee80211_fill_mesh_addresses(struct ieee80211_hdr *hdr, __le16 *fc,
Dibss.c927 u16 fc; in ieee80211_ibss_rx_queued_mgmt() local
931 fc = le16_to_cpu(mgmt->frame_control); in ieee80211_ibss_rx_queued_mgmt()
938 switch (fc & IEEE80211_FCTL_STYPE) { in ieee80211_ibss_rx_queued_mgmt()
Dcfg.c3302 __le16 fc; in ieee80211_probe_client() local
3325 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | in ieee80211_probe_client()
3330 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | in ieee80211_probe_client()
3346 nullfunc->frame_control = fc; in ieee80211_probe_client()
Dieee80211_i.h1269 __le16 fc, bool acked);
/net/wireless/
Dutil.c264 unsigned int __attribute_const__ ieee80211_hdrlen(__le16 fc) in ieee80211_hdrlen() argument
268 if (ieee80211_is_data(fc)) { in ieee80211_hdrlen()
269 if (ieee80211_has_a4(fc)) in ieee80211_hdrlen()
271 if (ieee80211_is_data_qos(fc)) { in ieee80211_hdrlen()
273 if (ieee80211_has_order(fc)) in ieee80211_hdrlen()
279 if (ieee80211_is_ctl(fc)) { in ieee80211_hdrlen()
289 if ((fc & cpu_to_le16(0x00E0)) == cpu_to_le16(0x00C0)) in ieee80211_hdrlen()
452 __le16 fc; in ieee80211_data_from_8023() local
467 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); in ieee80211_data_from_8023()
473 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ieee80211_data_from_8023()
[all …]
/net/atm/
Dlec.h26 unsigned char fc; member
/net/802/
Dhippi.c64 hip->le.fc = 0; in hippi_header()
Dfddi.c62 fddi->fc = FDDI_FC_K_ASYNC_LLC_DEF; in fddi_header()
/net/phonet/
Dpep.c487 u8 fc = fcs[i]; in pipe_negotiate_fc() local
489 if (fc > final_fc && fc < PN_MAX_FLOW_CONTROL) in pipe_negotiate_fc()
490 final_fc = fc; in pipe_negotiate_fc()