/net/ieee802154/ |
D | header_ops.c | 83 struct ieee802154_hdr_fc *fc = &hdr->fc; in ieee802154_hdr_push() local 87 fc->dest_addr_mode = hdr->dest.mode; in ieee802154_hdr_push() 94 fc->source_addr_mode = hdr->source.mode; in ieee802154_hdr_push() 98 fc->intra_pan = true; in ieee802154_hdr_push() 100 rc = ieee802154_hdr_push_addr(buf + pos, &hdr->source, fc->intra_pan); in ieee802154_hdr_push() 105 if (fc->security_enabled) { in ieee802154_hdr_push() 106 fc->version = 1; in ieee802154_hdr_push() 115 memcpy(buf, fc, 2); in ieee802154_hdr_push() 207 dlen = ieee802154_hdr_addr_len(hdr->fc.dest_addr_mode, false); in ieee802154_hdr_minlen() 208 slen = ieee802154_hdr_addr_len(hdr->fc.source_addr_mode, in ieee802154_hdr_minlen() [all …]
|
/net/mac80211/ |
D | led.h | 75 ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, __le16 fc, int bytes) in ieee80211_tpt_led_trig_tx() argument 78 if (ieee80211_is_data(fc) && atomic_read(&local->tpt_led_active)) in ieee80211_tpt_led_trig_tx() 84 ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, __le16 fc, int bytes) in ieee80211_tpt_led_trig_rx() argument 87 if (ieee80211_is_data(fc) && atomic_read(&local->tpt_led_active)) in ieee80211_tpt_led_trig_rx()
|
D | rx.c | 48 __le16 fc = hdr->frame_control; in ieee80211_get_bssid() local 50 if (ieee80211_is_data(fc)) { in ieee80211_get_bssid() 54 if (ieee80211_has_a4(fc)) in ieee80211_get_bssid() 56 if (ieee80211_has_tods(fc)) in ieee80211_get_bssid() 58 if (ieee80211_has_fromds(fc)) in ieee80211_get_bssid() 64 if (ieee80211_is_mgmt(fc)) { in ieee80211_get_bssid() 70 if (ieee80211_is_ctl(fc)) { in ieee80211_get_bssid() 71 if (ieee80211_is_pspoll(fc)) in ieee80211_get_bssid() 74 if (ieee80211_is_back_req(fc)) { in ieee80211_get_bssid() 1009 __le16 fc; in ieee80211_get_keyid() local [all …]
|
D | status.c | 871 __le16 fc; in __ieee80211_tx_status() local 884 fc = hdr->frame_control; in __ieee80211_tx_status() 897 ieee80211_is_data_qos(fc)) in __ieee80211_tx_status() 917 (ieee80211_is_data_qos(fc))) { in __ieee80211_tx_status() 927 } else if (ieee80211_is_data_qos(fc)) { in __ieee80211_tx_status() 933 if (!acked && ieee80211_is_back_req(fc)) { in __ieee80211_tx_status() 962 if (ieee80211_is_data_present(fc)) { in __ieee80211_tx_status() 1025 ieee80211_is_data(fc) || in __ieee80211_tx_status() 1026 ieee80211_is_mgmt(fc)) in __ieee80211_tx_status() 1033 if ((ieee80211_is_nullfunc(fc) || ieee80211_is_qos_nullfunc(fc)) && in __ieee80211_tx_status() [all …]
|
D | wep.c | 248 __le16 fc = hdr->frame_control; in ieee80211_crypto_wep_decrypt() local 250 if (!ieee80211_is_data(fc) && !ieee80211_is_auth(fc)) in ieee80211_crypto_wep_decrypt() 259 if (!pskb_may_pull(rx->skb, ieee80211_hdrlen(fc) + in ieee80211_crypto_wep_decrypt()
|
D | mesh_ps.c | 23 __le16 fc; in mps_qos_null_get() local 31 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); in mps_qos_null_get() 32 ieee80211_fill_mesh_addresses(nullfunc, &fc, sta->sta.addr, in mps_qos_null_get() 34 nullfunc->frame_control = fc; in mps_qos_null_get()
|
D | tx.c | 465 static int ieee80211_use_mfp(__le16 fc, struct sta_info *sta, in ieee80211_use_mfp() argument 468 if (!ieee80211_is_mgmt(fc)) in ieee80211_use_mfp() 1704 __le16 fc; in __ieee80211_tx() local 1710 fc = ((struct ieee80211_hdr *)skb->data)->frame_control; in __ieee80211_tx() 1750 ieee80211_tpt_led_trig_tx(local, fc, led_len); in __ieee80211_tx() 2463 __le16 fc; in ieee80211_build_hdr() local 2489 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); in ieee80211_build_hdr() 2494 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); in ieee80211_build_hdr() 2522 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ieee80211_build_hdr() 2531 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); in ieee80211_build_hdr() [all …]
|
D | debugfs_netdev.c | 317 __le16 fc; in ieee80211_if_parse_tkip_mic_test() local 331 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); in ieee80211_if_parse_tkip_mic_test() 335 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ieee80211_if_parse_tkip_mic_test() 342 fc |= cpu_to_le16(IEEE80211_FCTL_TODS); in ieee80211_if_parse_tkip_mic_test() 359 hdr->frame_control = fc; in ieee80211_if_parse_tkip_mic_test()
|
D | rate.c | 297 __le16 fc; in rc_no_data_or_no_ack_use_min() local 299 fc = hdr->frame_control; in rc_no_data_or_no_ack_use_min() 303 !ieee80211_is_data(fc); in rc_no_data_or_no_ack_use_min()
|
D | mlme.c | 1048 __le16 fc; in ieee80211_send_4addr_nullfunc() local 1064 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_NULLFUNC | in ieee80211_send_4addr_nullfunc() 1066 nullfunc->frame_control = fc; in ieee80211_send_4addr_nullfunc() 4069 u16 fc; in ieee80211_sta_rx_queued_mgmt() local 4075 fc = le16_to_cpu(mgmt->frame_control); in ieee80211_sta_rx_queued_mgmt() 4079 switch (fc & IEEE80211_FCTL_STYPE) { in ieee80211_sta_rx_queued_mgmt() 4290 __le16 fc, bool acked) in ieee80211_mgd_conn_tx_status() argument 4294 sdata->u.mgd.status_fc = fc; in ieee80211_mgd_conn_tx_status() 4309 __le16 fc = ifmgd->status_fc; in ieee80211_sta_work() local 4313 if (ifmgd->auth_data && ieee80211_is_auth(fc)) { in ieee80211_sta_work() [all …]
|
D | mesh.h | 195 int ieee80211_fill_mesh_addresses(struct ieee80211_hdr *hdr, __le16 *fc,
|
D | mesh.c | 630 int ieee80211_fill_mesh_addresses(struct ieee80211_hdr *hdr, __le16 *fc, in ieee80211_fill_mesh_addresses() argument 634 *fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); in ieee80211_fill_mesh_addresses() 641 *fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); in ieee80211_fill_mesh_addresses()
|
D | sta_info.c | 1371 __le16 fc; in ieee80211_send_null_response() local 1382 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | in ieee80211_send_null_response() 1387 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | in ieee80211_send_null_response() 1399 nullfunc->frame_control = fc; in ieee80211_send_null_response()
|
D | ibss.c | 1622 u16 fc; in ieee80211_ibss_rx_queued_mgmt() local 1628 fc = le16_to_cpu(mgmt->frame_control); in ieee80211_ibss_rx_queued_mgmt() 1635 switch (fc & IEEE80211_FCTL_STYPE) { in ieee80211_ibss_rx_queued_mgmt()
|
/net/mac802154/ |
D | iface.c | 350 hdr->fc.security_enabled = 1; in mac802154_set_header_security() 377 memset(&hdr.fc, 0, sizeof(hdr.fc)); in ieee802154_header_create() 378 hdr.fc.type = cb->type; in ieee802154_header_create() 379 hdr.fc.security_enabled = cb->secen; in ieee802154_header_create() 380 hdr.fc.ack_request = cb->ackreq; in ieee802154_header_create() 443 memset(&hdr.fc, 0, sizeof(hdr.fc)); in mac802154_header_create() 444 hdr.fc.type = IEEE802154_FC_TYPE_DATA; in mac802154_header_create() 445 hdr.fc.ack_request = wpan_dev->ackreq; in mac802154_header_create()
|
D | rx.c | 145 pr_debug("fc: %04x dsn: %02x\n", le16_to_cpup((__le16 *)&hdr->fc), in ieee802154_parse_frame_start() 148 cb->type = hdr->fc.type; in ieee802154_parse_frame_start() 149 cb->ackreq = hdr->fc.ack_request; in ieee802154_parse_frame_start() 150 cb->secen = hdr->fc.security_enabled; in ieee802154_parse_frame_start() 158 if (hdr->fc.security_enabled) { in ieee802154_parse_frame_start()
|
D | llsec.c | 554 if (hdr->fc.type == IEEE802154_FC_TYPE_BEACON) { in llsec_lookup_key() 565 if (!(key_entry->key->frame_types & BIT(hdr->fc.type))) in llsec_lookup_key() 710 if (hlen < 0 || hdr.fc.type != IEEE802154_FC_TYPE_DATA) in mac802154_llsec_encrypt() 713 if (!hdr.fc.security_enabled || in mac802154_llsec_encrypt() 988 if (!hdr.fc.security_enabled) in mac802154_llsec_decrypt() 990 if (hdr.fc.version == 0) in mac802154_llsec_decrypt() 1014 if (llsec_lookup_seclevel(sec, hdr.fc.type, 0, &seclevel) < 0) { in mac802154_llsec_decrypt()
|
/net/sunrpc/ |
D | rpc_pipe.c | 1356 rpc_fill_super(struct super_block *sb, struct fs_context *fc) in rpc_fill_super() argument 1417 static int rpc_fs_get_tree(struct fs_context *fc) in rpc_fs_get_tree() argument 1419 return get_tree_keyed(fc, rpc_fill_super, get_net(fc->net_ns)); in rpc_fs_get_tree() 1422 static void rpc_fs_free_fc(struct fs_context *fc) in rpc_fs_free_fc() argument 1424 if (fc->s_fs_info) in rpc_fs_free_fc() 1425 put_net(fc->s_fs_info); in rpc_fs_free_fc() 1433 static int rpc_init_fs_context(struct fs_context *fc) in rpc_init_fs_context() argument 1435 put_user_ns(fc->user_ns); in rpc_init_fs_context() 1436 fc->user_ns = get_user_ns(fc->net_ns->user_ns); in rpc_init_fs_context() 1437 fc->ops = &rpc_fs_context_ops; in rpc_init_fs_context()
|
/net/ieee802154/6lowpan/ |
D | rx.c | 253 __le16 fc = ieee802154_get_fc_from_skb(skb); in lowpan_rx_h_check() local 256 if (!ieee802154_is_data(fc) || in lowpan_rx_h_check() 257 !ieee802154_skb_is_intra_pan_addressing(fc, skb)) in lowpan_rx_h_check()
|
/net/9p/ |
D | client.c | 225 static int p9_fcall_init(struct p9_client *c, struct p9_fcall *fc, in p9_fcall_init() argument 229 fc->sdata = kmem_cache_alloc(c->fcall_cache, GFP_NOFS); in p9_fcall_init() 230 fc->cache = c->fcall_cache; in p9_fcall_init() 232 fc->sdata = kmalloc(alloc_msize, GFP_NOFS); in p9_fcall_init() 233 fc->cache = NULL; in p9_fcall_init() 235 if (!fc->sdata) in p9_fcall_init() 237 fc->capacity = alloc_msize; in p9_fcall_init() 241 void p9_fcall_fini(struct p9_fcall *fc) in p9_fcall_fini() argument 246 if (unlikely(!fc->sdata)) in p9_fcall_fini() 249 if (fc->cache) in p9_fcall_fini() [all …]
|
/net/wireless/ |
D | util.c | 373 unsigned int __attribute_const__ ieee80211_hdrlen(__le16 fc) in ieee80211_hdrlen() argument 377 if (ieee80211_is_data(fc)) { in ieee80211_hdrlen() 378 if (ieee80211_has_a4(fc)) in ieee80211_hdrlen() 380 if (ieee80211_is_data_qos(fc)) { in ieee80211_hdrlen() 382 if (ieee80211_has_order(fc)) in ieee80211_hdrlen() 388 if (ieee80211_is_mgmt(fc)) { in ieee80211_hdrlen() 389 if (ieee80211_has_order(fc)) in ieee80211_hdrlen() 394 if (ieee80211_is_ctl(fc)) { in ieee80211_hdrlen() 404 if ((fc & cpu_to_le16(0x00E0)) == cpu_to_le16(0x00C0)) in ieee80211_hdrlen()
|
/net/atm/ |
D | lec.h | 27 unsigned char fc; member
|
/net/802/ |
D | fddi.c | 58 fddi->fc = FDDI_FC_K_ASYNC_LLC_DEF; in fddi_header()
|
D | hippi.c | 60 hip->le.fc = 0; in hippi_header()
|
/net/phonet/ |
D | pep.c | 474 u8 fc = fcs[i]; in pipe_negotiate_fc() local 476 if (fc > final_fc && fc < PN_MAX_FLOW_CONTROL) in pipe_negotiate_fc() 477 final_fc = fc; in pipe_negotiate_fc()
|