Lines Matching refs:name
36 #define IS_SUPPORTED_FLAG(f, name) ((f & DEVFREQ_GOV_FLAG_##name) ? true : false)
37 #define IS_SUPPORTED_ATTR(f, name) ((f & DEVFREQ_GOV_ATTR_##name) ? true : false)
256 * find_devfreq_governor() - find devfreq governor from name
257 * @name: name of the governor
262 static struct devfreq_governor *find_devfreq_governor(const char *name)
268 if (IS_ERR_OR_NULL(name)) {
274 if (!strncmp(tmp_governor->name, name, DEVFREQ_NAME_LEN))
284 * @name: name of the governor
292 static struct devfreq_governor *try_then_request_governor(const char *name)
299 if (IS_ERR_OR_NULL(name)) {
304 governor = find_devfreq_governor(name);
308 if (!strncmp(name, DEVFREQ_GOV_SIMPLE_ONDEMAND,
312 err = request_module("governor_%s", name);
318 governor = find_devfreq_governor(name);
800 * @governor_name: name of the policy to choose frequency.
1034 * @governor_name: name of the policy to choose frequency.
1095 * @phandle_name - name of property holding a phandle value
1283 g = find_devfreq_governor(governor->name);
1286 g->name);
1297 if (!strncmp(devfreq->governor->name, governor->name,
1303 __func__, devfreq->governor->name);
1310 devfreq->governor->name, ret);
1319 __func__, devfreq->governor->name,
1374 g = find_devfreq_governor(governor->name);
1377 governor->name);
1385 if (!strncmp(devfreq->governor->name, governor->name,
1390 __func__, governor->name);
1398 __func__, devfreq->governor->name,
1419 static DEVICE_ATTR_RO(name);
1429 return sprintf(buf, "%s\n", df->governor->name);
1469 __func__, df->governor->name, ret);
1483 __func__, df->governor->name, ret);
1491 __func__, prev_governor->name, ret);
1530 "%s ", df->governor->name);
1542 "%s ", governor->name);
1907 __func__, df->governor->name, ret);
1914 __func__, df->governor->name, ret);
1920 #define CREATE_SYSFS_FILE(df, name) \
1923 ret = sysfs_create_file(&df->dev.kobj, &dev_attr_##name.attr); \
1926 "Unable to create attr(%s)\n", "##name"); \
1992 if (!strncmp(devfreq->governor->name, DEVFREQ_GOV_PASSIVE,
2018 devfreq->governor->name,