Lines Matching refs:comp

112 	const struct rndis_comp_hdr *comp;
123 if (dlen < sizeof(*comp)) {
127 comp = data;
129 KASSERT(comp->rm_rid > HN_RNDIS_RID_COMPAT_MAX,
130 ("invalid RNDIS rid 0x%08x\n", comp->rm_rid));
131 vmbus_xact_ctx_wakeup(sc->hn_xact, comp, dlen);
258 const struct rndis_comp_hdr *comp;
262 KASSERT(min_complen >= sizeof(*comp),
268 comp = hn_rndis_xact_exec1(sc, xact, reqlen, &hn_nvs_sendctx_none,
270 if (comp == NULL)
277 if (comp_len >= sizeof(*comp)) {
279 if_printf(sc->hn_ifp, "invalid RNDIS comp len %zu, "
280 "status 0x%08x\n", comp_len, comp->rm_status);
282 if_printf(sc->hn_ifp, "invalid RNDIS comp len %zu\n",
287 if (comp->rm_len < min_complen) {
288 if_printf(sc->hn_ifp, "invalid RNDIS comp msglen %u\n",
289 comp->rm_len);
292 if (comp->rm_type != comp_type) {
293 if_printf(sc->hn_ifp, "unexpected RNDIS comp 0x%08x, "
294 "expect 0x%08x\n", comp->rm_type, comp_type);
297 if (comp->rm_rid != rid) {
298 if_printf(sc->hn_ifp, "RNDIS comp rid mismatch %u, "
299 "expect %u\n", comp->rm_rid, rid);
304 return (comp);
321 const struct rndis_query_comp *comp;
357 comp_len = sizeof(*comp) + min_odlen;
358 comp = hn_rndis_xact_execute(sc, xact, rid, reqlen, &comp_len,
360 if (comp == NULL) {
366 if (comp->rm_status != RNDIS_STATUS_SUCCESS) {
368 "status 0x%08x\n", oid, comp->rm_status);
372 if (comp->rm_infobuflen == 0 || comp->rm_infobufoffset == 0) {
383 /* ofs is the offset from the beginning of comp. */
384 ofs = RNDIS_QUERY_COMP_INFOBUFOFFSET_ABS(comp->rm_infobufoffset);
385 if (ofs < sizeof(*comp) || ofs + comp->rm_infobuflen > comp_len) {
386 if_printf(sc->hn_ifp, "RNDIS query invalid comp ib off/len, "
387 "%u/%u\n", comp->rm_infobufoffset, comp->rm_infobuflen);
395 if (comp->rm_infobuflen < odlen)
396 odlen = comp->rm_infobuflen;
397 memcpy(odata, ((const uint8_t *)comp) + ofs, odlen);
533 const struct rndis_set_comp *comp;
558 comp_len = sizeof(*comp);
559 comp = hn_rndis_xact_execute(sc, xact, rid, reqlen, &comp_len,
561 if (comp == NULL) {
567 if (comp->rm_status != RNDIS_STATUS_SUCCESS) {
569 "status 0x%08x\n", oid, comp->rm_status);
851 const struct rndis_init_comp *comp;
872 comp = hn_rndis_xact_execute(sc, xact, rid, sizeof(*req), &comp_len,
874 if (comp == NULL) {
880 if (comp->rm_status != RNDIS_STATUS_SUCCESS) {
882 comp->rm_status);
886 sc->hn_rndis_agg_size = comp->rm_pktmaxsz;
887 sc->hn_rndis_agg_pkts = comp->rm_pktmaxcnt;
888 sc->hn_rndis_agg_align = 1U << comp->rm_align;
905 comp->rm_ver_major, comp->rm_ver_minor,