Searched refs:cmd_ctx (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/intel/io/scsi/adapters/pvscsi/
H A Dpvscsi_var.h132 #define CMD_CTX_SGLIST_VA(cmd_ctx) \
134 (((pvscsi_cmd_ctx_t *)(cmd_ctx))->dma_buf.addr))
136 #define CMD_CTX_SGLIST_PA(cmd_ctx) \
137 ((((pvscsi_cmd_ctx_t *)(cmd_ctx))->dma_buf.pa))
180 pvscsi_cmd_ctx_t *cmd_ctx; member in struct:pvscsi_softc
H A Dpvscsi.c139 return (io_ctx - pvs->cmd_ctx + 1);
147 end = &pvs->cmd_ctx[pvs->req_depth];
148 for (ctx = pvs->cmd_ctx; ctx < end; ctx++) {
160 return (&pvs->cmd_ctx[ctx - 1]);
1254 ctx = pvs->cmd_ctx = kmem_zalloc(size, KM_SLEEP);
1270 kmem_free(pvs->cmd_ctx, size);
1279 pvscsi_cmd_ctx_t *ctx = pvs->cmd_ctx;
1286 kmem_free(pvs->cmd_ctx, pvs->req_pages << PAGE_SHIFT);

Completed in 49 milliseconds