Lines Matching refs:ret
37 int ret;
40 ret = nouveau_bo_map(dec->cmd_bo, NOUVEAU_BO_RDWR, dec->client);
41 if (ret) {
42 debug_printf("Mapping cmd bo: %s\n", strerror(-ret));
43 return ret;
45 ret = nouveau_bo_map(dec->data_bo, NOUVEAU_BO_RDWR, dec->client);
46 if (ret) {
47 debug_printf("Mapping data bo: %s\n", strerror(-ret));
48 return ret;
52 return ret;
212 int ret = pos + mov;
217 return ret;
508 int ret;
527 ret = nouveau_object_new(&screen->device->object, 0,
530 if (ret)
532 ret = nouveau_client_new(screen->device, &dec->client);
533 if (ret)
535 ret = nouveau_pushbuf_new(dec->client, dec->chan, 2, 4096, 1, &dec->push);
536 if (ret)
538 ret = nouveau_bufctx_new(dec->client, NV31_VIDEO_BIND_COUNT, &dec->bufctx);
539 if (ret)
547 ret = nouveau_object_new(dec->chan, 0xbeef8274, NV84_MPEG_CLASS, NULL, 0,
550 ret = nouveau_object_new(dec->chan, 0xbeef3174, NV31_MPEG_CLASS, NULL, 0,
552 if (ret < 0) {
553 debug_printf("Creation failed: %s (%i)\n", strerror(-ret), ret);
569 ret = nouveau_bo_new(dec->screen->device, NOUVEAU_BO_GART | NOUVEAU_BO_MAP,
571 if (ret)
574 ret = nouveau_bo_new(dec->screen->device, NOUVEAU_BO_GART | NOUVEAU_BO_MAP,
576 if (ret)
581 ret = nouveau_bo_new(dec->screen->device, NOUVEAU_BO_GART | NOUVEAU_BO_MAP,
583 if (ret)
627 ret = nouveau_vpe_init(dec);
628 if (ret)