Home
last modified time | relevance | path

Searched refs:mctp_pktbuf (Results 1 – 11 of 11) sorted by relevance

/openbmc/libmctp/
H A Dlibmctp.h53 struct mctp_pktbuf { struct
61 (MCTP_PACKET_SIZE(payload) + sizeof(struct mctp_pktbuf)) argument
62 #define PKTBUF_STORAGE_ALIGN __attribute((aligned(alignof(struct mctp_pktbuf))))
73 struct mctp_pktbuf *mctp_pktbuf_init(struct mctp_binding *binding,
77 struct mctp_pktbuf *mctp_pktbuf_alloc(struct mctp_binding *binding, size_t len);
78 void mctp_pktbuf_free(struct mctp_pktbuf *pkt);
79 struct mctp_hdr *mctp_pktbuf_hdr(struct mctp_pktbuf *pkt);
80 void *mctp_pktbuf_data(struct mctp_pktbuf *pkt);
81 size_t mctp_pktbuf_size(const struct mctp_pktbuf *pkt);
82 void *mctp_pktbuf_alloc_start(struct mctp_pktbuf *pkt, size_t size);
[all …]
H A Dcore.c39 struct mctp_pktbuf *mctp_pktbuf_alloc(struct mctp_binding *binding, size_t len) in mctp_pktbuf_alloc()
47 void *storage = __mctp_alloc(size + sizeof(struct mctp_pktbuf)); in mctp_pktbuf_alloc()
51 struct mctp_pktbuf *pkt = mctp_pktbuf_init(binding, storage); in mctp_pktbuf_alloc()
57 void mctp_pktbuf_free(struct mctp_pktbuf *pkt) in mctp_pktbuf_free()
66 struct mctp_pktbuf *mctp_pktbuf_init(struct mctp_binding *binding, in mctp_pktbuf_init()
69 assert((size_t)storage % alignof(struct mctp_pktbuf) == 0); in mctp_pktbuf_init()
73 struct mctp_pktbuf *buf = (struct mctp_pktbuf *)storage; in mctp_pktbuf_init()
83 struct mctp_hdr *mctp_pktbuf_hdr(struct mctp_pktbuf *pkt) in mctp_pktbuf_hdr()
88 void *mctp_pktbuf_data(struct mctp_pktbuf *pkt) in mctp_pktbuf_data()
93 size_t mctp_pktbuf_size(const struct mctp_pktbuf *pkt) in mctp_pktbuf_size()
[all …]
H A Dserial.c46 struct mctp_pktbuf *rx_pkt;
121 static size_t mctp_serial_pkt_escape(struct mctp_pktbuf *pkt, uint8_t *buf) in mctp_serial_pkt_escape()
147 struct mctp_pktbuf *pkt) in mctp_binding_serial_tx()
197 struct mctp_pktbuf *pkt = serial->rx_pkt; in mctp_serial_finish_packet()
213 struct mctp_pktbuf *pkt = serial->rx_pkt; in mctp_rx_consume_one()
H A Dastlpc.c117 void (*pktbuf_protect)(struct mctp_pktbuf *pkt);
118 bool (*pktbuf_validate)(struct mctp_pktbuf *pkt);
191 void astlpc_pktbuf_protect_v1(struct mctp_pktbuf *pkt) in astlpc_pktbuf_protect_v1()
196 bool astlpc_pktbuf_validate_v1(struct mctp_pktbuf *pkt) in astlpc_pktbuf_validate_v1()
216 void astlpc_pktbuf_protect_v3(struct mctp_pktbuf *pkt) in astlpc_pktbuf_protect_v3()
225 bool astlpc_pktbuf_validate_v3(struct mctp_pktbuf *pkt) in astlpc_pktbuf_validate_v3()
831 struct mctp_pktbuf *pkt) in mctp_binding_astlpc_tx()
1026 struct mctp_pktbuf *pkt; in mctp_astlpc_rx_start()
H A Di2c.c93 static int mctp_binding_i2c_tx(struct mctp_binding *b, struct mctp_pktbuf *pkt) in mctp_binding_i2c_tx()
226 struct mctp_pktbuf *pkt = in mctp_i2c_rx()
/openbmc/libmctp/utils/
H A Dmctp-capture.h35 void capture_binding(struct mctp_pktbuf *pkt, bool outgoing, void *user);
58 static inline void capture_binding(struct mctp_pktbuf *pkt __unused, in capture_binding()
H A Dmctp-capture.c53 void capture_binding(struct mctp_pktbuf *pkt, bool outgoing, void *user) in capture_binding()
/openbmc/libmctp/tests/
H A Dtest-utils.c22 static int mctp_binding_test_tx(struct mctp_binding *b, struct mctp_pktbuf *pkt) in mctp_binding_test_tx()
51 struct mctp_pktbuf *pkt; in mctp_binding_test_rx_raw()
H A Dtest_bridge.c31 struct mctp_pktbuf *pkt) in mctp_binding_bridge_tx()
46 struct mctp_pktbuf *pkt; in mctp_binding_bridge_rx()
H A Dtest_cmds.c50 struct mctp_pktbuf *pkt = mctp_pktbuf_alloc(b, len); in rcv_ctrl_msg()
H A Dtest_core.c90 struct mctp_pktbuf *rx_pkt; in receive_ptkbuf()