Searched refs:hdr (Results 226 - 250 of 700) sorted by relevance

1234567891011>>

/openbsd-current/usr.sbin/smtpd/
H A Dsmtp.c63 switch (imsg->hdr.type) {
83 imsg->data, imsg->hdr.len - sizeof imsg->hdr);
87 m_compose(p, IMSG_CTL_SMTP_SESSION, imsg->hdr.peerid, 0,
104 fatalx("smtp_imsg: unexpected %s imsg", imsg_to_str(imsg->hdr.type));
H A Dscheduler.c62 switch (imsg->hdr.type) {
304 m_compose(p, IMSG_CTL_LIST_MESSAGES, imsg->hdr.peerid, 0, -1,
313 imsg->hdr.peerid, 0, -1);
320 imsg->hdr.peerid, 0, -1, NULL, 0);
333 m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
353 m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
367 m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
381 m_compose(p, r ? IMSG_CTL_OK : IMSG_CTL_FAIL, imsg->hdr.peerid,
387 imsg_to_str(imsg->hdr.type));
/openbsd-current/usr.sbin/ospf6d/
H A Dospfe.c279 switch (imsg.hdr.type) {
281 if (imsg.hdr.len != IMSG_HEADER_SIZE +
329 if (imsg.hdr.len != IMSG_HEADER_SIZE +
349 if (imsg.hdr.len != IMSG_HEADER_SIZE +
419 imsg.hdr.type);
470 switch (imsg.hdr.type) {
472 nbr = nbr_find_peerid(imsg.hdr.peerid);
482 nbr = nbr_find_peerid(imsg.hdr.peerid);
495 nbr = nbr_find_peerid(imsg.hdr.peerid);
507 nbr = nbr_find_peerid(imsg.hdr
[all...]
/openbsd-current/sbin/dhcp6leased/
H A Dengine.c298 switch (imsg.hdr.type) {
358 imsg.hdr.type);
405 switch (imsg.hdr.type) {
546 imsg.hdr.type);
585 switch (imsg->hdr.type) {
588 send_interface_info(iface, imsg->hdr.pid);
591 imsg->hdr.pid, NULL, 0);
709 struct dhcp_hdr hdr; local
749 memcpy(&hdr, p, sizeof(struct dhcp_hdr));
755 dhcp_message_type2str(hdr
[all...]
/openbsd-current/sys/dev/ata/
H A Datascsi.c726 struct scsi_vpd_hdr hdr; member in struct:__anon7
738 pg.hdr.device = T_DIRECT;
739 pg.hdr.page_code = SI_PG_SUPPORTED;
740 _lto2b(sizeof(pg.list) - fat, pg.hdr.page_length);
764 pg.hdr.device = T_DIRECT;
765 pg.hdr.page_code = SI_PG_SERIAL;
766 _lto2b(sizeof(ap->ap_identify.serial), pg.hdr.page_length);
781 struct scsi_vpd_hdr hdr; member in struct:__anon8
816 pg.hdr.device = T_DIRECT;
817 pg.hdr
[all...]
/openbsd-current/gnu/usr.bin/binutils/bfd/
H A Dsrec.c499 char hdr[3]; local
508 if (bfd_bread (hdr, (bfd_size_type) 3, abfd) != 3)
511 if (! ISHEX (hdr[1]) || ! ISHEX (hdr[2]))
513 if (! ISHEX (hdr[1]))
514 c = hdr[1];
516 c = hdr[2];
521 bytes = HEX (hdr + 1);
540 switch (hdr[0])
729 bfd_byte hdr[ local
[all...]
/openbsd-current/gnu/usr.bin/binutils-2.17/bfd/
H A Dsrec.c450 char hdr[3]; local
459 if (bfd_bread (hdr, (bfd_size_type) 3, abfd) != 3)
462 if (! ISHEX (hdr[1]) || ! ISHEX (hdr[2]))
464 if (! ISHEX (hdr[1]))
465 c = hdr[1];
467 c = hdr[2];
472 bytes = HEX (hdr + 1);
491 switch (hdr[0])
674 bfd_byte hdr[ local
[all...]
H A Delf32-sh64.c174 const Elf_Internal_Shdr *hdr)
176 if (hdr->bfd_section == NULL)
179 if (strcmp (hdr->bfd_section->name, SH64_CRANGES_SECTION_NAME) == 0)
262 sh64_backend_section_from_shdr (bfd *abfd, Elf_Internal_Shdr *hdr, argument
270 switch (hdr->sh_type)
288 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
292 && ! bfd_set_section_flags (abfd, hdr->bfd_section,
294 hdr->bfd_section)
173 sh64_elf_section_flags(flagword *flags, const Elf_Internal_Shdr *hdr) argument
/openbsd-current/usr.sbin/ldpctl/
H A Dldpctl.c333 switch (imsg->hdr.type) {
367 switch (imsg->hdr.type) {
405 switch (imsg->hdr.type) {
441 switch (imsg->hdr.type) {
483 switch (imsg->hdr.type) {
485 if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
554 switch (imsg->hdr.type) {
586 switch (imsg->hdr.type) {
609 switch (imsg->hdr.type) {
/openbsd-current/sbin/iked/
H A Dikev2_pld.c116 ikev2_pld_parse(struct iked *env, struct ike_header *hdr, argument
122 print_spi(betoh64(hdr->ike_ispi), 8),
123 print_spi(betoh64(hdr->ike_rspi), 8),
124 print_map(hdr->ike_nextpayload, ikev2_payload_map),
125 hdr->ike_version,
126 print_map(hdr->ike_exchange, ikev2_exchange_map),
127 hdr->ike_flags,
128 betoh32(hdr->ike_msgid),
129 betoh32(hdr->ike_length),
132 if (ibuf_size(msg->msg_data) < betoh32(hdr
2055 ikev2_validate_eap(struct iked_message *msg, size_t offset, size_t left, struct eap_header *hdr) argument
2074 struct eap_header hdr; local
2115 ikev2_pld_parse_quick(struct iked *env, struct ike_header *hdr, struct iked_message *msg, size_t offset) argument
[all...]
/openbsd-current/sys/dev/pv/
H A Dviogpu.c366 struct virtio_gpu_ctrl_hdr *hdr = local
382 hdr->flags |= VIRTIO_GPU_FLAG_FENCE;
383 hdr->fence_id = ++sc->sc_fence_id;
424 struct virtio_gpu_ctrl_hdr hdr = { 0 }; local
427 hdr.type = VIRTIO_GPU_CMD_GET_DISPLAY_INFO;
429 viogpu_send_cmd(sc, &hdr, sizeof(hdr), &info, sizeof(info));
431 if (info.hdr.type != VIRTIO_GPU_RESP_OK_DISPLAY_INFO) {
455 res.hdr.type = VIRTIO_GPU_CMD_RESOURCE_CREATE_2D;
479 ss.hdr
501 struct virtio_gpu_ctrl_hdr hdr; member in struct:virtio_gpu_resource_attach_backing_entries
[all...]
/openbsd-current/sys/dev/pci/drm/i915/gt/uc/
H A Dintel_guc_capture.c843 struct guc_state_capture_header_t *hdr)
851 if (guc_capture_data_extracted(buf, fullsize, (void *)hdr))
854 read += guc_capture_log_remove_dw(guc, buf, &hdr->owner);
855 read += guc_capture_log_remove_dw(guc, buf, &hdr->info);
856 read += guc_capture_log_remove_dw(guc, buf, &hdr->lrca);
857 read += guc_capture_log_remove_dw(guc, buf, &hdr->guc_id);
858 read += guc_capture_log_remove_dw(guc, buf, &hdr->num_mmios);
1105 struct guc_state_capture_header_t hdr = {0}; local
1183 if (guc_capture_log_get_data_hdr(guc, buf, &hdr)) {
1188 datatype = FIELD_GET(CAP_HDR_CAPTURE_TYPE, hdr
842 guc_capture_log_get_data_hdr(struct intel_guc *guc, struct __guc_capture_bufstate *buf, struct guc_state_capture_header_t *hdr) argument
[all...]
/openbsd-current/usr.sbin/ripctl/
H A Dripctl.c315 switch (imsg->hdr.type) {
345 switch (imsg->hdr.type) {
374 switch (imsg->hdr.type) {
410 switch (imsg->hdr.type) {
412 if (imsg->hdr.len < IMSG_HEADER_SIZE + sizeof(struct kroute))
467 switch (imsg->hdr.type) {
/openbsd-current/sys/arch/alpha/alpha/
H A Ddec_2100_a50.c284 mc_hdr_avanti *hdr; local
296 hdr = (mc_hdr_avanti *) logout;
297 ptr = (mc_uc_avanti *) (logout + sizeof (*hdr));
300 type, hdr->mcheck_code);
377 switch(hdr->mcheck_code) {
507 switch(hdr->mcheck_code) {
/openbsd-current/lib/libpcap/
H A Dpcap.c90 struct pcap_pkthdr *hdr; member in struct:singleton
99 *sp->hdr = *h;
108 s.hdr = h;
115 struct pcap_pkthdr *hdr; member in struct:pkt_for_fakecallback
125 *sp->hdr = *h;
135 s.hdr = &p->pcap_header;
/openbsd-current/usr.sbin/lpd/
H A Dresolver.c141 reqid = imsg->hdr.peerid;
143 switch (imsg->hdr.type) {
215 fatalx("%s: %s", __func__, log_fmt_imsgtype(imsg->hdr.type));
228 key.id = imsg->hdr.peerid;
231 fatalx("%s: unknown request %08x", __func__, imsg->hdr.peerid);
233 switch (imsg->hdr.type) {
/openbsd-current/usr.sbin/sasyncd/
H A Dpfkey.c317 struct sadb_msg hdr, *msg; local
322 if (recv(fd, &hdr, sizeof hdr, MSG_PEEK) != sizeof hdr) {
326 datalen = hdr.sadb_msg_len * CHUNK;
327 data = reallocarray(NULL, hdr.sadb_msg_len, CHUNK);
/openbsd-current/usr.sbin/dvmrpd/
H A Ddvmrpd.c339 switch (imsg.hdr.type) {
357 "imsg %d", imsg.hdr.type);
401 switch (imsg.hdr.type) {
403 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
411 if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(mfc))
420 imsg.hdr.type);
/openbsd-current/sys/dev/ic/
H A Dqlw.c565 struct qlw_iocb_hdr *hdr; local
574 hdr = QLW_DMA_KVA(sc->sc_responses) + (id * QLW_QUEUE_ENTRY_SIZE);
580 qlw_get_header(sc, hdr, &entry_type, &flags);
583 status = (struct qlw_iocb_status *)hdr;
595 qlw_dump_iocb(sc, hdr, QLW_D_INTR);
695 qlw_dump_iocb(sc, hdr, QLW_D_INTR);
704 qlw_dump_iocb(sc, hdr, QLW_D_INTR);
1279 qlw_get_header(struct qlw_softc *sc, struct qlw_iocb_hdr *hdr, argument
1283 *type = hdr->entry_count;
1284 *flags = hdr
1292 qlw_put_header(struct qlw_softc *sc, struct qlw_iocb_hdr *hdr, int type, int count) argument
[all...]
H A Dmpi.c333 panic("%s: can't get IOC page 2 hdr",
403 struct mpi_cfg_hdr hdr; local
407 &hdr) != 0)
410 if (mpi_cfg_page(sc, 0x0, &hdr, 1, &port, sizeof(port)) != 0)
432 if (mpi_cfg_page(sc, 0x0, &hdr, 0, &port, sizeof(port)) != 0) {
443 struct mpi_cfg_hdr hdr; local
451 1, i, &hdr) != 0)
454 if (mpi_cfg_page(sc, i, &hdr, 1, &page, sizeof(page)) != 0)
469 if (mpi_cfg_page(sc, i, &hdr, 0, &page, sizeof(page)) != 0)
477 struct mpi_cfg_hdr hdr; local
862 struct mpi_cfg_hdr hdr; local
1608 struct mpi_cfg_hdr hdr; local
2211 struct mpi_cfg_hdr hdr; local
2466 struct mpi_cfg_hdr hdr; local
2673 struct mpi_cfg_hdr hdr; local
2708 struct mpi_cfg_hdr hdr; local
2764 struct mpi_cfg_hdr *hdr = p; local
2857 struct mpi_cfg_hdr *hdr = p; local
2989 struct mpi_cfg_hdr hdr; local
3087 struct mpi_cfg_hdr hdr; local
3313 struct mpi_cfg_hdr hdr; local
[all...]
/openbsd-current/sys/netinet/
H A Dip_ipcomp.c328 struct enchdr hdr; local
330 memset(&hdr, 0, sizeof(hdr));
332 hdr.af = tdb->tdb_dst.sa.sa_family;
333 hdr.spi = tdb->tdb_spi;
335 bpf_mtap_hdr(encif->if_bpf, (char *)&hdr,
/openbsd-current/sys/dev/pci/drm/display/
H A Ddrm_dp_mst_topology.c60 struct drm_dp_sideband_msg_hdr hdr; member in struct:drm_dp_pending_up_req
264 static inline u8 drm_dp_calc_sb_hdr_size(struct drm_dp_sideband_msg_hdr *hdr) argument
268 size += (hdr->lct / 2);
272 static void drm_dp_encode_sideband_msg_hdr(struct drm_dp_sideband_msg_hdr *hdr, argument
279 buf[idx++] = ((hdr->lct & 0xf) << 4) | (hdr->lcr & 0xf);
280 for (i = 0; i < (hdr->lct / 2); i++)
281 buf[idx++] = hdr->rad[i];
282 buf[idx++] = (hdr->broadcast << 7) | (hdr
292 drm_dp_decode_sideband_msg_hdr(const struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_sideband_msg_hdr *hdr, u8 *buf, int buflen, u8 *hdrlen) argument
742 drm_dp_sideband_msg_set_header(struct drm_dp_sideband_msg_rx *msg, struct drm_dp_sideband_msg_hdr *hdr, u8 hdrlen) argument
2762 set_hdr_from_dst_qlock(struct drm_dp_sideband_msg_hdr *hdr, struct drm_dp_sideband_msg_tx *txmsg) argument
2796 struct drm_dp_sideband_msg_hdr hdr; local
3803 struct drm_dp_sideband_msg_hdr hdr; local
3893 struct drm_dp_sideband_msg_hdr *hdr; local
3940 struct drm_dp_sideband_msg_hdr *hdr = &up_req->hdr; local
[all...]
/openbsd-current/usr.sbin/npppd/l2tp/
H A Dl2tp_call.c435 struct l2tp_header *hdr; local
438 hdr = (struct l2tp_header *)bytebuffer_pointer(buffer);
439 memset(hdr, 0, sizeof(*hdr) - 4); /* Nr, NS are option */
441 hdr->t = 0;
442 hdr->ver = L2TP_HEADER_VERSION_RFC2661;
443 hdr->l = 1;
444 hdr->length = htons(bytebuffer_remaining(buffer));
445 hdr->tunnel_id = htons(_this->ctrl->peer_tunnel_id);
446 hdr
[all...]
/openbsd-current/sys/dev/pci/
H A Dmpii.c915 struct mpii_cfg_hdr hdr; local
922 1, address, MPII_PG_POLL, &hdr) != 0)
927 pagelen = min(sizeof(vpg), hdr.page_length * 4);
929 if (mpii_req_cfg_page(sc, address, MPII_PG_POLL, &hdr, 1,
1687 struct mpii_cfg_hdr hdr; local
1690 hdr.page_version = 0;
1691 hdr.page_length = sizeof(ipg) / 4;
1692 hdr.page_number = 1;
1693 hdr.page_type = MPII_CONFIG_REQ_PAGE_TYPE_IOC;
1695 if (mpii_req_cfg_page(sc, 0, MPII_PG_POLL, &hdr,
2151 struct mpii_cfg_hdr hdr; local
2194 struct mpii_cfg_hdr hdr; local
2236 struct mpii_cfg_hdr *hdr = p; local
2332 struct mpii_cfg_hdr *hdr = p; local
3252 struct mpii_cfg_hdr hdr; local
3381 struct mpii_cfg_hdr hdr; local
3485 struct mpii_cfg_hdr hdr; local
3610 struct mpii_cfg_hdr hdr; local
3711 struct mpii_cfg_hdr hdr; local
[all...]
/openbsd-current/regress/sys/kern/pledge/sendrecvfd/
H A Dsendrecvfd.c50 struct cmsghdr hdr; member in union:__anon8134
103 struct cmsghdr hdr; member in union:__anon8135

Completed in 256 milliseconds

1234567891011>>