/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_tx.c | 153 struct sk_buff *frag, int hdr_len) in libipw_encrypt_fragment() argument 167 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in libipw_encrypt_fragment() 265 int bytes, fc, hdr_len; in libipw_xmit() local 333 hdr_len = LIBIPW_3ADDR_LEN; in libipw_xmit() 337 hdr_len += 2; in libipw_xmit() 354 int len = bytes + hdr_len + crypt->ops->extra_msdu_prefix_len + in libipw_xmit() 362 memcpy(skb_put(skb_new, hdr_len), &header, hdr_len); in libipw_xmit() 367 res = crypt->ops->encrypt_msdu(skb_new, hdr_len, crypt->priv); in libipw_xmit() 377 skb_pull(skb, hdr_len); in libipw_xmit() 393 bytes_per_frag = frag_size - hdr_len; in libipw_xmit() [all …]
|
/drivers/staging/rtl8192e/ |
D | rtllib_crypt_wep.c | 89 static int prism2_wep_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in prism2_wep_encrypt() argument 103 skb->len < hdr_len){ in prism2_wep_encrypt() 105 skb_headroom(skb), skb_tailroom(skb), skb->len, hdr_len); in prism2_wep_encrypt() 108 len = skb->len - hdr_len; in prism2_wep_encrypt() 110 memmove(pos, pos + 4, hdr_len); in prism2_wep_encrypt() 111 pos += hdr_len; in prism2_wep_encrypt() 169 static int prism2_wep_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in prism2_wep_decrypt() argument 182 if (skb->len < hdr_len + 8) in prism2_wep_decrypt() 185 pos = skb->data + hdr_len; in prism2_wep_decrypt() 199 plen = skb->len - hdr_len - 8; in prism2_wep_decrypt() [all …]
|
D | rtllib_crypt_tkip.c | 289 static int rtllib_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in rtllib_tkip_encrypt() argument 303 skb->len < hdr_len) in rtllib_tkip_encrypt() 320 len = skb->len - hdr_len; in rtllib_tkip_encrypt() 322 memmove(pos, pos + 8, hdr_len); in rtllib_tkip_encrypt() 323 pos += hdr_len; in rtllib_tkip_encrypt() 375 static int rtllib_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in rtllib_tkip_decrypt() argument 391 if (skb->len < hdr_len + 8 + 4) in rtllib_tkip_decrypt() 395 pos = skb->data + hdr_len; in rtllib_tkip_decrypt() 448 plen = skb->len - hdr_len - 12; in rtllib_tkip_decrypt() 499 memmove(skb->data + 8, skb->data, hdr_len); in rtllib_tkip_decrypt() [all …]
|
D | rtllib_crypt_ccmp.c | 186 static int rtllib_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in rtllib_ccmp_encrypt() argument 196 skb->len < hdr_len) in rtllib_ccmp_encrypt() 199 data_len = skb->len - hdr_len; in rtllib_ccmp_encrypt() 201 memmove(pos, pos + CCMP_HDR_LEN, hdr_len); in rtllib_ccmp_encrypt() 202 pos += hdr_len; in rtllib_ccmp_encrypt() 259 static int rtllib_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in rtllib_ccmp_decrypt() argument 268 if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) { in rtllib_ccmp_decrypt() 274 pos = skb->data + hdr_len; in rtllib_ccmp_decrypt() 310 size_t data_len = skb->len - hdr_len - CCMP_HDR_LEN - in rtllib_ccmp_decrypt() 350 memmove(skb->data + CCMP_HDR_LEN, skb->data, hdr_len); in rtllib_ccmp_decrypt()
|
D | rtllib_tx.c | 174 int hdr_len) in rtllib_encrypt_fragment() argument 196 res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); in rtllib_encrypt_fragment() 198 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in rtllib_encrypt_fragment() 574 int bytes, fc, qos_ctl = 0, hdr_len; in rtllib_xmit_inter() local 732 hdr_len = RTLLIB_3ADDR_LEN + 2; in rtllib_xmit_inter() 748 hdr_len = RTLLIB_3ADDR_LEN; in rtllib_xmit_inter() 755 bytes_per_frag = frag_size - hdr_len; in rtllib_xmit_inter() 822 skb_put(skb_frag, hdr_len); in rtllib_xmit_inter() 823 memcpy(frag_hdr, &header, hdr_len); in rtllib_xmit_inter() 866 hdr_len); in rtllib_xmit_inter()
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_wep.c | 85 static int prism2_wep_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in prism2_wep_encrypt() argument 98 skb->len < hdr_len) in prism2_wep_encrypt() 101 len = skb->len - hdr_len; in prism2_wep_encrypt() 103 memmove(pos, pos + 4, hdr_len); in prism2_wep_encrypt() 104 pos += hdr_len; in prism2_wep_encrypt() 163 static int prism2_wep_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in prism2_wep_decrypt() argument 175 if (skb->len < hdr_len + 8) in prism2_wep_decrypt() 178 pos = skb->data + hdr_len; in prism2_wep_decrypt() 192 plen = skb->len - hdr_len - 8; in prism2_wep_decrypt() 220 memmove(skb->data + 4, skb->data, hdr_len); in prism2_wep_decrypt()
|
D | ieee80211_crypt_tkip.c | 301 static int ieee80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in ieee80211_tkip_encrypt() argument 314 skb->len < hdr_len) in ieee80211_tkip_encrypt() 330 len = skb->len - hdr_len; in ieee80211_tkip_encrypt() 332 memmove(pos, pos + 8, hdr_len); in ieee80211_tkip_encrypt() 333 pos += hdr_len; in ieee80211_tkip_encrypt() 383 static int ieee80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in ieee80211_tkip_decrypt() argument 398 if (skb->len < hdr_len + 8 + 4) in ieee80211_tkip_decrypt() 402 pos = skb->data + hdr_len; in ieee80211_tkip_decrypt() 450 plen = skb->len - hdr_len - 12; in ieee80211_tkip_decrypt() 503 memmove(skb->data + 8, skb->data, hdr_len); in ieee80211_tkip_decrypt() [all …]
|
D | ieee80211_crypt.h | 45 int (*encrypt_mpdu)(struct sk_buff *skb, int hdr_len, void *priv); 46 int (*decrypt_mpdu)(struct sk_buff *skb, int hdr_len, void *priv); 50 int (*encrypt_msdu)(struct sk_buff *skb, int hdr_len, void *priv); 51 int (*decrypt_msdu)(struct sk_buff *skb, int keyidx, int hdr_len,
|
D | ieee80211_crypt_ccmp.c | 194 static int ieee80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) in ieee80211_ccmp_encrypt() argument 204 skb->len < hdr_len) in ieee80211_ccmp_encrypt() 207 data_len = skb->len - hdr_len; in ieee80211_ccmp_encrypt() 209 memmove(pos, pos + CCMP_HDR_LEN, hdr_len); in ieee80211_ccmp_encrypt() 210 pos += hdr_len; in ieee80211_ccmp_encrypt() 268 static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) in ieee80211_ccmp_decrypt() argument 276 if (skb->len < hdr_len + CCMP_HDR_LEN + CCMP_MIC_LEN) { in ieee80211_ccmp_decrypt() 282 pos = skb->data + hdr_len; in ieee80211_ccmp_decrypt() 323 size_t data_len = skb->len - hdr_len - CCMP_HDR_LEN - CCMP_MIC_LEN; in ieee80211_ccmp_decrypt() 362 memmove(skb->data + CCMP_HDR_LEN, skb->data, hdr_len); in ieee80211_ccmp_decrypt()
|
D | ieee80211_tx.c | 183 int hdr_len) in ieee80211_encrypt_fragment() argument 216 res = crypt->ops->encrypt_msdu(frag, hdr_len, crypt->priv); in ieee80211_encrypt_fragment() 218 res = crypt->ops->encrypt_mpdu(frag, hdr_len, crypt->priv); in ieee80211_encrypt_fragment() 606 int bytes, fc, qos_ctl = 0, hdr_len; in ieee80211_xmit() local 714 hdr_len = IEEE80211_3ADDR_LEN + 2; in ieee80211_xmit() 720 hdr_len = IEEE80211_3ADDR_LEN; in ieee80211_xmit() 726 bytes_per_frag = frag_size - hdr_len; in ieee80211_xmit() 790 frag_hdr = (struct rtl_80211_hdr_3addrqos *)skb_put(skb_frag, hdr_len); in ieee80211_xmit() 791 memcpy(frag_hdr, &header, hdr_len); in ieee80211_xmit() 829 ieee80211_encrypt_fragment(ieee, skb_frag, hdr_len); in ieee80211_xmit()
|
/drivers/net/usb/ |
D | net1080.c | 57 __le16 hdr_len; // sizeof nc_header (LE, all) member 365 u16 hdr_len, packet_len; in net1080_rx_fixup() local 381 hdr_len = le16_to_cpup(&header->hdr_len); in net1080_rx_fixup() 388 } else if (hdr_len < MIN_HEADER) { in net1080_rx_fixup() 390 netdev_dbg(dev->net, "header too short, %d\n", hdr_len); in net1080_rx_fixup() 393 } else if (hdr_len > MIN_HEADER) { in net1080_rx_fixup() 395 netdev_dbg(dev->net, "header OOB, %d bytes\n", hdr_len - MIN_HEADER); in net1080_rx_fixup() 399 skb_pull(skb, hdr_len); in net1080_rx_fixup() 428 netdev_dbg(dev->net, "frame <rx h %d p %d id %d\n", header->hdr_len, in net1080_rx_fixup() 479 header->hdr_len = cpu_to_le16(sizeof (*header)); in net1080_tx_fixup() [all …]
|
/drivers/staging/i4l/pcbit/ |
D | layer2.c | 76 struct sk_buff *skb, unsigned short hdr_len) in pcbit_l2_write() argument 94 frame->hdr_len = hdr_len; in pcbit_l2_write() 97 frame->dt_len = skb->len - hdr_len; in pcbit_l2_write() 201 pcbit_writew(dev, frame->hdr_len + PREHDR_LEN); in pcbit_transmit() 212 pcbit_writew(dev, frame->hdr_len + PREHDR_LEN); in pcbit_transmit() 307 pcbit_l3_receive(dev, frame->msg, frame->skb, frame->hdr_len, in pcbit_deliver() 375 frame->hdr_len = pcbit_readw(dev); in pcbit_receive() 385 if (frame->hdr_len == 0) { in pcbit_receive() 394 if (frame->hdr_len > 1024 || frame->dt_len > 2048) { in pcbit_receive() 398 frame->hdr_len, in pcbit_receive() [all …]
|
/drivers/net/ethernet/cisco/enic/ |
D | enic_res.h | 45 unsigned int mss_or_csum_offset, unsigned int hdr_len, in enic_queue_wq_desc_ex() argument 58 (u16)hdr_len, (u8)offload_mode, in enic_queue_wq_desc_ex() 102 unsigned int csum_offset, unsigned int hdr_len, in enic_queue_wq_desc_csum_l4() argument 106 csum_offset, hdr_len, vlan_tag_insert, vlan_tag, in enic_queue_wq_desc_csum_l4() 113 unsigned int mss, unsigned int hdr_len, int vlan_tag_insert, in enic_queue_wq_desc_tso() argument 117 mss, hdr_len, vlan_tag_insert, vlan_tag, in enic_queue_wq_desc_tso()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | dma.c | 40 u32 true_len, hdr_len = 0, copy, frag; in mt7601u_rx_skb_from_seg() local 50 hdr_len = ieee80211_get_hdrlen_from_buf(data, true_len); in mt7601u_rx_skb_from_seg() 51 if (!hdr_len) in mt7601u_rx_skb_from_seg() 55 memcpy(skb_put(skb, hdr_len), data, hdr_len); in mt7601u_rx_skb_from_seg() 57 data += hdr_len + 2; in mt7601u_rx_skb_from_seg() 58 true_len -= hdr_len; in mt7601u_rx_skb_from_seg() 59 hdr_len = 0; in mt7601u_rx_skb_from_seg() 63 copy = (true_len <= skb_tailroom(skb)) ? true_len : hdr_len + 8; in mt7601u_rx_skb_from_seg() 79 true_len, hdr_len); in mt7601u_rx_skb_from_seg()
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_els.c | 122 u32 resp_len, hdr_len; in bnx2fc_l2_els_compl() local 156 hdr_len = sizeof(*fc_hdr); in bnx2fc_l2_els_compl() 157 if (hdr_len + resp_len > PAGE_SIZE) { in bnx2fc_l2_els_compl() 162 memcpy(buf, fc_hdr, hdr_len); in bnx2fc_l2_els_compl() 163 memcpy(buf + hdr_len, resp_buf, resp_len); in bnx2fc_l2_els_compl() 164 frame_len = hdr_len + resp_len; in bnx2fc_l2_els_compl() 266 u32 resp_len, hdr_len; in bnx2fc_srr_compl() local 321 hdr_len = sizeof(*fc_hdr); in bnx2fc_srr_compl() 327 memcpy(buf, fc_hdr, hdr_len); in bnx2fc_srr_compl() 328 memcpy(buf + hdr_len, resp_buf, resp_len); in bnx2fc_srr_compl() [all …]
|
/drivers/net/wireless/intersil/hostap/ |
D | hostap_80211_tx.c | 72 int hdr_len, encaps_len, skip_header_bytes; in hostap_data_start_xmit() local 140 hdr_len = IEEE80211_DATA_HDR3_LEN; in hostap_data_start_xmit() 157 hdr_len += ETH_ALEN; in hostap_data_start_xmit() 212 need_headroom = local->func->need_tx_headroom + hdr_len + encaps_len; in hostap_data_start_xmit() 243 memcpy(skb_push(skb, hdr_len), &hdr, hdr_len); in hostap_data_start_xmit() 320 int prefix_len, postfix_len, hdr_len, res; in hostap_tx_encrypt() local 358 hdr_len = hostap_80211_get_hdrlen(hdr->frame_control); in hostap_tx_encrypt() 365 res = crypt->ops->encrypt_msdu(skb, hdr_len, crypt->priv); in hostap_tx_encrypt() 367 res = crypt->ops->encrypt_mpdu(skb, hdr_len, crypt->priv); in hostap_tx_encrypt()
|
/drivers/staging/rtl8188eu/os_dep/ |
D | mon.c | 31 int hdr_len; in unprotect_frame() local 34 hdr_len = ieee80211_hdrlen(hdr->frame_control); in unprotect_frame() 36 if (skb->len < hdr_len + iv_len + icv_len) in unprotect_frame() 43 memmove(skb->data + iv_len, skb->data, hdr_len); in unprotect_frame()
|
/drivers/net/ethernet/chelsio/libcxgb/ |
D | libcxgb_cm.c | 46 ETH_HDR_LEN_G(be32_to_cpu(req->hdr_len)) : in cxgb_get_4tuple() 47 T6_ETH_HDR_LEN_G(be32_to_cpu(req->hdr_len)); in cxgb_get_4tuple() 49 IP_HDR_LEN_G(be32_to_cpu(req->hdr_len)) : in cxgb_get_4tuple() 50 T6_IP_HDR_LEN_G(be32_to_cpu(req->hdr_len)); in cxgb_get_4tuple()
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-devtrace-data.h | 39 u8 hdr_len, size_t data_len), 40 TP_ARGS(dev, skb, hdr_len, data_len), 49 skb_copy_bits(skb, hdr_len,
|
/drivers/net/ |
D | virtio_net.c | 135 u8 hdr_len; member 268 unsigned int copy, hdr_len, hdr_padded_len; in page_to_skb() local 280 hdr_len = vi->hdr_len; in page_to_skb() 286 memcpy(hdr, p, hdr_len); in page_to_skb() 288 len -= hdr_len; in page_to_skb() 339 len -= vi->hdr_len; in receive_small() 461 if (unlikely(len < vi->hdr_len + ETH_HLEN)) { in receive_buf() 531 sg_set_buf(rq->sg, hdr, vi->hdr_len); in add_recvbuf_small() 579 sg_set_buf(&rq->sg[0], p, vi->hdr_len); in add_recvbuf_big() 597 const size_t hdr_len = sizeof(struct virtio_net_hdr_mrg_rxbuf); in get_mergeable_buf_len() local [all …]
|
/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_cle.c | 293 u32 hdr_len; in xgene_cle_set_rss_sband() local 297 hdr_len = (mac_hdr_len << 5) | ipv4_ihl; in xgene_cle_set_rss_sband() 298 xgene_cle_sband_to_hw(0, XGENE_CLE_IPV4, XGENE_CLE_TCP, hdr_len, ®); in xgene_cle_set_rss_sband() 302 hdr_len = (mac_hdr_len << 5) | ipv4_ihl; in xgene_cle_set_rss_sband() 303 xgene_cle_sband_to_hw(1, XGENE_CLE_IPV4, XGENE_CLE_UDP, hdr_len, ®); in xgene_cle_set_rss_sband() 311 hdr_len = (mac_hdr_len << 5) | ipv4_ihl; in xgene_cle_set_rss_sband() 313 hdr_len, ®); in xgene_cle_set_rss_sband() 317 hdr_len = (mac_hdr_len << 5); in xgene_cle_set_rss_sband() 319 hdr_len, ®); in xgene_cle_set_rss_sband()
|
/drivers/net/ethernet/sfc/ |
D | mcdi.c | 157 size_t hdr_len; in efx_mcdi_send_request() local 182 hdr_len = 4; in efx_mcdi_send_request() 197 hdr_len = 8; in efx_mcdi_send_request() 207 WARN_ON_ONCE(hdr_len % 4); in efx_mcdi_send_request() 213 for (i = 0; i < hdr_len / 4 && bytes < PAGE_SIZE; i++) in efx_mcdi_send_request() 225 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen); in efx_mcdi_send_request() 288 size_t hdr_len, data_len; in efx_mcdi_read_response_header() local 293 hdr_len = mcdi->resp_hdr_len / 4; in efx_mcdi_read_response_header() 302 for (i = 0; i < hdr_len && bytes < PAGE_SIZE; i++) { in efx_mcdi_read_response_header() 501 size_t hdr_len, data_len, err_len; in efx_mcdi_complete_async() local [all …]
|
D | rx.c | 475 u8 *eh, int hdr_len) in efx_rx_mk_skb() argument 483 hdr_len); in efx_rx_mk_skb() 489 EFX_BUG_ON_PARANOID(rx_buf->len < hdr_len); in efx_rx_mk_skb() 492 efx->rx_prefix_size + hdr_len); in efx_rx_mk_skb() 494 __skb_put(skb, hdr_len); in efx_rx_mk_skb() 497 if (rx_buf->len > hdr_len) { in efx_rx_mk_skb() 498 rx_buf->page_offset += hdr_len; in efx_rx_mk_skb() 499 rx_buf->len -= hdr_len; in efx_rx_mk_skb() 621 u16 hdr_len = min_t(u16, rx_buf->len, EFX_SKB_HEADERS); in efx_rx_deliver() local 623 skb = efx_rx_mk_skb(channel, rx_buf, n_frags, eh, hdr_len); in efx_rx_deliver()
|
/drivers/net/wireless/ath/ath10k/ |
D | htt_rx.c | 989 size_t hdr_len; in ath10k_htt_rx_h_undecap_raw() local 1061 hdr_len = ieee80211_hdrlen(hdr->frame_control); in ath10k_htt_rx_h_undecap_raw() 1065 (void *)msdu->data, hdr_len); in ath10k_htt_rx_h_undecap_raw() 1078 size_t hdr_len; in ath10k_htt_rx_h_undecap_nwifi() local 1103 hdr_len = ath10k_htt_rx_nwifi_hdrlen(ar, hdr); in ath10k_htt_rx_h_undecap_nwifi() 1106 skb_pull(msdu, hdr_len); in ath10k_htt_rx_h_undecap_nwifi() 1110 hdr_len = ieee80211_hdrlen(hdr->frame_control); in ath10k_htt_rx_h_undecap_nwifi() 1115 (void *)hdr + round_up(hdr_len, bytes_aligned), in ath10k_htt_rx_h_undecap_nwifi() 1119 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_nwifi() 1135 size_t hdr_len, crypto_len; in ath10k_htt_rx_h_find_rfc1042() local [all …]
|
/drivers/bluetooth/ |
D | btwilink.c | 128 .hdr_len = sizeof(struct hci_event_hdr), 135 .hdr_len = sizeof(struct hci_acl_hdr), 142 .hdr_len = sizeof(struct hci_sco_hdr),
|