Lines Matching defs:queues
384 * Size the queues. Since the reply queues always need one free
433 * Figure out the number of MSIx-based queues. If the firmware or
435 * the queues to be useful then don't enable multi-queue.
447 mps_dprint(sc, MPS_INIT, "Sized queues to q=%d reqs=%d replies=%d\n",
651 "Failed to alloc queues with error %d\n", error);
656 /* Always initialize the queues */
679 * IOC treats the queues as full if both are set to the same value.
795 free(sc->queues, M_MPT2);
796 sc->queues = NULL;
1280 mps_dprint(sc, MPS_INIT|MPS_XINFO, "Allocating %d I/O queues\n", nq);
1282 sc->queues = malloc(sizeof(struct mps_queue) * nq, M_MPT2,
1284 if (sc->queues == NULL)
1288 q = &sc->queues[i];
1302 uint8_t *queues;
1314 * These two queues are allocated together for simplicity.
1327 mps_dprint(sc, MPS_ERROR, "Cannot allocate queues DMA tag\n");
1330 if (bus_dmamem_alloc(sc->queues_dmat, (void **)&queues, BUS_DMA_NOWAIT,
1332 mps_dprint(sc, MPS_ERROR, "Cannot allocate queues memory\n");
1335 bzero(queues, qsize);
1336 bus_dmamap_load(sc->queues_dmat, sc->queues_map, queues, qsize,
1339 sc->free_queue = (uint32_t *)queues;
1341 sc->post_queue = (MPI2_REPLY_DESCRIPTORS_UNION *)(queues + fqsize);
1714 "User-defined maximum number of MSIX queues");
1718 "Negotiated number of MSIX queues");