generic.c (c1f3ee120bb61045b1c0a3ead620d1d65af47130) | generic.c (a13af4b4d842da6d7065b8c73fa8f0ac58fea1b6) |
---|---|
1/* 2 * AGPGART driver. 3 * Copyright (C) 2004 Silicon Graphics, Inc. 4 * Copyright (C) 2002-2005 Dave Jones. 5 * Copyright (C) 1999 Jeff Hartmann. 6 * Copyright (C) 1999 Precision Insight, Inc. 7 * Copyright (C) 1999 Xi Graphics, Inc. 8 * --- 66 unchanged lines hidden (view full) --- 75 bit = find_first_zero_bit(agp_bridge->key_list, MAXKEY); 76 if (bit < MAXKEY) { 77 set_bit(bit, agp_bridge->key_list); 78 return bit; 79 } 80 return -1; 81} 82 | 1/* 2 * AGPGART driver. 3 * Copyright (C) 2004 Silicon Graphics, Inc. 4 * Copyright (C) 2002-2005 Dave Jones. 5 * Copyright (C) 1999 Jeff Hartmann. 6 * Copyright (C) 1999 Precision Insight, Inc. 7 * Copyright (C) 1999 Xi Graphics, Inc. 8 * --- 66 unchanged lines hidden (view full) --- 75 bit = find_first_zero_bit(agp_bridge->key_list, MAXKEY); 76 if (bit < MAXKEY) { 77 set_bit(bit, agp_bridge->key_list); 78 return bit; 79 } 80 return -1; 81} 82 |
83void agp_flush_chipset(struct agp_bridge_data *bridge) 84{ 85 if (bridge->driver->chipset_flush) 86 bridge->driver->chipset_flush(bridge); 87} 88EXPORT_SYMBOL(agp_flush_chipset); 89 |
|
83/* 84 * Use kmalloc if possible for the page list. Otherwise fall back to 85 * vmalloc. This speeds things up and also saves memory for small AGP 86 * regions. 87 */ 88 89void agp_alloc_page_array(size_t size, struct agp_memory *mem) 90{ --- 1249 unchanged lines hidden --- | 90/* 91 * Use kmalloc if possible for the page list. Otherwise fall back to 92 * vmalloc. This speeds things up and also saves memory for small AGP 93 * regions. 94 */ 95 96void agp_alloc_page_array(size_t size, struct agp_memory *mem) 97{ --- 1249 unchanged lines hidden --- |