*(bridge->gatt_table + j) = 
table[j] = 
static int sgi_tioca_insert_memory(struct agp_memory *mem, off_t pg_start,				   int type){	int num_entries;	size_t i;	off_t j;	void *temp;	struct agp_bridge_data *bridge;	bridge = mem->bridge;	if (!bridge)		return -EINVAL;	temp = bridge->current_size;	switch (bridge->driver->size_type) {	case U8_APER_SIZE:		num_entries = A_SIZE_8(temp)->num_entries;		break;	case U16_APER_SIZE:		num_entries = A_SIZE_16(temp)->num_entries;		break;	case U32_APER_SIZE:		num_entries = A_SIZE_32(temp)->num_entries;		break;	case FIXED_APER_SIZE:		num_entries = A_SIZE_FIX(temp)->num_entries;		break;	case LVL2_APER_SIZE:		return -EINVAL;		break;	default:		num_entries = 0;		break;	}	num_entries -= agp_memory_reserved / PAGE_SIZE;	if (num_entries < 0)		num_entries = 0;	if (type != 0 || mem->type != 0) {		return -EINVAL;	}	if ((pg_start + mem->page_count) > num_entries)		return -EINVAL;	j = pg_start;	while (j < (pg_start + mem->page_count)) {		if (*(bridge->gatt_table + j))			return -EBUSY;		j++;	}	if (mem->is_flushed == FALSE) {		bridge->driver->cache_flush();		mem->is_flushed = TRUE;	}	for (i = 0, j = pg_start; i < mem->page_count; i++, j++) {		*(bridge->gatt_table + j) =		    bridge->driver->mask_memory(bridge, mem->memory[i],						mem->type);	}	bridge->driver->tlb_flush(mem);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/e29b545cb153f230fbd8ff4c19bc98ab950f9f5c/sgi-agp.c/clean/drivers/char/agp/sgi-agp.c