Lines Matching refs:err
105 int err; in adf_get_device_data() local
110 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data); in adf_get_device_data()
111 if (err < 0) in adf_get_device_data()
124 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data); in adf_get_device_data()
125 if (err < 0) { in adf_get_device_data()
147 int err; in adf_device_post() local
158 err = ioctl(dev->fd, ADF_POST_CONFIG, &data); in adf_device_post()
159 if (err < 0) in adf_device_post()
172 int err; in adf_device_post_v2() local
184 err = ioctl(dev->fd, ADF_POST_CONFIG_V2, &data); in adf_device_post_v2()
185 if (err < 0) in adf_device_post_v2()
199 int err; in adf_device_attachment() local
206 err = ioctl(dev->fd, attach ? ADF_ATTACH : ADF_DETACH, &data); in adf_device_attachment()
207 if (err < 0) in adf_device_attachment()
237 auto err = adf_get_device_data(dev, &data); in adf_interfaces_for_overlay_engine() local
238 if (err < 0) in adf_interfaces_for_overlay_engine()
239 return err; in adf_interfaces_for_overlay_engine()
317 int err; in adf_get_interface_data() local
322 err = ioctl(fd, ADF_GET_INTERFACE_DATA, data); in adf_get_interface_data()
323 if (err < 0) in adf_get_interface_data()
332 err = ioctl(fd, ADF_GET_INTERFACE_DATA, data); in adf_get_interface_data()
333 if (err < 0) { in adf_get_interface_data()
348 int err = ioctl(fd, ADF_BLANK, mode); in adf_interface_blank() local
349 if (err < 0) in adf_interface_blank()
356 int err = ioctl(fd, ADF_SET_MODE, mode); in adf_interface_set_mode() local
357 if (err < 0) in adf_interface_set_mode()
365 int err; in adf_interface_simple_buffer_alloc() local
373 err = ioctl(fd, ADF_SIMPLE_BUFFER_ALLOC, &data); in adf_interface_simple_buffer_alloc()
374 if (err < 0) in adf_interface_simple_buffer_alloc()
452 auto err = adf_get_device_data(dev, &data); in adf_overlay_engines_for_interface() local
453 if (err < 0) in adf_overlay_engines_for_interface()
454 return err; in adf_overlay_engines_for_interface()
533 int err; in adf_get_overlay_engine_data() local
538 err = ioctl(fd, ADF_GET_OVERLAY_ENGINE_DATA, data); in adf_get_overlay_engine_data()
539 if (err < 0) in adf_get_overlay_engine_data()
548 err = ioctl(fd, ADF_GET_OVERLAY_ENGINE_DATA, data); in adf_get_overlay_engine_data()
549 if (err < 0) { in adf_get_overlay_engine_data()
570 int err = adf_get_overlay_engine_data(fd, &data); in adf_overlay_engine_supports_format() local
571 if (err < 0) in adf_overlay_engine_supports_format()
594 int err = ioctl(fd, ADF_SET_EVENT, &data); in adf_set_event() local
595 if (err < 0) in adf_set_event()
610 int err = read(fd, &header, sizeof(header)); in adf_read_event() local
611 if (err < 0) in adf_read_event()
613 if ((size_t)err < sizeof(header)) in adf_read_event()