Lines Matching refs:bo_privs
1890 struct kfd_criu_bo_priv_data *bo_privs; in criu_checkpoint_bos() local
1899 bo_privs = kvzalloc(num_bos * sizeof(*bo_privs), GFP_KERNEL); in criu_checkpoint_bos()
1900 if (!bo_privs) { in criu_checkpoint_bos()
1932 bo_priv = &bo_privs[bo_index]; in criu_checkpoint_bos()
1994 ret = copy_to_user(user_priv_data + *priv_offset, bo_privs, num_bos * sizeof(*bo_privs)); in criu_checkpoint_bos()
2001 *priv_offset += num_bos * sizeof(*bo_privs); in criu_checkpoint_bos()
2007 kvfree(bo_privs); in criu_checkpoint_bos()
2426 struct kfd_criu_bo_priv_data *bo_privs = NULL; in criu_restore_bos() local
2431 if (*priv_offset + (args->num_bos * sizeof(*bo_privs)) > max_priv_data_size) in criu_restore_bos()
2455 bo_privs = kvmalloc_array(args->num_bos, sizeof(*bo_privs), GFP_KERNEL); in criu_restore_bos()
2456 if (!bo_privs) { in criu_restore_bos()
2461 ret = copy_from_user(bo_privs, (void __user *)args->priv_data + *priv_offset, in criu_restore_bos()
2462 args->num_bos * sizeof(*bo_privs)); in criu_restore_bos()
2468 *priv_offset += args->num_bos * sizeof(*bo_privs); in criu_restore_bos()
2472 ret = criu_restore_bo(p, &bo_buckets[i], &bo_privs[i], &files[i]); in criu_restore_bos()
2490 kvfree(bo_privs); in criu_restore_bos()