hdrp
M_32_SWAP(hdrp->h_charkey);
M_32_SWAP(hdrp->spares[i]);
M_16_SWAP(hdrp->bitmaps[i]);
HASHHDR *hdrp;
hdrp = &hashp->hdr;
M_32_SWAP(hdrp->magic);
M_32_SWAP(hdrp->version);
M_32_SWAP(hdrp->lorder);
M_32_SWAP(hdrp->bsize);
M_32_SWAP(hdrp->bshift);
M_32_SWAP(hdrp->ovfl_point);
M_32_SWAP(hdrp->last_freed);
M_32_SWAP(hdrp->max_bucket);
M_32_SWAP(hdrp->high_mask);
M_32_SWAP(hdrp->low_mask);
M_32_SWAP(hdrp->ffactor);
M_32_SWAP(hdrp->nkeys);
M_32_SWAP(hdrp->hdrpages);
HASHHDR *hdrp;
hdrp = &hashp->hdr;
M_32_SWAP(hdrp->magic);
M_32_SWAP(hdrp->version);
M_32_SWAP(hdrp->lorder);
M_32_SWAP(hdrp->bsize);
M_32_SWAP(hdrp->bshift);
M_32_SWAP(hdrp->dsize);
M_32_SWAP(hdrp->ssize);
M_32_SWAP(hdrp->sshift);
M_32_SWAP(hdrp->ovfl_point);
M_32_SWAP(hdrp->last_freed);
M_32_SWAP(hdrp->max_bucket);
M_32_SWAP(hdrp->high_mask);
M_32_SWAP(hdrp->low_mask);
M_32_SWAP(hdrp->ffactor);
M_32_SWAP(hdrp->nkeys);
M_32_SWAP(hdrp->hdrpages);
M_32_SWAP(hdrp->h_charkey);
M_32_SWAP(hdrp->spares[i]);
M_16_SWAP(hdrp->bitmaps[i]);
char hdrp_l_[PADL_(struct l_user_cap_header *)]; struct l_user_cap_header * hdrp; char hdrp_r_[PADR_(struct l_user_cap_header *)];
char hdrp_l_[PADL_(struct l_user_cap_header *)]; struct l_user_cap_header * hdrp; char hdrp_r_[PADR_(struct l_user_cap_header *)];
uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */
uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */
char hdrp_l_[PADL_(struct l_user_cap_header *)]; struct l_user_cap_header * hdrp; char hdrp_r_[PADR_(struct l_user_cap_header *)];
char hdrp_l_[PADL_(struct l_user_cap_header *)]; struct l_user_cap_header * hdrp; char hdrp_r_[PADR_(struct l_user_cap_header *)];
uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */
uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */
char hdrp_l_[PADL_(struct l_user_cap_header *)]; struct l_user_cap_header * hdrp; char hdrp_r_[PADR_(struct l_user_cap_header *)];
char hdrp_l_[PADL_(struct l_user_cap_header *)]; struct l_user_cap_header * hdrp; char hdrp_r_[PADR_(struct l_user_cap_header *)];
uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */
uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */
if (uap->hdrp == NULL)
error = copyin(uap->hdrp, &luch, sizeof(luch));
error = copyout(&luch, uap->hdrp, sizeof(luch));
if (uap->hdrp == NULL || uap->datap == NULL)
error = copyin(uap->hdrp, &luch, sizeof(luch));
error = copyout(&luch, uap->hdrp, sizeof(luch));
#define ATPD_SET_SEQNO(hdrp, atp) ((isphdr_t *)hdrp)->rqs_seqno &= ~ATPD_SEQ_MASK, ((isphdr_t *)hdrp)->rqs_seqno |= (atp)->seqno
#define ATPD_GET_SEQNO(hdrp) (((isphdr_t *)hdrp)->rqs_seqno & ATPD_SEQ_MASK)
#define ATPD_GET_NCAM(hdrp) ((((isphdr_t *)hdrp)->rqs_seqno & ATPD_SEQ_NOTIFY_CAM) != 0)
MSG_REQUEST_HEADER *hdrp;
hdrp = req->req_vbuf;
switch (hdrp->Function) {
sglp = &((PTR_MSG_SCSI_IO_REQUEST)hdrp)->SGL;
sglp = &((PTR_MSG_TARGET_ASSIST_REQUEST)hdrp)->SGL;
hdrp->Function);
if (hdrp->Function == MPI_FUNCTION_TARGET_ASSIST) {
hdrp->ChainOffset = ((char *)se - (char *)hdrp) >> 2;
if (hdrp->Function == MPI_FUNCTION_TARGET_ASSIST) {
if (hdrp->Function == MPI_FUNCTION_TARGET_ASSIST) {
MSG_REQUEST_HEADER *hdrp;
hdrp = req->req_vbuf;
switch (hdrp->Function) {
sglp = &((PTR_MSG_SCSI_IO_REQUEST)hdrp)->SGL;
sglp = &((PTR_MSG_TARGET_ASSIST_REQUEST)hdrp)->SGL;
hdrp->Function);
if (hdrp->Function == MPI_FUNCTION_TARGET_ASSIST) {
hdrp->ChainOffset = ((char *)se - (char *)hdrp) >> 2;
if (hdrp->Function == MPI_FUNCTION_TARGET_ASSIST) {
if (hdrp->Function == MPI_FUNCTION_TARGET_ASSIST) {
MSG_REQUEST_HEADER *hdrp = req->req_vbuf;
req, req->serno, hdrp->Function);
switch (hdrp->Function) {
__in_bcount(hdr_len) void *hdrp,
__in_bcount(hdr_len) void *hdrp,
dword = *(efx_dword_t *)((uint8_t *)hdrp + pos);
efx_dhcp_tag_hdr_t *hdrp;
hdrp = (efx_dhcp_tag_hdr_t *)tagp;
*valuepp = (uint8_t *)(&hdrp[1]);
*value_lengthp = hdrp->length;
efx_dhcp_tag_hdr_t *hdrp;
hdrp = (efx_dhcp_tag_hdr_t *)startp;
uint8_t tag_length = DHCP_FULL_TAG_LENGTH(hdrp);
hdrp = encap_hdrp;
startp = (uint8_t *)hdrp;
endp = (uint8_t *)DHCP_NEXT_TAG(hdrp);
efx_dhcp_tag_hdr_t *hdrp = (efx_dhcp_tag_hdr_t *)write_pointp;
hdrp->tag = DHCP_ENCAPSULATED(opt);
hdrp->length = (uint8_t)value_length;
memcpy(&hdrp[1], valuep, value_length);
efx_dhcp_tag_hdr_t *hdrp = (efx_dhcp_tag_hdr_t *)write_pointp;
old_length = hdrp->length;
uint8_t *destp = (uint8_t *)DHCP_NEXT_TAG(hdrp) +
(uint8_t *)DHCP_NEXT_TAG(hdrp);
memmove(destp, DHCP_NEXT_TAG(hdrp), count);
EFSYS_ASSERT(hdrp->tag == DHCP_ENCAPSULATED(opt));
__in void *hdrp,
emcop->emco_send_request(enp, hdrp, hdr_len, sdup, sdu_len);
__in_bcount(hdr_len) void *hdrp,
__in_bcount(hdr_len) void *hdrp,
dword = *(efx_dword_t *)hdrp;
tarfs_checksum(struct ustar_header *hdrp)
if (tarfs_str2int64(hdrp->checksum, sizeof(hdrp->checksum), &hdrsum) != 0) {
__func__, (int)sizeof(hdrp->checksum), hdrp->checksum);
(int)sizeof(hdrp->checksum), hdrp->checksum, hdrsum);
for (ptr = (const unsigned char *)hdrp;
ptr < (const unsigned char *)hdrp->checksum; ptr++)
ptr < (const unsigned char *)hdrp->typeflag; ptr++)
ptr < (const unsigned char *)(hdrp + 1); ptr++)
for (ptr = (const unsigned char *)hdrp;
ptr < (const unsigned char *)&hdrp->checksum; ptr++)
ptr < (const unsigned char *)&hdrp->typeflag; ptr++)
ptr < (const unsigned char *)(hdrp + 1); ptr++)
struct ustar_header *hdrp = (struct ustar_header *)block;
if (memcmp(hdrp->magic, USTAR_MAGIC, sizeof(USTAR_MAGIC)) == 0 &&
memcmp(hdrp->version, USTAR_VERSION, sizeof(USTAR_VERSION)) == 0) {
} else if (memcmp(hdrp->magic, GNUTAR_MAGIC, sizeof(GNUTAR_MAGIC)) == 0 &&
memcmp(hdrp->magic, GNUTAR_MAGIC, sizeof(GNUTAR_MAGIC)) == 0) {
if (!tarfs_checksum(hdrp)) {
if (tarfs_str2int64(hdrp->mode, sizeof(hdrp->mode), &num) != 0 ||
if (tarfs_str2int64(hdrp->uid, sizeof(hdrp->uid), &num) != 0 ||
if (tarfs_str2int64(hdrp->gid, sizeof(hdrp->gid), &num) != 0 ||
if (tarfs_str2int64(hdrp->size, sizeof(hdrp->size), &num) != 0 ||
if (tarfs_str2int64(hdrp->mtime, sizeof(hdrp->mtime), &num) != 0) {
hdrp->typeflag[0], sz, (intmax_t)mtime, mode, uid, gid);
if (hdrp->typeflag[0] == TAR_TYPE_GLOBAL_EXTHDR) {
if (hdrp->typeflag[0] == TAR_TYPE_EXTHDR) {
hdrp->typeflag[0] != TAR_TYPE_FILE) {
if (hdrp->prefix[0] != '\0') {
(int)sizeof(hdrp->prefix), hdrp->prefix,
(int)sizeof(hdrp->name), hdrp->name);
name = hdrp->name;
namelen = strnlen(hdrp->name, sizeof(hdrp->name));
if (hdrp->typeflag[0] == TAR_TYPE_DIRECTORY) {
switch (hdrp->typeflag[0]) {
link = hdrp->linkname;
linklen = strnlen(link, sizeof(hdrp->linkname));
link = hdrp->linkname;
linklen = strnlen(link, sizeof(hdrp->linkname));
if (tarfs_str2int64(hdrp->major, sizeof(hdrp->major), &num) != 0 ||
if (tarfs_str2int64(hdrp->minor, sizeof(hdrp->minor), &num) != 0 ||
if (tarfs_str2int64(hdrp->major, sizeof(hdrp->major), &num) != 0 ||
if (tarfs_str2int64(hdrp->minor, sizeof(hdrp->minor), &num) != 0 ||
__func__, hdrp->typeflag[0], (int)namelen, name);
char hdrp_l_[PADL_(struct l_user_cap_header *)]; struct l_user_cap_header * hdrp; char hdrp_r_[PADR_(struct l_user_cap_header *)];
char hdrp_l_[PADL_(struct l_user_cap_header *)]; struct l_user_cap_header * hdrp; char hdrp_r_[PADR_(struct l_user_cap_header *)];
uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */
uarg[a++] = (intptr_t)p->hdrp; /* struct l_user_cap_header * */
struct slcompress *comp, u_char **hdrp, u_int *hlenp)
*hdrp = (u_char *) &cs->cs_ip;
*hdrp = (u_char *) &cs->cs_ip;
uint8_t *hdr, *hdrp;
for (left = hdrlen, hdrp = hdr; left > 0;
left -= now, hdrp += now) {
memcpy(hdrp, iov->iov_base, now);