Lines Matching defs:efb_priv

110 efb_ctx_wait(efb_private_t *efb_priv)
119 efb_wait_host_data(efb_priv, "ctx_wait", __LINE__) == 1 &&
142 efb_private_t *efb_priv;
152 efb_priv = (efb_private_t *)(dev_priv->private_data);
158 if (mi->ctx == NULL || mi->ctx == efb_priv->cur_ctx) {
190 efb_private_t *efb_priv;
195 efb_priv = (efb_private_t *)(dev_priv->private_data);
203 efb_ctx_wait(efb_priv);
205 rval = efb_ctx_make_current(efb_priv, ctx);
217 efb_ctx_save(efb_private_t *efb_priv, efb_context_t *ctx)
220 volatile caddr_t registers = efb_priv->registers;
221 int stream = efb_priv->consinfo.stream;
224 efb_cmap_read(efb_priv, 0, EFB_CMAP_ENTRIES, stream);
226 ctx->colormap[0][i] = efb_priv->colormap[stream][0][i];
227 ctx->colormap[1][i] = efb_priv->colormap[stream][1][i];
228 ctx->colormap[2][i] = efb_priv->colormap[stream][2][i];
252 efb_ctx_restore(efb_private_t *efb_priv, efb_context_t *ctx)
255 volatile caddr_t registers = efb_priv->registers;
256 int stream = efb_priv->consinfo.stream;
260 efb_priv->colormap[stream][0][i] = ctx->colormap[0][i];
261 efb_priv->colormap[stream][1][i] = ctx->colormap[1][i];
262 efb_priv->colormap[stream][2][i] = ctx->colormap[2][i];
263 efb_priv->cmap_flags[stream][i] = 1;
265 efb_cmap_write(efb_priv, stream);
268 if (efb_wait_fifo(efb_priv, 20, "restore", __LINE__) != DDI_SUCCESS)
288 if (!efb_wait_idle(efb_priv, "ctx_restore", __LINE__)) {
299 efb_ctx_make_current(efb_private_t *efb_priv, efb_context_t *ctx)
303 if (efb_priv->cur_ctx == ctx)
306 old_ctx = efb_priv->cur_ctx;
324 if (!efb_wait_idle(efb_priv, "ctx_current", __LINE__)) {
330 efb_ctx_save(efb_priv, old_ctx);
335 efb_ctx_restore(efb_priv, ctx);
338 efb_priv->cur_ctx = ctx;
386 efb_private_t *efb_priv;
403 efb_priv = (efb_private_t *)(dev_priv->private_data);
459 if (efb_priv->cur_ctx == ctx) {
460 efb_priv->cur_ctx = NULL;
501 efb_unload_all(efb_private_t *efb_priv)
505 for (ctx = efb_priv->contexts; ctx != NULL; ctx = ctx->next) {