• Home
  • Raw
  • Download

Lines Matching refs:ret

170 	int ret = 0;  in mdev_access()  local
193 ret = -1; in mdev_access()
197 ret = count; in mdev_access()
203 return ret; in mdev_access()
226 int ret; in mdpy_probe() local
238 ret = -ENOMEM; in mdpy_probe()
246 ret = -ENOMEM; in mdpy_probe()
261 ret = vfio_register_group_dev(&mdev_state->vdev); in mdpy_probe()
262 if (ret) in mdpy_probe()
273 return ret; in mdpy_probe()
297 int ret; in mdpy_read() local
305 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mdpy_read()
307 if (ret <= 0) in mdpy_read()
317 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mdpy_read()
319 if (ret <= 0) in mdpy_read()
329 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mdpy_read()
331 if (ret <= 0) in mdpy_read()
358 int ret; in mdpy_write() local
369 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mdpy_write()
371 if (ret <= 0) in mdpy_write()
381 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mdpy_write()
383 if (ret <= 0) in mdpy_write()
393 ret = mdev_access(mdev_state, (char *)&val, sizeof(val), in mdpy_write()
395 if (ret <= 0) in mdpy_write()
508 int ret = 0; in mdpy_ioctl() local
526 ret = mdpy_get_device_info(&info); in mdpy_ioctl()
527 if (ret) in mdpy_ioctl()
528 return ret; in mdpy_ioctl()
551 ret = mdpy_get_region_info(mdev_state, &info, &cap_type_id, in mdpy_ioctl()
553 if (ret) in mdpy_ioctl()
554 return ret; in mdpy_ioctl()
575 ret = mdpy_get_irq_info(&info); in mdpy_ioctl()
576 if (ret) in mdpy_ioctl()
577 return ret; in mdpy_ioctl()
598 ret = mdpy_query_gfx_plane(mdev_state, &plane); in mdpy_ioctl()
599 if (ret) in mdpy_ioctl()
600 return ret; in mdpy_ioctl()
745 int ret = 0; in mdpy_dev_init() local
747 ret = alloc_chrdev_region(&mdpy_devt, 0, MINORMASK + 1, MDPY_NAME); in mdpy_dev_init()
748 if (ret < 0) { in mdpy_dev_init()
749 pr_err("Error: failed to register mdpy_dev, err: %d\n", ret); in mdpy_dev_init()
750 return ret; in mdpy_dev_init()
756 ret = mdev_register_driver(&mdpy_driver); in mdpy_dev_init()
757 if (ret) in mdpy_dev_init()
763 ret = PTR_ERR(mdpy_class); in mdpy_dev_init()
770 ret = device_register(&mdpy_dev); in mdpy_dev_init()
771 if (ret) in mdpy_dev_init()
774 ret = mdev_register_device(&mdpy_dev, &mdev_fops); in mdpy_dev_init()
775 if (ret) in mdpy_dev_init()
789 return ret; in mdpy_dev_init()