Lines Matching refs:err
45 __u32 format, int* err) { in Create() argument
52 *err = fd; in Create()
63 *err = -errno; in Create()
74 if (int err = adf_get_interface_data(intf_fd, &intf_data); err < 0) return err; in InterfaceInit() local
98 int err = adf_find_simple_post_configuration(dev, &format, 1, &intf_id, &eng_id); in DeviceInit() local
99 if (err < 0) return err; in DeviceInit()
101 err = adf_device_attach(dev, eng_id, intf_id); in DeviceInit()
102 if (err < 0 && err != -EALREADY) return err; in DeviceInit()
107 err = InterfaceInit(); in DeviceInit()
108 if (err < 0) { in DeviceInit()
113 return err; in DeviceInit()
140 int err = adf_device_open(dev_ids[i], O_RDWR, &dev); in Init() local
141 if (err < 0) { in Init()
142 fprintf(stderr, "opening adf device %u failed: %s\n", dev_ids[i], strerror(-err)); in Init()
146 err = DeviceInit(&dev); in Init()
147 if (err < 0) { in Init()
148 fprintf(stderr, "initializing adf device %u failed: %s\n", dev_ids[i], strerror(-err)); in Init()
171 int err = sync_wait(surf->fence_fd, kWarningTimeout); in Sync() local
172 if (err < 0) { in Sync()