MCX_LOG_SQ_SIZE
npages = howmany((1 << MCX_LOG_SQ_SIZE) * sizeof(struct mcx_sq_entry),
mbin->sq_wq.wq_log_size = MCX_LOG_SQ_SIZE;
slot = betoh16(cqe->cq_wqe_count) % (1 << MCX_LOG_SQ_SIZE);
tx->tx_slots = mallocarray(sizeof(*ms), (1 << MCX_LOG_SQ_SIZE),
for (i = 0; i < (1 << MCX_LOG_SQ_SIZE); i++) {
mcx_free_slots(sc, tx->tx_slots, i, (1 << MCX_LOG_SQ_SIZE));
(1 << MCX_LOG_SQ_SIZE), (1 << MCX_LOG_SQ_SIZE));
idx = tx->tx_prod % (1 << MCX_LOG_SQ_SIZE);
free = (tx->tx_cons + (1 << MCX_LOG_SQ_SIZE)) - tx->tx_prod;
if (idx == (1 << MCX_LOG_SQ_SIZE))
if (idx == (1 << MCX_LOG_SQ_SIZE))