Searched refs:max_msg (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/dev/firmware/arm/ |
H A D | scmi_virtio.c | 83 scmi_virtio_p2a_pool_init(device_t dev, unsigned int max_msg) in scmi_virtio_p2a_pool_init() argument 93 pool = mallocarray(max_msg, max_msg_sz, M_DEVBUF, M_ZERO | M_WAITOK); in scmi_virtio_p2a_pool_init() 95 for (i = 0, buf = pool; i < max_msg; i++, buf += max_msg_sz) { in scmi_virtio_p2a_pool_init() 102 "Fed %d initial P2A buffers to platform.\n", max_msg); in scmi_virtio_p2a_pool_init()
|
H A D | scmi.c | 219 CTLFLAG_RD, &sc->trs_desc.max_msg, 0, "SCMI Max number of inflight messages"); in scmi_attach() 266 scmi_reqs_pool_allocate(device_t dev, const int max_msg, const int max_payld_sz) in scmi_reqs_pool_allocate() argument 274 for (int i = 0; i < max_msg; i++) { in scmi_reqs_pool_allocate() 308 if (OF_getencprop(node, "arm,max-msg", &td->max_msg, sizeof(td->max_msg)) == -1) in scmi_transport_configure() 309 td->max_msg = SCMI_DEF_MAX_MSG; in scmi_transport_configure() 330 trs->inflight_ht = hashinit(td->max_msg, M_DEVBUF, &trs->inflight_mask); in scmi_transport_init() 333 scmi_reqs_pool_allocate(sc->dev, td->max_msg, td->max_payld_sz); in scmi_transport_init() 340 scmi_reqs_pool_allocate(sc->dev, td->max_msg, td->max_payld_sz); in scmi_transport_init()
|
H A D | scmi.h | 45 #define SCMI_MAX_MSG(sc) ((sc)->trs_desc.max_msg) 56 unsigned int max_msg; member
|