Searched refs:mctp_hdr (Results 1 – 16 of 16) sorted by relevance
/openbmc/linux/net/mctp/ |
H A D | route.c | 44 struct mctp_hdr *mh; in mctp_lookup_bind() 51 mh = mctp_hdr(skb); in mctp_lookup_bind() 101 struct mctp_hdr *mh; in mctp_lookup_key() 104 mh = mctp_hdr(skb); in mctp_lookup_key() 289 struct mctp_hdr *hdr = mctp_hdr(skb); in mctp_frag_queue() 329 struct mctp_hdr *mh; in mctp_route_input() 348 if (skb->len < sizeof(struct mctp_hdr) + 1) in mctp_route_input() 352 mh = mctp_hdr(skb); in mctp_route_input() 353 skb_pull(skb, sizeof(struct mctp_hdr)); in mctp_route_input() 514 struct mctp_hdr *hdr = mctp_hdr(skb); in mctp_route_output() [all …]
|
H A D | af_mctp.c | 143 hlen = LL_RESERVED_SPACE(dev) + sizeof(struct mctp_hdr); in mctp_sendmsg() 157 hlen = LL_RESERVED_SPACE(rt->dev->dev) + sizeof(struct mctp_hdr); in mctp_sendmsg() 246 struct mctp_hdr *hdr = mctp_hdr(skb); in mctp_recvmsg()
|
/openbmc/libmctp/ |
H A D | i2c.c | 96 struct mctp_hdr *hdr = mctp_pktbuf_hdr(pkt); in mctp_binding_i2c_tx() 236 if (mctp_pktbuf_size(pkt) < sizeof(struct mctp_hdr)) { in mctp_i2c_rx() 240 struct mctp_hdr *mctp_hdr = mctp_pktbuf_hdr(pkt); in mctp_i2c_rx() local 241 if (mctp_hdr->flags_seq_tag & MCTP_HDR_FLAG_TO) { in mctp_i2c_rx() 243 mctp_i2c_neigh_add(i2c, mctp_hdr->src, src); in mctp_i2c_rx()
|
H A D | libmctp.h | 22 struct mctp_hdr { struct 47 #define MCTP_PACKET_SIZE(unit) ((unit) + sizeof(struct mctp_hdr)) argument 48 #define MCTP_BODY_SIZE(unit) ((unit) - sizeof(struct mctp_hdr)) 75 struct mctp_hdr *mctp_pktbuf_hdr(struct mctp_pktbuf *pkt);
|
H A D | core.c | 80 struct mctp_hdr *mctp_pktbuf_hdr(struct mctp_pktbuf *pkt) in mctp_pktbuf_hdr() 82 return (struct mctp_hdr *)(pkt->data + pkt->mctp_hdr_off); in mctp_pktbuf_hdr() 87 return pkt->data + pkt->mctp_hdr_off + sizeof(struct mctp_hdr); in mctp_pktbuf_data() 216 len = mctp_pktbuf_size(pkt) - sizeof(struct mctp_hdr); in mctp_msg_ctx_add_pkt() 553 struct mctp_hdr *hdr; in mctp_bus_rx() 562 if (mctp_pktbuf_size(pkt) < sizeof(struct mctp_hdr)) in mctp_bus_rx() 592 len = pkt->end - pkt->mctp_hdr_off - sizeof(struct mctp_hdr); in mctp_bus_rx() 594 sizeof(struct mctp_hdr), in mctp_bus_rx() 737 struct mctp_hdr *hdr = mctp_pktbuf_hdr(pkt); in mctp_next_tx_pkt()
|
H A D | serial.c | 256 c < sizeof(struct mctp_hdr)) { in mctp_rx_consume_one()
|
H A D | astlpc.c | 835 struct mctp_hdr *hdr; in mctp_binding_astlpc_tx() 1027 struct mctp_hdr *hdr; in mctp_astlpc_rx_start()
|
/openbmc/libmctp/utils/ |
H A D | mctp-capture.c | 104 size = sizeof(struct sll2_header) + sizeof(struct mctp_hdr) + len; in capture_socket() 122 struct mctp_hdr *mctp = in capture_socket() 123 (struct mctp_hdr *)(pktbuf + sizeof(struct sll2_header)); in capture_socket() 135 memcpy(pktbuf + sizeof(struct sll2_header) + sizeof(struct mctp_hdr), in capture_socket()
|
/openbmc/linux/include/net/ |
H A D | mctp.h | 19 struct mctp_hdr { struct 61 static inline struct mctp_hdr *mctp_hdr(struct sk_buff *skb) in mctp_hdr() function 63 return (struct mctp_hdr *)skb_network_header(skb); in mctp_hdr()
|
/openbmc/libmctp/tests/ |
H A D | test_bridge.c | 37 assert(mctp_pktbuf_size(pkt) == sizeof(struct mctp_hdr) + 1); in mctp_binding_bridge_tx() 47 struct mctp_hdr *hdr; in mctp_binding_bridge_rx() 50 pkt = mctp_pktbuf_alloc(&binding->binding, sizeof(struct mctp_hdr) + 1); in mctp_binding_bridge_rx()
|
H A D | test_eid.c | 36 static void create_packet(struct mctp_hdr *pkt, mctp_eid_t src, mctp_eid_t dest) in create_packet() 51 struct mctp_hdr hdr; in main()
|
H A D | test_cmds.c | 22 struct mctp_hdr hdr;
|
H A D | test_seq.c | 108 struct mctp_hdr hdr; in run_one_test()
|
H A D | test_core.c | 40 struct mctp_hdr hdr; 388 SIZE_MAX - sizeof(struct mctp_hdr), in mctp_core_test_drop_large_fragments()
|
/openbmc/linux/net/mctp/test/ |
H A D | route-test.c | 82 static struct sk_buff *mctp_test_create_skb(const struct mctp_hdr *hdr, in mctp_test_create_skb() 103 static struct sk_buff *__mctp_test_create_skb_data(const struct mctp_hdr *hdr, in __mctp_test_create_skb_data() 135 struct mctp_hdr hdr; in mctp_test_fragment() 161 struct mctp_hdr *hdr2; in mctp_test_fragment() 174 hdr2 = mctp_hdr(skb2); in mctp_test_fragment() 230 struct mctp_hdr hdr; 326 struct mctp_hdr hdr; 396 struct mctp_hdr hdrs[4]; 531 struct mctp_hdr hdr;
|
/openbmc/linux/drivers/net/mctp/ |
H A D | mctp-i2c.c | 544 struct mctp_hdr *mhdr; in mctp_i2c_header_create() 559 mhdr = mctp_hdr(skb); in mctp_i2c_header_create()
|