Home
last modified time | relevance | path

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

/libmctp-latest/utils/
Dmctp-capture.c61 size_t size; in capture_binding() local
67 size = sizeof(struct sll2_header) + mctp_pktbuf_size(pkt); in capture_binding()
68 pktbuf = __mctp_alloc(size); in capture_binding()
87 hdr.caplen = size; in capture_binding()
88 hdr.len = size; in capture_binding()
100 size_t size; in capture_socket() local
106 size = sizeof(struct sll2_header) + sizeof(struct mctp_hdr) + len; in capture_socket()
107 pktbuf = __mctp_alloc(size); in capture_socket()
140 hdr.caplen = size; in capture_socket()
141 hdr.len = size; in capture_socket()
/libmctp-latest/
Dalloc.c25 void *__mctp_alloc(size_t size) in __mctp_alloc() argument
28 return alloc_ops.m_alloc(size); in __mctp_alloc()
30 return alloc_ops.m_realloc(NULL, size); in __mctp_alloc()
45 void *__mctp_realloc(void *ptr, size_t size) in __mctp_realloc() argument
48 return alloc_ops.m_realloc(ptr, size); in __mctp_realloc()
Dastlpc.c104 uint32_t size; member
407 layout->rx.size = be32toh(hdr.layout.tx_size); in mctp_astlpc_layout_read()
409 layout->tx.size = be32toh(hdr.layout.rx_size); in mctp_astlpc_layout_read()
414 layout->rx.size = be32toh(hdr.layout.rx_size); in mctp_astlpc_layout_read()
416 layout->tx.size = be32toh(hdr.layout.tx_size); in mctp_astlpc_layout_read()
435 hdr.layout.rx_size = htobe32(layout->tx.size); in mctp_astlpc_layout_write()
437 hdr.layout.tx_size = htobe32(layout->rx.size); in mctp_astlpc_layout_write()
451 rx_size_be = htobe32(layout->rx.size); in mctp_astlpc_layout_write()
464 if (buf->offset + buf->size < buf->offset) { in mctp_astlpc_buffer_validate()
468 name, buf->offset, buf->size); in mctp_astlpc_buffer_validate()
[all …]
Dlibmctp-alloc.h8 void *__mctp_alloc(size_t size);
10 void *__mctp_realloc(void *ptr, size_t size);
Dcore.c99 size_t size; in mctp_pktbuf_alloc() local
101 size = binding->pkt_size + binding->pkt_header + binding->pkt_trailer; in mctp_pktbuf_alloc()
102 if (len > size) { in mctp_pktbuf_alloc()
107 buf = __mctp_alloc(sizeof(*buf) + size); in mctp_pktbuf_alloc()
112 buf->size = size; in mctp_pktbuf_alloc()
141 void *mctp_pktbuf_alloc_start(struct mctp_pktbuf *pkt, size_t size) in mctp_pktbuf_alloc_start() argument
143 assert(size <= pkt->start); in mctp_pktbuf_alloc_start()
144 pkt->start -= size; in mctp_pktbuf_alloc_start()
148 void *mctp_pktbuf_alloc_end(struct mctp_pktbuf *pkt, size_t size) in mctp_pktbuf_alloc_end() argument
152 assert(size <= (pkt->size - pkt->end)); in mctp_pktbuf_alloc_end()
[all …]
Dlibmctp.h53 size_t start, end, size; member
66 void *mctp_pktbuf_alloc_start(struct mctp_pktbuf *pkt, size_t size);
67 void *mctp_pktbuf_alloc_end(struct mctp_pktbuf *pkt, size_t size);
/libmctp-latest/docs/bindings/
Dvendor-ibm-astlpc.md28 Defined by the MCTP base specification as the smallest maximum packet size all
165 The control descriptor contains a version, and offset and size data for the
398 | 3 | | ✓ | ✓ | The host derives and writes to `rx_size` the packet size associated with…
474 The BT interface allows for block-at-time transfers. However, the BT buffer size
476 the MCTP Base Specification (DSP0236) that requires a 64-byte payload size as
/libmctp-latest/tests/
Dtest_astlpc.c1061 assert(host.astlpc->layout.rx.size == in astlpc_test_negotiate_mtu_low_high()
1084 assert(host.astlpc->layout.rx.size == in astlpc_test_negotiate_mtu_low_high()
Dtest_core.c96 rx_pkt->size = MCTP_PACKET_SIZE(len); in receive_ptkbuf()