Home
last modified time | relevance | path

Searched refs:pktbuf (Results 1 – 9 of 9) sorted by relevance

/openbmc/libmctp/tests/
H A Dtest_core.c39 struct pktbuf { struct
87 const struct pktbuf *pktbuf, size_t len) in receive_ptkbuf() argument
100 memcpy(rx_pkt->data, &pktbuf->hdr, sizeof(pktbuf->hdr)); in receive_ptkbuf()
101 memcpy(rx_pkt->data + sizeof(pktbuf->hdr), pktbuf->payload, alloc_size); in receive_ptkbuf()
109 uint8_t flags_seq_tag, struct pktbuf *pktbuf) in receive_one_fragment() argument
111 pktbuf->hdr.flags_seq_tag = flags_seq_tag; in receive_one_fragment()
112 pktbuf->payload = payload; in receive_one_fragment()
113 receive_ptkbuf(binding, pktbuf, fragment_size); in receive_one_fragment()
120 struct pktbuf *pktbuf) in receive_two_fragment_message() argument
128 pktbuf); in receive_two_fragment_message()
[all …]
H A Dtest_seq.c110 } pktbuf; in run_one_test() local
121 memset(&pktbuf, 0, sizeof(pktbuf)); in run_one_test()
122 pktbuf.hdr.dest = local_eid; in run_one_test()
123 pktbuf.hdr.src = remote_eid; in run_one_test()
124 pktbuf.hdr.flags_seq_tag = test->flags_seq_tags[i]; in run_one_test()
125 pktbuf.payload[0] = i; in run_one_test()
127 mctp_binding_test_rx_raw(ctx->binding, &pktbuf, sizeof(pktbuf)); in run_one_test()
H A Dtest_eid.c53 } pktbuf; in main() local
62 create_packet(&pktbuf.hdr, remote_eid, local_eid); in main()
64 mctp_binding_test_rx_raw(ctx->binding, &pktbuf, sizeof(pktbuf)); in main()
72 create_packet(&pktbuf.hdr, remote_eid, other_eid); in main()
74 mctp_binding_test_rx_raw(ctx->binding, &pktbuf, sizeof(pktbuf)); in main()
/openbmc/libmctp/utils/
H A Dmctp-capture.c58 uint8_t *pktbuf = NULL; in capture_binding() local
66 pktbuf = __mctp_alloc(size); in capture_binding()
67 if (!pktbuf) in capture_binding()
70 struct sll2_header *sll2 = (struct sll2_header *)pktbuf; in capture_binding()
82 memcpy(pktbuf + sizeof(struct sll2_header), mctp_pktbuf_hdr(pkt), in capture_binding()
88 pcap_dump((u_char *)dumper, &hdr, (const u_char *)pktbuf); in capture_binding()
89 __mctp_free(pktbuf); in capture_binding()
97 uint8_t *pktbuf = NULL; in capture_socket() local
105 pktbuf = __mctp_alloc(size); in capture_socket()
106 if (!pktbuf) in capture_socket()
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dbcdc.c258 struct sk_buff *pktbuf) in brcmf_proto_bcdc_hdrpush() argument
265 skb_push(pktbuf, BCDC_HEADER_LEN); in brcmf_proto_bcdc_hdrpush()
267 h = (struct brcmf_proto_bcdc_header *)(pktbuf->data); in brcmf_proto_bcdc_hdrpush()
270 if (pktbuf->ip_summed == CHECKSUM_PARTIAL) in brcmf_proto_bcdc_hdrpush()
273 h->priority = (pktbuf->priority & BCDC_PRIORITY_MASK); in brcmf_proto_bcdc_hdrpush()
277 trace_brcmf_bcdchdr(pktbuf->data); in brcmf_proto_bcdc_hdrpush()
282 struct sk_buff *pktbuf, struct brcmf_if **ifp) in brcmf_proto_bcdc_hdrpull() argument
290 if (pktbuf->len <= BCDC_HEADER_LEN) { in brcmf_proto_bcdc_hdrpull()
292 pktbuf->len, BCDC_HEADER_LEN); in brcmf_proto_bcdc_hdrpull()
296 trace_brcmf_bcdchdr(pktbuf->data); in brcmf_proto_bcdc_hdrpull()
[all …]
/openbmc/linux/drivers/net/arcnet/
H A Dcapmode.c48 char *pktbuf, *pkthdrbuf; in rx() local
75 pktbuf = (char *)pkt; in rx()
77 memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto)); in rx()
78 memcpy(pktbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto) + sizeof(int), in rx()
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/
H A Dmipi-csis.c677 struct csis_pktbuf *pktbuf = &state->pkt_buf; in s5pcsis_irq_handler() local
684 if ((status & S5PCSIS_INTSRC_NON_IMAGE_DATA) && pktbuf->data) { in s5pcsis_irq_handler()
692 memcpy(pktbuf->data, (u8 __force *)state->regs + offset, in s5pcsis_irq_handler()
693 pktbuf->len); in s5pcsis_irq_handler()
694 pktbuf->data = NULL; in s5pcsis_irq_handler()
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_main.c2589 void *pktbuf; in igc_clean_rx_irq() local
2611 pktbuf = page_address(rx_buffer->page) + rx_buffer->page_offset; in igc_clean_rx_irq()
2615 pktbuf); in igc_clean_rx_irq()
2623 xdp_prepare_buff(&ctx.xdp, pktbuf - igc_rx_offset(rx_ring), in igc_clean_rx_irq()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_main.c8924 void *pktbuf; in igb_clean_rx_irq() local
8944 pktbuf = page_address(rx_buffer->page) + rx_buffer->page_offset; in igb_clean_rx_irq()
8951 pktbuf, &timestamp); in igb_clean_rx_irq()
8959 unsigned char *hard_start = pktbuf - igb_rx_offset(rx_ring); in igb_clean_rx_irq()