• Home
  • Raw
  • Download

Lines Matching refs:pdu

327 	app->pdu = skb;  in mrp_pdu_init()
335 if (skb_tailroom(app->pdu) < sizeof(*endmark)) in mrp_pdu_append_end_mark()
337 endmark = __skb_put(app->pdu, sizeof(*endmark)); in mrp_pdu_append_end_mark()
344 if (!app->pdu) in mrp_pdu_queue()
347 if (mrp_cb(app->pdu)->mh) in mrp_pdu_queue()
351 dev_hard_header(app->pdu, app->dev, ntohs(app->app->pkttype.type), in mrp_pdu_queue()
353 app->pdu->len); in mrp_pdu_queue()
355 skb_queue_tail(&app->queue, app->pdu); in mrp_pdu_queue()
356 app->pdu = NULL; in mrp_pdu_queue()
372 if (mrp_cb(app->pdu)->mh) { in mrp_pdu_append_msg_hdr()
375 mrp_cb(app->pdu)->mh = NULL; in mrp_pdu_append_msg_hdr()
376 mrp_cb(app->pdu)->vah = NULL; in mrp_pdu_append_msg_hdr()
379 if (skb_tailroom(app->pdu) < sizeof(*mh)) in mrp_pdu_append_msg_hdr()
381 mh = __skb_put(app->pdu, sizeof(*mh)); in mrp_pdu_append_msg_hdr()
384 mrp_cb(app->pdu)->mh = mh; in mrp_pdu_append_msg_hdr()
393 if (skb_tailroom(app->pdu) < sizeof(*vah) + attrlen) in mrp_pdu_append_vecattr_hdr()
395 vah = __skb_put(app->pdu, sizeof(*vah) + attrlen); in mrp_pdu_append_vecattr_hdr()
398 mrp_cb(app->pdu)->vah = vah; in mrp_pdu_append_vecattr_hdr()
399 memcpy(mrp_cb(app->pdu)->attrvalue, firstattrvalue, attrlen); in mrp_pdu_append_vecattr_hdr()
411 if (!app->pdu) { in mrp_pdu_append_vecattr_event()
421 if (!mrp_cb(app->pdu)->mh || in mrp_pdu_append_vecattr_event()
422 mrp_cb(app->pdu)->mh->attrtype != attr->type || in mrp_pdu_append_vecattr_event()
423 mrp_cb(app->pdu)->mh->attrlen != attr->len) { in mrp_pdu_append_vecattr_event()
432 if (!mrp_cb(app->pdu)->vah || in mrp_pdu_append_vecattr_event()
433 memcmp(mrp_cb(app->pdu)->attrvalue, attr->value, attr->len)) { in mrp_pdu_append_vecattr_event()
438 len = be16_to_cpu(get_unaligned(&mrp_cb(app->pdu)->vah->lenflags)); in mrp_pdu_append_vecattr_event()
445 if (skb_tailroom(app->pdu) < sizeof(u8)) in mrp_pdu_append_vecattr_event()
447 vaevents = __skb_put(app->pdu, sizeof(u8)); in mrp_pdu_append_vecattr_event()
449 vaevents = (u8 *)(skb_tail_pointer(app->pdu) - sizeof(u8)); in mrp_pdu_append_vecattr_event()
470 put_unaligned(cpu_to_be16(++len), &mrp_cb(app->pdu)->vah->lenflags); in mrp_pdu_append_vecattr_event()
471 mrp_attrvalue_inc(mrp_cb(app->pdu)->attrvalue, attr->len); in mrp_pdu_append_vecattr_event()