• Home
  • Raw
  • Download

Lines Matching refs:gx_params

120 static struct gxfreq_params *gx_params;  variable
175 pci_write_config_byte(gx_params->cs55x0, reg, value); in gx_write_byte()
204 if ((gx_params->pci_suscfg & SUSMOD) == 0) in gx_get_cpuspeed()
207 return (stock_freq * gx_params->off_duration) in gx_get_cpuspeed()
208 / (gx_params->on_duration + gx_params->off_duration); in gx_get_cpuspeed()
259 new_khz = gx_validate_speed(khz, &gx_params->on_duration, in gx_set_cpuspeed()
260 &gx_params->off_duration); in gx_set_cpuspeed()
269 switch (gx_params->cs55x0->device) { in gx_set_cpuspeed()
271 pmer1 = gx_params->pci_pmer1 | IRQ_SPDUP | VID_SPDUP; in gx_set_cpuspeed()
279 if (gx_params->cs55x0->revision < 0x10) { in gx_set_cpuspeed()
281 suscfg = gx_params->pci_suscfg|SUSMOD; in gx_set_cpuspeed()
284 suscfg = gx_params->pci_suscfg|SUSMOD|PWRSVE; in gx_set_cpuspeed()
289 suscfg = gx_params->pci_suscfg | SUSMOD; in gx_set_cpuspeed()
297 suscfg = gx_params->pci_suscfg & ~(SUSMOD); in gx_set_cpuspeed()
298 gx_params->off_duration = 0; in gx_set_cpuspeed()
299 gx_params->on_duration = 0; in gx_set_cpuspeed()
303 gx_write_byte(PCI_MODOFF, gx_params->off_duration); in gx_set_cpuspeed()
304 gx_write_byte(PCI_MODON, gx_params->on_duration); in gx_set_cpuspeed()
307 pci_read_config_byte(gx_params->cs55x0, PCI_SUSCFG, &suscfg); in gx_set_cpuspeed()
311 gx_params->pci_suscfg = suscfg; in gx_set_cpuspeed()
316 gx_params->on_duration * 32, gx_params->off_duration * 32); in gx_set_cpuspeed()
466 gx_params = params; in cpufreq_gx_init()
488 pci_dev_put(gx_params->cs55x0); in cpufreq_gx_exit()
489 kfree(gx_params); in cpufreq_gx_exit()