framebuffer.c (033d777f548645c3a906b73eef5d665aeee55092) | framebuffer.c (89c8233f82d9c8af5b20e72e4a185a38a7d3c50b) |
---|---|
1/************************************************************************** 2 * Copyright (c) 2007-2011, Intel Corporation. 3 * All Rights Reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms and conditions of the GNU General Public License, 7 * version 2, as published by the Free Software Foundation. 8 * --- 307 unchanged lines hidden (view full) --- 316 * Re-address this as and if the framebuffer layer grows this ability. 317 */ 318static struct gtt_range *psbfb_alloc(struct drm_device *dev, int aligned_size) 319{ 320 struct gtt_range *backing; 321 /* Begin by trying to use stolen memory backing */ 322 backing = psb_gtt_alloc_range(dev, aligned_size, "fb", 1); 323 if (backing) { | 1/************************************************************************** 2 * Copyright (c) 2007-2011, Intel Corporation. 3 * All Rights Reserved. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms and conditions of the GNU General Public License, 7 * version 2, as published by the Free Software Foundation. 8 * --- 307 unchanged lines hidden (view full) --- 316 * Re-address this as and if the framebuffer layer grows this ability. 317 */ 318static struct gtt_range *psbfb_alloc(struct drm_device *dev, int aligned_size) 319{ 320 struct gtt_range *backing; 321 /* Begin by trying to use stolen memory backing */ 322 backing = psb_gtt_alloc_range(dev, aligned_size, "fb", 1); 323 if (backing) { |
324 if (drm_gem_private_object_init(dev, 325 &backing->gem, aligned_size) == 0) 326 return backing; 327 psb_gtt_free_range(dev, backing); | 324 drm_gem_private_object_init(dev, &backing->gem, aligned_size); 325 return backing; |
328 } 329 return NULL; 330} 331 332/** 333 * psbfb_create - create a framebuffer 334 * @fbdev: the framebuffer device 335 * @sizes: specification of the layout --- 463 unchanged lines hidden --- | 326 } 327 return NULL; 328} 329 330/** 331 * psbfb_create - create a framebuffer 332 * @fbdev: the framebuffer device 333 * @sizes: specification of the layout --- 463 unchanged lines hidden --- |