Lines Matching +full:4 +full:- +full:temp

24 	u32 temp;  in ali_fetch_size()  local
27 pci_read_config_dword(agp_bridge->dev, ALI_ATTBASE, &temp); in ali_fetch_size()
28 temp &= ~(0xfffffff0); in ali_fetch_size()
29 values = A_SIZE_32(agp_bridge->driver->aperture_sizes); in ali_fetch_size()
31 for (i = 0; i < agp_bridge->driver->num_aperture_sizes; i++) { in ali_fetch_size()
32 if (temp == values[i].size_value) { in ali_fetch_size()
33 agp_bridge->previous_size = in ali_fetch_size()
34 agp_bridge->current_size = (void *) (values + i); in ali_fetch_size()
35 agp_bridge->aperture_size_idx = i; in ali_fetch_size()
45 u32 temp; in ali_tlbflush() local
47 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_tlbflush()
48 temp &= 0xfffffff0; in ali_tlbflush()
49 temp |= (1<<0 | 1<<1); in ali_tlbflush()
50 pci_write_config_dword(agp_bridge->dev, ALI_TAGCTRL, temp); in ali_tlbflush()
56 u32 temp; in ali_cleanup() local
58 previous_size = A_SIZE_32(agp_bridge->previous_size); in ali_cleanup()
60 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_cleanup()
62 pci_write_config_dword(agp_bridge->dev, ALI_TAGCTRL, in ali_cleanup()
63 ((temp & 0xffffff00) | 0x00000001|0x00000002)); in ali_cleanup()
65 pci_read_config_dword(agp_bridge->dev, ALI_ATTBASE, &temp); in ali_cleanup()
66 pci_write_config_dword(agp_bridge->dev, ALI_ATTBASE, in ali_cleanup()
67 ((temp & 0x00000ff0) | previous_size->size_value)); in ali_cleanup()
72 u32 temp; in ali_configure() local
75 current_size = A_SIZE_32(agp_bridge->current_size); in ali_configure()
78 pci_read_config_dword(agp_bridge->dev, ALI_ATTBASE, &temp); in ali_configure()
79 temp = (((temp & 0x00000ff0) | (agp_bridge->gatt_bus_addr & 0xfffff000)) in ali_configure()
80 | (current_size->size_value & 0xf)); in ali_configure()
81 pci_write_config_dword(agp_bridge->dev, ALI_ATTBASE, temp); in ali_configure()
84 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_configure()
85 pci_write_config_dword(agp_bridge->dev, ALI_TLBCTRL, ((temp & 0xffffff00) | 0x00000010)); in ali_configure()
88 agp_bridge->gart_bus_addr = pci_bus_address(agp_bridge->dev, in ali_configure()
92 if (agp_bridge->type == ALI_M1541) { in ali_configure()
95 switch (current_size->size_value) { in ali_configure()
100 case 4: nlvm_addr = 0x800000;break; in ali_configure()
108 nlvm_addr--; in ali_configure()
111 nlvm_addr+= agp_bridge->gart_bus_addr; in ali_configure()
112 nlvm_addr|=(agp_bridge->gart_bus_addr>>12); in ali_configure()
113 dev_info(&agp_bridge->dev->dev, "nlvm top &base = %8x\n", in ali_configure()
118 pci_read_config_dword(agp_bridge->dev, ALI_TLBCTRL, &temp); in ali_configure()
119 temp &= 0xffffff7f; //enable TLB in ali_configure()
120 pci_write_config_dword(agp_bridge->dev, ALI_TLBCTRL, temp); in ali_configure()
129 u32 temp; in m1541_cache_flush() local
133 page_count = 1 << A_SIZE_32(agp_bridge->current_size)->page_order; in m1541_cache_flush()
135 pci_read_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_cache_flush()
136 &temp); in m1541_cache_flush()
137 pci_write_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_cache_flush()
138 (((temp & ALI_CACHE_FLUSH_ADDR_MASK) | in m1541_cache_flush()
139 (agp_bridge->gatt_bus_addr + i)) | in m1541_cache_flush()
147 u32 temp; in m1541_alloc_page() local
152 pci_read_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, &temp); in m1541_alloc_page()
153 pci_write_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_alloc_page()
154 (((temp & ALI_CACHE_FLUSH_ADDR_MASK) | in m1541_alloc_page()
163 global_cache_flush(); /* is this really needed? --hch */ in ali_destroy_page()
172 u32 temp; in m1541_destroy_page() local
180 pci_read_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, &temp); in m1541_destroy_page()
181 pci_write_config_dword(agp_bridge->dev, ALI_CACHE_FLUSH_CTRL, in m1541_destroy_page()
182 (((temp & ALI_CACHE_FLUSH_ADDR_MASK) | in m1541_destroy_page()
195 {64, 16384, 4, 8},
198 {8, 2048, 1, 4},
199 {4, 1024, 0, 3}
311 return -ENODEV; in agp_ali_probe()
315 if (pdev->device == devs[j].device_id) in agp_ali_probe()
319 dev_err(&pdev->dev, "unsupported ALi chipset [%04x/%04x])\n", in agp_ali_probe()
320 pdev->vendor, pdev->device); in agp_ali_probe()
321 return -ENODEV; in agp_ali_probe()
327 return -ENOMEM; in agp_ali_probe()
329 bridge->dev = pdev; in agp_ali_probe()
330 bridge->capndx = cap_ptr; in agp_ali_probe()
332 switch (pdev->device) { in agp_ali_probe()
334 bridge->driver = &ali_m1541_bridge; in agp_ali_probe()
362 bridge->driver = &ali_generic_bridge; in agp_ali_probe()
365 dev_info(&pdev->dev, "ALi %s chipset\n", devs[j].chipset_name); in agp_ali_probe()
369 bridge->capndx+PCI_AGP_STATUS, in agp_ali_probe()
370 &bridge->mode); in agp_ali_probe()
399 .name = "agpgart-ali",
408 return -EINVAL; in agp_ali_init()