Home
last modified time | relevance | path

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

/freebsd/contrib/libpcap/
H A Dsf-pcapng.c54 bpf_u_int32 total_length; member
61 bpf_u_int32 total_length; member
296 bhdr.total_length = SWAPLONG(bhdr.total_length); in read_block()
303 if (bhdr.total_length < sizeof(struct block_header) + in read_block()
307 bhdr.total_length, in read_block()
315 if ((bhdr.total_length % 4) != 0) { in read_block()
321 bhdr.total_length); in read_block()
328 if (p->bufsize < bhdr.total_length) { in read_block()
335 if (bhdr.total_length > ps->max_blocksize) { in read_block()
336 snprintf(errbuf, PCAP_ERRBUF_SIZE, "pcapng block size %u > maximum %u", bhdr.total_length, in read_block()
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dndef.c29 u32 total_length; member
81 record->total_length = pos - data; in ndef_parse_record()
82 if (record->total_length > size || in ndef_parse_record()
83 record->total_length < record->payload_length) in ndef_parse_record()
104 data += record.total_length; in ndef_parse_records()
105 len -= record.total_length; in ndef_parse_records()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunication.cpp640 size_t total_length = 0; in CheckForPacket() local
656 content_length = total_length = 1; // The command is one byte long... in CheckForPacket()
676 total_length = in CheckForPacket()
717 } else if (total_length > 0) { in CheckForPacket()
721 assert(total_length <= m_bytes.size()); in CheckForPacket()
722 assert(content_length <= total_length); in CheckForPacket()
737 if (m_bytes[0] == '$' && total_length > 4) { in CheckForPacket()
738 for (size_t i = 0; !binary && i < total_length; ++i) { in CheckForPacket()
750 (uint64_t)original_packet_size, (uint64_t)total_length, in CheckForPacket()
754 (uint64_t)total_length, m_bytes[0]); in CheckForPacket()
[all …]
/freebsd/sys/dev/tpm/
H A Dtpm20.c85 offset = sc->total_length - sc->pending_data_length; in tpm20_read()
157 sc->total_length = 0; in tpm20_discard_buffer()
204 sc->total_length = 0; in tpm20_init()
313 sc->total_length = 0; in tpm20_harvest()
363 sc->total_length = 0; in tpm20_restart()
400 sc->total_length = 0; in tpm20_save_state()
H A Dtpm20.h127 size_t total_length; member
H A Dtpm_tis_core.c479 sc->total_length = bytes_available; in tpmtis_transmit()
H A Dtpm_crb.c587 sc->total_length = bytes_available; in tpmcrb_transmit()
/freebsd/crypto/openssl/providers/implementations/rands/seeding/
H A Drand_vms.c365 size_t total_length = 0; in data_collect_method() local
383 total_length = total_elems * sizeof(data.buffer[0]); in data_collect_method()
458 if (!ossl_assert(total_length >= bytes_needed)) { in data_collect_method()
461 bytes_needed, total_length); in data_collect_method()
468 if (total_length > bytes_remaining) in data_collect_method()
469 total_length = bytes_remaining; in data_collect_method()
472 ossl_rand_pool_add(pool, (unsigned char *)data.buffer, total_length, in data_collect_method()
473 8 * total_length / ENTROPY_FACTOR); in data_collect_method()
/freebsd/sys/dev/sfxge/common/
H A Def10_nvram.c635 header->total_length = __CPU_TO_LE_32(new_len); in tlv_update_partition_len_and_cks()
667 size_t total_length; in ef10_nvram_buffer_validate() local
692 total_length = __LE_TO_CPU_32(header->total_length); in ef10_nvram_buffer_validate()
693 if (total_length > partn_size) { in ef10_nvram_buffer_validate()
728 for (pos = 0; (size_t)pos < total_length; pos += sizeof (uint32_t)) { in ef10_nvram_buffer_validate()
808 header.total_length = 0; /* This will be fixed below. */ in ef10_nvram_buffer_create()
1247 size_t total_length; in ef10_nvram_read_tlv_segment() local
1279 total_length = __LE_TO_CPU_32(header->total_length); in ef10_nvram_read_tlv_segment()
1280 if (total_length > max_seg_size) { in ef10_nvram_read_tlv_segment()
1286 if (total_length > EF10_NVRAM_CHUNK) { in ef10_nvram_read_tlv_segment()
[all …]
H A Def10_tlv_layout.h126 uint32_t total_length; member
/freebsd/sys/dev/qlxgb/
H A Dqla_hw.c925 uint32_t total_length = 0, bytes, tx_cmd_count = 0; in qla_hw_send() local
938 total_length = mp->m_pkthdr.len; in qla_hw_send()
939 if (total_length > QLA_MAX_TSO_FRAME_SIZE) { in qla_hw_send()
941 __func__, total_length); in qla_hw_send()
1016 tx_cmd->data_len_lo = (uint8_t)(total_length & 0xFF); in qla_hw_send()
1017 tx_cmd->data_len_hi = qla_host_to_le16(((uint16_t)(total_length >> 8))); in qla_hw_send()
/freebsd/sys/dev/qlxge/
H A Dqls_hw.c670 uint32_t total_length = 0; in qls_hw_send() local
677 total_length = mp->m_pkthdr.len; in qls_hw_send()
679 if (total_length > QLA_MAX_TSO_FRAME_SIZE) { in qls_hw_send()
681 __func__, total_length); in qls_hw_send()
720 tx_mac->frame_length = total_length; in qls_hw_send()
725 QL_DPRINT2((dev, "%s: 1 [%d, %d]\n", __func__, total_length, in qls_hw_send()
736 QL_DPRINT2((dev, "%s: 2 [%d, %d]\n", __func__, total_length, in qls_hw_send()
/freebsd/sys/dev/ice/
H A Dice_protocol_type.h223 __be16 total_length; member
/freebsd/sys/dev/gve/
H A Dgve_adminq.h108 __be16 total_length; member
H A Dgve_adminq.c190 char *desc_end = (char *)descriptor + be16toh(descriptor->total_length); in gve_process_device_options()
/freebsd/contrib/tcpdump/
H A Dprint-bgp.c715 u_int total_length, offset; in bgp_vpn_sg_print() local
717 total_length = 0; in bgp_vpn_sg_print()
725 total_length += (addr_length >> 3) + 1; in bgp_vpn_sg_print()
739 total_length += (addr_length >> 3) + 1; in bgp_vpn_sg_print()
748 return (total_length); in bgp_vpn_sg_print()
H A Dprint-isoclns.c816 nd_uint16_t total_length; member
951 GET_BE_U_2(clnp_segment_header->total_length)); in clnp_print()
/freebsd/sys/dev/qlxgbe/
H A Dql_hw.c2476 uint32_t total_length = 0, bytes, tx_cmd_count = 0, txr_next; in ql_hw_send() local
2492 total_length = mp->m_pkthdr.len; in ql_hw_send()
2493 if (total_length > QLA_MAX_TSO_FRAME_SIZE) { in ql_hw_send()
2495 __func__, total_length); in ql_hw_send()
2604 tx_cmd->data_len_lo = (uint8_t)(total_length & 0xFF); in ql_hw_send()
2605 tx_cmd->data_len_hi = qla_host_to_le16(((uint16_t)(total_length >> 8))); in ql_hw_send()
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_discovery.c77 if (features->aio_subpage.header.total_length >= in pqisrc_QuerySenseFeatures()
80 features->aio_subpage.header.total_length); in pqisrc_QuerySenseFeatures()
H A Dsmartpqi_structures.h1170 uint16_t total_length; /** Total length of the page. member
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_sriov.c1375 u16 i = 1, total_length = 0; in ecore_dp_tlv_list() local
1380 tlv = (struct channel_tlv *)((u8 *)tlvs_list + total_length); in ecore_dp_tlv_list()
1402 total_length += tlv->length; in ecore_dp_tlv_list()
1404 if (total_length >= sizeof(struct tlv_buffer_size)) { in ecore_dp_tlv_list()
/freebsd/sys/dev/oce/
H A Doce_hw.h2416 uint32_t total_length:16; member
2442 uint32_t total_length:16;
H A Doce_if.c1132 nichdr->u0.s.total_length = m->m_pkthdr.len; in oce_tx()