Home
last modified time | relevance | path

Searched refs:sc_ccbs (Results 1 – 25 of 27) sorted by relevance

12

/openbsd/src/sys/dev/pv/
Dhvs.c206 struct hvs_ccb *sc_ccbs; member
557 ccb = &sc->sc_ccbs[rid]; in hvs_intr()
854 sc->sc_ccbs = mallocarray(sc->sc_nccb, sizeof(struct hvs_ccb), in hvs_alloc_ccbs()
856 if (sc->sc_ccbs == NULL) { in hvs_alloc_ccbs()
864 &sc->sc_ccbs[i].ccb_dmap); in hvs_alloc_ccbs()
871 sc->sc_ccbs[i].ccb_sgl = malloc(sizeof(struct vmbus_gpa_range) * in hvs_alloc_ccbs()
873 if (sc->sc_ccbs[i].ccb_sgl == NULL) { in hvs_alloc_ccbs()
878 sc->sc_ccbs[i].ccb_rid = i; in hvs_alloc_ccbs()
879 hvs_put_ccb(sc, &sc->sc_ccbs[i]); in hvs_alloc_ccbs()
898 ccb = &sc->sc_ccbs[i]; in hvs_free_ccbs()
[all …]
Dxbf.c194 struct xbf_ccb *sc_ccbs; member
1258 sc->sc_ccbs = mallocarray(sc->sc_nccb, sizeof(struct xbf_ccb), in xbf_alloc_ccbs()
1260 if (sc->sc_ccbs == NULL) { in xbf_alloc_ccbs()
1273 &sc->sc_ccbs[i].ccb_dmap); in xbf_alloc_ccbs()
1281 xbf_put_ccb(sc, &sc->sc_ccbs[i]); in xbf_alloc_ccbs()
1300 ccb = &sc->sc_ccbs[i]; in xbf_free_ccbs()
1309 free(sc->sc_ccbs, M_DEVBUF, sc->sc_nccb * sizeof(struct xbf_ccb)); in xbf_free_ccbs()
1310 sc->sc_ccbs = NULL; in xbf_free_ccbs()
/openbsd/src/sys/dev/sdmmc/
Dsdmmc_scsi.c74 struct sdmmc_ccb *sc_ccbs; /* allocated ccbs */ member
208 scbus->sc_ccbs = mallocarray(nccbs, sizeof(struct sdmmc_ccb), in sdmmc_alloc_ccbs()
210 if (scbus->sc_ccbs == NULL) in sdmmc_alloc_ccbs()
221 ccb = &scbus->sc_ccbs[i]; in sdmmc_alloc_ccbs()
235 if (scbus->sc_ccbs != NULL) { in sdmmc_free_ccbs()
236 free(scbus->sc_ccbs, M_DEVBUF, in sdmmc_free_ccbs()
238 scbus->sc_ccbs = NULL; in sdmmc_free_ccbs()
/openbsd/src/sys/dev/eisa/
Dcac_eisa.c239 bus_dmamap_sync(sc->sc_dmat, sc->sc_dmamap, (caddr_t)ccb - sc->sc_ccbs, in cac_eisa_l0_submit()
268 ccb = (struct cac_ccb *)(sc->sc_ccbs + off); in cac_eisa_l0_completed()
/openbsd/src/sys/dev/ic/
Dtwevar.h64 struct twe_ccb sc_ccbs[TWE_MAXCMDS]; member
Dufshcivar.h93 struct ufshci_ccb *sc_ccbs; member
Dtwe.c116 for (ccb = &sc->sc_ccbs[TWE_MAXCMDS - 1]; ccb >= sc->sc_ccbs; ccb--) in twe_dispose()
190 ccb = &sc->sc_ccbs[cmd->cmd_index]; in twe_attach()
665 ccb1 = &sc->sc_ccbs[TWE_READYID(ready)]; in twe_complete()
939 ccb = &sc->sc_ccbs[TWE_READYID(ready)]; in twe_intr()
Dcacvar.h105 caddr_t sc_ccbs; member
Dqlwvar.h115 struct qlw_ccb *sc_ccbs; member
Dmpivar.h138 struct mpi_ccb *sc_ccbs; member
Damivar.h109 struct ami_ccb *sc_ccbs; member
Dcac.c165 &sc->sc_ccbs, BUS_DMA_NOWAIT | BUS_DMA_COHERENT)) != 0) { in cac_init()
178 if ((error = bus_dmamap_load(sc->sc_dmat, sc->sc_dmamap, sc->sc_ccbs, in cac_init()
186 ccb = (struct cac_ccb *)sc->sc_ccbs; in cac_init()
754 ccb = (struct cac_ccb *)(sc->sc_ccbs + off); in cac_l0_completed()
Dqlavar.h178 struct qla_ccb *sc_ccbs; member
Dnvmevar.h125 struct nvme_ccb *sc_ccbs; member
Dgdt_common.c135 sc->sc_ccbs[i].gc_cmd_index = i + 2; in gdt_attach()
140 &sc->sc_ccbs[i].gc_dmamap_xfer); in gdt_attach()
146 (void)gdt_ccb_set_cmd(sc->sc_ccbs + i, GDT_GCF_UNUSED); in gdt_attach()
147 TAILQ_INSERT_TAIL(&sc->sc_free_ccb, &sc->sc_ccbs[i], in gdt_attach()
1030 ccb = &sc->sc_ccbs[ctx.istatus - 2]; in gdt_intr()
Dqlw.c590 ccb = &sc->sc_ccbs[handle]; in qlw_handle_resp()
1702 sc->sc_ccbs = mallocarray(sc->sc_maxccbs, sizeof(struct qlw_ccb), in qlw_alloc_ccbs()
1704 if (sc->sc_ccbs == NULL) { in qlw_alloc_ccbs()
1725 ccb = &sc->sc_ccbs[i]; in qlw_alloc_ccbs()
1752 free(sc->sc_ccbs, M_DEVBUF, 0); in qlw_alloc_ccbs()
1767 free(sc->sc_ccbs, M_DEVBUF, 0); in qlw_free_ccbs()
Dufshci.c1328 ccb = &sc->sc_ccbs[i]; in ufshci_xfer_complete()
1357 ccb = &sc->sc_ccbs[i]; in ufshci_xfer_complete()
1404 sc->sc_ccbs = mallocarray(nccbs, sizeof(*ccb), M_DEVBUF, in ufshci_ccb_alloc()
1406 if (sc->sc_ccbs == NULL) in ufshci_ccb_alloc()
1410 ccb = &sc->sc_ccbs[i]; in ufshci_ccb_alloc()
1470 free(sc->sc_ccbs, M_DEVBUF, nccbs * sizeof(*ccb)); in ufshci_ccb_free()
2124 ccb = &sc->sc_ccbs[i]; in ufshci_kstat_read_slot()
Dgdtvar.h129 struct gdt_ccb sc_ccbs[GDT_MAXCMDS]; member
Dqla.c742 ccb = &sc->sc_ccbs[handle]; in qla_handle_resp()
2549 sc->sc_ccbs = mallocarray(sc->sc_maxcmds, sizeof(struct qla_ccb), in qla_alloc_ccbs()
2551 if (sc->sc_ccbs == NULL) { in qla_alloc_ccbs()
2578 ccb = &sc->sc_ccbs[i]; in qla_alloc_ccbs()
2614 free(sc->sc_ccbs, M_DEVBUF, 0); in qla_alloc_ccbs()
2630 free(sc->sc_ccbs, M_DEVBUF, 0); in qla_free_ccbs()
Dnvme.c1227 ccb = &sc->sc_ccbs[cqe->cid]; in nvme_q_complete()
1417 sc->sc_ccbs = mallocarray(nccbs, sizeof(*ccb), M_DEVBUF, in nvme_ccbs_alloc()
1419 if (sc->sc_ccbs == NULL) in nvme_ccbs_alloc()
1429 ccb = &sc->sc_ccbs[i]; in nvme_ccbs_alloc()
1493 free(sc->sc_ccbs, M_DEVBUF, nccbs * sizeof(*ccb)); in nvme_ccbs_free()
Dami.c299 sc->sc_ccbs = mallocarray(nccbs, sizeof(struct ami_ccb), in ami_alloc_ccbs()
301 if (sc->sc_ccbs == NULL) { in ami_alloc_ccbs()
322 ccb = &sc->sc_ccbs[i]; in ami_alloc_ccbs()
363 free(sc->sc_ccbs, M_DEVBUF, 0); in ami_alloc_ccbs()
1508 ccb = &sc->sc_ccbs[ready]; in ami_intr()
/openbsd/src/sys/dev/pci/
Dvmwpvs.c310 struct vmwpvs_ccb *sc_ccbs; member
500 sc->sc_ccbs = mallocarray(r, sizeof(struct vmwpvs_ccb), in vmwpvs_attach()
507 ccb = &sc->sc_ccbs[i]; in vmwpvs_attach()
573 free(sc->sc_ccbs, M_DEVBUF, r * sizeof(struct vmwpvs_ccb)); in vmwpvs_attach()
1012 struct vmwpvs_ccb *ccb = &sc->sc_ccbs[ctx & 0xffffffff]; in vmwpvs_scsi_cmd_done()
Dcac_pci.c268 ccb = (struct cac_ccb *)(sc->sc_ccbs + off); in cac_pci_l0_completed()
Dqle.c208 struct qle_ccb *sc_ccbs; member
1049 ccb = &sc->sc_ccbs[handle]; in qle_handle_resp()
1186 ccb = &sc->sc_ccbs[handle]; in qle_handle_resp()
2863 sc->sc_ccbs = mallocarray(sc->sc_maxcmds, sizeof(struct qle_ccb), in qle_alloc_ccbs()
2865 if (sc->sc_ccbs == NULL) { in qle_alloc_ccbs()
2904 ccb = &sc->sc_ccbs[i]; in qle_alloc_ccbs()
2942 free(sc->sc_ccbs, M_DEVBUF, 0); in qle_alloc_ccbs()
2958 free(sc->sc_ccbs, M_DEVBUF, 0); in qle_free_ccbs()
Dmpii.c199 struct mpii_ccb *sc_ccbs; member
657 free(sc->sc_ccbs, M_DEVBUF, 0); in mpii_attach()
718 ccb = &sc->sc_ccbs[smid - 1]; in mpii_intr()
2590 sc->sc_ccbs = mallocarray((sc->sc_max_cmds-1), sizeof(*ccb), in mpii_alloc_ccbs()
2592 if (sc->sc_ccbs == NULL) { in mpii_alloc_ccbs()
2611 ccb = &sc->sc_ccbs[i - 1]; in mpii_alloc_ccbs()
2648 free(sc->sc_ccbs, M_DEVBUF, (sc->sc_max_cmds-1) * sizeof(*ccb)); in mpii_alloc_ccbs()

12