/freebsd/sys/fs/tarfs/ |
H A D | tarfs_vfsops.c | 205 tarfs_checksum(struct ustar_header *hdrp) in tarfs_checksum() argument 210 if (tarfs_str2int64(hdrp->checksum, sizeof(hdrp->checksum), &hdrsum) != 0) { in tarfs_checksum() 212 __func__, (int)sizeof(hdrp->checksum), hdrp->checksum); in tarfs_checksum() 216 (int)sizeof(hdrp->checksum), hdrp->checksum, hdrsum); in tarfs_checksum() 219 for (ptr = (const unsigned char *)hdrp; in tarfs_checksum() 220 ptr < (const unsigned char *)hdrp->checksum; ptr++) in tarfs_checksum() 223 ptr < (const unsigned char *)hdrp->typeflag; ptr++) in tarfs_checksum() 226 ptr < (const unsigned char *)(hdrp + 1); ptr++) in tarfs_checksum() 238 for (ptr = (const unsigned char *)hdrp; in tarfs_checksum() 239 ptr < (const unsigned char *)&hdrp->checksum; ptr++) in tarfs_checksum() [all …]
|
/freebsd/sys/dev/sfxge/common/ |
H A D | efx_bootcfg.c | 351 efx_dhcp_tag_hdr_t *hdrp; in efx_dhcp_find_tag() local 353 hdrp = (efx_dhcp_tag_hdr_t *)tagp; in efx_dhcp_find_tag() 354 *valuepp = (uint8_t *)(&hdrp[1]); in efx_dhcp_find_tag() 355 *value_lengthp = hdrp->length; in efx_dhcp_find_tag() 410 efx_dhcp_tag_hdr_t *hdrp; in efx_dhcp_delete_tag() local 427 hdrp = (efx_dhcp_tag_hdr_t *)startp; in efx_dhcp_delete_tag() 430 uint8_t tag_length = DHCP_FULL_TAG_LENGTH(hdrp); in efx_dhcp_delete_tag() 446 hdrp = encap_hdrp; in efx_dhcp_delete_tag() 450 startp = (uint8_t *)hdrp; in efx_dhcp_delete_tag() 451 endp = (uint8_t *)DHCP_NEXT_TAG(hdrp); in efx_dhcp_delete_tag() [all …]
|
H A D | siena_mcdi.c | 55 __in_bcount(hdr_len) void *hdrp, in siena_mcdi_send_request() 74 dword = *(efx_dword_t *)hdrp; in siena_mcdi_send_request()
|
H A D | ef10_mcdi.c | 151 __in_bcount(hdr_len) void *hdrp, in ef10_mcdi_send_request() 167 dword = *(efx_dword_t *)((uint8_t *)hdrp + pos); in ef10_mcdi_send_request()
|
H A D | siena_impl.h | 117 __in_bcount(hdr_len) void *hdrp,
|
H A D | efx_mcdi.c | 199 __in void *hdrp, in efx_mcdi_send_request() argument 206 emcop->emco_send_request(enp, hdrp, hdr_len, sdup, sdu_len); in efx_mcdi_send_request()
|
H A D | ef10_impl.h | 323 __in_bcount(hdr_len) void *hdrp,
|
/freebsd/lib/libc/db/hash/ |
H A D | hash.c | 936 HASHHDR *hdrp; in swap_header() local 939 hdrp = &hashp->hdr; in swap_header() 941 M_32_SWAP(hdrp->magic); in swap_header() 942 M_32_SWAP(hdrp->version); in swap_header() 943 M_32_SWAP(hdrp->lorder); in swap_header() 944 M_32_SWAP(hdrp->bsize); in swap_header() 945 M_32_SWAP(hdrp->bshift); in swap_header() 946 M_32_SWAP(hdrp->dsize); in swap_header() 947 M_32_SWAP(hdrp->ssize); in swap_header() 948 M_32_SWAP(hdrp->sshift); in swap_header() [all …]
|
/freebsd/contrib/libpcap/ |
H A D | pcap-util.c | 123 pcap_can_socketcan_hdr *hdrp; in swap_socketcan_header() local 134 hdrp = (pcap_can_socketcan_hdr *)buf; in swap_socketcan_header() 135 if (caplen < (u_int) (offsetof(pcap_can_socketcan_hdr, can_id) + sizeof hdrp->can_id) || in swap_socketcan_header() 136 length < (u_int) (offsetof(pcap_can_socketcan_hdr, can_id) + sizeof hdrp->can_id)) { in swap_socketcan_header() 140 hdrp->can_id = SWAPLONG(hdrp->can_id); in swap_socketcan_header()
|
H A D | pcap-snit.c | 118 register struct nit_bufhdr *hdrp; in pcap_read_snit() local 171 hdrp = (struct nit_bufhdr *)cp; in pcap_read_snit() 172 cp += sizeof(*hdrp); in pcap_read_snit() 187 bp += hdrp->nhb_totlen; in pcap_read_snit()
|
H A D | pcap-linux.c | 3878 struct sll2_header *hdrp; in pcap_handle_packet_mmap() local 3907 hdrp = (struct sll2_header *)bp; in pcap_handle_packet_mmap() 3908 hdrp->sll2_protocol = sll->sll_protocol; in pcap_handle_packet_mmap() 3909 hdrp->sll2_reserved_mbz = 0; in pcap_handle_packet_mmap() 3910 hdrp->sll2_if_index = htonl(sll->sll_ifindex); in pcap_handle_packet_mmap() 3911 hdrp->sll2_hatype = htons(sll->sll_hatype); in pcap_handle_packet_mmap() 3912 hdrp->sll2_pkttype = sll->sll_pkttype; in pcap_handle_packet_mmap() 3913 hdrp->sll2_halen = sll->sll_halen; in pcap_handle_packet_mmap() 3914 memcpy(hdrp->sll2_addr, sll->sll_addr, SLL_ADDRLEN); in pcap_handle_packet_mmap() 3918 struct sll_header *hdrp; in pcap_handle_packet_mmap() local [all …]
|
/freebsd/sys/dev/mpt/ |
H A D | mpt_cam.c | 1280 MSG_REQUEST_HEADER *hdrp; in mpt_execute_req_a64() local 1291 hdrp = req->req_vbuf; in mpt_execute_req_a64() 1295 switch (hdrp->Function) { in mpt_execute_req_a64() 1299 sglp = &((PTR_MSG_SCSI_IO_REQUEST)hdrp)->SGL; in mpt_execute_req_a64() 1303 sglp = &((PTR_MSG_TARGET_ASSIST_REQUEST)hdrp)->SGL; in mpt_execute_req_a64() 1307 hdrp->Function); in mpt_execute_req_a64() 1336 if (hdrp->Function == MPI_FUNCTION_TARGET_ASSIST) { in mpt_execute_req_a64() 1451 hdrp->ChainOffset = ((char *)se - (char *)hdrp) >> 2; in mpt_execute_req_a64() 1611 if (hdrp->Function == MPI_FUNCTION_TARGET_ASSIST) { in mpt_execute_req_a64() 1645 if (hdrp->Function == MPI_FUNCTION_TARGET_ASSIST) { in mpt_execute_req_a64() [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | headers.c | 72 dochompheader(line, pflag, hdrp, e) in dochompheader() argument 75 HDR **hdrp; 92 headeronly = hdrp != NULL; 94 hdrp = &e->e_header; 419 for (hp = hdrp; (h = *hp) != NULL; hp = &h->h_link) 516 chompheader(line, pflag, hdrp, e) in chompheader() argument 519 HDR **hdrp; 546 rval = dochompheader(xbp, pflag, hdrp, e); 551 rval = dochompheader(line, pflag, hdrp, e);
|
H A D | collect.c | 351 collect(fp, smtpmode, hdrp, e, rsetsize) in collect() argument 354 HDR **hdrp; 404 headeronly = hdrp != NULL; 782 hdrp, e)))
|
/freebsd/sys/net/ |
H A D | slcompress.c | 451 struct slcompress *comp, u_char **hdrp, u_int *hlenp) in sl_uncompress_tcp_core() argument 482 *hdrp = (u_char *) &cs->cs_ip; in sl_uncompress_tcp_core() 580 *hdrp = (u_char *) &cs->cs_ip; in sl_uncompress_tcp_core()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_platform_limits_posix.cpp | 247 unsigned __user_cap_data_struct_sz(void *hdrp) { in __user_cap_data_struct_sz() argument 249 if (hdrp) { in __user_cap_data_struct_sz() 250 switch (((struct __user_cap_header_struct *)hdrp)->version) { in __user_cap_data_struct_sz()
|
H A D | sanitizer_platform_limits_posix.h | 139 extern unsigned __user_cap_data_struct_sz(void *hdrp);
|
H A D | sanitizer_common_interceptors.inc | 5715 INTERCEPTOR(int, capget, void *hdrp, void *datap) { 5717 COMMON_INTERCEPTOR_ENTER(ctx, capget, hdrp, datap); 5718 if (hdrp) 5719 COMMON_INTERCEPTOR_READ_RANGE(ctx, hdrp, __user_cap_header_struct_sz); 5723 int res = REAL(capget)(hdrp, datap); 5725 unsigned datasz = __user_cap_data_struct_sz(hdrp); 5728 // We can also return -1 and write to hdrp->version if the version passed in 5729 // hdrp->version is unsupported. But that's not a trivial condition to check, 5733 INTERCEPTOR(int, capset, void *hdrp, const void *datap) { 5735 COMMON_INTERCEPTOR_ENTER(ctx, capset, hdrp, datap); [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_misc.c | 1596 if (uap->hdrp == NULL) in linux_capget() 1599 error = copyin(uap->hdrp, &luch, sizeof(luch)); in linux_capget() 1613 error = copyout(&luch, uap->hdrp, sizeof(luch)); in linux_capget() 1643 if (uap->hdrp == NULL || uap->datap == NULL) in linux_capset() 1646 error = copyin(uap->hdrp, &luch, sizeof(luch)); in linux_capset() 1660 error = copyout(&luch, uap->hdrp, sizeof(luch)); in linux_capset()
|
/freebsd/sys/dev/isp/ |
H A D | isp_target.c | 126 #define hdrp unp.hp in isp_target_notify() macro 216 #undef hdrp in isp_target_notify()
|
/freebsd/usr.sbin/bhyve/ |
H A D | pci_e82545.c | 1081 uint8_t *hdr, *hdrp; in e82545_transmit() local 1319 for (left = hdrlen, hdrp = hdr; left > 0; in e82545_transmit() 1320 left -= now, hdrp += now) { in e82545_transmit() 1322 memcpy(hdrp, iov->iov_base, now); in e82545_transmit()
|
/freebsd/sys/arm64/linux/ |
H A D | linux_systrace_args.c | 722 uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */ in systrace_args() 730 uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */ in systrace_args()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | arc.c | 1107 arc_buf_hdr_t *fhdr, **hdrp; in buf_hash_remove() local 1113 hdrp = &buf_hash_table.ht_table[idx]; in buf_hash_remove() 1114 while ((fhdr = *hdrp) != hdr) { in buf_hash_remove() 1116 hdrp = &fhdr->b_hash_next; in buf_hash_remove() 1118 *hdrp = hdr->b_hash_next; in buf_hash_remove()
|
/freebsd/sys/amd64/linux/ |
H A D | linux_systrace_args.c | 1047 uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */ in systrace_args() 1055 uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */ in systrace_args()
|
/freebsd/sys/i386/linux/ |
H A D | linux_systrace_args.c | 1307 uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */ in systrace_args() 1315 uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */ in systrace_args()
|