/freebsd-11-stable/sys/dev/firewire/ |
H A D | firewire.c | 199 fp = &xfer->send.hdr; 358 fw_dump_hdr(&xfer->send.hdr, "send"); 652 src->hdr.info_len = 4; 1011 fp->mode.hdr.dst & 0x3f, 1012 fp->mode.hdr.tlrt >> 2, fp->mode.hdr.tlrt & 3, 1013 fp->mode.hdr.tcode, fp->mode.hdr.pri, 1014 fp->mode.hdr.src); 1038 fw_dump_hdr(&xfer->send.hdr, "sen 1516 struct csrhdr *hdr; local [all...] |
/freebsd-11-stable/contrib/libpcap/ |
H A D | pcap-usb-linux.c | 95 pcap_usb_header *hdr; member in struct:mon_bin_get 117 #define MON_BIN_SETUP 0x1 /* setup hdr is present*/ 1150 info.hdr = (pcap_usb_header*) handle->buffer; 1174 * info.hdr->data_len is the number of bytes of isochronous 1179 * If info.hdr->data_flag is non-zero, there's no URB data; 1180 * info.hdr->urb_len is the size of the buffer into which 1182 * of data transferred. If info.hdr->data_flag is zero, 1183 * there is URB data, and info.hdr->urb_len is the number 1191 if (info.hdr->data_len < clen) 1192 clen = info.hdr 1237 pcap_usb_header_mmapped* hdr; local [all...] |
/freebsd-11-stable/sys/dev/mpt/ |
H A D | mpt_user.c | 292 CONFIG_PAGE_HEADER *hdr; local 303 hdr = mpt_page->vaddr; 305 params.PageVersion = hdr->PageVersion; 306 params.PageLength = hdr->PageLength; 307 params.PageNumber = hdr->PageNumber; 308 params.PageType = hdr->PageType & MPI_CONFIG_PAGETYPE_MASK; 380 CONFIG_EXTENDED_PAGE_HEADER *hdr; local 391 hdr = mpt_page->vaddr; 393 params.PageVersion = hdr->PageVersion; 395 params.PageNumber = hdr 421 CONFIG_PAGE_HEADER *hdr; local [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | eapol_test.c | 183 const struct eap_hdr *hdr; local 199 hdr = (const struct eap_hdr *) eap; 200 pos = (const u8 *) (hdr + 1); 201 if (len > sizeof(*hdr) && hdr->code == EAP_CODE_RESPONSE && 205 e->eap_identity_len = len - sizeof(*hdr) - 1; 700 struct ieee802_1x_hdr *hdr; local 703 hdr = (struct ieee802_1x_hdr *) buf; 704 hdr->version = EAPOL_VERSION; 705 hdr 755 const struct eap_hdr *hdr; local 905 struct radius_hdr *hdr = radius_msg_get_hdr(msg); local [all...] |
H A D | ibss_rsn.c | 82 struct ieee802_1x_hdr *hdr; local 87 *msg_len = sizeof(*hdr) + data_len; 88 hdr = os_malloc(*msg_len); 89 if (hdr == NULL) 92 hdr->version = 2; 93 hdr->type = type; 94 hdr->length = host_to_be16(data_len); 97 os_memcpy(hdr + 1, data, data_len); 99 os_memset(hdr + 1, 0, data_len); 102 *data_pos = hdr 717 const struct ieee802_1x_hdr *hdr; local [all...] |
/freebsd-11-stable/sys/dev/mpr/ |
H A D | mpr_user.c | 241 MPI2_CONFIG_PAGE_HEADER *hdr; local 245 hdr = ¶ms.hdr.Struct; 248 hdr->PageVersion = 0; 249 hdr->PageLength = 0; 250 hdr->PageNumber = page_req->header.PageNumber; 251 hdr->PageType = page_req->header.PageType; 270 bcopy(hdr, &page_req->header, sizeof(page_req->header)); 280 MPI2_CONFIG_PAGE_HEADER *reqhdr, *hdr; local 285 hdr 309 MPI2_CONFIG_EXTENDED_PAGE_HEADER *hdr; local 353 MPI2_CONFIG_EXTENDED_PAGE_HEADER *reqhdr, *hdr; local 383 MPI2_CONFIG_PAGE_HEADER *reqhdr, *hdr; local 632 MPI2_REQUEST_HEADER *hdr = (MPI2_REQUEST_HEADER *)cm->cm_req; local 645 MPI2_REQUEST_HEADER *hdr; local 741 MPI2_REQUEST_HEADER *hdr, tmphdr; local [all...] |
/freebsd-11-stable/contrib/binutils/bfd/ |
H A D | ppcboot.c | 153 ppcboot_hdr_t hdr; 179 if (bfd_bread ((PTR) &hdr, (bfd_size_type) sizeof (hdr), abfd) 180 != sizeof (hdr)) 189 for (i = 0; i < sizeof (hdr.pc_compatibility); i++) 190 if (hdr.pc_compatibility[i]) 196 if (hdr.signature[0] != SIGNATURE0 || hdr.signature[1] != SIGNATURE1) 202 if (hdr.partition[0].partition_end.ind != PPC_IND) 222 memcpy ((PTR) &tdata->header, (PTR) &hdr, sizeo 150 ppcboot_hdr_t hdr; local [all...] |
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | ieee802_1x.c | 150 struct ieee802_1x_hdr *hdr; local 159 buf = os_zalloc(sizeof(*hdr) + len); 163 hdr = (struct ieee802_1x_hdr *) buf; 164 key = (struct ieee802_1x_eapol_key *) (hdr + 1); 222 hdr->version = hapd->conf->eapol_version; 224 if (hdr->version > 2) 225 hdr->version = 2; 227 hdr->type = IEEE802_1X_TYPE_EAPOL_KEY; 228 hdr->length = host_to_be16(len); 229 hmac_md5(sm->eap_if->eapKeyData + 32, 32, buf, sizeof(*hdr) 337 const struct eap_hdr *hdr = (const struct eap_hdr *) eap; local 646 struct radius_attr_hdr *hdr; local 1027 struct ieee802_1x_hdr *hdr; local 1402 const struct eap_hdr *hdr; local 1916 struct radius_hdr *hdr = radius_msg_get_hdr(msg); local 2530 struct ieee80211_hdr *hdr; local [all...] |
/freebsd-11-stable/sys/dev/mps/ |
H A D | mps_user.c | 226 MPI2_CONFIG_PAGE_HEADER *hdr; local 230 hdr = ¶ms.hdr.Struct; 233 hdr->PageVersion = 0; 234 hdr->PageLength = 0; 235 hdr->PageNumber = page_req->header.PageNumber; 236 hdr->PageType = page_req->header.PageType; 255 bcopy(hdr, &page_req->header, sizeof(page_req->header)); 265 MPI2_CONFIG_PAGE_HEADER *reqhdr, *hdr; local 270 hdr 294 MPI2_CONFIG_EXTENDED_PAGE_HEADER *hdr; local 338 MPI2_CONFIG_EXTENDED_PAGE_HEADER *reqhdr, *hdr; local 368 MPI2_CONFIG_PAGE_HEADER *reqhdr, *hdr; local 645 MPI2_REQUEST_HEADER *hdr = (MPI2_REQUEST_HEADER *)cm->cm_req; local 658 MPI2_REQUEST_HEADER *hdr; local 753 MPI2_REQUEST_HEADER *hdr, tmphdr; local [all...] |
/freebsd-11-stable/sys/net/ |
H A D | netmap_user.h | 232 struct nm_pkthdr hdr; member in struct:nm_desc 1074 d->hdr.buf = NULL; 1075 d->hdr.flags = NM_MORE_PKTS; 1076 d->hdr.d = d; 1095 if (d->hdr.buf) { /* from previous round */ 1096 cb(arg, &d->hdr, d->hdr.buf); 1102 * set it here, so it reflects d->hdr.buf's ring */ 1104 d->hdr.slot = slot; 1105 oldbuf = d->hdr 1135 nm_nextpkt(struct nm_desc *d, struct nm_pkthdr *hdr) argument [all...] |
/freebsd-11-stable/sys/geom/vinum/ |
H A D | geom_vinum_create.c | 56 struct gv_hdr *hdr; local 140 if (d->hdr != NULL) 141 g_free(d->hdr); 156 if (d->hdr == NULL) { 157 hdr = g_malloc(sizeof(*hdr), M_WAITOK | M_ZERO); 158 hdr->magic = GV_MAGIC; 159 hdr->config_length = GV_CFG_LEN; 160 getcredhostname(NULL, hdr->label.sysname, GV_HOSTNAME_LEN); 161 strlcpy(hdr [all...] |
/freebsd-11-stable/sys/dev/cxgbe/cxgbei/ |
H A D | cxgbei_ulp2_ddp.c | 303 struct cxgbei_ulp2_pagepod_hdr hdr; local 338 hdr.rsvd = 0; 339 hdr.vld_tid = htonl(F_IPPOD_VALID | V_IPPOD_TID(tid)); 340 hdr.pgsz_tag_clr = htonl(tag & ci->rsvd_tag_mask); 341 hdr.maxoffset = htonl(gl->length); 342 hdr.pgoffset = htonl(gl->offset); 344 rc = t4_ddp_set_map(ci, icc, &hdr, idx, npods, gl, reply);
|
/freebsd-11-stable/sys/netgraph/bluetooth/hci/ |
H A D | ng_hci_ulpi.c | 124 ng_hci_cmd_pkt_t hdr; member in struct:acl_con_req 248 req->hdr.type = NG_HCI_CMD_PKT; 249 req->hdr.length = sizeof(req->cp); 250 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL, 324 ng_hci_cmd_pkt_t hdr; member in struct:sco_con_req 441 req->hdr.type = NG_HCI_CMD_PKT; 442 req->hdr.length = sizeof(req->cp); 443 req->hdr.opcode = htole16(NG_HCI_OPCODE(NG_HCI_OGF_LINK_CONTROL, 488 ng_hci_cmd_pkt_t hdr; member in struct:acl_con_req 615 req->hdr 666 ng_hci_cmd_pkt_t hdr; member in struct:discon_req 902 ng_hci_cmd_pkt_t hdr; member in struct:con_rsp_req 1154 ng_hci_cmd_pkt_t hdr; member in struct:qos_setup_req [all...] |
/freebsd-11-stable/tools/tools/net80211/wesside/dics/ |
H A D | dics.c | 113 struct cmsghdr hdr; member in struct:__anon13708 138 if ( ctl.hdr.cmsg_level != IPPROTO_IP || 140 ctl.hdr.cmsg_type != IP_TTL 142 ctl.hdr.cmsg_type != IP_RECVTTL 147 ctl.hdr.cmsg_len, ctl.hdr.cmsg_level, ctl.hdr.cmsg_type);
|
/freebsd-11-stable/sys/dev/usb/net/ |
H A D | if_cdce.c | 1226 offset = sizeof(sc->sc_ncm.hdr) + 1338 sc->sc_ncm.hdr.dwSignature[0] = 'N'; 1339 sc->sc_ncm.hdr.dwSignature[1] = 'C'; 1340 sc->sc_ncm.hdr.dwSignature[2] = 'M'; 1341 sc->sc_ncm.hdr.dwSignature[3] = 'H'; 1342 USETW(sc->sc_ncm.hdr.wHeaderLength, sizeof(sc->sc_ncm.hdr)); 1343 USETW(sc->sc_ncm.hdr.wBlockLength, offset); 1344 USETW(sc->sc_ncm.hdr.wSequence, sc->sc_ncm.tx_seq); 1345 USETW(sc->sc_ncm.hdr [all...] |
/freebsd-11-stable/sys/dev/qlnx/qlnxe/ |
H A D | ecore_vf.c | 95 req_status, resp->default_resp.hdr.status); 230 rc = ecore_send_msg2pf(p_hwfn, &resp->hdr.status, sizeof(*resp)); 232 if (rc == ECORE_SUCCESS && resp->hdr.status != PFVF_STATUS_SUCCESS) 367 &resp->hdr.status, 379 if (resp->hdr.status == PFVF_STATUS_SUCCESS) { 393 else if (resp->hdr.status == PFVF_STATUS_NO_RESOURCE && 398 } else if (resp->hdr.status == PFVF_STATUS_NOT_SUPPORTED) { 436 resp->hdr.status); 814 rc = ecore_send_msg2pf(p_hwfn, &p_resp->hdr.status, sizeof(*p_resp)); 819 if (p_resp->hdr [all...] |
/freebsd-11-stable/contrib/hyperv/tools/ |
H A D | hv_kvp_daemon.c | 1104 op_msg->hdr.error = HV_S_OK; 1110 op_msg->hdr.error = HV_E_FAIL; 1117 op_msg->hdr.error = HV_E_FAIL; 1136 op_msg->hdr.error = HV_S_OK; 1142 op_msg->hdr.error = HV_GUID_NOTFOUND; 1148 op_msg->hdr.error = HV_E_FAIL; 1164 op_pool = op_msg->hdr.kvp_hdr.pool; 1165 op_msg->hdr.error = HV_S_OK; 1209 op_msg->hdr.error = HV_S_CONT; 1224 op = op_msg->hdr [all...] |
/freebsd-11-stable/contrib/ofed/libibcm/ |
H A D | cm.c | 73 struct ib_ucm_cmd_hdr *hdr; \ 75 size = sizeof(*hdr) + sizeof(*cmd); \ 79 hdr = msg; \ 80 cmd = msg + sizeof(*hdr); \ 81 hdr->cmd = type; \ 82 hdr->in = sizeof(*cmd); \ 83 hdr->out = sizeof(*resp); \ 93 struct ib_ucm_cmd_hdr *hdr; \ 95 size = sizeof(*hdr) + sizeof(*cmd); \ 99 hdr 800 struct ib_ucm_cmd_hdr *hdr; local [all...] |
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | work_thread.c | 267 blocking_pipe_header * hdr 276 c->workitems[qhead % c->workitems_alloc] = hdr; 295 blocking_pipe_header * hdr, 302 REQUIRE(hdr != NULL); 304 DEBUG_REQUIRE(BLOCKING_REQ_MAGIC == hdr->magic_sig); 306 if (hdr->octets <= sizeof(*hdr)) 308 payload_octets = hdr->octets - sizeof(*hdr); 312 threadcopy = emalloc(hdr 293 send_blocking_req_internal( blocking_child * c, blocking_pipe_header * hdr, void * data ) argument [all...] |
/freebsd-11-stable/contrib/wpa/src/eap_peer/ |
H A D | eap_ttls.c | 338 struct eap_hdr *hdr, size_t len, 345 wpabuf_set(&msg, hdr, len); 364 struct eap_hdr *hdr, size_t len, 371 return eap_ttls_phase2_eap_process(sm, data, ret, hdr, len, 409 hdr, resp)) 429 return eap_ttls_phase2_eap_process(sm, data, ret, hdr, len, resp); 436 struct eap_hdr *hdr, 439 size_t len = be_to_host16(hdr->length); 448 pos = (u8 *) (hdr + 1); 452 *resp = eap_sm_buildIdentity(sm, hdr 335 eap_ttls_phase2_eap_process(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, size_t len, struct wpabuf **resp) argument 361 eap_ttls_phase2_request_eap_method(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, size_t len, u8 method, struct wpabuf **resp) argument 433 eap_ttls_phase2_request_eap(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument 809 eap_ttls_phase2_request(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument 1041 struct eap_hdr *hdr; local 1093 struct eap_hdr *hdr; local 1317 struct eap_hdr *hdr; local [all...] |
H A D | eap_fast.c | 417 struct eap_hdr *hdr, 420 size_t len = be_to_host16(hdr->length); 431 pos = (u8 *) (hdr + 1); 434 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1); 454 hdr, resp)) 470 wpabuf_set(&msg, hdr, len); 490 data->pending_phase2_req = wpabuf_alloc_copy(hdr, len); 562 struct eap_hdr *hdr; local 565 if (eap_payload_tlv_len < sizeof(*hdr)) { 572 hdr 414 eap_fast_phase2_request(struct eap_sm *sm, struct eap_fast_data *data, struct eap_method_ret *ret, struct eap_hdr *hdr, struct wpabuf **resp) argument 866 struct pac_tlv_hdr *hdr; local 986 struct pac_tlv_hdr *hdr; local 1347 const struct pac_tlv_hdr *hdr; local [all...] |
/freebsd-11-stable/sys/dev/hyperv/utilities/ |
H A D | vmbus_timesync.c | 178 struct vmbus_icmsg_hdr *hdr; local 193 if (dlen < sizeof(*hdr)) { 197 hdr = data; 202 switch (hdr->ic_type) { 238 device_printf(sc->ic_dev, "got 0x%08x icmsg\n", hdr->ic_type);
|
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | ccp.c | 281 ccp->in.opt.hdr.id = -1; 367 if ((*o)->val.hdr.id == algorithm[f]->id && (*o)->algorithm == (int)f) 376 (*o)->val.hdr.id = algorithm[f]->id; 377 (*o)->val.hdr.len = 2; 383 if (cp + (*o)->val.hdr.len > buff + sizeof buff) { 387 memcpy(cp, &(*o)->val, (*o)->val.hdr.len); 388 cp += (*o)->val.hdr.len; 390 ccp->my_proto = (*o)->val.hdr.id; 580 while (end >= cp + sizeof(opt->hdr)) { 585 if (algorithm[f]->id == opt->hdr [all...] |
/freebsd-11-stable/contrib/wpa/src/eap_common/ |
H A D | eap_fast_common.c | 21 struct pac_tlv_hdr hdr; local 22 hdr.type = host_to_be16(type); 23 hdr.len = host_to_be16(len); 24 wpabuf_put_data(buf, &hdr, sizeof(hdr));
|
/freebsd-11-stable/sys/contrib/ngatm/netnatm/sig/ |
H A D | sig_party.c | 336 ind->add.hdr = u->u.hdr; 398 ind->alert.hdr = u->u.hdr; 438 ind->ack.hdr = u->u.hdr; 471 ind->rej.hdr = u->u.hdr; 500 ind->drop.hdr = u->u.hdr; [all...] |