Home
last modified time | relevance | path

Searched refs:hdr_len (Results 1 – 25 of 91) sorted by relevance

1234

/freebsd/contrib/wpa/src/crypto/
H A Daes-eax.c29 const u8 *hdr, size_t hdr_len, in aes_128_eax_encrypt() argument
42 if (hdr_len > buf_len) in aes_128_eax_encrypt()
43 buf_len = hdr_len; in aes_128_eax_encrypt()
58 os_memcpy(buf + 16, hdr, hdr_len); in aes_128_eax_encrypt()
59 if (omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac)) in aes_128_eax_encrypt()
93 const u8 *hdr, size_t hdr_len, in aes_128_eax_decrypt() argument
106 if (hdr_len > buf_len) in aes_128_eax_decrypt()
107 buf_len = hdr_len; in aes_128_eax_decrypt()
124 os_memcpy(buf + 16, hdr, hdr_len); in aes_128_eax_decrypt()
125 if (omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac)) { in aes_128_eax_decrypt()
H A Daes_wrap.h42 const u8 *hdr, size_t hdr_len,
46 const u8 *hdr, size_t hdr_len,
/freebsd/contrib/tcpdump/
H A Dprint-token.c150 u_int route_len = 0, hdr_len = TOKEN_HDRLEN; in token_print() local
158 return hdr_len; in token_print()
176 return hdr_len; in token_print()
179 hdr_len += route_len; in token_print()
180 if (caplen < hdr_len) { in token_print()
182 return hdr_len; in token_print()
210 length -= hdr_len; in token_print()
211 p += hdr_len; in token_print()
212 caplen -= hdr_len; in token_print()
224 hdr_len += llc_hdrlen; in token_print()
[all …]
H A Dprint-fr.c248 u_int hdr_len; in fr_print() local
303 hdr_len = addr_len + 1 /* UI */ + 1 /* pad */ + 1 /* NLPID */; in fr_print()
311 hdr_len = addr_len + 1 /* UI */ + 1 /* NLPID */; in fr_print()
314 ND_TCHECK_1(p + hdr_len - 1); in fr_print()
315 if (length < hdr_len) in fr_print()
317 nlpid = GET_U_1(p + hdr_len - 1); in fr_print()
321 p += hdr_len; in fr_print()
322 length -= hdr_len; in fr_print()
343 fr_hdr_print(ndo, length + hdr_len, hdr_len, in fr_print()
346 ND_DEFAULTPRINT(p - hdr_len, length + hdr_len); in fr_print()
[all …]
H A Dprint-m3ua.c262 uint16_t hdr_len; in m3ua_tags_print() local
271 hdr_len = GET_BE_U_2(p + 2); in m3ua_tags_print()
272 if (hdr_len < sizeof(struct m3ua_param_header)) in m3ua_tags_print()
275 align = (p + hdr_len - buf) % 4; in m3ua_tags_print()
277 ND_TCHECK_LEN(p, hdr_len + align); in m3ua_tags_print()
278 tag_value_print(ndo, p, hdr_tag, hdr_len - sizeof(struct m3ua_param_header)); in m3ua_tags_print()
279 p += hdr_len + align; in m3ua_tags_print()
/freebsd/sys/netipsec/
H A Dxform_tcp.c138 int hdr_len; in ip_pseudo_compute() local
145 hdr_len = ip->ip_hl << 2; in ip_pseudo_compute()
148 hdr_len += sizeof(struct udphdr); in ip_pseudo_compute()
149 ipp.ippseudo_len = htons(m->m_pkthdr.len - hdr_len); in ip_pseudo_compute()
151 return (hdr_len); in ip_pseudo_compute()
165 int hdr_len; in ip6_pseudo_compute() local
170 hdr_len = sizeof(struct ip6_hdr); in ip6_pseudo_compute()
173 hdr_len += sizeof(struct udphdr); in ip6_pseudo_compute()
175 ip6p.len = htonl(m->m_pkthdr.len - hdr_len); in ip6_pseudo_compute()
178 return (hdr_len); in ip6_pseudo_compute()
/freebsd/sys/dev/sfxge/common/
H A Def10_mcdi.c151 __in_bcount(hdr_len) void *hdrp, in ef10_mcdi_send_request()
152 __in size_t hdr_len, in ef10_mcdi_send_request() argument
166 for (pos = 0; pos < hdr_len; pos += sizeof (efx_dword_t)) { in ef10_mcdi_send_request()
174 EFSYS_MEM_WRITED(esmp, hdr_len + pos, &dword); in ef10_mcdi_send_request()
178 EFSYS_DMA_SYNC_FOR_DEVICE(esmp, 0, hdr_len + sdu_len); in ef10_mcdi_send_request()
H A Defx_mcdi.c200 __in size_t hdr_len, in efx_mcdi_send_request() argument
206 emcop->emco_send_request(enp, hdrp, hdr_len, sdup, sdu_len); in efx_mcdi_send_request()
254 size_t hdr_len; in efx_mcdi_request_start() local
301 hdr_len = sizeof (hdr); in efx_mcdi_request_start()
317 hdr_len = sizeof (hdr[0]); in efx_mcdi_request_start()
332 &hdr, hdr_len, in efx_mcdi_request_start()
337 efx_mcdi_send_request(enp, &hdr[0], hdr_len, in efx_mcdi_request_start()
351 unsigned int hdr_len; in efx_mcdi_read_response_header() local
361 hdr_len = sizeof (hdr[0]); in efx_mcdi_read_response_header()
370 efx_mcdi_read_response(enp, &hdr[1], hdr_len, sizeof (hdr[1])); in efx_mcdi_read_response_header()
[all …]
H A Dsiena_mcdi.c55 __in_bcount(hdr_len) void *hdrp, in siena_mcdi_send_request()
56 __in size_t hdr_len, in siena_mcdi_send_request() argument
73 EFSYS_ASSERT3U(hdr_len, ==, sizeof (efx_dword_t)); in siena_mcdi_send_request()
/freebsd/sbin/camcontrol/
H A Dattrib.c363 uint32_t len_left, hdr_len, cur_len; in scsiattrib() local
387 hdr_len = scsi_4btoul(hdr->length); in scsiattrib()
389 for (len_left = MIN(valid_len, hdr_len), in scsiattrib()
422 uint32_t len_left, hdr_len; in scsiattrib() local
441 hdr_len = scsi_4btoul(hdr->length); in scsiattrib()
442 for (len_left = MIN(valid_len, hdr_len), in scsiattrib()
H A Dzone.c136 uint32_t hdr_len, len; in zone_rz_print()
159 hdr_len = scsi_4btoul(hdr->length); in zone_rz_print()
162 hdr_len = le32dec(hdr->length); in zone_rz_print()
166 if (hdr_len > (valid_len + sizeof(*hdr))) { in zone_rz_print()
170 len = MIN(valid_len - sizeof(*hdr), hdr_len); in zone_rz_print()
180 hdr_len / sizeof(*desc), (uintmax_t)max_lba, in zone_rz_print()
137 uint32_t hdr_len, len; zone_rz_print() local
/freebsd/sys/dev/e1000/
H A Dem_txrx.c141 int cur, hdr_len; in em_tso_setup() local
144 hdr_len = pi->ipi_ehdrlen + pi->ipi_ip_hlen + pi->ipi_tcp_hlen; in em_tso_setup()
193 TXD->tcp_seg_setup.fields.hdr_len = hdr_len; in em_tso_setup()
207 (pi->ipi_len - hdr_len)); /* Total len */ in em_tso_setup()
246 int cur, hdr_len; in em_transmit_checksum_setup() local
250 hdr_len = pi->ipi_ehdrlen + pi->ipi_ip_hlen; in em_transmit_checksum_setup()
289 TXD->lower_setup.ip_fields.ipcse = htole16(hdr_len - 1); in em_transmit_checksum_setup()
306 tucso = hdr_len + offsetof(struct tcphdr, th_sum); in em_transmit_checksum_setup()
309 tucso = hdr_len + offsetof(struct udphdr, uh_sum); in em_transmit_checksum_setup()
310 TXD->upper_setup.tcp_fields.tucss = hdr_len; in em_transmit_checksum_setup()
[all …]
/freebsd/tests/sys/kern/
H A Dktls_test.c800 size_t hdr_len, mac_len, payload_len; in decrypt_tls_aes_cbc_mte() local
804 hdr_len = tls_header_len(en); in decrypt_tls_aes_cbc_mte()
812 payload_len = len - hdr_len; in decrypt_tls_aes_cbc_mte()
820 (const u_char *)src + hdr_len, buf, payload_len)); in decrypt_tls_aes_cbc_mte()
865 size_t hdr_len, mac_len, payload_len; in decrypt_tls_12_aead() local
869 hdr_len = tls_header_len(en); in decrypt_tls_12_aead()
871 payload_len = len - (hdr_len + mac_len); in decrypt_tls_12_aead()
886 &aad, sizeof(aad), (const char *)src + hdr_len, dst, payload_len, in decrypt_tls_12_aead()
887 (const char *)src + hdr_len + payload_len, mac_len)); in decrypt_tls_12_aead()
901 size_t hdr_len, mac_le in decrypt_tls_13_aead() local
995 size_t hdr_len, mac_len, record_len; encrypt_tls_aes_cbc_mte() local
1056 size_t hdr_len, mac_len, record_len; encrypt_tls_12_aead() local
1098 size_t hdr_len, mac_len, record_len; encrypt_tls_13_aead() local
[all...]
/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Dtx.c1704 struct iwl_txq *txq, u8 hdr_len,
1714 head_tb_len = skb_headlen(skb) - hdr_len;
1718 skb->data + hdr_len,
1722 trace_iwlwifi_dev_tx_tb(trans->dev, skb, skb->data + hdr_len,
1914 struct iwl_txq *txq, u8 hdr_len,
1943 total_len = skb->len - snap_ip_tcp_hdrlen - hdr_len - iv_len;
1957 memcpy(pos_hdr, skb->data + hdr_len, iv_len);
1964 skb_pull(skb, hdr_len + iv_len);
2045 skb_push(skb, hdr_len + iv_len);
2051 struct iwl_txq *txq, u8 hdr_len,
1249 iwl_fill_data_tbs(struct iwl_trans * trans,struct sk_buff * skb,struct iwl_txq * txq,u8 hdr_len,struct iwl_cmd_meta * out_meta) iwl_fill_data_tbs() argument
1301 iwl_fill_data_tbs_amsdu(struct iwl_trans * trans,struct sk_buff * skb,struct iwl_txq * txq,u8 hdr_len,struct iwl_cmd_meta * out_meta,struct iwl_device_tx_cmd * dev_cmd,u16 tb1_len) iwl_fill_data_tbs_amsdu() argument
1432 iwl_fill_data_tbs_amsdu(struct iwl_trans * trans,struct sk_buff * skb,struct iwl_txq * txq,u8 hdr_len,struct iwl_cmd_meta * out_meta,struct iwl_device_tx_cmd * dev_cmd,u16 tb1_len) iwl_fill_data_tbs_amsdu() argument
1457 u8 hdr_len; iwl_trans_pcie_tx() local
[all...]
/freebsd/sys/dev/qlxgb/
H A Dqla_hw.c924 uint32_t num_tx_cmds, hdr_len = 0; in qla_hw_send() local
955 hdr_len = tso_cmd.total_hdr_len; in qla_hw_send()
958 bytes = QL_MIN(bytes, hdr_len); in qla_hw_send()
961 hdr_len -= bytes; in qla_hw_send()
963 while (hdr_len) { in qla_hw_send()
964 bytes = QL_MIN((sizeof(q80_tx_cmd_t)), hdr_len); in qla_hw_send()
965 hdr_len -= bytes; in qla_hw_send()
968 hdr_len = tso_cmd.total_hdr_len; in qla_hw_send()
989 if (hdr_len == 0) { in qla_hw_send()
1060 if (hdr_len) { in qla_hw_send()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dhtt_rx.c1448 size_t hdr_len; in ath10k_htt_rx_h_undecap_raw() local
1506 hdr_len = ieee80211_hdrlen(hdr->frame_control); in ath10k_htt_rx_h_undecap_raw()
1517 (void *)hdr + round_up(hdr_len, bytes_aligned), in ath10k_htt_rx_h_undecap_raw()
1519 (u8 *)hdr + round_up(hdr_len, bytes_aligned), in ath10k_htt_rx_h_undecap_raw()
1523 memcpy(skb_push(msdu, hdr_len), hdr, hdr_len); in ath10k_htt_rx_h_undecap_raw()
1569 hdr_len = ieee80211_hdrlen(hdr->frame_control); in ath10k_htt_rx_h_undecap_raw()
1577 (void *)msdu->data, hdr_len); in ath10k_htt_rx_h_undecap_raw()
1596 size_t hdr_len; in ath10k_htt_rx_h_undecap_nwifi() local
1627 hdr_len = ath10k_htt_rx_nwifi_hdrlen(ar, hdr); in ath10k_htt_rx_h_undecap_nwifi()
1633 hdr_len = ath10k_htt_rx_nwifi_hdrlen(ar, hdr2); in ath10k_htt_rx_h_undecap_nwifi()
[all …]
H A Dwow.c97 int hdr_len = sizeof(*new_hdr_pattern); in ath10k_wow_convert_8023_to_80211() local
100 (struct rfc1042_hdr *)(hdr_80211_pattern + hdr_len); in ath10k_wow_convert_8023_to_80211()
102 (struct rfc1042_hdr *)(hdr_80211_bit_mask + hdr_len); in ath10k_wow_convert_8023_to_80211()
135 new->pkt_offset = old->pkt_offset + hdr_len + rfc_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211()
139 hdr_80211_end_offset = hdr_len + rfc_len; in ath10k_wow_convert_8023_to_80211()
141 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211()
/freebsd/sys/contrib/dev/iwlwifi/queue/
H A Dtx.c
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dcoredump.c167 size_t len, sofar = 0, hdr_len = sizeof(*dump); in mt7996_coredump_build() local
171 len = hdr_len; in mt7996_coredump_build()
176 sofar += hdr_len; in mt7996_coredump_build()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_mad_rmpp.c125 memcpy(ack, &data->mad_hdr, msg->hdr_len); in format_ack()
142 int ret, hdr_len; in ack_recv() local
144 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in ack_recv()
146 recv_wc->wc->pkey_index, 1, hdr_len, in ack_recv()
164 int hdr_len; in alloc_response_msg() local
171 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in alloc_response_msg()
174 hdr_len, 0, GFP_KERNEL, in alloc_response_msg()
198 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in ack_ds_ack()
231 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in nack_recv()
/freebsd/sys/dev/firewire/
H A Dfwdev.c294 err = uiomove(fp, tinfo->hdr_len, uio); in fw_read_async()
403 tinfo->hdr_len - sizeof(uint32_t), uio))) in fw_write_async()
649 pay_len = MAX(0, asyreq->req.len - tinfo->hdr_len); in fw_ioctl()
677 bcopy(fp, (void *)&xfer->send.hdr, tinfo->hdr_len); in fw_ioctl()
679 bcopy((char *)fp + tinfo->hdr_len, in fw_ioctl()
700 if (asyreq->req.len >= xfer->recv.pay_len + tinfo->hdr_len) { in fw_ioctl()
702 tinfo->hdr_len; in fw_ioctl()
710 bcopy(&xfer->recv.hdr, fp, tinfo->hdr_len); in fw_ioctl()
711 bcopy(xfer->recv.payload, (char *)fp + tinfo->hdr_len, pay_len); in fw_ioctl()
/freebsd/contrib/wpa/src/common/
H A Dgas_server.c97 size_t hdr_len = 24 + 2 + 5 + 3 + handler->adv_proto_id_len + 2; in gas_server_send_resp() local
111 } else if (hdr_len + wpabuf_len(query_resp) > max_len) { in gas_server_send_resp()
273 size_t hdr_len = 24 + 2 + 6 + 3 + handler->adv_proto_id_len + 2; in gas_server_handle_rx_comeback_req() local
303 if (hdr_len + remaining > max_len) in gas_server_handle_rx_comeback_req()
304 resp_frag_len = max_len - hdr_len; in gas_server_handle_rx_comeback_req()
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76x02_usb_core.c10 int hdr_len; in mt76x02u_remove_dma_hdr() local
13 hdr_len = ieee80211_get_hdrlen_from_skb(skb); in mt76x02u_remove_dma_hdr()
14 if (hdr_len % 4) in mt76x02u_remove_dma_hdr()
/freebsd/sys/dev/virtio/network/
H A Dvirtio_net.h105 uint16_t hdr_len; /* Ethernet + IP + tcp/udp hdrs */ member
123 uint16_t hdr_len; /* Ethernet + IP + tcp/udp hdrs */ member
479 hdr->hdr_len = offset + (tcp->th_off << 2); in virtio_net_tx_offload_tso()
/freebsd/sys/dev/ice/
H A Dice_nvm.c588 * @hdr_len: storage for header length in words
595 u32 *hdr_len)
615 *hdr_len = (hdr_len_dword * 2) + ICE_NVM_AUTH_HEADER_LEN; in ice_get_nvm_css_hdr_len()
633 u32 hdr_len;
636 status = ice_get_nvm_css_hdr_len(hw, bank, &hdr_len); in ice_read_nvm_sr_copy()
640 hdr_len = ROUND_UP(hdr_len, 32); in ice_read_nvm_sr_copy()
642 return ice_read_nvm_module(hw, bank, hdr_len + offset, data); in ice_read_nvm_sr_copy()
954 u32 hdr_len; in ice_get_orom_srev()
957 status = ice_get_nvm_css_hdr_len(hw, bank, &hdr_len); in ice_get_orom_srev()
598 ice_get_nvm_css_hdr_len(struct ice_hw * hw,enum ice_bank_select bank,u32 * hdr_len) ice_get_nvm_css_hdr_len() argument
637 u32 hdr_len; ice_read_nvm_sr_copy() local
942 u32 hdr_len; ice_get_orom_srev() local
[all...]

1234