Lines Matching defs:hdr
86 const struct rndis_comp_hdr *hdr);
88 const struct rndis_comp_hdr *hdr, const void **buf,
91 const struct rndis_comp_hdr *hdr);
463 struct rndis_comp_hdr *hdr;
473 hdr = (struct rndis_comp_hdr *)sc->sc_response_buf;
475 DPRINTF("type 0x%x len %u\n", le32toh(hdr->rm_type),
476 le32toh(hdr->rm_len));
478 if (le32toh(hdr->rm_len) > RNDIS_RESPONSE_LEN) {
480 le32toh(hdr->rm_len), RNDIS_RESPONSE_LEN);
483 return (hdr);
487 urndis_ctrl_handle(struct urndis_softc *sc, struct rndis_comp_hdr *hdr,
498 switch (le32toh(hdr->rm_type)) {
500 rval = urndis_ctrl_handle_init(sc, hdr);
504 rval = urndis_ctrl_handle_query(sc, hdr, buf, bufsz);
508 rval = urndis_ctrl_handle_reset(sc, hdr);
513 rval = le32toh(hdr->rm_status);
519 le32toh(hdr->rm_type));
528 const struct rndis_comp_hdr *hdr)
532 msg = (const struct rndis_init_comp *)hdr;
571 const struct rndis_comp_hdr *hdr, const void **buf, uint16_t *bufsz)
576 msg = (const struct rndis_query_comp *)hdr;
616 const struct rndis_comp_hdr *hdr)
621 msg = (const struct rndis_reset_comp *)hdr;
637 struct rndis_set_req hdr;
658 struct rndis_comp_hdr *hdr;
683 if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
687 rval = urndis_ctrl_handle(sc, hdr, NULL, NULL);
724 struct rndis_comp_hdr *hdr;
757 if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
761 rval = urndis_ctrl_handle(sc, hdr, rbuf, rbufsz);
770 struct rndis_comp_hdr *hdr;
803 if ((hdr = urndis_ctrl_recv(sc)) == NULL) {
807 rval = urndis_ctrl_handle(sc, hdr, NULL, NULL);