Lines Matching refs:sc_max_cmds
363 if (i < sc->sc_max_cmds)
383 sc->sc_ccb = malloc(sizeof(struct mfi_ccb) * sc->sc_max_cmds,
399 for (i = 0; i < sc->sc_max_cmds; i++) {
648 qinfo->miq_rq_entries = sc->sc_max_cmds + 1;
1053 sc->sc_max_cmds = status & MFI_STATE_MAXCMD_MASK;
1068 DEVNAME(sc), sc->sc_max_cmds, sc->sc_max_sgl);
1076 MEGASAS_THUNDERBOLT_NEW_MSG_SIZE * (sc->sc_max_cmds + 1);
1078 ((sc->sc_max_cmds + 1 + 15) / 16) * 16;
1083 tb_mem_size += MEGASAS_MAX_SZ_CHAIN_FRAME * sc->sc_max_cmds;
1120 sc->sc_pcq = mfi_allocmem(sc, (sizeof(uint32_t) * sc->sc_max_cmds) +
1128 sizeof(uint32_t) * sc->sc_max_cmds + sizeof(struct mfi_prod_cons),
1135 sc->sc_frames = mfi_allocmem(sc, sc->sc_frames_size * sc->sc_max_cmds);
1150 sc->sc_sense = mfi_allocmem(sc, sc->sc_max_cmds * MFI_SENSE_SIZE);
1236 if (sc->sc_max_cmds > 4)
1237 adapt->adapt_openings = sc->sc_max_cmds - 4;
1239 adapt->adapt_openings = sc->sc_max_cmds;
1379 sizeof(uint32_t) * sc->sc_max_cmds + sizeof(struct mfi_prod_cons),
1409 if (consumer == (sc->sc_max_cmds + 1))
1415 sizeof(uint32_t) * sc->sc_max_cmds + sizeof(struct mfi_prod_cons),
2946 addr = &addr[MEGASAS_THUNDERBOLT_NEW_MSG_SIZE * (sc->sc_max_cmds + 1)];
2971 sc->sc_max_cmds)) - MFIMEM_DVA(sc->sc_tbolt_reqmsgpool);
3115 MEGASAS_THUNDERBOLT_NEW_MSG_SIZE * (sc->sc_max_cmds + 1),
3122 KASSERT(smid > 0 && smid <= sc->sc_max_cmds);
3165 MEGASAS_THUNDERBOLT_NEW_MSG_SIZE * (sc->sc_max_cmds + 1),