Searched refs:gx_params (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/cpufreq/
H A Dgx-suspmod.c124 static struct gxfreq_params *gx_params; variable in typeref:struct:gxfreq_params
179 pci_write_config_byte(gx_params->cs55x0, reg, value); gx_write_byte()
208 if ((gx_params->pci_suscfg & SUSMOD) == 0) gx_get_cpuspeed()
211 return (stock_freq * gx_params->off_duration) gx_get_cpuspeed()
212 / (gx_params->on_duration + gx_params->off_duration); gx_get_cpuspeed()
263 new_khz = gx_validate_speed(khz, &gx_params->on_duration, gx_set_cpuspeed()
264 &gx_params->off_duration); gx_set_cpuspeed()
273 switch (gx_params->cs55x0->device) { gx_set_cpuspeed()
275 pmer1 = gx_params->pci_pmer1 | IRQ_SPDUP | VID_SPDUP; gx_set_cpuspeed()
283 if (gx_params->cs55x0->revision < 0x10) { gx_set_cpuspeed()
285 suscfg = gx_params->pci_suscfg|SUSMOD; gx_set_cpuspeed()
288 suscfg = gx_params->pci_suscfg|SUSMOD|PWRSVE; gx_set_cpuspeed()
293 suscfg = gx_params->pci_suscfg | SUSMOD; gx_set_cpuspeed()
301 suscfg = gx_params->pci_suscfg & ~(SUSMOD); gx_set_cpuspeed()
302 gx_params->off_duration = 0; gx_set_cpuspeed()
303 gx_params->on_duration = 0; gx_set_cpuspeed()
307 gx_write_byte(PCI_MODOFF, gx_params->off_duration); gx_set_cpuspeed()
308 gx_write_byte(PCI_MODON, gx_params->on_duration); gx_set_cpuspeed()
311 pci_read_config_byte(gx_params->cs55x0, PCI_SUSCFG, &suscfg); gx_set_cpuspeed()
315 gx_params->pci_suscfg = suscfg; gx_set_cpuspeed()
320 gx_params->on_duration * 32, gx_params->off_duration * 32); gx_set_cpuspeed()
470 gx_params = params; cpufreq_gx_init()
492 pci_dev_put(gx_params->cs55x0); cpufreq_gx_exit()
493 kfree(gx_params); cpufreq_gx_exit()

Completed in 183 milliseconds