Lines Matching refs:bo_buckets
1892 struct kfd_criu_bo_bucket *bo_buckets; in criu_checkpoint_bos() local
1897 bo_buckets = kvzalloc(num_bos * sizeof(*bo_buckets), GFP_KERNEL); in criu_checkpoint_bos()
1898 if (!bo_buckets) in criu_checkpoint_bos()
1932 bo_bucket = &bo_buckets[bo_index]; in criu_checkpoint_bos()
1988 ret = copy_to_user(user_bos, bo_buckets, num_bos * sizeof(*bo_buckets)); in criu_checkpoint_bos()
2006 if (bo_buckets[bo_index].alloc_flags in criu_checkpoint_bos()
2008 close_fd(bo_buckets[bo_index].dmabuf_fd); in criu_checkpoint_bos()
2011 kvfree(bo_buckets); in criu_checkpoint_bos()
2429 struct kfd_criu_bo_bucket *bo_buckets = NULL; in criu_restore_bos() local
2440 bo_buckets = kvmalloc_array(args->num_bos, sizeof(*bo_buckets), GFP_KERNEL); in criu_restore_bos()
2441 if (!bo_buckets) in criu_restore_bos()
2444 ret = copy_from_user(bo_buckets, (void __user *)args->bos, in criu_restore_bos()
2445 args->num_bos * sizeof(*bo_buckets)); in criu_restore_bos()
2469 ret = criu_restore_bo(p, &bo_buckets[i], &bo_privs[i]); in criu_restore_bos()
2478 bo_buckets, in criu_restore_bos()
2479 (args->num_bos * sizeof(*bo_buckets))); in criu_restore_bos()
2485 if (bo_buckets[i].alloc_flags in criu_restore_bos()
2487 close_fd(bo_buckets[i].dmabuf_fd); in criu_restore_bos()
2489 kvfree(bo_buckets); in criu_restore_bos()