Home
last modified time | relevance | path

Searched refs:rx_pkt (Results 1 – 2 of 2) sorted by relevance

/libmctp-latest/
Dserial.c75 struct mctp_pktbuf *rx_pkt; member
189 struct mctp_pktbuf *pkt = serial->rx_pkt; in mctp_serial_finish_packet()
195 serial->rx_pkt = NULL; in mctp_serial_finish_packet()
201 serial->rx_pkt = mctp_pktbuf_alloc(&serial->binding, len); in mctp_serial_start_packet()
206 struct mctp_pktbuf *pkt = serial->rx_pkt; in mctp_rx_consume_one()
254 pkt = serial->rx_pkt; in mctp_rx_consume_one()
400 serial->rx_pkt = NULL; in mctp_serial_init()
/libmctp-latest/tests/
Dtest_core.c90 struct mctp_pktbuf *rx_pkt; in receive_ptkbuf() local
92 rx_pkt = __mctp_alloc(sizeof(*rx_pkt) + MCTP_PACKET_SIZE(alloc_size)); in receive_ptkbuf()
93 assert(rx_pkt); in receive_ptkbuf()
96 rx_pkt->size = MCTP_PACKET_SIZE(len); in receive_ptkbuf()
97 rx_pkt->start = 0; in receive_ptkbuf()
98 rx_pkt->end = MCTP_PACKET_SIZE(len); in receive_ptkbuf()
99 rx_pkt->mctp_hdr_off = 0; in receive_ptkbuf()
100 rx_pkt->next = NULL; in receive_ptkbuf()
101 memcpy(rx_pkt->data, &pktbuf->hdr, sizeof(pktbuf->hdr)); in receive_ptkbuf()
102 memcpy(rx_pkt->data + sizeof(pktbuf->hdr), pktbuf->payload, alloc_size); in receive_ptkbuf()
[all …]