struct ttm_bo_kmap_obj *map)
{
struct ttm_resource *mem = bo->resource;
- struct ttm_operation_ctx ctx = {
- .interruptible = false,
- .no_wait_gpu = false
- };
+ struct ttm_operation_ctx ctx = { };
struct ttm_tt *ttm = bo->ttm;
struct ttm_resource_manager *man =
ttm_manager_type(bo->bdev, bo->resource->mem_type);
iosys_map_set_vaddr_iomem(map, vaddr_iomem);
} else {
- struct ttm_operation_ctx ctx = {
- .interruptible = false,
- .no_wait_gpu = false
- };
+ struct ttm_operation_ctx ctx = { };
struct ttm_tt *ttm = bo->ttm;
pgprot_t prot;
void *vaddr;
*/
int ttm_device_prepare_hibernation(struct ttm_device *bdev)
{
- struct ttm_operation_ctx ctx = {
- .interruptible = false,
- .no_wait_gpu = false,
- };
+ struct ttm_operation_ctx ctx = { };
int ret;
do {
int ttm_resource_manager_evict_all(struct ttm_device *bdev,
struct ttm_resource_manager *man)
{
- struct ttm_operation_ctx ctx = {
- .interruptible = false,
- .no_wait_gpu = false,
- };
+ struct ttm_operation_ctx ctx = { };
struct dma_fence *fence;
int ret, i;
/* Test the shrinker functions and dump the result */
static int ttm_tt_debugfs_shrink_show(struct seq_file *m, void *data)
{
- struct ttm_operation_ctx ctx = { false, false };
+ struct ttm_operation_ctx ctx = { };
seq_printf(m, "%d\n", ttm_global_swapout(&ctx, GFP_KERNEL));
return 0;