ccdev 45 drivers/ssb/driver_chipcommon.c struct ssb_device *ccdev = cc->dev; ccdev 49 drivers/ssb/driver_chipcommon.c if (!ccdev) ccdev 51 drivers/ssb/driver_chipcommon.c bus = ccdev->bus; ccdev 54 drivers/ssb/driver_chipcommon.c if (ccdev->id.revision >= 10 && mode == SSB_CLKMODE_SLOW) ccdev 59 drivers/ssb/driver_chipcommon.c WARN_ON(ccdev->id.revision >= 20); ccdev 62 drivers/ssb/driver_chipcommon.c if (ccdev->id.revision < 6) ccdev 66 drivers/ssb/driver_chipcommon.c if (ccdev->id.revision >= 10) ccdev 79 drivers/ssb/driver_chipcommon.c if (ccdev->id.revision < 10) { ccdev 93 drivers/ssb/driver_chipcommon.c if (ccdev->id.revision < 10) { ccdev 89 drivers/thermal/clock_cooling.c static int clock_cooling_get_property(struct clock_cooling_device *ccdev, ccdev 98 drivers/thermal/clock_cooling.c struct cpufreq_frequency_table *pos, *table = ccdev->freq_table; ccdev 174 drivers/thermal/clock_cooling.c struct clock_cooling_device *ccdev = cdev->devdata; ccdev 177 drivers/thermal/clock_cooling.c if (clock_cooling_get_property(ccdev, (unsigned long)freq, &val, ccdev 198 drivers/thermal/clock_cooling.c clock_cooling_get_frequency(struct clock_cooling_device *ccdev, ccdev 204 drivers/thermal/clock_cooling.c ret = clock_cooling_get_property(ccdev, level, &freq, GET_FREQ); ccdev 223 drivers/thermal/clock_cooling.c static int clock_cooling_apply(struct clock_cooling_device *ccdev, ccdev 231 drivers/thermal/clock_cooling.c if (ccdev->clock_state == cooling_state) ccdev 234 drivers/thermal/clock_cooling.c clip_freq = clock_cooling_get_frequency(ccdev, cooling_state); ccdev 238 drivers/thermal/clock_cooling.c cur_freq = clk_get_rate(ccdev->clk); ccdev 240 drivers/thermal/clock_cooling.c mutex_lock(&ccdev->lock); ccdev 241 drivers/thermal/clock_cooling.c ccdev->clock_state = cooling_state; ccdev 242 drivers/thermal/clock_cooling.c ccdev->clock_val = clip_freq; ccdev 245 drivers/thermal/clock_cooling.c ret = clk_set_rate(ccdev->clk, clip_freq); ccdev 246 drivers/thermal/clock_cooling.c mutex_unlock(&ccdev->lock); ccdev 267 drivers/thermal/clock_cooling.c struct clock_cooling_device *ccdev = to_clock_cooling_device(nb); ccdev 277 drivers/thermal/clock_cooling.c if (ndata->new_rate > ccdev->clock_val) ccdev 302 drivers/thermal/clock_cooling.c struct clock_cooling_device *ccdev = cdev->devdata; ccdev 306 drivers/thermal/clock_cooling.c ret = clock_cooling_get_property(ccdev, 0, &count, GET_MAXL); ccdev 326 drivers/thermal/clock_cooling.c struct clock_cooling_device *ccdev = cdev->devdata; ccdev 328 drivers/thermal/clock_cooling.c *state = ccdev->clock_state; ccdev 378 drivers/thermal/clock_cooling.c struct clock_cooling_device *ccdev = NULL; ccdev 382 drivers/thermal/clock_cooling.c ccdev = devm_kzalloc(dev, sizeof(*ccdev), GFP_KERNEL); ccdev 383 drivers/thermal/clock_cooling.c if (!ccdev) ccdev 386 drivers/thermal/clock_cooling.c mutex_init(&ccdev->lock); ccdev 387 drivers/thermal/clock_cooling.c ccdev->dev = dev; ccdev 388 drivers/thermal/clock_cooling.c ccdev->clk = devm_clk_get(dev, clock_name); ccdev 389 drivers/thermal/clock_cooling.c if (IS_ERR(ccdev->clk)) ccdev 390 drivers/thermal/clock_cooling.c return ERR_CAST(ccdev->clk); ccdev 395 drivers/thermal/clock_cooling.c ccdev->id = ret; ccdev 397 drivers/thermal/clock_cooling.c snprintf(dev_name, sizeof(dev_name), "thermal-clock-%d", ccdev->id); ccdev 399 drivers/thermal/clock_cooling.c cdev = thermal_cooling_device_register(dev_name, ccdev, ccdev 402 drivers/thermal/clock_cooling.c ida_simple_remove(&clock_ida, ccdev->id); ccdev 405 drivers/thermal/clock_cooling.c ccdev->cdev = cdev; ccdev 406 drivers/thermal/clock_cooling.c ccdev->clk_rate_change_nb.notifier_call = clock_cooling_clock_notifier; ccdev 409 drivers/thermal/clock_cooling.c ret = dev_pm_opp_init_cpufreq_table(dev, &ccdev->freq_table); ccdev 411 drivers/thermal/clock_cooling.c ida_simple_remove(&clock_ida, ccdev->id); ccdev 414 drivers/thermal/clock_cooling.c ccdev->clock_state = 0; ccdev 415 drivers/thermal/clock_cooling.c ccdev->clock_val = clock_cooling_get_frequency(ccdev, 0); ccdev 417 drivers/thermal/clock_cooling.c clk_notifier_register(ccdev->clk, &ccdev->clk_rate_change_nb); ccdev 431 drivers/thermal/clock_cooling.c struct clock_cooling_device *ccdev; ccdev 436 drivers/thermal/clock_cooling.c ccdev = cdev->devdata; ccdev 438 drivers/thermal/clock_cooling.c clk_notifier_unregister(ccdev->clk, &ccdev->clk_rate_change_nb); ccdev 439 drivers/thermal/clock_cooling.c dev_pm_opp_free_cpufreq_table(ccdev->dev, &ccdev->freq_table); ccdev 441 drivers/thermal/clock_cooling.c thermal_cooling_device_unregister(ccdev->cdev); ccdev 442 drivers/thermal/clock_cooling.c ida_simple_remove(&clock_ida, ccdev->id);